Order Queue
The Order Queue is the staff-facing view for managing incoming customer orders. It appears as the Orders tab for users with the employee or admin role.
Overview
StaffOrdersView displays all active orders (pending, in progress, ready) with:
- Filter chips: All, Pending, In Progress, Ready
- Order cards: Order number, items with modifiers, timestamp
- Action buttons: Claim, Mark Ready, Complete (based on current status)
- Auto-refresh: Real-time updates via Supabase Realtime
How It Works
OrderQueueViewModelcallsOrderQueueService.getActiveOrders()- Fetches all orders with status
pending,in_progress, orready - Orders are sorted by
created_atascending (oldest first) - Supabase Realtime pushes updates when any order changes
- The view auto-refreshes to show new orders and status changes
Order Card Display
Each order card shows:
- Order number: e.g., “SC-A042”
- Status badge: Color-coded by status
- Items: Name, quantity, modifiers, notes
- Time: How long ago the order was placed
- Assigned to: Which staff member claimed the order (if any)
Status Colors
| Status | Color | Meaning |
|---|---|---|
| Pending | Gray | New order, waiting to be claimed |
| In Progress | Amber | Claimed by staff, being prepared |
| Ready | Green | Ready for customer pickup |
| Completed | Blue | Picked up by customer |
| Cancelled | Red | Order was cancelled |