Approval Queue BLoC
Component Detail
Service Layer
medium complexity
mobile
1
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Flutter BLoC that manages the client-side state of the coordinator's approval queue, including pagination, filter state, real-time refresh via polling, and optimistic UI updates after decision submission. Communicates with the backend through the REST API client.
approval-queue-bloc
Responsibilities
- Manage paginated approval queue state in the Flutter client
- Handle filter and sort state transitions
- Poll backend for queue updates at configurable intervals
- Apply optimistic UI updates after approve/reject actions
- Coordinate loading, success, and error states
Interfaces
LoadApprovalQueue(filters)
RefreshApprovalQueue()
ApplyQueueFilter(filterState)
SubmitApprovalDecision(claimId, decision, notes)
LoadNextPage()
mapEventToState(event)