mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 20:28:04 +01:00
Phase 1 — Correctness fixes: - Add try/catch to cat/history/route.ts GET + DELETE handlers - Fix Button.test.tsx style prop assertion (JSDOM toHaveStyle quirk) - Exclude .claude/worktrees from Jest testPathIgnorePatterns - Add .claude/worktrees/ to .gitignore Phase 1b — Dead code removal: - Delete CatChatPanel (superseded by ModernChatPanel) - Replace CatChatPanel.streaming.test.tsx with describe.skip + migration note Phase 1c — Design system: - Remove hardcoded #111827 hex from FlyoutTooltip — use border-gray-900 class Phase 1d — TODO markers: - Convert all 10 raw // TODO comments to // FUTURE: pattern with rationale Phase 2 — Tailwind CSS purging: - Add safelist to tailwind.config.ts for initiative color system - Fix dynamic gap-${x} patterns in ModernProjectCard with static ternaries Phase 3 — Auth service split: - Wire up pre-existing auth sub-modules (mfa.ts, operations.ts, session.ts, errors.ts) - Reduce auth/index.ts from 837 → 100 lines as a clean barrel file Phase 4 — Test coverage (+143 new tests): - __tests__/unit/utils/validation.test.ts (45 cases: UUID, Bitcoin, Lightning, email, username) - __tests__/unit/utils/currency-helpers.test.ts (26 cases) - __tests__/unit/utils/dates.test.ts (18 cases: formatDate/Time/DateTime/RelativeTime) - __tests__/unit/validation/auth-schemas.test.ts (17 cases: loginSchema, registerSchema) - __tests__/unit/validation/base-schemas.test.ts (19 cases: lightningAddressSchema, optionalUrl) Phase 5 — Mission alignment: - Add signInAnonymously() to auth service (pseudonymous-by-default principle) - Add "Continue without account" UI in auth/page.tsx - Document Supabase Dashboard prerequisite in code comment Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>