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

Function selectEdge

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

Source from the content-addressed store, hash-verified

288 setSelection(data?.overview ? undefined : found ? { node: found.id } : undefined); selectSymbol(path.nodes[index]);
289 }
290 function selectEdge(id: string) {
291 const found = model.edges.find(item => item.id === id);
292 const nextPath = found?.pathIndices?.includes(activePathIndex) ? activePathIndex : found?.pathIndices?.[0] ?? activePathIndex;
293 setPathIndex(nextPath);
294 setStepIndex(Math.max(0, paths[nextPath]?.edges.findIndex(item => item.id === found?.pathEdge?.id) ?? 0));
295 setSelection({ edge: id });
296 }
297 function open(symbol: SystemSymbol) { selectSymbol(symbol, true); }
298 function revealEvidence() {
299 const details = document.getElementById(`system-evidence-${view}`) as HTMLDetailsElement | null;

Callers 1

SystemArchitectureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected