View Organisation Admin Dashboard with Key Metrics
The admin dashboard provides a real-time overview of the organisation's key performance indicators: active peer mentors, total activities registered in the current period, pending approvals, certification expiry warnings, and unresolved duplicates. Stat widgets are grouped by domain (people, activities, compliance) and link directly to the relevant management screens. The dashboard must enforce RLS so admins only see data within their organisation scope.
User Story
Acceptance Criteria
- Given I am authenticated as an Organisation Admin, when I navigate to the admin section, then the dashboard loads within 2 seconds and shows aggregate stats scoped to my organisation
- Given the dashboard is loaded, when there are peer mentors with certifications expiring within 30 days, then a prominent warning card is displayed with a count and a link to the certification management screen
- Given the dashboard is loaded, when there are expense claims pending approval, then a stat card shows the count and links to the coordinator review queue
- Given I am viewing the dashboard, when I tap any stat card, then I am navigated to the relevant detail screen filtered to that metric
- Given I belong to a multi-level hierarchy (e.g., regional coordinator with sub-chapters), when I view the dashboard, then stats aggregate across all units in my scope
Business Value
A unified admin dashboard eliminates the need for manual data aggregation across spreadsheets and email chains, which currently causes reporting delays and missed compliance deadlines. By surfacing certification expiries and pending approvals proactively, the organisation reduces the risk of non-compliant peer mentors operating in the field. This directly supports Bufdir audit readiness and reduces coordinator overhead by up to 40%.
Components
- Admin Dashboard Screen ui
- Admin KPI Stat Widget ui
- Admin Statistics Service service
- Admin Row-Level Security Guard service
- Admin Data Repository data
- Admin Portal BLoC data
- Supabase RLS Policy Configuration infrastructure
- Hierarchy Aggregation Service service