Edit Event Details After Creation
The Event Detail Screen exposes an edit action (via an icon or contextual menu) that opens an inline edit mode or navigates to an editable version of the wizard summary. The Event Service validates and persists changes through the Event Repository. RLS policies ensure users can only edit events they own or, in the coordinator role, events within their organization scope. All edits are reflected immediately on the detail screen upon save.
User Story
Acceptance Criteria
- Given an event detail screen is open, when the user taps the edit action, then the event fields become editable
- Given the user modifies a field and taps 'Save', then the updated value is persisted via the Event Service and displayed immediately on the detail screen
- Given the user begins editing but taps 'Cancel', then no changes are saved and the original values are restored
- Given a required field is cleared, when the user taps 'Save', then a validation error is shown and the save is blocked
- Given the user is a peer mentor and the event belongs to a different user, when they open the event detail screen, then the edit action is not visible
Business Value
Corrections after initial submission are a normal part of field work — a peer mentor may log an event immediately after it ends and realize the duration was wrong, or a location name needs updating. Supporting post-creation edits avoids duplicate submissions and keeps the historical record clean, which matters for Bufdir data accuracy.
Components
- Event Detail Screen ui
- Event Service service
- Event Repository data