-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
chore: Improves the Select component UI/UX - iteration 3 #15363
Conversation
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.
Code LGTM! Thanks for the improvements 👍
Codecov Report
@@ Coverage Diff @@
## master #15363 +/- ##
==========================================
- Coverage 77.25% 77.22% -0.04%
==========================================
Files 975 975
Lines 50583 50604 +21
Branches 6202 6207 +5
==========================================
Hits 39079 39079
- Misses 11297 11318 +21
Partials 207 207
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/testenv up |
@suddjian Ephemeral environment spinning up at http://34.214.16.176:8080. Credentials are |
I noticed that if you turn on the If you type some gibberish into the input, and hit return, it DOES create the new list item, but it does NOT select it. I expected it would, but the prior selected value remains selected and displayed. |
Minor nit, or something for a future iteration: The Interactive Select might benefit from a separate "selected values" display, to prove that the |
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.
Loving the improvements to the Storybook, and the code in general. This component is looking fantastic!!!
I could only find one thing that didn't behave quite as I'd expected, but since it seems like it could be handled in a future iteration, I'm marking this PR as approved!
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.
This is looking really great, LGTM!
@rusackas An interesting point here. Actually, the selected values are the same, we just change the icon from the checkmark to the forbidden one. It's just an indication that the selected items will be excluded. With this behavior in mind, do you think there is a more appropriate name for it or that's ok? |
Sounds reasonable to me for now! |
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
Improves the
Select
component UI/UX - iteration 3.Storybook changes:
Interactive Select
Page Scroll
Select component changes:
useEffects
invertSelection
optionany
from the implementationImprovements/tasks that will be done in the next iterations:
@rusackas @geido @villebro @pkdotson @kgabryje @suddjian @zhaoyongjie
This component will be used by everyone. Please take the time to learn the API, play with the different controls, review and test.
PS: Sometimes the storybook is producing a 404 error. We need to investigate that in another PR and also update the Storybook version. For now, if you find the error, you only need to delete the
.cache
folder insidenode_modules
to make it work.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
122447300-fa2a4a00-cf79-11eb-951c-4a7892dd4fa5.mov
screen-recording-2021-06-24-at-85832-am_msBiKKsW.mov
TESTING INSTRUCTIONS
1- Start the storybook
2 - Open the Select panels
3 - Test the controls
ADDITIONAL INFORMATION