feat: add collapsible checkbox filters
Description
Added collapse/expand functionality to checkbox filters on both dataset and proposal pages.
Motivation
- https://jira.ess.eu/browse/SWAP-5127
Fixes:
Please provide a list of the fixes implemented in this PR
- Items added
Changes:
Please provide a list of the changes implemented by this PR
- changes made
Tests included
- [ ] Included for each change/fix?
- [ ] Passing? (Merge will not be approved unless this is checked)
Documentation
- [ ] swagger documentation updated [required]
- [ ] official documentation updated [nice-to-have]
official documentation info
If you have updated the official documentation, please provide PR # and URL of the pages where the updates are included
Backend version
- [ ] Does it require a specific version of the backend
- which version of the backend is required:
Summary by Sourcery
Add collapsible checkbox filters to dataset and proposal listing pages and cover the behaviour with end-to-end tests.
New Features:
- Introduce per-filter expand/collapse behaviour for checkbox filters on the datasets page.
- Introduce per-filter expand/collapse behaviour for checkbox filters on the proposals page.
Enhancements:
- Style the collapsible filter UI to hide checkbox filter contents when collapsed while keeping other filter types always visible.
Tests:
- Add Cypress end-to-end tests to verify collapsing and expanding checkbox filters on datasets and proposals pages.
One question here, should user know collapsed field can contain applied filters?
One question here, should user know collapsed field can contain applied filters?
Good point! It will best for users to know if it has active filters on a collapsed field. I can add something that would indicate it
PR now has a filter badge that indicates whether filters are selected when filter fields are collapsed.
Picture: