frontend icon indicating copy to clipboard operation
frontend copied to clipboard

feat: add collapsible checkbox filters

Open abdimo101 opened this issue 1 month ago • 3 comments

Description

Added collapse/expand functionality to checkbox filters on both dataset and proposal pages.

image

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.

abdimo101 avatar Nov 24 '25 15:11 abdimo101

One question here, should user know collapsed field can contain applied filters?

Junjiequan avatar Nov 24 '25 15:11 Junjiequan

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

abdimo101 avatar Nov 24 '25 15:11 abdimo101

PR now has a filter badge that indicates whether filters are selected when filter fields are collapsed. Picture: image

abdimo101 avatar Nov 26 '25 15:11 abdimo101