Wizard State Service
Component Detail
Service Layer
low complexity
Shared Component
mobile
0
Dependencies
2
Dependents
1
Entities
0
Integrations
Description
BLoC/Riverpod state container that manages step progression, field values, and back-navigation safety for multi-step wizards. Shared with the Activity Registration Wizard to avoid duplicate state logic and ensure consistent wizard behaviour across the app.
wizard-state-service
Sources & reasoning
The implementation notes call out BLoC/Riverpod managing step state with back-navigation data preservation, and explicitly note shared form widgets with the activity wizard. A shared Wizard State Service prevents duplication of this non-trivial stateful logic between event-creation and activity-registration-wizard.
No source references — this artifact was included based on reasoning alone (see above).
Responsibilities
- Track current wizard step index and allow forward/backward navigation
- Persist entered field values across step transitions to prevent data loss
- Expose the assembled payload object when the final step is reached
- Reset wizard state on cancellation or successful submission
Interfaces
WizardStateBloc(initialStep)
nextStep(fieldValues: Map)
previousStep()
getPayload(): Map
resetWizard()
Relationships
Related Data Entities (1)
Data entities managed by this component