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.
TypeScript antigravity-skillsbusiness-knowledgeclaude-codeclaude-skillscodebase-analysiscodexcodex-skillsdeveloper-tools-ai-agentgemini-cli-skillskarpathy-llm-wikiknowledge-baseknowledge-graphmemoryopencode-skillspi-agentunderstandcodevibe-coding
fix(dashboard): show function/class nodes in layer detail view
Lum1104d52dd933ee60
diff --git a/understand-anything-plugin/packages/dashboard/src/components/GraphView.tsx b/understand-anything-plugin/packages/dashboard/src/components/GraphView.tsxindex 925ea87b..3d86de63 100644--- a/understand-anything-plugin/packages/dashboard/src/components/GraphView.tsx+++ b/understand-anything-plugin/packages/dashboard/src/components/GraphView.tsx@@ -234,6 +234,16 @@ function useLayerDetailTopology() {const layerNodeIds = new Set(activeLayer.nodeIds);+ // Expand layer membership to include sub-file nodes (function/class) whose+ // parent file is in this layer. These nodes aren't in layer.nodeIds directly+ // but belong to the layer via their "contains" edge from a file node.+ const expandedLayerNodeIds = new Set(layerNodeIds);+ for (const edge of graph.edges) {+ if (edge.type === "contains" && layerNodeIds.has(edge.source)) {+ expandedLayerNodeIds.add(edge.target);+ }+ }+// All top-level (file-level) node types that should appear in the graph.// This includes the 8 new non-code types plus the original "file" type.const fileLevelTypes = new Set([@@ -246,9 +256,9 @@ function useLayerDetailTopology() {// Junior/experienced persona: show everything including function/classlet filteredGraphNodes = persona === "non-technical"? graph.nodes.filter(- (n) => layerNodeIds.has(n.id) && (n.type === "concept" || n.type === "module" || fileLevelTypes.has(n.type)),+ (n) => expandedLayerNodeIds.has(n.id) && (n.type === "concept" || n.type === "module" || fileLevelTypes.has(n.type)),)- : graph.nodes.filter((n) => layerNodeIds.has(n.id) && (fileLevelTypes.has(n.type) || n.type === "module" || n.type === "concept" || n.type === "function" || n.type === "class"));+ : graph.nodes.filter((n) => expandedLayerNodeIds.has(n.id) && (fileLevelTypes.has(n.type) || n.type === "module" || n.type === "concept" || n.type === "function" || n.type === "class"));// Apply node type category filtersfilteredGraphNodes = filteredGraphNodes.filter((n) => {