Closed htpvu closed 2 years ago
Related: we can force the selected facets to appear at the top of the list through configuration at /admin/config/search/facets
Each facet would have to be updated, changing Facet Sorting, Sort by active state to Ascending (instead of Descending)
How do we want to solve this? Two main solutions off the top of my head:
1) Bring selected facets to the top of their respective lists and automatically open the facet categories that have selected values 2) Create a running list of all selected facets outside of any category. Optionally add behavior from (1)
Mockups:
Maybe other ideas?
@jabrah @jaredgalanis we're good with option1. checked with katie on Slack.
Remaining work: Facet categories need to remain open when one or more value is selected. Currently, all categories close on the user. This will involve a change in our JS codebase in the theme - shouldn't be a large change
Currently in test: Selecting multiple facets in the same category will sometimes not sort selected values at the top, but sometimes will. Refreshing the page will force the facets to the top