MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / selectNode

Function selectNode

graph-ui/src/architecture/SystemArchitecture.tsx:273–281  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

271 if (open && symbol.file_path) onNavigate(symbol.file_path, symbol.start_line || undefined, symbol.name);
272 }
273 function selectNode(id: string) {
274 setSelection({ node: id });
275 const found = model.nodes.find(candidate => candidate.id === id);
276 // Inspection deliberately leaves topology and camera unchanged.
277 if (found?.pathIndices?.length && !found.pathIndices.includes(activePathIndex)) setPathIndex(found.pathIndices[0]);
278 if (found?.depth !== undefined) setStepIndex(found.depth);
279 const symbol = found?.symbol;
280 if (symbol) selectSymbol(symbol);
281 }
282 function selectPath(index: number) { setPathIndex(index); setStepIndex(0); setSelection(undefined); }
283 function selectStep(index: number) {
284 if (!path?.nodes[index]) return;

Callers 1

SystemArchitectureFunction · 0.70

Calls 1

selectSymbolFunction · 0.85

Tested by

no test coverage detected