Skip to content

Max value for participant slider on results page #2485

@janno42

Description

@janno42

On the results page, the participant filter slider currently allows values from 0 to the maximum number of participants across all published evaluations. However, this is not useful when some evaluations have more than 1,000 participants. The main use case for the slider is to find courses of different sizes, where "large" could mean more than 50 people and "very large" could mean 100+.

We should add a setting called PARTICIPANT_FILTER_MAX_VALUE to the settings (default value: 150) that defines the largest possible number that can be selected in the slider. This value should not be affected by the maximum number of participants across the published evaluations.
If this value is selected, it should be interpreted as an open end to the filter. This should be indicated by writing "150+" in the label instead of just "150".
For instance, choosing "100-149" would display all results with a minimum of 100 and a maximum of 149 participants. Selecting "100-150+" would show all results with at least 100 participants and would have no upper limit.

Metadata

Metadata

Assignees

Labels

[C] FrontendFocuses on frontend implementation[P] MediumMedium priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions