medium complexity extracted Admin Dashboard Confidence: 100%
8
Components
106
Shared
0
User Stories
Yes
Analyzed

Description

The Dashboard KPIs feature provides organization administrators and coordinators with a real-time overview of key performance indicators for their organization. It aggregates data across activities, peer mentors, contacts, and expenses into a single, actionable dashboard view. Metrics include active peer mentors, total activities logged, pending approvals, reimbursement totals, and Bufdir reporting progress, giving admins an at-a-glance health check of their organization's peer mentor program.

User Flow

Dashboard KPIs user flow
Click to expand

Analysis

Business Value

Organization administrators currently lack a consolidated view of their program's operational health, forcing them to navigate multiple systems and manually aggregate data. This feature eliminates that overhead by surfacing the most critical metrics immediately upon login, enabling faster decision-making and proactive management. For Bufdir compliance, having real-time visibility into reporting progress and activity volumes reduces the risk of missed deadlines and incomplete submissions. From a commercial perspective, a compelling KPI dashboard is a key differentiator that demonstrates the platform's value to prospective organizations during demos and trials, directly supporting sales conversion for the Product Sales Website audience.

Implementation Notes

The KPI dashboard is implemented as a Next.js server-side rendered page within the admin portal, querying PostgreSQL via the shared REST API (`/api/v1/analytics/kpis`). Aggregation queries are scoped by organization ID for strict multi-tenant isolation. Key metrics are computed using SQL aggregates with appropriate indexes on `activities.created_at`, `activity_approvals.status`, and `expenses.status`. The frontend uses a responsive card grid layout with Tailwind CSS. Data is fetched on each page load via SSR for accuracy; client-side polling can be added in a later iteration. Role-based visibility ensures coordinators see their local association scope while org admins see the full organization.

Components (114)

User Interface (2)

Service Layer (3)

Data Layer (2)

Infrastructure (1)

Shared Components

These components are reused across multiple features

Service Layer (34)

Data Layer (22)

Infrastructure (38)

infrastructure Keychain/Keystore Adapter low Shared infrastructure JWT Claims Extractor low Shared infrastructure Organization Labels Adapter low Shared infrastructure Keychain/Keystore Adapter low Shared infrastructure Auth API Client medium Shared infrastructure REST API Client medium Shared infrastructure WCAG Accessibility Adapter low Shared infrastructure Registration API Client low Shared infrastructure Accounting API Client high Shared infrastructure PDF Renderer Adapter medium Shared infrastructure File Share Adapter low Shared infrastructure FCM/APNs Adapter high Shared infrastructure Share Sheet Adapter low Shared infrastructure Share Plus Adapter low Shared infrastructure Platform Accessibility Bridge medium Shared infrastructure Semantics Override Adapter high Shared infrastructure URL Launcher Adapter low Shared infrastructure Markdown Content Renderer low Shared infrastructure Network Connectivity Monitor low Shared infrastructure Expense Receipt Storage Adapter low Shared infrastructure Audit Log Writer low Shared infrastructure Feature Flag Checker low Shared infrastructure Logo Upload Adapter low Shared infrastructure Terminology Constants Registry low Shared infrastructure Feature Flag Cache Adapter low Shared infrastructure Org Scope JWT Resolver medium Shared infrastructure Association Audit Logger low Shared infrastructure Token Blocklist medium Shared infrastructure Analytics Tracker low Shared infrastructure SEO Metadata Config low Shared infrastructure Analytics Tracker low Shared infrastructure Analytics Tracker low Shared infrastructure Sales Analytics Tracker low Shared infrastructure Email Provider Adapter low Shared infrastructure Terms of Service Content Provider low Shared infrastructure Legal PDF Asset Provider low Shared infrastructure Consent-Gated Script Loader low Shared infrastructure Legal Page Layout low Shared

User Stories

No user stories have been generated for this feature yet.