Admin Page Now Shows Real System Metrics
Admin Page Now Shows Real System Metrics
Version: 0.1.15
The Admin page is the primary operational view for owners and administrators. As of v0.1.15 it surfaces live system data instead of hardcoded placeholder values.
What the Admin Page Shows
The Admin page (/dashboard/admin) contains four stat cards at the top of the view:
| Card | Description |
|---|---|
| Total Organizations | Live count of all organisations registered in the system. |
| Total Users | Live count of all user accounts across all organisations. |
| Active Subscriptions | Current count of active subscriptions, reflecting subscription health in real time. |
| Audit Events | Total number of audit events recorded in the database. |
Below the stat cards, the Recent Audit Log section lists the latest audit events pulled directly from the database.
Loading Behaviour
While data is being fetched, each stat card displays a loading skeleton so the page structure is immediately visible without a blank or jarring layout shift. Skeletons are replaced by real values as soon as the tRPC queries resolve.
Implementation Notes
All stat cards are wired to the backend using tRPC, following the same data-fetching pattern used by overview-stats.tsx on the main dashboard. This ensures consistency in error handling, loading states, and query caching across the application.
Who Can Access This Page
The Admin page is accessible to users with the owner or admin role. It is the recommended first stop for diagnosing system health, reviewing recent activity, and monitoring subscription status.