Dashboard Repository
Component Detail
Data Layer
low complexity
mobile
0
Dependencies
1
Dependents
5
Entities
0
Integrations
Description
Data access layer that fetches aggregated dashboard metrics from the REST API backend for each role variant. Implements local caching to support offline access to the last-known dashboard state and reduces redundant API calls on repeated home screen visits.
dashboard-repository
Responsibilities
- Fetch role-specific dashboard summary data from REST API
- Cache dashboard responses locally for offline fallback display
- Invalidate and refresh cached data on user-triggered refresh or push notification receipt
- Map raw API responses to typed dashboard data models
Interfaces
fetchPeerMentorDashboard(String userId)
fetchCoordinatorDashboard(String userId)
fetchOrgAdminDashboard(String organizationId)
getCachedDashboard(String userId)
clearCache(String userId)
Relationships
Related Data Entities (5)
Data entities managed by this component