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

Development Documentation

Guides for working in the OrangeCat codebase. The rules an agent must follow live in ../../.claude/ and the root AGENTS.md; this folder holds the longer explanations behind them. Point-in-time status reports, trackers, handoffs and 2025 design plans that used to sit here are in ../archive/.

Architecture & Principles

Setup & Configuration

Code Patterns

Workflows

Where things live

  • Entity metadata: src/config/entity-registry.ts
  • Business logic: src/domain/ (one folder per domain)
  • Groups: src/services/groups/, API in src/app/api/groups/
  • Actors (unified ownership): src/services/actors/
  • Entity cards: src/components/entity/EntityCard.tsx