This repository has been archived on 2026-05-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
app/apps/web
The Dogfather 6547b12bce feat: auto-select client from GlobalSearch highlight param (GRO-46)
Closes #119

The GlobalSearch navbar component already navigated to
/admin/clients?highlight={clientId} but ClientsPage never read that
param, so the user landed on a blank detail pane.

Changes:
- Clients.tsx: read ?highlight via useSearchParams; after clients load,
  auto-select the matching client (loads pets), scrolls the row into
  view, and removes the param from history so refresh does not re-trigger.
- Per-row refs (clientRowRefs) enable scroll-into-view without querying
  the DOM by selector.
- New GlobalSearch.test.tsx: 7 tests covering render, debounce fetch,
  empty/no-result states, client navigation, and pet-to-owner navigation.

All 70 tests pass.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-26 21:57:46 +00:00
..
2026-03-17 18:50:07 +00:00
2026-03-17 18:50:07 +00:00