d6acfcb126
feat(11-01): PATCH /api/threads/:id/candidates/reorder route + tests
...
- Import reorderCandidatesSchema and reorderCandidates into threads route
- Add PATCH /:id/candidates/reorder route with Zod validation
- Returns 200 + { success: true } on active thread, 400 on resolved thread
- Add 5 route tests: success, order persists, resolved guard, empty array, missing field
2026-03-16 22:22:31 +01:00
b496462df5
chore: auto-fix Biome formatting and configure lint rules
...
CI / ci (push) Successful in 15s
Run biome check --write --unsafe to fix tabs, import ordering, and
non-null assertions across entire codebase. Disable a11y rules not
applicable to this single-user app. Exclude auto-generated routeTree.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-15 19:51:34 +01:00
ed8508110f
feat(04-01): update thread service, routes, and hooks for categoryId
...
- createThread now inserts categoryId from data
- getAllThreads joins categories table, returns categoryName/categoryEmoji
- updateThread accepts optional categoryId
- ThreadListItem interface includes category fields
- useCreateThread hook sends categoryId
- Fix test files to pass categoryId when creating threads
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-15 16:31:48 +01:00
37c9999d07
test(02-01): add failing integration tests for thread API routes
...
- 14 integration tests covering all thread and candidate endpoints
- Thread CRUD, candidate CRUD, and resolution endpoint tests
- Covers error cases: 400 validation, 404 not found, resolved re-resolve
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-15 11:38:35 +01:00