Skip to content

Admin teams: runs and PRs reviewed, in all and this month - #315

Merged
nambok merged 1 commit into
mainfrom
admin-accurate-counts
Nov 4, 2026
Merged

nambok merged 1 commit into
mainfrom
admin-accurate-counts

Conversation

@nambok

@nambok nambok commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

The admin Teams page showed "46 runs · 0 reviews" for an organisation with many reviewed pull requests, and 0 reviews for every organisation; the organisation line also gave no period for either number. The numbers now come from counts the platform adds once per run and once per reviewed pull request (CoderHelm/coderhelm-platform, same branch name), and every line says which number is which.

Changes

  • Organisation rows and team lines read "412 runs in all, 103 this month" and "37 PRs reviewed in all, 9 this month" (activity() in src/app/admin/page.tsx).
  • A review count is pull requests the reviewer posted a review on, each once (in all, and once per month), the same rule the weekly email counts by. The API fields keep their names (reviews_total, reviews_month); src/lib/api.ts documents what they count.
  • e2e: admin.spec.ts checks both labels.

Verification

  • npm run lint, npm run typecheck, npm run check:openapi, npm run build: pass.
  • Playwright (static build): admin, plugins, audit-insights, emails, support, support-access, health: 96 passed; no-sideways-scroll, no-mid-word-breaks, readable-text, dialogs, shell-menu: 292 passed.

…d count PRs reviewed

Each organisation and team line now reads "412 runs in all, 103 this month"
and "37 PRs reviewed in all, 9 this month". Before, the organisation line
gave runs and reviews with no period, and the review number was a count
of review jobs that never reached the page (always 0). The platform now
counts each pull request the reviewer posted a review on once (in all, and
once per month), the same rule the weekly email uses.
@nambok
nambok merged commit dbfbd17 into main Nov 4, 2026
10 checks passed
@nambok
nambok deleted the admin-accurate-counts branch November 4, 2026 23:18
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