Remove a Participant from an Event
Each participant entry on the Event Detail Screen includes a remove action (swipe-to-delete or a contextual button). Tapping the action presents a confirmation prompt before the Event Service deletes the corresponding event_participants row. The participant list updates immediately after confirmation. RLS and ownership checks ensure only authorized users can remove participants from an event.
User Story
As a
user
I want
to remove a participant from an event's participant list from the Event Detail Screen
So that
So that I can correct accidental additions or remove contacts who did not actually attend without deleting the entire event
Acceptance Criteria
- Given an event detail screen with participants is open, when the user activates the remove action on a participant entry, then a confirmation dialog is shown before deletion
- Given the user confirms removal, when the Event Service completes the delete operation, then the participant no longer appears in the list
- Given the user cancels the confirmation dialog, when returning to the detail screen, then the participant list is unchanged
- Given only one participant remains, when the user removes them and confirms, then the participant list shows the empty state
- Given a peer mentor did not create the event, when they view the participant list, then no remove action is visible
Business Value
Accidental participant additions are inevitable in a fast-paced field context. A safe, confirmation-gated removal flow prevents data errors in Bufdir reports where participant counts feed directly into grant aggregations. Keeping participant lists accurate is essential to organizational credibility in reporting.
Components
- Event Detail Screen ui
- Event Service service
- Event Repository data