web: tabbed run detail with summary, IO fields and timeline (R3/R6/R7)

The browser run detail becomes a tab strip — Summary, Input, Output,
Timeline — over the selected tab's body, with the Graph tab key reserved
for the R5 item.

- Summary: run label, status chip + outcome, the run identity line, the
  key/value rows (Pipeline, Stage, waiting-for-resource line, Workspace,
  content hash, Started, Finished, live Duration, Retry of, Diagnostic)
  and the collapsed run artifacts gallery.
- Input / Output: one collapsed section per recorded map entry, the value
  as a monospace block; empty states match the app.
- Timeline: one row per visit with the stage-outcome glyph, `{stage} ·
  visit {n}`, an outcome chip, a paperclip when artifacts were recorded,
  the duration and the description; a row opens the per-visit stage pane.
- Stage pane: headline rows, the Verdict block with inline artifact links
  and the Artifacts / Session / Output / Input / This run / Stage
  definition sections, all closable with Escape.

All new logic is the pure, DOM-free src/runDetail.js ported from the
Android sources; app.js keeps only the wiring and every server string is
set with textContent.

PARITY.md: R3, R6 and R7 marked done with their captures.
This commit is contained in:
2026-10-19 03:32:32 +01:00
parent 4be740b461
commit 06965933f4
6 changed files with 2096 additions and 116 deletions
+141
View File
@@ -510,3 +510,144 @@ code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-
other status chips, so RunStatusPalette stays the single source of truth for
every status word. */
.chip-unknown { color: #bec9c5; border-color: #bec9c5; }
/* ---------------------------------------------------------------------------
Run detail: tabbed Summary / Input / Output / Timeline plus the per-visit
stage pane. Hand-written, dark palette, no framework.
--------------------------------------------------------------------------- */
.run-tab-body { display: grid; gap: 10px; }
.run-detail-title { margin: 0; font-size: 18px; }
.run-chip-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.run-identity { font-size: 12px; }
.run-wait { color: var(--warn); font-size: 12px; }
.run-empty { padding: 14px 4px; }
.collapsible .section-title { flex: 1; }
.collapsible > .section-body { padding: 8px 4px 4px; }
.field-block {
margin: 0;
padding: 10px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--surface-2);
overflow: auto;
max-height: 360px;
}
.field-block code {
background: transparent;
padding: 0;
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
font-size: 12px;
white-space: pre-wrap;
word-break: break-word;
}
/* Timeline rows: one compact line per visit. */
.timeline { display: grid; }
.timeline-row {
display: flex;
gap: 10px;
align-items: flex-start;
width: 100%;
padding: 10px 4px;
border-bottom: 1px solid var(--border);
cursor: pointer;
}
.timeline-row:last-child { border-bottom: 0; }
.timeline-row:hover, .timeline-row:focus-visible { background: var(--surface-2); outline: none; }
.timeline-glyph { flex: none; width: 18px; text-align: center; font-size: 14px; line-height: 1.4; }
.timeline-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.timeline-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.timeline-title { font-weight: 600; }
.timeline-duration { font-size: 12px; }
.timeline-desc { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-paperclip { font-size: 12px; }
/* The one stage-outcome colour vocabulary: a run-state word takes the shared
status palette, any other flow outcome its curated palette slot (mirrors
GraphPalette). Set on the class, so a chip's border follows its text. */
.outcome-chip {
display: inline-block;
padding: 1px 8px;
border-radius: 999px;
border: 1px solid currentColor;
font-size: 11px;
}
.outcome-state-running, .outcome-state-active { color: #7fb2f0; }
.outcome-state-waiting { color: #8edff5; }
.outcome-state-succeeded { color: var(--ok); }
.outcome-state-failed { color: var(--bad); }
.outcome-state-canceled { color: #889391; }
.outcome-state-interrupted { color: var(--warn); }
.outcome-state-queued { color: #9aa6a2; }
.outcome-state-blocked { color: #f0a35e; }
.outcome-state-skipped { color: #a8b8c8; }
.outcome-state-unknown { color: #bec9c5; }
.outcome-flow-0 { color: #f5a3a3; }
.outcome-flow-1 { color: #f5b37a; }
.outcome-flow-2 { color: #7fd4e8; }
.outcome-flow-3 { color: #c0a3f5; }
.outcome-flow-4 { color: #f0e07a; }
.outcome-flow-5 { color: #f5a3d0; }
.outcome-flow-6 { color: #d8c98a; }
.outcome-flow-7 { color: #9fd8c0; }
.outcome-flow-8 { color: #d8a8c0; }
/* The per-visit stage pane: a right-hand sheet with a modal backdrop. */
.stage-pane {
position: fixed;
inset: 0;
z-index: 25;
display: flex;
justify-content: flex-end;
background: rgba(0, 0, 0, 0.55);
}
.stage-pane-bar {
display: flex;
gap: 10px;
align-items: center;
padding: 10px 12px;
border-bottom: 1px solid var(--border);
background: var(--surface);
}
.stage-pane-titles { display: grid; min-width: 0; }
.stage-pane-title { font-weight: 600; }
.stage-pane-run { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-pane-sheet {
display: flex;
flex-direction: column;
width: min(560px, 100%);
height: 100%;
min-width: 0;
background: var(--surface);
border-left: 1px solid var(--border);
box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}
.stage-pane-body { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; }
.stage-section > .section-body { padding-top: 6px; }
/* The verdict block leads the pane. */
.verdict {
display: grid;
gap: 8px;
padding: 10px;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--surface-2);
}
.verdict-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.verdict-title { font-weight: 600; }
.verdict-reason { margin: 0; line-height: 1.5; }
.verdict-link { color: var(--accent); text-decoration: underline; }
.verdict-link.disabled { color: var(--muted); text-decoration: none; }
.verdict-refs { display: flex; flex-wrap: wrap; gap: 6px; }
.verdict-ref {
padding: 2px 8px;
font-size: 11px;
border-radius: 999px;
border: 1px solid var(--border);
background: var(--surface);
}