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.

Feature: Role-Specific Home Dashboard

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

Dependents (1)

Components that depend on this component