mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 04:17:17 +01:00
* 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>