anima-pwa: dashboard stats from DashboardService, not mock-fallback list APIs #276
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
toasterson/Anima!276
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/pwa-dashboard-real-aggregates"
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?
Problem
The Dashboard showed 18k active sessions and 2 pending decisions against the live backend — both fake:
listSessions().length— returns allagent_sessionswith no status filter, so it counted ~18,498 historicalfailedrows (runaway-incident era) as "active".listDecisions().length, andlistDecisions()with noprojectIdsilently falls back to the mock (the|| !projectIdbranch) → 2 hardcoded fixtures.listSlices()— same no-projectIdmock fallback → the whole section and its "N active sessions" were fixtures, contradicting the real "0".Fix
All three now come from
DashboardService.getDashboard, which already computes them server-side — cross-project, status-filtered, and (post #275) excludingexternal_prbookkeeping.activeSessionssums the per-project provisioning/running counts;slicesmap the realactiveSlices.getDashboardSummaryfolds these out of the singlegetDashboardresponse the page already fetched, so it removes a call rather than adding one.listActivity()/listProjects()were already safe (mock only when!useGrpc).Verified live (dev server → prod)
Pending Decisions 0, Active Sessions 0, Total Projects 13, and Active Work Slices now show real Anima slices with consistent
0 active sessions.npm run verifygreen (89 tests).Frontend-only; no backend change.
🤖 Generated with Claude Code