Repository navigation
CHI-4045: Make USCH categories filter collapsible, searchable, with selected count and loading spinner - #4900
Open
gpaoloni wants to merge 6 commits into
Conversation
2 of 6 tasks
1 of 6 tasks
USCH has 100+ categories, so the categories filter now starts collapsed, expands from its header and has a search box to narrow the list down. The shared checkbox grid no longer scrolls; it always shows every option it is given. KHP filters are unchanged. SearchInput gets an optional id so it can be used twice on one screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ories filter The collapsed header now says how many categories are selected, and a small spinner shows while the categories are being fetched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Some category values in the DB have leading/trailing spaces. Trim the label once when the options are loaded; keep the value as stored because HRM matches it exactly against the search index. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Some categories are stored with stray spaces, so the same category showed up more than once. Trim category values as well as labels so the variants collapse into a single option. Location values are left as stored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g while loading Use disableShrink on the spinner, since MUI's shrink animation freezes when the main thread is busy and makes the request look finished. Disable the categories toggle until the options are loaded, so it can't open empty. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gpaoloni
force-pushed
the
CHI-4045-collapsible-categories-filter
branch
from
November 26, 2026 16:58
34588de to
c0a74d9
Compare
3 of 6 tasks
stephenhand
approved these changes
Nov 27, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
USCH has more than 100 resource categories, which made the categories filter from #4898 hard to use. This PR (stacked on #4898):
aria-expandedandaria-controls.asyncDispatchreturns, so no new Redux state is needed.Categorieson;without trimming). Option labels are trimmed once, when loaded. Values are kept as stored, because HRM matches them exactly againstcategoriesName; trimming them would make those categories match nothing.CheckboxMultiSelectOptions, so the USCH filter can put it under its own header.CheckboxMultiSelectFilter(box + header + grid) is unchanged for KHP.SearchInputgets an optionalid(defaultsearch-input, as before), so it doesn't clash with the main resources search box on the same form.Why not
ExpandableComponent: it truncates content to one line and only shows "…more" when that line overflows, and its hook moves focus to that link on mount. Neither fits a filter that should start fully collapsed.Checklist
Other Related Issues
Verification steps
USCHCategoriesFilterandUSCHResourceSearchFilterstests and the existing resource and case-list filter tests pass, and so dotscand lint. The fullnpm testsuite was not run locally; please rely on CI for that. The UI has not been checked in a browser against a USCH account.AFTER YOU MERGE
You are responsible for ensuring the above steps are completed. If you move a ticket into QA without advising what version to test, the QA team will assume the latest tag has the changes. If it does not, the following confusion is on you! :-P
🤖 Generated with Claude Code