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
refactor(ui): read the drawer's actionability words from ACTIONABILITY_LABEL (#2522)
Raghav Chamadiyab2053d1e2242
diff --git a/packages/ui/src/health/health-file-drawer.tsx b/packages/ui/src/health/health-file-drawer.tsxindex 72aaab24c..ac8993ea7 100644--- a/packages/ui/src/health/health-file-drawer.tsx+++ b/packages/ui/src/health/health-file-drawer.tsx@@ -28,6 +28,7 @@ import { FindingOpportunityLink } from "./file-opportunity";import { CollapsibleSection } from "../shared/collapsible-section";import { formatRelativeTimeOrNull } from "../lib/format";import { Sparkline } from "./sparkline";+import { ACTIONABILITY_LABEL } from "./performance/presentation";import {SEVERITY_CHIP,SEVERITY_LABEL,@@ -1015,7 +1016,7 @@ function CauseRow({{biomarkerLabel(o.biomarker_type)}</span><span className="shrink-0 font-mono text-[10px] uppercase tracking-wide text-[var(--color-text-tertiary)]">- {ACTIONABILITY_WORD[o.actionability_state] ?? o.actionability_state}+ {ACTIONABILITY_LABEL[o.actionability_state]}</span></span>{location ? (@@ -1047,8 +1048,3 @@ function CauseRow({);}-const ACTIONABILITY_WORD: Record<string, string> = {- plan_ready: "Plan ready",- advisory: "Advisory",- investigate: "Investigate",-};