-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Filter search results client (#1027)
* Implement basic component * Style updates * Update to use form * Add function to build queries * Disable default dropdown value * Add labels query and add labels to query building * Add query for tags * Remove tags query and form element * Move SearchFilter component * Store filter options in an array * Remove console.log * Add SearchContext * Add SearchFilter component back * Add searchPageFilters to searchContext * Clear the searchQuery when not on /search * Update form submission to include searchQuery * Add filter reset * Move searchPageFilters from context to component * Save filter to local storage * Style updates * Dark mode styles * Fix button style * Add storybook component and set max-width * Add back missing SearchBanner, update styles and fix tests * Add tests * Update test * Add test to bump coverage * Add test to bump coverage * Change it to test * Update headers * Accessibility updates * Add LD flag with tests * Remove disabled prop * Fix what I broke * Updates to label search * Allow user to select default option * Move searchPageFilters to context and update param name * Update form submit * Wrap category value in double quotes if more than one word * Trim search query to 200 characters before submitting * Update test * Add tests and remove localStorage for storing filter items * Add tests * Remove unnecessary form and set searchQuery when component mounts * Ensure filter items remain selected after search * Place EPubs component above SearchFilter * Update tests and add renderWithSearchContext helper * Remove searchPageFilters array and add filter items directly to searchQuery * Update test * Accessibility updates * Fix multi-word labels * Remove console.logs * Remove unused icon * Remove unnecessary code --------- Co-authored-by: Shauna Keating <[email protected]> Co-authored-by: John Gedeon <[email protected]>
- Loading branch information
1 parent
4c6d1aa
commit 35f6f90
Showing
21 changed files
with
1,116 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.