Skip to content

CHI-4045: Move SearchInput to its own component folder - #4903

Open
gpaoloni wants to merge 1 commit into
CHI-4045-checkbox-label-layoutfrom
CHI-4045-extract-search-input
Open

gpaoloni wants to merge 1 commit into
CHI-4045-checkbox-label-layoutfrom
CHI-4045-extract-search-input

Conversation

@gpaoloni

Copy link
Copy Markdown
Collaborator

Description

Stacked on #4902. Refactor only: no behaviour change.

SearchInput lived under caseList/filters/, but it is also used by the resources search form and the USCH categories filter. This PR moves it to its own folder, components/SearchInput/:

  • caseList/filters/SearchInput.tsx → SearchInput/index.tsx (a git rename, so history is kept).
  • Its styled input (MultiSelectSearchInput) moves from src/styles/filters.ts to SearchInput/styles.ts, unchanged. Nothing else used it. The HrmTheme import in filters.ts became unused and is removed.
  • The three consumers (MultiSelectFilter, CategoriesFilter, SearchResourcesForm) now import from the new path.

The form-field SearchInput in forms/components/SearchInput/ stays separate. It works differently (react-hook-form registration, blur-only updates, validation errors, hidden label, different styling), so merging the two would change behaviour.

Checklist

  • Corresponding issue has been opened
  • New tests added
  • Feature flags added
  • Strings are localized
  • Tested for chat contacts
  • Tested for call contacts

Other Related Issues

Verification steps

  1. The search boxes in the case list filters, the resources search form and the USCH categories filter look and behave as before: typing filters, the clear (X) button, Enter to search on the resources form.
  • Automated checks: tsc and ESLint pass. The case list and resources test suites passed before the styles move. The full npm test has not been run on the final commit yet.

AFTER YOU MERGE

  1. Cut a release tag using the Github workflow. Wait for it to complete and notify in the #aselo-deploys Slack channel.
  2. Comment on the ticket with the release tag version AND any additional instructions required to configure an environment to test the changes.
  3. Only then move the ticket into the QA column in JIRA

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

@gpaoloni
gpaoloni added this pull request to stack #4899 November 25, 2026 20:58
@gpaoloni
gpaoloni force-pushed the CHI-4045-extract-search-input branch from ffebfc2 to a2c5c74 Compare November 25, 2026 20:59
@gpaoloni
gpaoloni force-pushed the CHI-4045-extract-search-input branch from a2c5c74 to 8228de4 Compare November 26, 2026 16:38
The search input lived under caseList/filters but is also used by the
resources search form and the USCH categories filter. Move it, along with
its styled input, to components/SearchInput. No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

2 participants