Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/clear input button #151

Merged
merged 17 commits into from
Oct 28, 2023

Conversation

ArkadiK94
Copy link
Collaborator

Description

Solves issue #59
[Feature] Add ClearButton To LineSelector

Why: make it easily to the user change the line number
How: by using IconButton (with ClearIcon) and placing in the right placeholder
What: add ClearButton in LineSelector component

Reset the routeKey and routes values when clearing the operatorId or lineNumber

screenshots

<-- paste here -->

Recording.2023-10-23.225958.mp4

Why: make it easily to the user change the line number
How: by using IconButton (with ClearIcon) and placing in the right placeholder
What: add ClearButton in LineSelector component
…imelinePage

How: Check if the lineNumber or operatorId is not undefined and stop the other effects from running
…apsPatternsPage and SingleLineMapPage

How: Check if the lineNumber or operatorId is not undefined , reset the routeKey and routes
@ArkadiK94 ArkadiK94 requested a review from NoamGaash as a code owner October 23, 2023 20:06
@ArkadiK94 ArkadiK94 linked an issue Oct 23, 2023 that may be closed by this pull request
Copy link
Member

@NoamGaash NoamGaash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great!
did you manually test that everything still works?
BTW, adding a playwright test would be a great practice

src/pages/components/MinuteSelector.tsx Outdated Show resolved Hide resolved
src/pages/components/MinuteSelector.tsx Outdated Show resolved Hide resolved
@NoamGaash
Copy link
Member

please resolve conflicts

@netlify
Copy link

netlify bot commented Oct 27, 2023

Deploy Preview for astonishing-pothos-5f81bd ready!

Name Link
🔨 Latest commit 0452a66
🔍 Latest deploy log https://app.netlify.com/sites/astonishing-pothos-5f81bd/deploys/653d211d8f5f7200084cc795
😎 Deploy Preview https://deploy-preview-151--astonishing-pothos-5f81bd.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

What: Add tests to make sure that the clear button works
Why: To be sure that future changes will not affect its functionality
How: using playwright
@ArkadiK94
Copy link
Collaborator Author

@NoamGaash, I added tests of the clear button.

tests/clearButton.spec.ts Outdated Show resolved Hide resolved
tests/clearButton.spec.ts Outdated Show resolved Hide resolved
Copy link
Member

@NoamGaash NoamGaash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feel free to merge after addressing the comment :)
thank you!

@ArkadiK94 ArkadiK94 merged commit 15e07cf into hasadna:main Oct 28, 2023
9 checks passed
@ArkadiK94 ArkadiK94 deleted the feature/clear-input-button branch October 28, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add reset button to user input
3 participants