Create a Group Event via Multi-Step Wizard
The event creation wizard walks the user through sequential steps: event title → date → time → duration → location → summary. Each step is a focused screen that validates input before advancing. On the final summary step the user confirms all details before submitting. The Event Service persists the event to Supabase via the Event Repository with RLS ensuring users can only create events within their own organization scope. On success the user is navigated to the Event Detail Screen. The wizard reuses the activity wizard infrastructure while extending the data model for multi-participant support.
User Story
Acceptance Criteria
- Given an authenticated user on the Add screen, when they select 'Create Event', then the Event Creation Wizard Screen opens at step 1 (title input)
- Given the user is on any wizard step, when they tap 'Next', then the input is validated and the user only advances if the field passes validation
- Given the user is on any wizard step other than the first, when they tap 'Back', then they return to the previous step with previously entered values preserved
- Given the user completes all six wizard steps (title, date, time, duration, location, summary), when they tap 'Create Event' on the summary step, then the event is saved via the Event Service and the user lands on the Event Detail Screen
- Given a required field is empty, when the user taps 'Next', then an inline validation error is shown and progression is blocked
- Given the Supabase call fails, when the user taps 'Create Event', then a dismissible error message is shown and no navigation occurs
Business Value
Group activities such as weekly exercise sessions, café meetings, and guided tours represent a significant share of peer mentor work. Without a dedicated event flow, each participant in a group session requires a separate individual activity registration, multiplying reporting effort and discouraging accurate data entry. A unified event wizard reduces this to a single submission, directly improving data quality for Bufdir grant reporting and reducing coordinator workload.
Components
- Event Creation Wizard Screen ui
- Event Service service
- Event Repository data
- Supabase Client Service service