Access Role-Scoped Admin Dashboard
The Admin Dashboard provides a unified landing page for both Organization Administrators and Global Administrators. Each role sees a tailored view: Organization Administrators see data bounded to their organizational hierarchy (national down to local association level), while Global Administrators see aggregated platform-wide metrics across all member organizations. The dashboard is built with responsive Flutter layouts supporting both mobile and tablet form factors. Real-time data is streamed via Supabase subscriptions so that counts and statuses reflect live platform state. Supabase Row Level Security policies enforce scope boundaries server-side, preventing any client-side data leakage.
User Story
Acceptance Criteria
- Given I am an Organization Administrator, when I open the Admin Portal, then I see user counts, pending approvals, and activity summaries scoped exclusively to my organization hierarchy
- Given I am a Global Administrator, when I open the Admin Portal, then I see aggregated platform-wide metrics spanning all member organizations
- Given the dashboard is open, when underlying data changes in Supabase, then dashboard metrics update in real time without requiring a page refresh
- Given I am on a mobile device, when I open the Admin Dashboard, then the layout adapts responsively with no content overflow or truncation
- Given I attempt to access the dashboard without an admin role, when the permission check runs, then I am redirected to the no-access screen and no admin data is exposed
Business Value
A role-scoped dashboard eliminates the need for administrators to manually aggregate data from multiple sources, directly reducing administrative overhead. For a multi-tenant platform serving NHF, Blindeforbundet, and HLF simultaneously, a single entry point with proper scope enforcement ensures governance consistency and prevents cross-organization data exposure — a critical requirement for GDPR compliance.
Components
- Admin Dashboard Screen ui
- Admin Management Service service
- Admin Repository data