Patchwise Agent Studio: Oracle AI Agent Studio cycles
Browse files- web/src/pages/RunStages.tsx +120 -57
- web/src/pages/cockpit.css +86 -0
web/src/pages/RunStages.tsx
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
|
|
| 1 |
import { isWaiting, useWaitsOnMe, waitingForWords } from '../waiting';
|
| 2 |
import { Button, CopyButton, Tooltip } from '@mantine/core';
|
| 3 |
-
import { IconCheck, IconCopy,
|
| 4 |
import { useEffect, useRef, useState, type ReactNode } from 'react';
|
| 5 |
import { Link } from 'react-router-dom';
|
| 6 |
import { MODULE_NAMES } from '../agents';
|
| 7 |
-
import { usePods, useRun, useRunReadiness } from '../api/hooks';
|
|
|
|
| 8 |
import { Can, ErrorAlert } from '../components/common';
|
| 9 |
import { EnvBadge, envKind } from '../components/shell/EnvSwitcher';
|
| 10 |
import { useShell } from '../components/shell/prefs';
|
|
@@ -43,19 +45,81 @@ export function runStatusLine(r: { status: string; pending_gate?: string | null
|
|
| 43 |
}
|
| 44 |
|
| 45 |
type Mark = 'done' | 'cur' | 'todo' | 'stop';
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
| 47 |
return (
|
| 48 |
-
<li className="
|
| 49 |
-
<
|
| 50 |
-
<
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
{children}
|
| 54 |
-
</div>
|
| 55 |
</li>
|
| 56 |
);
|
| 57 |
}
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
/** A running or finished test run as four numbered stages beside the details panel: Prepare, Approve, Testing (or Your decision), Result.
|
| 60 |
* Only the current stage has a card (`run-guide`, `data-stage`); the others are one line. The run's state decides everything. */
|
| 61 |
export function RunStages({ id }: { id: string }) {
|
|
@@ -124,7 +188,6 @@ export function RunStages({ id }: { id: string }) {
|
|
| 124 |
const stopped = stage === 'stopped';
|
| 125 |
|
| 126 |
const prepared = stage !== 'prepare';
|
| 127 |
-
const approveSum = afterApprove ? <>You approved the scenarios. <a href={scriptUrl(id)} download data-testid="excel-script-done">Download as Excel</a></> : 'You approve what is tested. Nothing runs before that.';
|
| 128 |
|
| 129 |
return (
|
| 130 |
<div className="fpt-ws-scroll" ref={scroller} tabIndex={0} aria-label="Test run steps">
|
|
@@ -148,56 +211,56 @@ export function RunStages({ id }: { id: string }) {
|
|
| 148 |
</header>
|
| 149 |
{r.attention && <div className="trio-banner" data-tone="orange" role="status" data-testid="attention"><span><b>Reminder.</b> {r.attention}</span></div>}
|
| 150 |
|
| 151 |
-
<ol className="
|
| 152 |
-
<
|
| 153 |
-
|
| 154 |
-
{stage === 'prepare' && <StageCard stage="prepare"><Prepare r={r} /></StageCard>}
|
| 155 |
-
<div className="trio-teamline"><TeamStrip runId={id} finished={finished || stopped} events={events} /></div>
|
| 156 |
-
</Stage>
|
| 157 |
-
|
| 158 |
{!stopped || tested > 0 || scenarios > 0 ? (
|
| 159 |
-
<
|
| 160 |
-
|
| 161 |
-
{
|
| 162 |
-
</Stage>
|
| 163 |
) : null}
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
summary={finished ? `Tested ${tested} scenario${tested === 1 ? '' : 's'}: ${tested - failing} passed, ${failing} failed.` : stage === 'testing' || stage === 'judge' ? undefined : 'The scenarios run one after another. You are asked only if one fails.'}>
|
| 169 |
-
{stage === 'testing' && <StageCard stage="testing"><Testing r={r} watch={watching} /></StageCard>}
|
| 170 |
-
{stage === 'judge' && (
|
| 171 |
-
<StageCard stage="judge">
|
| 172 |
-
<Judge r={r} onShowScreen={panel && browserRun ? (c) => panel.show('screens', { scenario: c }) : undefined}
|
| 173 |
-
onShowSteps={panel && !browserRun ? (c) => panel.show('steps', { scenario: c }) : undefined} />
|
| 174 |
-
</StageCard>
|
| 175 |
-
)}
|
| 176 |
-
</Stage>
|
| 177 |
-
)}
|
| 178 |
-
|
| 179 |
-
{!stopped && (
|
| 180 |
-
<Stage n={4} title="Result" mark={finished ? 'cur' : 'todo'} summary={finished ? undefined : 'Ready or not ready, with a report you can sign off.'}>
|
| 181 |
-
{finished && (
|
| 182 |
-
<StageCard stage="result">
|
| 183 |
-
<Result r={r} after={(
|
| 184 |
-
<div className="trio-after">
|
| 185 |
-
<button type="button" className="fpt-textlink" onClick={() => newRun()} data-testid="chat-new">Test another business area</button>
|
| 186 |
-
<Link to={`/runs/${id}/workflow`} className="fpt-textlink">Open the team board</Link>
|
| 187 |
-
</div>
|
| 188 |
-
)} />
|
| 189 |
-
</StageCard>
|
| 190 |
-
)}
|
| 191 |
-
</Stage>
|
| 192 |
-
)}
|
| 193 |
-
|
| 194 |
-
{stopped && (
|
| 195 |
-
<Stage n={3} title="Stopped" mark="stop" summary={undefined}>
|
| 196 |
-
<StageCard stage="stopped"><Stopped r={r} /></StageCard>
|
| 197 |
-
<p className="trio-sum"><IconPlayerStop size={13} aria-hidden /> Nothing more runs until you carry on.</p>
|
| 198 |
-
</Stage>
|
| 199 |
)}
|
|
|
|
|
|
|
| 200 |
</ol>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 201 |
<p className="trio-aifoot">{(r.llm_calls ?? []).length ? `AI on this run: ${(r.llm_calls ?? []).length} call(s). Built-in rules decided the result.` : 'AI on this run: none. Built-in rules did the work.'}{r.created_at ? ` Started ${shortWhen(r.created_at)}.` : ''}</p>
|
| 202 |
</div>
|
| 203 |
</div>
|
|
|
|
| 1 |
+
import './cockpit.css';
|
| 2 |
import { isWaiting, useWaitsOnMe, waitingForWords } from '../waiting';
|
| 3 |
import { Button, CopyButton, Tooltip } from '@mantine/core';
|
| 4 |
+
import { IconCheck, IconCopy, IconX } from '@/icons';
|
| 5 |
import { useEffect, useRef, useState, type ReactNode } from 'react';
|
| 6 |
import { Link } from 'react-router-dom';
|
| 7 |
import { MODULE_NAMES } from '../agents';
|
| 8 |
+
import { usePods, useRun, useRunReadiness, useRunScenarios } from '../api/hooks';
|
| 9 |
+
import type { ModuleReadiness } from '../api/types';
|
| 10 |
import { Can, ErrorAlert } from '../components/common';
|
| 11 |
import { EnvBadge, envKind } from '../components/shell/EnvSwitcher';
|
| 12 |
import { useShell } from '../components/shell/prefs';
|
|
|
|
| 45 |
}
|
| 46 |
|
| 47 |
type Mark = 'done' | 'cur' | 'todo' | 'stop';
|
| 48 |
+
const NOW_WORDS: Record<GuideStage, string> = { prepare: 'Preparing', approve: 'Your next step', testing: 'Testing now', judge: 'Your decision', result: 'Result', stopped: 'Stopped' };
|
| 49 |
+
|
| 50 |
+
/** One of the run's four phases as a tile: number and name, one line of what happened, and a bar (done, current, to come). */
|
| 51 |
+
function Phase({ n, name, line, mark, fill, sub, wait, tone }: { n: number; name: string; line: string; mark: Mark; fill: number; sub?: ReactNode; wait?: boolean; tone?: 'green' | 'orange' | 'red' }) {
|
| 52 |
return (
|
| 53 |
+
<li className="rc-phase" data-mark={mark} data-wait={wait || undefined} data-tone={tone} aria-current={mark === 'cur' ? 'step' : undefined}>
|
| 54 |
+
<span className="rc-pk"><span>{n} {name}</span>{mark === 'done' ? <IconCheck size={15} stroke={2.6} aria-label="done" /> : mark === 'stop' ? <IconX size={15} stroke={2.6} aria-label="stopped" /> : mark === 'cur' ? <span className="rc-now-tag">Now</span> : null}</span>
|
| 55 |
+
<b className="rc-pl">{line}</b>
|
| 56 |
+
{sub && <span className="rc-ps">{sub}</span>}
|
| 57 |
+
<span className="rc-pbar" aria-hidden><i style={{ width: `${Math.round(Math.min(1, fill) * 100)}%` }} /></span>
|
|
|
|
|
|
|
| 58 |
</li>
|
| 59 |
);
|
| 60 |
}
|
| 61 |
|
| 62 |
+
const SQ_WORDS: Record<string, string> = { pass: 'passed', fail: 'failed', flaky: 'passed on retry', run: 'testing now', todo: 'not tested yet' };
|
| 63 |
+
|
| 64 |
+
/** Every scenario of the run as one square, coloured by its result (the run at a glance). A square opens the scenario
|
| 65 |
+
* in the details panel. */
|
| 66 |
+
function ScenarioMap({ id, live, onOpen }: { id: string; live: boolean; onOpen?: (scenario: string) => void }) {
|
| 67 |
+
const q = useRunScenarios(id);
|
| 68 |
+
const { refetch } = q;
|
| 69 |
+
useEffect(() => {
|
| 70 |
+
if (!live) return;
|
| 71 |
+
const t = window.setInterval(() => void refetch(), 5000);
|
| 72 |
+
return () => window.clearInterval(t);
|
| 73 |
+
}, [live, refetch]);
|
| 74 |
+
const list = q.data?.scenarios ?? [];
|
| 75 |
+
if (!list.length) return null;
|
| 76 |
+
let running = live;
|
| 77 |
+
const items = list.map((s) => {
|
| 78 |
+
let k = s.outcome === 'passed' ? 'pass' : s.outcome === 'failed' ? 'fail' : s.outcome === 'flaky' ? 'flaky' : 'todo';
|
| 79 |
+
if (k === 'todo' && running) { k = 'run'; running = false; }
|
| 80 |
+
return { s, k };
|
| 81 |
+
});
|
| 82 |
+
const count = (k: string) => items.filter((i) => i.k === k).length;
|
| 83 |
+
const keys = ['pass', 'flaky', 'fail', 'run', 'todo'].filter((k) => count(k) > 0);
|
| 84 |
+
return (
|
| 85 |
+
<section className="rc-card">
|
| 86 |
+
<h2 className="rc-h">Every scenario at a glance <span className="rc-hn">{list.length}</span></h2>
|
| 87 |
+
<div className="rc-map" role="group" aria-label={keys.map((k) => `${count(k)} ${SQ_WORDS[k]}`).join(', ')}>
|
| 88 |
+
{items.map(({ s, k }) => (
|
| 89 |
+
<button key={s.id} type="button" tabIndex={-1} className="rc-sq" data-k={k} title={`${s.id} · ${s.title} · ${SQ_WORDS[k]}`}
|
| 90 |
+
aria-label={`${s.id}, ${SQ_WORDS[k]}`} onClick={onOpen ? () => onOpen(s.id) : undefined} />
|
| 91 |
+
))}
|
| 92 |
+
</div>
|
| 93 |
+
<span className="rc-keys">{keys.map((k) => <span key={k}><i data-k={k} />{count(k)} {SQ_WORDS[k]}</span>)}</span>
|
| 94 |
+
</section>
|
| 95 |
+
);
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
/** The run's results by business process step (from the readiness view), one bar each. */
|
| 99 |
+
function ProcessSteps({ modules }: { modules: ModuleReadiness[] }) {
|
| 100 |
+
const rows = modules.flatMap((m) => m.steps.filter((s) => s.scenarios > 0).map((s) => ({ m: m.module, s })));
|
| 101 |
+
if (!rows.length) return null;
|
| 102 |
+
const pct = (n: number, t: number) => `${(n / (t || 1)) * 100}%`;
|
| 103 |
+
const STATE: Record<string, string> = { failing: 'Failing', gap: 'Not covered', not_tested: 'Not tested yet', passed: 'Passed', not_affected: 'Not affected' };
|
| 104 |
+
return (
|
| 105 |
+
<section className="rc-card rc-steps" aria-label="By business process step">
|
| 106 |
+
<h2 className="rc-h">By business process step</h2>
|
| 107 |
+
<div className="rc-tbl" role="table" aria-label="Business process steps">
|
| 108 |
+
<div role="row" className="rc-tr rc-th"><span role="columnheader">Process step</span><span role="columnheader">Scenarios</span><span role="columnheader">Results</span><span role="columnheader">State</span></div>
|
| 109 |
+
{rows.map(({ m, s }) => (
|
| 110 |
+
<div role="row" className="rc-tr" key={`${m}-${s.key}`}>
|
| 111 |
+
<span role="cell"><b>{s.name}</b>{modules.length > 1 ? <span className="rc-code"> {m}</span> : null}{s.touched ? <span className="rc-touched">in patch</span> : null}</span>
|
| 112 |
+
<span role="cell" className="fpt-num">{s.scenarios}</span>
|
| 113 |
+
<span role="cell"><span className="rc-sbar" role="img" aria-label={`${s.passed} passed, ${s.failed} failed, ${s.not_run} not run`}>
|
| 114 |
+
<i data-k="pass" style={{ width: pct(s.passed + s.flaky, s.scenarios) }} /><i data-k="fail" style={{ width: pct(s.failed, s.scenarios) }} /></span></span>
|
| 115 |
+
<span role="cell" className="rc-state" data-state={s.state}>{STATE[s.state] ?? s.state}</span>
|
| 116 |
+
</div>
|
| 117 |
+
))}
|
| 118 |
+
</div>
|
| 119 |
+
</section>
|
| 120 |
+
);
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
/** A running or finished test run as four numbered stages beside the details panel: Prepare, Approve, Testing (or Your decision), Result.
|
| 124 |
* Only the current stage has a card (`run-guide`, `data-stage`); the others are one line. The run's state decides everything. */
|
| 125 |
export function RunStages({ id }: { id: string }) {
|
|
|
|
| 188 |
const stopped = stage === 'stopped';
|
| 189 |
|
| 190 |
const prepared = stage !== 'prepare';
|
|
|
|
| 191 |
|
| 192 |
return (
|
| 193 |
<div className="fpt-ws-scroll" ref={scroller} tabIndex={0} aria-label="Test run steps">
|
|
|
|
| 211 |
</header>
|
| 212 |
{r.attention && <div className="trio-banner" data-tone="orange" role="status" data-testid="attention"><span><b>Reminder.</b> {r.attention}</span></div>}
|
| 213 |
|
| 214 |
+
<ol className="rc-phases" aria-label="Steps of this test run">
|
| 215 |
+
<Phase n={1} name="Prepare" mark={prepared ? 'done' : 'cur'} line={prepared ? `${scenarios} scenario${scenarios === 1 ? '' : 's'} chosen` : 'Choosing the scenarios'}
|
| 216 |
+
fill={prepared ? 1 : 0.4} sub={prepared ? <Link to={`/runs/${id}/workflow`}>See what each agent did</Link> : undefined} />
|
|
|
|
|
|
|
|
|
|
|
|
|
| 217 |
{!stopped || tested > 0 || scenarios > 0 ? (
|
| 218 |
+
<Phase n={2} name="Approve" mark={stage === 'approve' ? 'cur' : afterApprove ? 'done' : 'todo'} wait={stage === 'approve' && forMe}
|
| 219 |
+
line={stage === 'approve' ? waitTag.words : afterApprove ? 'You approved the scenarios' : 'Nothing runs before that'} fill={afterApprove ? 1 : stage === 'approve' ? 0.4 : 0}
|
| 220 |
+
sub={afterApprove ? <a href={scriptUrl(id)} download data-testid="excel-script-done">Download as Excel</a> : undefined} />
|
|
|
|
| 221 |
) : null}
|
| 222 |
+
{stopped ? <Phase n={3} name="Stopped" mark="stop" line="Nothing more runs until you carry on" fill={1} /> : (
|
| 223 |
+
<Phase n={3} name={stage === 'judge' ? 'Your decision' : 'Testing'} mark={stage === 'testing' || stage === 'judge' ? 'cur' : finished ? 'done' : 'todo'} wait={stage === 'judge' && forMe}
|
| 224 |
+
line={finished ? `${tested - failing} passed · ${failing} failed` : stage === 'judge' ? waitTag.words : stage === 'testing' ? `${tested} of ${scenarios} done` : 'Starts after approval'}
|
| 225 |
+
fill={finished ? 1 : stage === 'testing' || stage === 'judge' ? Math.max(0.04, tested / (scenarios || 1)) : 0} />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
)}
|
| 227 |
+
{!stopped && <Phase n={4} name="Result" mark={finished ? 'done' : 'todo'} tone={finished ? (decision === 'GO' ? 'green' : decision === 'HELD' ? 'orange' : 'red') : undefined}
|
| 228 |
+
line={finished ? decisionWords(decision) : 'Ready or not ready'} fill={finished ? 1 : 0} />}
|
| 229 |
</ol>
|
| 230 |
+
|
| 231 |
+
<div className="rc-grid">
|
| 232 |
+
<section className="rc-now" data-stage={stage} aria-label={NOW_WORDS[stage]}>
|
| 233 |
+
<span className="rc-eyebrow">{(stage === 'approve' || stage === 'judge') && !forMe ? waitingForWords(r.pending_gate) : NOW_WORDS[stage]}</span>
|
| 234 |
+
{stage === 'prepare' && <StageCard stage="prepare"><Prepare r={r} /></StageCard>}
|
| 235 |
+
{stage === 'approve' && <StageCard stage="approve"><Approve r={r} /></StageCard>}
|
| 236 |
+
{stage === 'testing' && <StageCard stage="testing"><Testing r={r} watch={watching} /></StageCard>}
|
| 237 |
+
{stage === 'judge' && (
|
| 238 |
+
<StageCard stage="judge">
|
| 239 |
+
<Judge r={r} onShowScreen={panel && browserRun ? (c) => panel.show('screens', { scenario: c }) : undefined}
|
| 240 |
+
onShowSteps={panel && !browserRun ? (c) => panel.show('steps', { scenario: c }) : undefined} />
|
| 241 |
+
</StageCard>
|
| 242 |
+
)}
|
| 243 |
+
{finished && (
|
| 244 |
+
<StageCard stage="result">
|
| 245 |
+
<Result r={r} after={(
|
| 246 |
+
<div className="trio-after">
|
| 247 |
+
<button type="button" className="fpt-textlink" onClick={() => newRun()} data-testid="chat-new">Test another business area</button>
|
| 248 |
+
<Link to={`/runs/${id}/workflow`} className="fpt-textlink">Open the team board</Link>
|
| 249 |
+
</div>
|
| 250 |
+
)} />
|
| 251 |
+
</StageCard>
|
| 252 |
+
)}
|
| 253 |
+
{stopped && <StageCard stage="stopped"><Stopped r={r} /></StageCard>}
|
| 254 |
+
</section>
|
| 255 |
+
<aside className="rc-side" aria-label="About this test run">
|
| 256 |
+
<section className="rc-card">
|
| 257 |
+
<h2 className="rc-h">Your AI team on this run</h2>
|
| 258 |
+
<TeamStrip runId={id} finished={finished || stopped} events={events} />
|
| 259 |
+
</section>
|
| 260 |
+
{prepared && <ScenarioMap id={id} live={stage === 'testing'} onOpen={panel ? (c) => panel.show(browserRun && afterApprove ? 'screens' : 'steps', { scenario: c }) : undefined} />}
|
| 261 |
+
</aside>
|
| 262 |
+
</div>
|
| 263 |
+
{prepared && <ProcessSteps modules={mods} />}
|
| 264 |
<p className="trio-aifoot">{(r.llm_calls ?? []).length ? `AI on this run: ${(r.llm_calls ?? []).length} call(s). Built-in rules decided the result.` : 'AI on this run: none. Built-in rules did the work.'}{r.created_at ? ` Started ${shortWhen(r.created_at)}.` : ''}</p>
|
| 265 |
</div>
|
| 266 |
</div>
|
web/src/pages/cockpit.css
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* The test run cockpit (RunStages.tsx): the four phases as tiles across the top, the current step's card beside the team
|
| 2 |
+
and the scenario map, then the results by process step. Tokens only, so dark and light both follow the scheme. */
|
| 3 |
+
|
| 4 |
+
.fpt-ws .trio-stages { max-width: 1180px; padding: 28px 36px 96px; }
|
| 5 |
+
.fpt-ws .trio-rhead h1 { font: 700 34px/40px var(--font-display); letter-spacing: -0.02em; }
|
| 6 |
+
|
| 7 |
+
/* phases */
|
| 8 |
+
.rc-phases { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
|
| 9 |
+
.rc-phase { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--sep); }
|
| 10 |
+
.rc-pk { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 600 12px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--label-3); }
|
| 11 |
+
.rc-pl { font: 600 16px/21px var(--font-display); color: var(--label); }
|
| 12 |
+
.rc-ps { font-size: 13px; }
|
| 13 |
+
.rc-pbar { display: block; height: 4px; margin-top: auto; border-radius: 2px; background: var(--fill-2); overflow: hidden; }
|
| 14 |
+
.rc-pbar i { display: block; height: 100%; border-radius: 2px; background: var(--green); transition: width var(--d3) var(--ease); }
|
| 15 |
+
.rc-phase[data-mark='done'] .rc-pk svg { color: var(--green); }
|
| 16 |
+
.rc-phase[data-mark='todo'] { background: transparent; border-style: dashed; }
|
| 17 |
+
.rc-phase[data-mark='todo'] .rc-pl { color: var(--label-3); }
|
| 18 |
+
.rc-phase[data-mark='cur'] { border-color: var(--ember); background: linear-gradient(180deg, color-mix(in srgb, var(--ember) 14%, transparent), color-mix(in srgb, var(--ember) 3%, transparent));
|
| 19 |
+
box-shadow: 0 0 0 4px color-mix(in srgb, var(--ember) 10%, transparent); }
|
| 20 |
+
.rc-phase[data-mark='cur'] .rc-pk { color: var(--accent-text); }
|
| 21 |
+
.rc-phase[data-mark='cur'] .rc-pbar i { background: var(--ember); }
|
| 22 |
+
.rc-phase[data-mark='stop'] { border-color: var(--red); }
|
| 23 |
+
.rc-phase[data-mark='stop'] .rc-pk, .rc-phase[data-mark='stop'] .rc-pk svg { color: var(--red); }
|
| 24 |
+
.rc-phase[data-mark='stop'] .rc-pbar i { background: var(--red); }
|
| 25 |
+
.rc-phase[data-tone='red'] { border-color: color-mix(in srgb, var(--red) 55%, transparent); background: color-mix(in srgb, var(--red) 7%, var(--bg-elev)); }
|
| 26 |
+
.rc-phase[data-tone='red'] .rc-pl { color: var(--red); }
|
| 27 |
+
.rc-phase[data-tone='red'] .rc-pbar i { background: var(--red); }
|
| 28 |
+
.rc-phase[data-tone='orange'] .rc-pl { color: var(--orange); }
|
| 29 |
+
.rc-phase[data-tone='orange'] .rc-pbar i { background: var(--orange); }
|
| 30 |
+
.rc-phase[data-tone='green'] { border-color: color-mix(in srgb, var(--green) 55%, transparent); }
|
| 31 |
+
.rc-phase[data-tone='green'] .rc-pl { color: var(--green); }
|
| 32 |
+
.rc-now-tag { padding: 1px 8px; border-radius: 999px; background: var(--ember); color: #fff; font: 700 10px/16px var(--font); letter-spacing: 0.06em; }
|
| 33 |
+
|
| 34 |
+
/* the step card and the side column */
|
| 35 |
+
.rc-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); gap: 16px; margin-top: 18px; align-items: start; }
|
| 36 |
+
.rc-now { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
|
| 37 |
+
.rc-eyebrow { font: 600 12px var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
|
| 38 |
+
.rc-now .fpt-stage { margin: 0; }
|
| 39 |
+
.rc-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
|
| 40 |
+
.rc-card { padding: 18px; border-radius: 16px; background: var(--bg-elev); border: 1px solid var(--sep); }
|
| 41 |
+
.rc-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 15px var(--font-display); color: var(--label); }
|
| 42 |
+
.rc-hn { margin-left: auto; font: 500 12px var(--font); color: var(--label-3); }
|
| 43 |
+
.rc-card .fpt-team { margin: 0; }
|
| 44 |
+
|
| 45 |
+
/* every scenario as a square */
|
| 46 |
+
.rc-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(14px, 1fr)); gap: 4px; }
|
| 47 |
+
.rc-sq { aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 3px; background: var(--fill-2); cursor: pointer; transition: transform var(--d1) var(--ease); }
|
| 48 |
+
.rc-sq:hover { transform: scale(1.35); box-shadow: 0 0 0 2px var(--bg-elev), 0 0 0 3px var(--label-3); }
|
| 49 |
+
.rc-sq[data-k='pass'], .rc-keys i[data-k='pass'] { background: var(--green); }
|
| 50 |
+
.rc-sq[data-k='flaky'], .rc-keys i[data-k='flaky'] { background: var(--orange); }
|
| 51 |
+
.rc-sq[data-k='fail'], .rc-keys i[data-k='fail'] { background: var(--red); }
|
| 52 |
+
.rc-sq[data-k='run'], .rc-keys i[data-k='run'] { background: var(--blue); }
|
| 53 |
+
.rc-sq[data-k='run'] { animation: rc-pulse 1.4s var(--ease) infinite; }
|
| 54 |
+
.rc-keys i[data-k='todo'] { background: var(--fill-2); }
|
| 55 |
+
.rc-keys { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--label-2); }
|
| 56 |
+
.rc-keys span { display: inline-flex; align-items: center; gap: 6px; }
|
| 57 |
+
.rc-keys i { width: 9px; height: 9px; border-radius: 2px; }
|
| 58 |
+
@keyframes rc-pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 30%, transparent); } }
|
| 59 |
+
|
| 60 |
+
/* by process step */
|
| 61 |
+
.rc-steps { margin-top: 16px; padding: 0; overflow: hidden; }
|
| 62 |
+
.rc-steps .rc-h { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--sep); }
|
| 63 |
+
.rc-tbl { overflow-x: auto; }
|
| 64 |
+
.rc-tr { display: grid; grid-template-columns: minmax(180px, 2fr) 90px minmax(160px, 2fr) 120px; gap: 12px; align-items: center; min-width: 600px; padding: 12px 20px; border-top: 1px solid var(--sep); }
|
| 65 |
+
.rc-th { border-top: 0; padding-block: 10px; font: 600 11px var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--label-3); background: var(--fill); }
|
| 66 |
+
.rc-code { font-size: 11px; color: var(--label-3); }
|
| 67 |
+
.rc-touched { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--ember) 14%, transparent); color: var(--accent-text); font-size: 11px; font-weight: 700; }
|
| 68 |
+
.rc-sbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--fill-2); }
|
| 69 |
+
.rc-sbar i[data-k='pass'] { background: var(--green); }
|
| 70 |
+
.rc-sbar i[data-k='fail'] { background: var(--red); }
|
| 71 |
+
.rc-state { font-size: 13px; color: var(--label-2); }
|
| 72 |
+
.rc-state[data-state='failing'] { color: var(--red); font-weight: 700; }
|
| 73 |
+
.rc-state[data-state='passed'] { color: var(--green); font-weight: 700; }
|
| 74 |
+
.rc-state[data-state='gap'] { color: var(--orange); font-weight: 700; }
|
| 75 |
+
|
| 76 |
+
@media (max-width: 1100px) {
|
| 77 |
+
.rc-grid { grid-template-columns: minmax(0, 1fr); }
|
| 78 |
+
}
|
| 79 |
+
@media (max-width: 640px) {
|
| 80 |
+
.fpt-ws .trio-stages { padding: 18px 16px 80px; }
|
| 81 |
+
.rc-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
| 82 |
+
}
|
| 83 |
+
@media (prefers-reduced-motion: reduce) {
|
| 84 |
+
.rc-sq[data-k='run'] { animation: none; }
|
| 85 |
+
.rc-pbar i, .rc-sq { transition: none; }
|
| 86 |
+
}
|