[Bugfix #529] Redesign dashboard analytics — merge sections, replace data source#530
Merged
waleedkadous merged 1 commit intomainfrom Feb 23, 2026
Conversation
…lace data source, remove pie charts
Contributor
Author
Architect Integration ReviewVerdict: APPROVE Clean migration from GitHub API to local project artifact scanning. Types updated consistently across backend, frontend, and tower-routes fallback. No new dependencies (js-yaml already present). Net code reduction (+358/-625). All requirements addressed:
Non-blocking follow-ups:
Architect integration review |
This was referenced Feb 23, 2026
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
Redesigns the dashboard Analytics tab per issue #529: merges separate GitHub + Builders sections into a unified Activity section, replaces GitHub API data source with local project artifact scanning (
codev/projects/*/status.yaml), replaces pie charts with segmented bar charts, and removes cost-per-project metric.Fixes #529
Root Cause
The analytics tab had structural and accuracy issues:
Fix
Backend (
analytics.ts):fetchMergedPRs,fetchClosedIssues,fetchIssueList) with localcodev/projects/*/status.yamlscanning usingjs-yamlgithub+builders→ singleactivitysectionprojectsByProtocolbreakdown (SPIR, ASPIR, AIR, etc.) andbugsFixedcountcostByProjectfrom consultation sectionspiderprotocol name tospirFrontend (
AnalyticsView.tsx):GitHubSection+BuildersSectioninto singleActivitySectionMiniPieChartcomponents withMiniBarChartfor review type and protocol breakdownsCost per Projectsub-sectionProjects by Protocolbar chart andBugs FixedmetricMiniPieChartcomponent (no longer used)API 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 normalizationCMAP Review
Pending