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): add tour highlight to graph nodes
Lum11044452fe8e7bee
diff --git a/packages/dashboard/src/components/CustomNode.tsx b/packages/dashboard/src/components/CustomNode.tsxindex 19e20628..58273bdb 100644--- a/packages/dashboard/src/components/CustomNode.tsx+++ b/packages/dashboard/src/components/CustomNode.tsx@@ -44,6 +44,7 @@ export interface CustomNodeData extends Record<string, unknown> {isHighlighted: boolean;searchScore?: number;isSelected: boolean;+ isTourHighlighted: boolean;}export type CustomFlowNode = Node<CustomNodeData, "custom">;@@ -58,6 +59,8 @@ export default function CustomNode({let ringClass = "";if (data.isSelected) {ringClass = "ring-2 ring-white";+ } else if (data.isTourHighlighted) {+ ringClass = "ring-2 ring-blue-400 animate-pulse";} else if (data.isHighlighted) {const score = data.searchScore ?? 1;if (score <= 0.1) {diff --git a/packages/dashboard/src/components/GraphView.tsx b/packages/dashboard/src/components/GraphView.tsxindex bf27d30b..8b584408 100644--- a/packages/dashboard/src/components/GraphView.tsx+++ b/packages/dashboard/src/components/GraphView.tsx@@ -26,6 +26,7 @@ export default function GraphView() {const searchResults = useDashboardStore((s) => s.searchResults);const selectNode = useDashboardStore((s) => s.selectNode);const showLayers = useDashboardStore((s) => s.showLayers);+ const tourHighlightedNodeIds = useDashboardStore((s) => s.tourHighlightedNodeIds);const { initialNodes, initialEdges } = useMemo(() => {if (!graph)@@ -48,6 +49,7 @@ export default function GraphView() {isHighlighted: !!matchResult,searchScore: matchResult?.score,isSelected: selectedNodeId === node.id,+ isTourHighlighted: tourHighlightedNodeIds.includes(node.id),},};});@@ -162,7 +164,7 @@ export default function GraphView() {];return { initialNodes: allNodes, initialEdges: laid.edges };- }, [graph, searchResults, selectedNodeId, showLayers]);+ }, [graph, searchResults, selectedNodeId, showLayers, tourHighlightedNodeIds]);const [nodes, setNodes, onNodesChange] = useNodesState(initialNodes);const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges);