-
Notifications
You must be signed in to change notification settings - Fork 751
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
Category search modal icon update #13092
base: develop
Are you sure you want to change the base?
Category search modal icon update #13092
Conversation
Build Artifacts
|
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.
Thanks @marcellamaki! Looks good! Just a little observation :).
Also there are some failing tests, this is because of the KDS upgrade, specifically because of the KSelect dropdown updates that now renders the dropdown as a popper, and the tests in GenderSelect
are incorrectly assuming that the dropdown options are in the DOM just after rendering the component, which isnt true anymore (in the past they were, but they werent visible), a simple await userEvent.click(screen.getByText('Gender'));
before trying to query the options should make it work.
// for those with a clearer 1:1 match with the category and icon | ||
else { | ||
const categoryWordsString = category.toLowerCase().split('_'); | ||
for (let i = 1; i < categoryWordsString.length; i++) { |
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.
With this we are transforming snake case to camel case here, right? I see that above in this file we use the lodash/camelCase function to transform some other snake case strings, I think we can also use this here.
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.
ah, that would be a great simplification! thanks Alex
Yes, good point. I wonder if it would make more sense for me to open a separate PR to do the upgrade, and resolve that, and then open this separately? |
Yes! Sounds good :) |
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.
Thanks @marcellamaki - looks great!
Summary
After:

References
Fixes #13042
Reviewer guidance
Navigate to the lessonstemp path in coach and begin a search. All icons should display, and should match the figma spec.