Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
fix(ui): give the unknown and no-strategy exclusions their words in Fix first (#2838)
Raghav Chamadiya285057d67507
diff --git a/packages/ui/__tests__/health/fixtures/fix-first.ts b/packages/ui/__tests__/health/fixtures/fix-first.tsindex 6be1a3fda..e6d352a5d 100644--- a/packages/ui/__tests__/health/fixtures/fix-first.ts+++ b/packages/ui/__tests__/health/fixtures/fix-first.ts@@ -596,6 +596,8 @@ export const FIX_FIRST_QUEUE: FixFirstQueue = {"tooling": 91,"generated": 5,"expected": 158,+ "unknown": 0,+ "no_strategy": 0,"no_plan": 12,"below_min_worth": 505,"history_only": 167diff --git a/packages/ui/src/health/fix-first/scope.ts b/packages/ui/src/health/fix-first/scope.tsindex 8e8c15caa..7300edb76 100644--- a/packages/ui/src/health/fix-first/scope.ts+++ b/packages/ui/src/health/fix-first/scope.ts@@ -35,6 +35,8 @@ export const EXCLUSION_LABEL: Record<FixExclusion, string> = {tooling: "tooling",generated: "generated or vendored",expected: "expected repetition",+ unknown: "where the code's context is unknown",+ no_strategy: "with no fix strategy",no_plan: "with no safe fix",below_min_worth: "below the worth floor",history_only: "history only",@@ -45,6 +47,8 @@ const EXCLUSION_ORDER: FixExclusion[] = ["tooling","generated","expected",+ "unknown",+ "no_strategy","no_plan","below_min_worth","history_only",diff --git a/packages/web/src/components/code-health/fix-first-section.test.tsx b/packages/web/src/components/code-health/fix-first-section.test.tsxindex 7c345d109..c355ae071 100644--- a/packages/web/src/components/code-health/fix-first-section.test.tsx+++ b/packages/web/src/components/code-health/fix-first-section.test.tsx@@ -52,6 +52,8 @@ function queue(items: FixItem[]): FixFirstQueue {tooling: 0,generated: 0,expected: 0,+ unknown: 0,+ no_strategy: 0,no_plan: 0,below_min_worth: 3,history_only: 0,