Files
9323db5e16 fix(cat): unify public search and recoverable failure handling (#1423)
* fix(cat): unify public search and recoverable failure handling

* fix(search): own items read the user id by selector; keyboard test stubs them

On main's merge this PR failed 7 palette keyboard tests: useOwnSearchThings
called useAuth(), which reads the whole store without a selector, while the
palette (and main's test) read auth through selectors; and the hook's query
needs a QueryClient the keyboard test never provides.

- useOwnSearchThings reads useAuthStore(state => state.user?.id) only
- search-query-safety mocks the store selector instead of useAuth
- the keyboard test stubs useOwnSearchThings (it is about the keyboard;
  search-query-safety covers the items)

Verified on this branch merged with main: 21 search + hook test files,
122 tests pass; tsc clean; eslint clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

---------

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Cato <cato@orangecat.ch>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 00:36:49 +01:00
..
2025-04-22 00:15:05 +02:00