You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#6210 decided the design (see its pinned decision comment): a maintainer-only dashboard panel showing what fraction of a repo's activity comes from identifiable AMS miners and how they perform, keyed on the same GitHub-login identity #6208 already established. This issue is the implementation.
Requirements
New panel/section in apps/loopover-ui/src/components/site/app-panels/maintainer-panel.tsx (extend the existing panel rather than adding a new route, per this repo's stated dashboard-chrome-reuse preference).
Backing query: for a repo, classify each submitter login as "has AMS track-record data" (via Implement upgrade-only ORB/AMS reputation bridge (pull, GitHub-login-keyed) #6485's lookup path) vs. not, then compute acceptance rate / review-cycle count / time-to-merge / PR volume per cohort, reusing submitter-reputation.ts's existing review_targets-based outcome classification rather than re-deriving it.
Bearer-gated, maintainer-only visibility — matches submitter-reputation.ts's own /stats access model. Never a public comment, label, or check-run surface.
No wallet/hotkey/reward/trust-score wording anywhere in the panel, matching this repo's existing constraints even for private-only surfaces.
Loading/empty states for a repo with zero identifiable AMS activity (not an error state).
Deliverables
A new aggregate query (likely in src/db/repositories.ts, alongside where submitter-reputation.ts's outcome data is already read).
The dashboard panel/section rendering the AMS-vs-human cohort comparison.
Tests for the aggregate query's cohort classification and metric computation; UI tests for the loading/empty/populated states.
Test Coverage Requirements
The aggregate query lives under src/** and inherits the normal 99%+ Codecov patch requirement. The apps/loopover-ui/** panel itself is outside coverage.include per this repo's convention.
Expected Outcome
A maintainer running ORB can see, on their existing dashboard, what fraction of their repo's contribution activity comes from identifiable AMS miners and how that cohort performs relative to other contributors.
Context
#6210 decided the design (see its pinned decision comment): a maintainer-only dashboard panel showing what fraction of a repo's activity comes from identifiable AMS miners and how they perform, keyed on the same GitHub-login identity #6208 already established. This issue is the implementation.
Requirements
apps/loopover-ui/src/components/site/app-panels/maintainer-panel.tsx(extend the existing panel rather than adding a new route, per this repo's stated dashboard-chrome-reuse preference).submitter-reputation.ts's existingreview_targets-based outcome classification rather than re-deriving it.submitter-reputation.ts's own/statsaccess model. Never a public comment, label, or check-run surface.Deliverables
src/db/repositories.ts, alongside wheresubmitter-reputation.ts's outcome data is already read).Test Coverage Requirements
The aggregate query lives under
src/**and inherits the normal 99%+ Codecov patch requirement. Theapps/loopover-ui/**panel itself is outsidecoverage.includeper this repo's convention.Expected Outcome
A maintainer running ORB can see, on their existing dashboard, what fraction of their repo's contribution activity comes from identifiable AMS miners and how that cohort performs relative to other contributors.
Links & Resources
apps/loopover-ui/src/components/site/app-panels/maintainer-panel.tsxsrc/review/submitter-reputation.ts(existing per-submitter outcome classification to reuse)