Queue and state design
Each order is treated as a stateful business record rather than a loose collection of screen updates. Accepted transitions should be enforced by the service layer, time-stamped and attributable to an operator or trusted integration.
Search and filters should operate over indexed operational fields while the detail panel resolves the complete record on demand. This keeps the queue responsive without making the list response the source of truth.
- Define allowed transitions and explicit exception states.
- Keep an append-only audit trail alongside current state.
- Make retries idempotent when carriers or mobile clients reconnect.