Skip to content

Show checkbox filter counts - #130

Merged
virginiacc merged 1 commit into
mainfrom
show-filter-counts
Oct 21, 2026
Merged

virginiacc merged 1 commit into
mainfrom
show-filter-counts

Conversation

@virginiacc

Copy link
Copy Markdown
Contributor

The checkbox filters on the evaluator view currently show all the potential values for each field, even though many of the values are not actually present in the evaluator's results, making it easy to apply a set of filters that returns zero results.

We now have an API endpoint that returns counts for the checkbox filter fields' values, so this PR adds a first pass at showing those counts. The functionality is hidden behind a querystring flag so we can test it without impacting the existing filters.

Additions

  • Filter facet query
  • Component to fetch the filter counts and show a loader during fetch
  • New approach to outputting the filters and their counts with evaluator-specific CheckboxFilter, CheckboxGroup, and CheckboxItem components instead of the reusable NestedCheckboxGroup component
  • show_counts query param to toggle between the current filters and the new implementation with counts

Testing

  1. PR checks should pass

Screenshots

Screenshot 2026-10-20 at 2 25 31 PM

Checklist

  • PR has an informative and human-readable title
  • Changes are limited to a single goal (no scope creep)
  • Code can be automatically merged (no conflicts)
  • Passes all existing automated tests
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future todos are captured in comments
  • Visually tested in supported browsers and devices (see checklist below 👇)
  • Project documentation has been updated
  • Reviewers requested with the Reviewers tool ➡️

Testing checklist

Browsers

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer 8, 9, 10, and 11
  • Edge
  • iOS Safari
  • Chrome for Android

Accessibility

  • Keyboard friendly
  • Screen reader friendly

Other

  • Flexible from small to large screens
  • No linting errors or warnings
  • JavaScript tests are passing

… viewing dynamically updated counts for the checkbox filter values that appear in an evaluator's results.
@virginiacc
virginiacc marked this pull request as ready for review October 21, 2026 06:06
@virginiacc
virginiacc merged commit 26469b9 into main Oct 21, 2026
7 checks passed
@virginiacc
virginiacc deleted the show-filter-counts branch October 21, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant