CRITICAL story-mileage-reimbursement-entry-coordinator-001 8 pts
8
Story Points
Critical
Priority
Mileage Reimbursement Entry
Feature

User Story

As a Coordinator
I want to enter my travel distance and route when submitting a mileage reimbursement claim after a peer support visit
So that I can be reimbursed for my travel expenses accurately and without needing to calculate the amount myself

Acceptance Criteria

  • Given I open the mileage entry form, When the form loads, Then today's date is pre-filled and the distance field is focused
  • Given I enter a from-address and a to-address in the route input fields, When both fields are populated, Then the system attempts to prefill the distance using the distance prefill service and displays an estimated km value
  • Given I have entered or confirmed a distance in kilometers, When I view the reimbursement display, Then the calculated reimbursement amount updates in real time based on the organization's configured rate per km
  • Given my claim is below the organization's auto-approval threshold (e.g., under 50 km with no additional expenses), When I submit the claim, Then the claim is automatically approved without requiring coordinator review and I receive a confirmation
  • Given my claim exceeds the auto-approval threshold, When I submit the claim, Then the claim is placed in the coordinator's attestation queue and I am informed that it is pending review
  • Given I submit the form, When the submission succeeds, Then the claim is persisted to the mileage claim repository and the claim status badge reflects the correct state (auto-approved or pending)
  • Given I am offline when submitting, When connectivity is restored, Then the claim is synced via the Supabase mileage adapter without data loss

Business Value

Mileage reimbursement is a primary financial touchpoint for peer mentors — uncompensated travel is a leading reason volunteers disengage. Automating calculation and approval for common low-value claims removes the single largest friction point in the reimbursement cycle, reduces coordinator workload, and directly supports volunteer retention across all participating organizations (HLF and Blindeforbundet explicitly prioritize this in Phase 2).