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

Category search modal icon update #13092

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

marcellamaki
Copy link
Member

Summary

After:
Screenshot 2025-02-18 at 1 22 11 PM

  • Upgrades KDS to v5
  • Updates the icon in the category search filter accordion in Coach
  • Updates the text to match figma/adds "other [categories]" to common strings

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.

Copy link
Member

@AlexVelezLl AlexVelezLl left a 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++) {
Copy link
Member

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.

Copy link
Member Author

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

@marcellamaki
Copy link
Member Author

specifically because of the KSelect dropdown updates that now renders the dropdown as a popper

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?

@AlexVelezLl
Copy link
Member

Yes! Sounds good :)

Copy link
Member

@pcenov pcenov left a 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!

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.

Update category modal icons in coach once KDS icons have been upgraded
3 participants