Skip to content

fix(control-center): rank Projects tab by total lines, not code-only - #79

Merged
man4ish merged 1 commit into
mainfrom
fix/ecosystem-projects-total-lines
Sep 11, 2026
Merged

man4ish merged 1 commit into
mainfrom
fix/ecosystem-projects-total-lines

Conversation

@man4ish

@man4ish man4ish commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

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:

  • KPI card: code linestotal lines
  • Donut chart total + per-category shares
  • Project bars (top 16) and their widths
  • "largest repo" stat
  • Default table sort key
  • Table share % column
  • New total column 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/blank per project and in grand) were already served by GET /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 — clean
  • npx vitest run — 678/678 passing (incl. PublicEcosystemPage.test.tsx)
  • npm run build — succeeds

🤖 Generated with Claude Code

https://claude.ai/code/session_014sNhqTgqynXCnKpmt7KbgK

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
@man4ish
man4ish merged commit 9763e0b into main Sep 11, 2026
2 checks passed
@man4ish
man4ish deleted the fix/ecosystem-projects-total-lines branch September 11, 2026 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant