fix(control-center): rank Projects tab by total lines, not code-only - #79
Merged
Merged
Conversation
The public Ecosystem Report's Projects tab sized and ranked repositories by code lines only (grand.code), even though the per-project comment/blank counts were already flowing to the frontend unused. Switch the KPI card, donut, project bars, largest- repo stat, default table sort, and share % to total lines (code + comment + blank) instead, and add a "total" table column so the breakdown stays legible next to the existing code/comment/blank columns. Computed client-side in ProjectsTab since the data already carries everything needed; no backend or report-generation changes required. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014sNhqTgqynXCnKpmt7KbgK
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.
What
The public Ecosystem Report's Projects tab (
https://control.omnibioai.org/→ Projects) sized and ranked every repository by code lines only (grand.code), while the per-project comment/blank counts were already being fetched and displayed as separate table columns, just unused for ranking.This switches the tab to total lines (
code + comment + blank) everywhere:code lines→total linesshare% columntotalcolumn added to the breakdown table (code/comment/blank columns kept as-is for detail)Why
Requested: the report was reporting code-only lines where total lines (including comments/blanks) was wanted for judging repo size/ranking.
Scope
Purely client-side in
ProjectsTab(EcosystemReportTabs.tsx) — all fields needed (code/comment/blankper project and ingrand) were already served byGET /report/data, so no backend or report-generation script changes were needed. The Languages tab and the internal static-report generator (scripts/generate_report.py) are untouched — out of scope for this request.Testing
npx tsc --noEmit— cleannpx vitest run— 678/678 passing (incl.PublicEcosystemPage.test.tsx)npm run build— succeeds🤖 Generated with Claude Code
https://claude.ai/code/session_014sNhqTgqynXCnKpmt7KbgK