MCPcopy Create free account
hub / github.com/codeaashu/claude-code / StagePipeline

Function StagePipeline

src/components/tasks/RemoteSessionDetailDialog.tsx:424–488  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

422// snapshot (container boot + repo clone), so the 0-found display doesn't
423// look like a hung finder.
424function StagePipeline(t0) {
425 const $ = _c(15);
426 const {
427 stage,
428 completed,
429 hasProgress
430 } = t0;
431 let t1;
432 if ($[0] !== stage) {
433 t1 = stage ? STAGES.indexOf(stage) : -1;
434 $[0] = stage;
435 $[1] = t1;
436 } else {
437 t1 = $[1];
438 }
439 const currentIdx = t1;
440 const inSetup = !completed && !hasProgress;
441 let t2;
442 if ($[2] !== inSetup) {
443 t2 = inSetup ? <Text color="background">Setup</Text> : <Text dimColor={true}>Setup</Text>;
444 $[2] = inSetup;
445 $[3] = t2;
446 } else {
447 t2 = $[3];
448 }
449 let t3;
450 if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
451 t3 = <Text dimColor={true}> → </Text>;
452 $[4] = t3;
453 } else {
454 t3 = $[4];
455 }
456 let t4;
457 if ($[5] !== completed || $[6] !== currentIdx || $[7] !== inSetup) {
458 t4 = STAGES.map((s, i) => {
459 const isCurrent = !completed && !inSetup && i === currentIdx;
460 return <React.Fragment key={s}>{i > 0 && <Text dimColor={true}> → </Text>}{isCurrent ? <Text color="background">{STAGE_LABELS[s]}</Text> : <Text dimColor={true}>{STAGE_LABELS[s]}</Text>}</React.Fragment>;
461 });
462 $[5] = completed;
463 $[6] = currentIdx;
464 $[7] = inSetup;
465 $[8] = t4;
466 } else {
467 t4 = $[8];
468 }
469 let t5;
470 if ($[9] !== completed) {
471 t5 = completed && <Text color="success"> ✓</Text>;
472 $[9] = completed;
473 $[10] = t5;
474 } else {
475 t5 = $[10];
476 }
477 let t6;
478 if ($[11] !== t2 || $[12] !== t4 || $[13] !== t5) {
479 t6 = <Text>{t2}{t3}{t4}{t5}</Text>;
480 $[11] = t2;
481 $[12] = t4;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected