View and Edit a Recently Submitted Registration
After submitting a registration the confirmation view shows the details and includes an 'Edit' shortcut for the last submission. Within the activity history accessible from the statistics or home screen, the peer mentor can view their own registrations in reverse chronological order. Tapping a recent entry opens an edit view where all fields except the organisation and the peer mentor ID can be modified. Edits are saved back to Supabase and the change is timestamped to preserve an audit trail. Registrations older than a configurable window (default 7 days) may require coordinator approval to edit.
User Story
Acceptance Criteria
- Given I have just submitted a registration, when the confirmation view is shown, then an 'Edit this registration' button is visible
- Given I tap 'Edit this registration', when the edit view opens, then all fields (activity type, date, duration, notes) are pre-populated with the submitted values
- Given I correct the duration from 30 to 45 minutes and save, when I return to my activity list, then the entry shows 45 minutes and an 'edited' timestamp
- Given I attempt to edit a registration that is 8 days old, when the edit view opens, then a notice informs me that coordinator approval is required and the save action triggers an approval request rather than an immediate update
- Given the edit is saved, when the coordinator views the same record, then both the original and the edited values are visible in the audit trail
Business Value
Immediate self-correction reduces coordinator workload and keeps the data accurate at source. Errors in activity records affect Bufdir statistics, reimbursement calculations, and sertification tracking. Empowering peer mentors to fix their own mistakes quickly builds trust in the system and reduces the administrative overhead on coordinators.
Components
- Registration Confirmation View ui
- Activity Registration Cubit service
- Activity Registration Service service
- Activity Repository data
- Supabase Activity Client infrastructure
- Activity History List ui