Wizard State Manager
Component Detail
Service Layer
high complexity
mobile
2
Dependencies
5
Dependents
0
Entities
0
Integrations
Description
BLoC-based service that owns the in-progress activity registration as an immutable state object. Processes step events, updates state via copyWith, and orchestrates navigation transitions. Delegates final assembly and API submission to Activity Service.
wizard-state-manager
Responsibilities
- Maintain immutable WizardState (contactId, dateTime, duration, activityTypeId, notes) updated via BLoC events
- Gate forward navigation by checking Activity Form Validator result for each step
- Assemble the complete activity payload on final submission
- Dispatch assembled payload to Activity Service REST call
- Support navigator 2.0 page stack push/pop driven by state changes
Interfaces
add(WizardEvent)
Stream<WizardState> get stream
submitActivity()
resetWizard()
goToStep(stepIndex)
Relationships
Dependencies (2)
Components this component depends on
Dependents (5)
Components that depend on this component