salary-report
salary-report copied to clipboard
Update facets in accordance with filters
Main idea: facets (i.e. numbers near filter values) should be adjusted according to currently selected filters). As a user is able to change only one filter state per click, it would be great to show (+N) near non-selected filter values to demonstrate how many entities will be added to the selection after this exact filter value is checked.
Let's go with examples
Let's assume we have the next data:
Male | Female | |
---|---|---|
Middle | 50 | 30 |
Senior | 20 | 10 |
Initial filters with facets will be (let's assume that all of the filters are empty i.e. no filters are applied):
- Sex
- ☐ Male (70)
- ☐ Female (40)
- Maturity
- ☐ Middle (80)
- ☐ Senior (30)
Step 1: Check Male filter
- Sex
- ☑ Male (70)
- ☐ Female (+40)
- Maturity
- ☐ Middle (50)
- ☐ Senior (20)
Step 2: Check Senior filter
- Sex
- ☑Male (20)
- ☐ Female (+10)
- Maturity
- ☐ Middle (+50)
- ☑ Senior (20)