plan/10: Add /api/stats endpoint and dashboard stats badge #2
Reference in New Issue
Block a user
Delete Branch "plan/10-stats-endpoint-badge"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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