# Manager Analytics Dashboard Design

## Decisions
- Access: System Role `MANAGER` (plus existing SA / Upper Management with their wider scope)
- UNIT_LEAD does not get this Manager Analytics path
- Wajahat (`wajahat.khan@jumppace.com`) role updated to `MANAGER` for access/testing
- UX: Guided drill-down — Department → Team Lead → Designation → Employees
- Metrics: existing `buildEmployeeInsight` weights (30/10/10/50), real data only
- Designation = `User.position`; Team Lead = `UNIT_LEAD` + reports

## API
`GET /api/analytics/manager-dashboard?startDate&endDate`

Server resolves manager scope, batches slim insight cards, scores employees once, returns overview + department / lead / designation aggregates + slim employee rows. Client drills without re-fetch (date change reloads).

## UI
New `ManagerAnalytics` drill-down with breadcrumbs, Recharts comparisons, ranking cards. Wired from `/dashboard/analytics` for MANAGER.
