Summary
The admin panel has user and escrow management pages but no analytics or metrics visualization. Platform administrators need a dashboard to monitor health, growth, and operational metrics.
Requirements
- Build an
/admin/analytics page as the default admin landing page
- Escrow volume over time: Line chart showing daily/weekly/monthly escrow creation volume and total value
- Status distribution: Pie/donut chart showing active vs. completed vs. disputed vs. expired escrows
- Platform fee revenue: Bar chart showing fee revenue over time
- Dispute metrics: Average resolution time, dispute rate (% of escrows), resolution outcome distribution
- Top users: Table of top 10 users by volume (wallet address, # escrows, total volume)
- Add a date range selector to filter all charts
- Use a lightweight charting library (Recharts recommended — already React-based, tree-shakeable)
Acceptance Criteria
Context
- Admin layout:
apps/frontend/app/admin/
- Depends on: B-7 (admin analytics aggregation endpoints) for backend data
- Existing admin service:
apps/frontend/services/admin.ts
Points: 200
Summary
The admin panel has user and escrow management pages but no analytics or metrics visualization. Platform administrators need a dashboard to monitor health, growth, and operational metrics.
Requirements
/admin/analyticspage as the default admin landing pageAcceptance Criteria
Context
apps/frontend/app/admin/apps/frontend/services/admin.tsPoints: 200