Skip to content

feat(platform): show AI vs human commit share on the repo Commit Mix card - #165

Merged
clickmatos merged 1 commit into
mainfrom
feat/repo-commit-mix-percentage
Aug 13, 2026
Merged

feat(platform): show AI vs human commit share on the repo Commit Mix card#165
clickmatos merged 1 commit into
mainfrom
feat/repo-commit-mix-percentage

Conversation

@clickmatos

Copy link
Copy Markdown
Contributor

Summary

On a repo's detail page, the "Mix de commits" card (stacked area chart of
human vs AI-assisted commits over time) only showed raw commit counts —
no percentage split, so there was no quick read on "how much of this
repo's commits are AI-assisted vs human."

Added a headline summary above the chart — "Humano X% / Assistido por
IA Y%" — computed from the same commits_human/commits_ai totals
already plotted. This mirrors the identical pattern the org dashboard's
"Mix de commits" card already ships (commitShare in
dashboard/sections/AIvsHuman.tsx), just scoped to a single repo
instead of org-wide.

Test plan

  • npx tsc --noEmit — clean
  • npm run lint — clean
  • npm run test — 267/267 passing
  • Manual check: open a repo with AI-impact data and confirm the
    percentage summary appears above the Commit Mix chart and sums to
    ~100% (this sandbox has no Supabase/NextAuth credentials configured,
    so I couldn't drive this through an authenticated browser session)

🤖 Generated with Claude Code

…card

The repo detail page's "Mix de commits" chart plotted commits_human vs
commits_ai over time but never surfaced what share of commits each
origin actually represents — only raw counts in the tooltip/legend, no
percentage.

Add a headline "Humano X% / Assistido por IA Y%" summary above the
chart, computed from the same commits_human/commits_ai totals already
plotted. Mirrors the identical pattern already shipped on the org
dashboard's AIvsHuman commit mix card (commitShare in
dashboard/sections/AIvsHuman.tsx).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clickbus-iris Ready Ready Preview Aug 13, 2026 9:52pm

Request Review

@clickmatos
clickmatos merged commit a621139 into main Aug 13, 2026
5 checks passed
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