Expense Registration BLoC
Component Detail
Service Layer
medium complexity
mobile
0
Dependencies
0
Dependents
3
Entities
0
Integrations
Description
BLoC state management component that orchestrates the full expense registration wizard flow, managing wizard step transitions, accumulated expense data across steps, and the final submission lifecycle. Coordinates between the UI layer, validation service, and repository.
expense-registration-bloc
Responsibilities
- Manage wizard step state and conditional field visibility based on expense type selection
- Accumulate and validate expense data across multi-step wizard navigation
- Coordinate submission to the expense repository with loading and error states
- Emit appropriate states for UI rendering including success, error, and loading
Interfaces
add(ExpenseTypeSelectedEvent)
add(AmountEnteredEvent)
add(MileageEnteredEvent)
add(SubmitExpenseEvent)
add(NextStepEvent)
add(PreviousStepEvent)
add(CancelRegistrationEvent)
state
stream
Related Data Entities (3)
Data entities managed by this component