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

Function BugWizard

graph-ui/src/traces/BugWizard.tsx:258–453  ·  view source on GitHub ↗
(props: BugWizardProps)

Source from the content-addressed store, hash-verified

256}
257
258export default function BugWizard(props: BugWizardProps): JSX.Element {
259 const paths = props.paths;
260 const target = props.target;
261 const staticPaths = paths?.staticPaths ?? [];
262 const observedPaths = paths?.observedPaths ?? [];
263 const staticOnly = paths?.staticOnly ?? [];
264 const runtimeOnly = paths?.runtimeOnly ?? [];
265 const events = paths?.observedEvents ?? 0;
266 const noDivergence = paths !== undefined && staticOnly.length === 0 && runtimeOnly.length === 0;
267
268 return (
269 <div
270 className="atlas-bugwizard"
271 data-testid="atlas-bugwizard"
272 role="dialog"
273 aria-label={BUG_WIZARD_TITLE}
274 data-target={target?.name ?? ''}
275 data-status={props.status}
276 data-events={events}
277 data-static-paths={staticPaths.length}
278 data-observed-paths={observedPaths.length}
279 data-static-only={staticOnly.length}
280 data-runtime-only={runtimeOnly.length}
281 >
282 <div className="atlas-bugwizard-inner">
283 <header className="atlas-bugwizard-head">
284 <h2 className="atlas-bugwizard-title">{BUG_WIZARD_TITLE}</h2>
285 <button
286 type="button"
287 className="atlas-bugwizard-close"
288 data-testid="atlas-bugwizard-close"
289 aria-label={messages.wizard.closeLabel}
290 onClick={props.onClose}
291 >
292 {BUG_WIZARD_CLOSE}
293 </button>
294 </header>
295 <p className="atlas-bugwizard-subline">{BUG_WIZARD_SUBLINE}</p>
296
297 <Step index={1} name="target" title={BUG_WIZARD_STEP_TARGET}>
298 <div className="atlas-bugwizard-target">
299 {props.project.length === 0 ? (
300 <p className="atlas-bugwizard-empty" data-testid="atlas-bugwizard-no-project">
301 {BUG_WIZARD_NO_PROJECT}
302 </p>
303 ) : target === undefined ? (
304 <p className="atlas-bugwizard-empty" data-testid="atlas-bugwizard-no-target">
305 {BUG_WIZARD_NO_TARGET}
306 </p>
307 ) : (
308 <p className="atlas-bugwizard-target-name" data-testid="atlas-bugwizard-target">
309 <span className="atlas-bugwizard-symbol">{target.name}</span>
310 {target.qualifiedName !== undefined && (
311 <span className="atlas-bugwizard-qualified">{target.qualifiedName}</span>
312 )}
313 </p>
314 )}
315 <Hint name="bug-change-target" text={BUG_WIZARD_CHANGE_TOOLTIP}>

Callers

nothing calls this directly

Calls 3

bugWizardTruncatedFunction · 0.90
bugWizardIngestCommandFunction · 0.90
bugWizardFlowsCappedFunction · 0.90

Tested by

no test coverage detected