Add Participants to an Existing Event
The Event Detail Screen includes an 'Add Participants' action that opens the Event Participants Widget in an addition mode. The widget works identically to the wizard version — debounced search over the contact list, chip selection — but operates on an already-persisted event. The Event Service appends the new participants to the event_participants table. Real-time subscription ensures other open sessions of the same event detail screen are updated immediately.
User Story
Acceptance Criteria
- Given an event detail screen is open, when the user taps 'Add Participants', then the Event Participants Widget opens showing only contacts not already linked to the event
- Given the user searches and selects new contacts in the widget, when they confirm the selection, then the Event Service adds the new participants and they appear in the participant list on the detail screen
- Given a participant was already added to the event, when the user opens the add-participant widget, then that contact does not appear in search results
- Given the add-participant widget is open and the user cancels, when they return to the detail screen, then no new participants were added
- Given the Supabase insert fails, when the user confirms participant additions, then an error is shown and the participant list remains unchanged
Business Value
Group sessions often have dynamic attendance — someone arrives late or a coordinator adds a participant after reviewing sign-in sheets. Supporting post-creation participant additions prevents the need to delete and re-create events, preserving data continuity and reducing coordinator effort for recurring sessions.
Components
- Event Detail Screen ui
- Event Participants Widget ui
- Event Service service
- Event Repository data