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 health map the expected actionability state (#2520)
Raghav Chamadiya8a1921f788af
diff --git a/packages/ui/src/health/map/lens.ts b/packages/ui/src/health/map/lens.tsindex 17c32eb64..3dfd3eaa4 100644--- a/packages/ui/src/health/map/lens.ts+++ b/packages/ui/src/health/map/lens.ts@@ -120,6 +120,8 @@ const ACTIONABILITY_STATE: Record<PerformanceActionability, PerformanceNodeStateplan_ready: "actionable",advisory: "advisory",investigate: "investigate",+ // Nothing to change; the server already leaves these out of the count.+ expected: "clear",};/**diff --git a/packages/ui/src/health/map/types.ts b/packages/ui/src/health/map/types.tsindex 3ac860862..5ea83b77e 100644--- a/packages/ui/src/health/map/types.ts+++ b/packages/ui/src/health/map/types.ts@@ -5,6 +5,8 @@* a fill function should not be able to reach the packing algorithm.*/+import type { PerformanceActionabilityState } from "@repowise-dev/types/health";+export interface CodeHealthMapFile {file_path: string;score: number;@@ -41,7 +43,8 @@ export interface CodeHealthMapFile {security_findings?: number | null;}-export type PerformanceActionability = "plan_ready" | "advisory" | "investigate";+// The wire vocabulary itself, so a new state cannot drift past the map.+export type PerformanceActionability = PerformanceActionabilityState;/*** Lens applied to the same field. Recolors every node without re-laying the