feat(ui): slop + duplicate trend card on maintainer dashboard (#2202)#4707
feat(ui): slop + duplicate trend card on maintainer dashboard (#2202)#4707jimcody1995 wants to merge 8 commits into
Conversation
…red#2202) Add weekly slop-flag and duplicate-flag rate trends from queue-health snapshots to the maintainer console, with band labels, freshness metadata, and Vitest coverage. Co-authored-by: Cursor <cursoragent@cursor.com>
Update maintainer and queue-health test fixtures for the new required slopFlaggedPullRequests and duplicateFlaggedPullRequests counts, and drop those fields from the engine-package predicted-gate coverage stub. Co-authored-by: Cursor <cursoragent@cursor.com>
…e absent buildQueueHealth now tolerates collision reports without a clusters array, preventing contributor draft and other callers from crashing when only summary counts are present. Co-authored-by: Cursor <cursoragent@cursor.com>
…red#2202) Format slop trend UI files for prettier, add model/panel coverage tests, and exercise legacy snapshot, duplicate-cluster, and edge-case branches in buildMaintainerSlopDuplicateTrend/buildQueueHealth. Co-authored-by: Cursor <cursoragent@cursor.com>
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4707 +/- ##
==========================================
+ Coverage 94.14% 94.15% +0.01%
==========================================
Files 437 438 +1
Lines 38551 38634 +83
Branches 14055 14081 +26
==========================================
+ Hits 36294 36377 +83
Misses 1599 1599
Partials 658 658
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-10 16:16:00 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 6 non-blocking
Flagged checks (non-blocking)
Linked issue satisfactionPartially addressed Review context
Contributor next steps
Signal definitions
Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Add weekly slop-flag and duplicate-flag rate trends from queue-health snapshots to the maintainer console, with band labels, freshness metadata, and Vitest coverage.
Summary
buildQueueHealth/ queue-health signal snapshots withslopFlaggedPullRequestsandduplicateFlaggedPullRequestscounts.buildMaintainerSlopDuplicateTrendto roll up an 8-week trend from historical snapshots plus the live queue-health point for the current week.qualityDashboard.slopDuplicateTrendonGET /v1/app/maintainer-dashboard.SlopDuplicateTrendCardto the maintainer console: dualTrendChartseries (slop flag rate, duplicate flag rate), shared legend,generatedAt, and stale/fresh pill.buildQueueHealthwhen collision reports omitclusters.src/**lines.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Closes #2202
Part of #539
Validation
git diff --checknpm run typecheck(UI workspace)npm run test:coveragelocally — patch coverage verified at 100% (92/92 changed executable lines, 69/69 changed branches insrc/**)npm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
npm run test:coverage(full suite, 94.93% lines global)npm test -- --run test/unit/maintainer-slop-duplicate-trend.test.tsnpm --workspace @jsonbored/gittensory-ui test -- --run src/components/site/app-panels/slop-duplicate-trend-card.test.tsxnpm --workspace @jsonbored/gittensory-ui test -- --run src/components/site/app-panels/slop-duplicate-trend-card-model.test.tsnpm --workspace @jsonbored/gittensory-ui test -- --run src/components/site/app-panels/maintainer-panel.test.tsxSafety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
/app/maintainerloaded state (no trend card between StatCards and Install health)/app/maintainerloaded state (new Slop + duplicate trend card with dual charts, legend,generatedAt, fresh pill)What changed: StatCards flow straight into Install health before; after, the new Slop + duplicate trend card sits between StatCards and Install health.
Notes
queue-healthsignal snapshots; no new public GitHub surface is added.clean/low/elevated/high) only — raw slop-risk values are not rendered.c12a2ead).Made with Cursor