[Bugfix #531] Fix: Restructure dashboard analytics sections, keep GitHub data source#533
Merged
waleedkadous merged 1 commit intomainfrom Feb 23, 2026
Conversation
…keep GitHub data source
Contributor
Author
Architect Integration ReviewVerdict: APPROVE Critical validation — GitHub API is preserved as primary data source (unlike reverted #530):
All requirements met:
109 tests passing. No regressions. Architect integration review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restructures the dashboard Analytics tab per issue requirements: merges GitHub + Builders sections into a unified Activity section, adds protocol breakdown from status.yaml, adds Bugs Fixed metric, replaces pie charts with bar charts, and removes cost-per-project — all while keeping GitHub API as the primary data source.
Fixes #531
Root Cause
The analytics tab had separate GitHub and Builders sections that should be unified. The previous attempt (#529/#530) was reverted because it replaced GitHub API data with local artifact scanning, breaking completion counts.
Fix
Backend (
analytics.ts):github+buildersresponse keys into singleactivitysectionbugsFixedcount (closed issues with bug label)projectsByProtocolfromcodev/projects/*/status.yaml(supplementary source)bugBacklog,nonBugBacklog(open issues backlog)costByProjectfrom consultation sectionfetchMergedPRs,fetchClosedIssues)spiderprotocol tospirFrontend (
AnalyticsView.tsx):GitHubSection+BuildersSectionintoActivitySectionMiniPieChartwithMiniBarChartfor consultation review type and protocolMiniPieChartcomponent andPieChart/PieimportsAPI types (
api.ts): UpdatedAnalyticsResponseinterface to match new shape.Tower routes: Updated fallback empty response for new structure.
Test Plan
tsc --noEmit)github/builderstop-level keys, nocostByProject, Activity section renders, protocol breakdown works, spider→spir normalization, bugsFixed count, no Open Issue Backlog, no Cost per ProjectCMAP Review
Pending