-
-
Notifications
You must be signed in to change notification settings - Fork 326
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 Request: Search box above section list #277 #278
Feature Request: Search box above section list #277 #278
Conversation
Add new SectionFilter component to filter slugs based on section names Update SectionsColumn to display filtered sections Add units tests for SectionFilter component
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hey @ksaswin, thanks for this contribution, I love the concept! A couple small things:
|
Hi @octokatherine, Yeah, sounds good to me. I'll start working on those changes right away 😊 |
…/sections-typeahead
Remove search input after selecting a section Move search filter logic to SectionsColumn component Update SectionFilter unit test
Hi @octokatherine, I've pushed the requested changes. Please feel free to let me know if you'd like me to make any more updates to the same. Thank you 😊 |
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.
small suggestion, but it's looking good!
components/SectionsColumn.js
Outdated
setSelectedSectionSlugs((prev) => [...prev, section]) | ||
setFocusedSectionSlug(localStorage.getItem('current-focused-slug')) | ||
resetSearchFilter('') |
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.
resetSearchFilter('') | |
resetSearchFilter() |
don't think you need that argument!
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.
Hi @octokatherine,
Nice catch 😄 I don't know how I missed this! I've pushed the requested changes.
Thank you 😊
Add feature requested in issue #277
Add new SectionFilter component to filter slugs based on section names
Update SectionsColumn to display filtered sections
Add units tests for SectionFilter component
A screenshot of the implementation: