-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
fix(ui): Update numeric Input components to pass NaN where appropriat… #15797
Conversation
2139610
to
b3f0dae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR looks great! I think it could be effective to write up a cypress e2e test to see if the app functions as expected as well.
Good idea. I will attempt to write an e2e for this and will update status here. Edit: e2e tests will not be possible until a new version of clockface is released. We need version 1.0.5. Similarly, this PR should not be merged for the same reason, as without [email protected] there will be console errors. Edit 2: e2e tests are pushed now. |
b3f0dae
to
b9e528c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work! love the additional attention to detail with the decimal places bit!
have a couple of questions around tests, depending on how you answer we can approve or wait for an update :)
…e and fix other edge cases
b9e528c
to
6031a8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those tests, nice work!!
}) | ||
}) | ||
}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
}) | ||
}) | ||
}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Closes #15024
Updates numeric Inputs to deliberately pass NaN when user input is completely deleted, as clockface will handle this appropriately, see influxdata/clockface#373
Fixes edge cases with bin sizes in Heat Maps and decimal places in Single Stat.