ui/src/components/DashboardHeader.tsx — dashboard header updated to include the StatsWidget badge
Verification
Backend build and tests passed. UI build verified by frontend-dev (npm run build clean).
Part of Plan #10 — Stats Endpoint & Dashboard Badge
## Summary
Adds a `/api/stats` endpoint and a dashboard header badge surfacing live system stats.
### Changes
- **`api/handlers/stats.go`** — `GetStats` handler returns agent counts (total/working), and plan/task/queue status breakdowns
- **`api/main.go`** — registers `GET /api/stats` route
- **`api/handlers/stats_test.go`** — unit tests for the stats handler
- **`ui/src/components/StatsWidget.tsx`** — React widget displaying idle/working agent counts and plan/task summaries
- **`ui/src/components/DashboardHeader.tsx`** — dashboard header updated to include the StatsWidget badge
### Verification
Backend build and tests passed. UI build verified by frontend-dev (npm run build clean).
_Part of Plan #10 — Stats Endpoint & Dashboard Badge_
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Adds a
/api/statsendpoint and a dashboard header badge surfacing live system stats.Changes
api/handlers/stats.go—GetStatshandler returns agent counts (total/working), and plan/task/queue status breakdownsapi/main.go— registersGET /api/statsrouteapi/handlers/stats_test.go— unit tests for the stats handlerui/src/components/StatsWidget.tsx— React widget displaying idle/working agent counts and plan/task summariesui/src/components/DashboardHeader.tsx— dashboard header updated to include the StatsWidget badgeVerification
Backend build and tests passed. UI build verified by frontend-dev (npm run build clean).
Part of Plan #10 — Stats Endpoint & Dashboard Badge