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

Function Hop

graph-ui/src/traces/BugWizard.tsx:105–148  ·  view source on GitHub ↗
(props: { node: BugPathNode; onHop: (hop: BugPathNode) => void })

Source from the content-addressed store, hash-verified

103}
104
105function Hop(props: { node: BugPathNode; onHop: (hop: BugPathNode) => void }): JSX.Element {
106 const observed = props.node.observed;
107 return (
108 <li
109 className="atlas-bugwizard-hop"
110 data-testid={observed === undefined ? 'atlas-bugwizard-hop' : 'atlas-bugwizard-observed-hop'}
111 data-name={props.node.name}
112 {...(observed === undefined
113 ? {}
114 : {
115 'data-count': String(observed.count),
116 'data-label': observed.label,
117 'data-last-seen': observed.lastSeen,
118 })}
119 >
120 <Hint name="bug-hop" text={bugWizardHopTooltip(props.node.name)}>
121 <button
122 type="button"
123 className="atlas-bugwizard-link"
124 onClick={() => props.onHop(props.node)}
125 >
126 {props.node.name}
127 </button>
128 </Hint>
129 {props.node.entryPoint === true && (
130 <Hint name="bug-entry" text={BUG_WIZARD_ENTRY_TOOLTIP}>
131 <span
132 className="atlas-bugwizard-badge"
133 data-testid="atlas-bugwizard-entry"
134 >
135 {BUG_WIZARD_ENTRY_BADGE}
136 </span>
137 </Hint>
138 )}
139 {observed !== undefined && (
140 <Hint name="bug-observed" text={bugWizardLastSeen(observed.lastSeen)}>
141 <span className="atlas-bugwizard-observed">
142 {bugWizardObservedCount(observed.count, observed.label)}
143 </span>
144 </Hint>
145 )}
146 </li>
147 );
148}
149
150function Chain(props: {
151 kind: 'static' | 'observed';

Callers

nothing calls this directly

Calls 3

bugWizardHopTooltipFunction · 0.90
bugWizardLastSeenFunction · 0.90
bugWizardObservedCountFunction · 0.90

Tested by

no test coverage detected