Register a travel expense claim on behalf of a peer mentor
Coordinators have the organisational responsibility to ensure that peer mentors who cannot use the app directly are still supported in claiming reimbursements. When a coordinator initiates proxy expense registration, the wizard presents a peer mentor selection step before the standard expense type selection. The selected mentor's user context and organisation-specific rules are loaded via the Expense Rules Provider. All subsequent wizard steps proceed identically to the standard flow, but the submitted expense report is written to `travel_expense_reports` with the mentor's user ID as the owner and the coordinator's ID recorded as the proxy submitter. RLS policies must permit coordinators to write records on behalf of mentors within their scope.
User Story
Acceptance Criteria
- Given the coordinator opens the expense registration wizard, when they activate proxy mode, then a peer mentor selection step is presented before the expense type step
- Given the coordinator selects a peer mentor, when the wizard advances, then the organisation-specific reimbursement rules for the selected mentor's organisation are loaded
- Given the coordinator completes and submits the wizard in proxy mode, when the record is written to Supabase, then the expense report owner is set to the selected mentor's user ID and the proxy submitter field records the coordinator's ID
- Given the submitted proxy expense report appears in the mentor's history, when the mentor views their expense history, then the proxy-submitted report is listed with an indicator showing it was submitted by a coordinator
- Given the coordinator's RLS scope covers the selected mentor, when the write operation executes, then it succeeds; given the mentor is outside the coordinator's scope, then the operation is rejected with an appropriate error message
Business Value
Not all peer mentors have the digital literacy or device access to independently submit expense claims. Without proxy registration capability, coordinators must resort to manual workarounds such as paper forms or email, reintroducing the administrative burden the app is designed to eliminate. Supporting proxy submission ensures all volunteers receive fair reimbursement regardless of their technical ability, supporting volunteer retention and equitable treatment.