Jakob Wennberg and Claude Opus 4.6
acb85edf4a
feat: wire Zod validation into API routes, improve types and components
...
- Add 8 new Zod schemas (UpdateCustomer, UpdateSupplier, UpdateSupplierInvoice,
UpdateAccount, BankUnlink, RunReconciliation, CorrectJournalEntry,
EvaluateMappingRules) and wire validateBody() into 24 JSON-body API routes
- Remove redundant manual validation checks replaced by Zod
- Add comprehensive schema tests (222 tests)
- Improve type definitions in types/index.ts with expanded interfaces
- Refactor extension types (push-notifications, receipt-ocr) for cleaner imports
- Update transaction components (BatchCategorySelector, SwipeCategorizationView,
QuickReviewDialog, VatTreatmentSelect) and invoice inbox workspace
- Add invoice-inbox utilities and type decoupling tests
- Fix NE-bilaga, SRU export, and invoice PDF template type usage
- Update CLAUDE.md with expanded architecture documentation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-23 16:00:38 +01:00
Emil and Claude Opus 4.6
2f83f232c6
test: add API route tests for 10 critical endpoints
...
Add test coverage for invoices, transactions, bookkeeping, and supplier
invoice API routes. Includes test helpers (createMockRequest,
parseJsonResponse, createMockRouteParams, createQueuedMockSupabase) and
fixture factories (makeInvoice, makeCustomer, makeSupplier,
makeSupplierInvoice, makeCompanySettings).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-20 16:12:51 +01:00