Skip to content

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

fix(dashboard): map design node types to a filter category

grumingffb2ed3fb0c9
diff --git a/understand-anything-plugin/packages/dashboard/src/components/GraphView.tsx b/understand-anything-plugin/packages/dashboard/src/components/GraphView.tsx
index 2a5037a1..c697ca00 100644
--- a/understand-anything-plugin/packages/dashboard/src/components/GraphView.tsx
+++ b/understand-anything-plugin/packages/dashboard/src/components/GraphView.tsx
@@ -75,6 +75,9 @@ const NODE_TYPE_TO_CATEGORY: Record<NodeType, NodeCategory> = {
table: "data", endpoint: "data", schema: "data",
domain: "domain", flow: "domain", step: "domain",
article: "knowledge", entity: "knowledge", topic: "knowledge", claim: "knowledge", source: "knowledge",
+ // Design node types (Figma graphs). No dedicated filter category in v1, so they
+ // group under "code" — matching the runtime fallback below — to stay visible by default.
+ page: "code", screen: "code", component: "code", componentSet: "code", instance: "code", token: "code",
} as const;
// ── Helper components that must live inside <ReactFlow> ────────────────