Summary
Mock services and async hooks use inconsistent error shapes and messages.
Affected files
src/lib/mock-services.ts
src/hooks/useAsyncState.ts
Tasks
- Define one predictable error type (code, message, optional details).
- Map mock service failures to that shape.
- Update
useAsyncState consumers to rely on the unified contract.
Acceptance criteria
Suggested labels
cleanup, refactor, frontend
Notes
Standalone cleanup issue from CLEANUP_ISSUES_2026-05.md. Complements the audit queue and product backlog.
Summary
Mock services and async hooks use inconsistent error shapes and messages.
Affected files
src/lib/mock-services.tssrc/hooks/useAsyncState.tsTasks
useAsyncStateconsumers to rely on the unified contract.Acceptance criteria
Suggested labels
cleanup,refactor,frontendNotes
Standalone cleanup issue from CLEANUP_ISSUES_2026-05.md. Complements the audit queue and product backlog.