mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-03 20:17:26 +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>
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
- Engineering Principles - DRY, SSOT, best practices
- Best Practices - Day-to-day conventions
- Code Simplicity - Simplicity guidelines
- Currency System Explained and Currency Behavior
Setup & Configuration
- Setup Guide - Development environment setup
- Environment Management - Environment variables
Code Patterns
- CLI Entity Creation - Entity creation via CLI
- Generic API Handlers - API handler factories
- Hooks, Types, Utils - Directory guides
- Component Architecture
- Standards and Templates
Workflows
- Git Workflow and Branch Strategy
- Contributing
- Code Review - Review process
- Error Handling - Error handling patterns
- Debugging and Performance Debugging
Where things live
- Entity metadata:
src/config/entity-registry.ts - Business logic:
src/domain/(one folder per domain) - Groups:
src/services/groups/, API insrc/app/api/groups/ - Actors (unified ownership):
src/services/actors/ - Entity cards:
src/components/entity/EntityCard.tsx