Infrastructure medium complexity mobile
1
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

BLoC state management unit for the home dashboard that processes role resolution events and emits typed states for each role variant (PeerMentorHomeState, CoordinatorHomeState, OrgAdminHomeState). Decouples widget rendering logic from business and data layers, enabling clean testability of each role-specific home screen path.

Feature: Role-Specific Home Dashboard

home-bloc

Responsibilities

  • Process RoleResolutionRequested events and emit appropriate role-specific home state
  • Handle DashboardRefreshRequested events and emit loading and success/failure states
  • Coordinate with DashboardService to fetch and propagate role-appropriate data
  • Emit error states with recovery actions when dashboard data fetch fails

Interfaces

add(HomeEvent event)
stream Stream<HomeState>
onRoleResolutionRequested(RoleResolutionRequested event, Emitter<HomeState> emit)
onDashboardRefreshRequested(DashboardRefreshRequested event, Emitter<HomeState> emit)
close()

Relationships

Dependencies (1)

Components this component depends on