Review Pending Expense Claims Queue
Coordinators need a clear, actionable review queue that shows only claims that have exceeded the automatic approval threshold (e.g., over 50 km or includes out-of-pocket expenses). Claims below threshold are automatically processed and should not appear in this queue. The queue must display key metadata — claimant name, expense type, amount, submission date — so coordinators can triage without opening each claim individually. Real-time updates via Supabase subscriptions ensure the queue reflects the current state without manual refresh.
User Story
Acceptance Criteria
- Given a coordinator opens the attestation queue screen, when there are pending claims above the approval threshold, then the queue displays each claim with claimant name, expense type, total amount, and submission timestamp
- Given a claim falls below the configured automatic approval threshold (e.g., mileage under 50 km with no additional expenses), when it is submitted by a peer mentor, then it does NOT appear in the coordinator review queue and is marked as auto-approved
- Given the queue is open, when a new claim is submitted in real time, then the queue updates without requiring a manual page refresh
- Given a coordinator has no pending claims to review, when they open the queue, then an empty state message is shown indicating all claims are up to date
- Given multiple claims exist, when the coordinator views the queue, then claims are sorted by submission date ascending (oldest first) to prevent starvation
Business Value
A clear, real-time review queue prevents expense claims from getting lost or delayed, directly affecting peer mentor satisfaction and retention. Manual follow-up on reimbursement status is a known pain point; this story eliminates it by giving coordinators a single source of truth for all pending approvals, reducing administrative overhead and improving trust in the system.
Components
- Attestation Queue Screen ui
- Coordinator Review Queue Screen ui
- Claim Status Badge ui
- Threshold Evaluation Service service
- Expense Claim Status Repository data
- Threshold Validation Supabase Edge Function infrastructure
- Supabase Realtime Approval Subscription infrastructure
- Expense Threshold Configuration infrastructure