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
feat(dashboard): file double-click also navigates the graph
Lum11047e58e97b5a89
diff --git a/understand-anything-plugin/packages/dashboard/src/components/FileExplorer.tsx b/understand-anything-plugin/packages/dashboard/src/components/FileExplorer.tsxindex 40a0b71a..a0697d1f 100644--- a/understand-anything-plugin/packages/dashboard/src/components/FileExplorer.tsx+++ b/understand-anything-plugin/packages/dashboard/src/components/FileExplorer.tsx@@ -141,9 +141,17 @@ function FileTreeRow({export default function FileExplorer() {const graph = useDashboardStore((s) => s.graph);const openCodeViewer = useDashboardStore((s) => s.openCodeViewer);+ const navigateToNode = useDashboardStore((s) => s.navigateToNode);const entries = useMemo(() => buildFileTree(graph?.nodes ?? []), [graph]);const [expanded, setExpanded] = useState<Set<string>>(() => new Set());+ // Navigate the graph first (drills into layer + selects node, which clears the+ // code viewer), then re-open the viewer so the source panel stays visible.+ const handleOpenFile = (nodeId: string) => {+ navigateToNode(nodeId);+ openCodeViewer(nodeId);+ };+const toggleFolder = (folderPath: string) => {setExpanded((current) => {const next = new Set(current);@@ -194,7 +202,7 @@ export default function FileExplorer() {depth={0}expanded={expanded}toggleFolder={toggleFolder}- openFile={openCodeViewer}+ openFile={handleOpenFile}/>)))}