Quick-find search: auto-select client from global search result #119
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The
GlobalSearchnavbar component navigates to/admin/clients?highlight={clientId}when a client or pet result is clicked, butClientsPagedoes not read thehighlightquery param. The user lands on the Clients page with no client selected — they have to manually scroll and click.Scope
Traced from Paperclip issue GRO-46 (quick-find search for clients and pets).
All the infrastructure is already in place:
GlobalSearchcomponent in navbar — debounced/api/searchtypeahead with mobile-friendly touch targets/api/searchbackend route — ILIKE queries for clients (name/email/phone) and pets (name/breed)Missing:
Clients.tsxdoes not handle?highlight={clientId}. After clients load, if the param is set, it should:Acceptance criteria