Overview
TheDashboardRepository interface provides access to aggregated dashboard data including statistics cards, menu items for navigation, and recent activity across all tenants. It consolidates data from multiple sources for the dashboard view.
Methods
getStatCards()
Fetches dashboard statistics formatted as stat cards for display. ReturnsResult containing list of StatCard objects with metrics, or error on failure
getMenuItems()
Fetches menu items for sidebar navigation based on user permissions. ReturnsResult containing list of MenuItem objects for navigation, or error on failure
getDashboardStats()
Fetches aggregated dashboard statistics from all tenants including total counts and active counts. ReturnsResult containing DashboardStats with aggregated metrics, or error on failure
getRecentAlerts()
Fetches recent unresolved alerts across all tenants, sorted by creation date. ParametersMaximum number of alerts to return
Result containing list of recent RecentAlert objects, or error on failure
getRecentClients()
Fetches recently created or updated clients. ParametersMaximum number of clients to return
Result containing list of recent RecentClient objects, or error on failure
Usage Example
Related Documentation
Dashboard Models
DashboardStats and related data models
DashboardViewModel
Dashboard screen state management
Dashboard Feature
Dashboard user interface and features
AlertsRepository
Full alert management operations