You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Frontend stores are tested with mocked API modules, and API modules are tested with mocked HTTP. But the boundary between stores and API modules — especially error mapping, response transformation, and state reconciliation — is not tested as a unit. Additionally, several stores lack tests entirely.
Untested or Under-Tested Stores
Stores With No Tests
captureStore — the core capture workflow store; manages capture creation, queue status, triage state
workspaceStore — workspace mode management, active board selection, mode persistence
archiveStore — archive listing, restore operations, restore status tracking
chatStore (if it exists separately from chatApi) — message accumulation, session management, tool-call streaming
Store + API Integration Scenarios
captureStore
Create capture → API succeeds → store reflects new capture in list
Create capture → API returns 400 (validation error) → store shows error, no phantom capture
Create capture → API returns 500 → store shows network error, capture not lost
Fetch capture list → includes proper pagination/sorting
Capture triage status polling → store reflects Processing → Completed transition
boardStore
Create board → optimistic update → API confirms → final state matches
Create board → API fails → optimistic update rolled back
Card drag-drop → optimistic move → API confirms → position stable after re-render
Card drag-drop → API 409 Conflict → card snaps back to original position
Board data refresh while user is editing a card → edit not lost
Column reorder → optimistic → API confirms → all cards maintain correct column association
Delete board → confirmation → API succeeds → board removed from list, redirect to another board
Context
Frontend stores are tested with mocked API modules, and API modules are tested with mocked HTTP. But the boundary between stores and API modules — especially error mapping, response transformation, and state reconciliation — is not tested as a unit. Additionally, several stores lack tests entirely.
Untested or Under-Tested Stores
Stores With No Tests
Store + API Integration Scenarios
captureStore
boardStore
queueStore
notificationStore
sessionStore
Implementation Notes
Edge Cases to Stress