From cd833b18f13501bdd0400d29f418cdd5055036a7 Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Tue, 5 May 2026 18:48:52 +0300 Subject: [PATCH] fix(ui): demote repos with >= 10k commits to end of dashboard Automated/bulk-commit repos score -1 so they sort last regardless of recency or volume. Co-Authored-By: Claude Opus 4.6 (1M context) --- ui/src/pages/DashPage.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/pages/DashPage.tsx b/ui/src/pages/DashPage.tsx index 8f8fa1c..f6de981 100644 --- a/ui/src/pages/DashPage.tsx +++ b/ui/src/pages/DashPage.tsx @@ -112,6 +112,7 @@ function rankProjects(projects: ProjectSummary[]): ProjectSummary[] { return [...projects].sort((a, b) => score(b) - score(a)); function score(p: ProjectSummary): number { + if (p.commit_count >= 10000) return -1; const volume = (p.commit_count + p.issue_count + p.pr_count) / (maxVolume || 1); const recency = p.last_activity ? (new Date(p.last_activity).getTime() - oldest) / range