(t0)
| 85 | return displayed.current; |
| 86 | } |
| 87 | function ReviewRainbowLine(t0) { |
| 88 | const $ = _c(15); |
| 89 | const { |
| 90 | session |
| 91 | } = t0; |
| 92 | const settings = useSettings(); |
| 93 | const reducedMotion = settings.prefersReducedMotion ?? false; |
| 94 | const p = session.reviewProgress; |
| 95 | const running = session.status === "running"; |
| 96 | const [, time] = useAnimationFrame(running && !reducedMotion ? TICK_MS : null); |
| 97 | const targetFound = p?.bugsFound ?? 0; |
| 98 | const targetVerified = p?.bugsVerified ?? 0; |
| 99 | const targetRefuted = p?.bugsRefuted ?? 0; |
| 100 | const snap = reducedMotion || !running; |
| 101 | const found = useSmoothCount(targetFound, time, snap); |
| 102 | const verified = useSmoothCount(targetVerified, time, snap); |
| 103 | const refuted = useSmoothCount(targetRefuted, time, snap); |
| 104 | const phase = Math.floor(time / (TICK_MS * 3)) % 7; |
| 105 | if (session.status === "completed") { |
| 106 | let t1; |
| 107 | if ($[0] === Symbol.for("react.memo_cache_sentinel")) { |
| 108 | t1 = <><Text color="background">{DIAMOND_FILLED} </Text><RainbowText text="ultrareview" phase={0} /><Text dimColor={true}> ready · shift+↓ to view</Text></>; |
| 109 | $[0] = t1; |
| 110 | } else { |
| 111 | t1 = $[0]; |
| 112 | } |
| 113 | return t1; |
| 114 | } |
| 115 | if (session.status === "failed") { |
| 116 | let t1; |
| 117 | if ($[1] === Symbol.for("react.memo_cache_sentinel")) { |
| 118 | t1 = <><Text color="background">{DIAMOND_FILLED} </Text><RainbowText text="ultrareview" phase={0} /><Text color="error" dimColor={true}>{" \xB7 "}error</Text></>; |
| 119 | $[1] = t1; |
| 120 | } else { |
| 121 | t1 = $[1]; |
| 122 | } |
| 123 | return t1; |
| 124 | } |
| 125 | let t1; |
| 126 | if ($[2] !== found || $[3] !== p || $[4] !== refuted || $[5] !== verified) { |
| 127 | t1 = !p ? "setting up" : formatReviewStageCounts(p.stage, found, verified, refuted); |
| 128 | $[2] = found; |
| 129 | $[3] = p; |
| 130 | $[4] = refuted; |
| 131 | $[5] = verified; |
| 132 | $[6] = t1; |
| 133 | } else { |
| 134 | t1 = $[6]; |
| 135 | } |
| 136 | const tail = t1; |
| 137 | let t2; |
| 138 | if ($[7] === Symbol.for("react.memo_cache_sentinel")) { |
| 139 | t2 = <Text color="background">{DIAMOND_OPEN} </Text>; |
| 140 | $[7] = t2; |
| 141 | } else { |
| 142 | t2 = $[7]; |
| 143 | } |
| 144 | const t3 = running ? phase : 0; |
nothing calls this directly
no test coverage detected