Track the Status of a Submitted Mileage Claim
After submitting a mileage claim, peer mentors need visibility into its progress through the approval workflow. A claim status badge on each claim card should reflect the current state. For claims that went through manual review, a claim status timeline should show when the claim was submitted, when it entered the review queue, and when it was approved or rejected with any coordinator comments. Auto-approved claims should show an immediately resolved status. This feature reduces unnecessary coordinator-mentor communication and builds mentor trust in the system.
User Story
Acceptance Criteria
- Given I have submitted a mileage claim, When I view my claims list, Then each claim displays a claim status badge reflecting its current state (pending, auto-approved, approved, rejected)
- Given a claim has been manually reviewed, When I open the claim detail, Then a claim status timeline shows each status transition with timestamps and, if applicable, the coordinator's comment
- Given a claim was auto-approved, When I view its detail, Then the timeline shows a single 'Auto-approved' entry with the timestamp and the threshold rule that triggered it
- Given a coordinator approves or rejects my claim, When the real-time approval subscription receives the update, Then my claim status badge and timeline update without requiring me to refresh the screen
- Given a claim was rejected, When I view the rejection entry in the timeline, Then the coordinator's reason is displayed and I have an option to resubmit with corrections
Business Value
Claim status transparency directly reduces coordinator overhead from status inquiry messages, which are a common friction point in volunteer organizations. For peer mentors, knowing their reimbursement is being processed removes anxiety and increases satisfaction with the volunteer experience — a key retention factor identified across all workshop organizations.
Components
- Claim Status Audit Timeline ui
- Claim Status Badge ui
- Claim Events Repository data
- Expense Claim Status Repository data
- Supabase Realtime Approval Subscription infrastructure
- Mileage Claim Service service
- Mileage Claim Repository data