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

Function SourceLink

graph-ui/src/architecture/ArchitecturePanel.tsx:72–78  ·  view source on GitHub ↗
({ path, line, name, onNavigate }: {
    path?: string; line?: number; name?: string; onNavigate: ArchitecturePanelProps['onNavigate'];
})

Source from the content-addressed store, hash-verified

70}
71
72function SourceLink({ path, line, name, onNavigate }: {
73 path?: string; line?: number; name?: string; onNavigate: ArchitecturePanelProps['onNavigate'];
74}): JSX.Element {
75 if (!path) return <span className="atlas-arch-muted" title={text.sourceMissing}>{text.unknown}</span>;
76 return <button className="atlas-arch-source" aria-label={text.openSource(name ?? path)}
77 onClick={() => onNavigate(path, line, name)}>{path}{line !== undefined ? `:${line}` : ''}</button>;
78}
79
80function HotspotSignals({ hotspot }: { hotspot: ArchitectureHotspot }): JSX.Element {
81 const signals = [hotspot.allocationInLoop && text.allocationInLoop,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected