refactor: derive api error codes from contract (WealthLedger/backend#117) #123

Merged
codex-bot merged 1 commits from refactor/117-typed-problem-codes into develop 2026-10-28 17:31:22 +03:00
Owner

Frontend consumer for WealthLedger/backend#117. Merge AFTER the backend PR refactor/117-typed-problem-codes.

  • spec/openapi.json updated from backend; schema.d.ts regenerated (ProblemDetailsDto.code is now a 35-code union).
  • ApiErrorCode enum kept (conventions forbid machine-code string literals) but guarded by the contract type: any member not in the contract breaks compilation.
  • Unreachable FORBIDDEN removed from enum, client.ts permanent codes, resource-query.ts, AccountPage.vm.ts; 403 no-retry stays status-based.

Checks: npm run verify.

Frontend consumer for WealthLedger/backend#117. Merge AFTER the backend PR `refactor/117-typed-problem-codes`. - `spec/openapi.json` updated from backend; `schema.d.ts` regenerated (`ProblemDetailsDto.code` is now a 35-code union). - `ApiErrorCode` enum kept (conventions forbid machine-code string literals) but guarded by the contract type: any member not in the contract breaks compilation. - Unreachable `FORBIDDEN` removed from enum, `client.ts` permanent codes, `resource-query.ts`, `AccountPage.vm.ts`; 403 no-retry stays status-based. Checks: `npm run verify`.
ksv741 added 1 commit 2026-10-28 17:12:17 +03:00
refactor: derive api error codes from contract (WealthLedger/backend#117)
Frontend verify / commits (pull_request) Successful in 30s
Frontend verify / security (pull_request) Successful in 9s
Frontend verify / verify (pull_request) Successful in 5m46s
dd24ad65a7
ksv741 force-pushed refactor/117-typed-problem-codes from 1336be8c4f to dd24ad65a7 2026-10-28 17:12:17 +03:00 Compare
codex-bot scheduled this pull request to auto merge when all checks succeed 2026-10-28 17:12:51 +03:00
codex-bot merged commit 32e8fe9402 into develop 2026-10-28 17:31:22 +03:00
codex-bot deleted branch refactor/117-typed-problem-codes 2026-10-28 17:31:22 +03:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WealthLedger/frontend#123