ebf02c3bed
- serve.mjs requires a signed session cookie for every page, artifact and the WebSocket, with a password file, 30-day sessions, login throttling and public brand assets for the sign-in page. - The diff viewer is a fixed-height top-anchored panel whose toolbar (modes, copy, previous, next, close as icons) is its first row; the artifact viewer is likewise a fixed frame so its navigation never moves. - The audit's selected tab uses the app's normal selected surface and bottom accent. Sessions that were not recorded say so plainly. - Chat code blocks are syntax-coloured; graph pinch-zoom works with two fingers while a single pointer still pans and clicks nodes. - Phones always keep the destination bar (pane collapse is wide-only), with the destinations spread evenly and Search on the right; the list default width is narrower; the theme colour matches the app. - Code-format and layout tests, plus the full browser suite, pass.
357 lines
12 KiB
CSS
357 lines
12 KiB
CSS
|
|
/* ---------------------------------------------------------------------------
|
|
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: 8px; }
|
|
|
|
.run-detail-title { margin: 0; font: var(--type-title); letter-spacing: var(--tracking-tight); }
|
|
.run-title-row { display: flex; gap: var(--space-xs); align-items: center; flex-wrap: wrap; min-width: 0; }
|
|
|
|
.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: 12px 4px; }
|
|
|
|
.collapsible .section-title { flex: 1; }
|
|
.collapsible > .section-body { padding: 6px 2px 2px; }
|
|
.field-block {
|
|
margin: 0;
|
|
padding: 8px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-control);
|
|
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: 8px;
|
|
align-items: flex-start;
|
|
width: 100%;
|
|
padding: 8px 4px;
|
|
border-bottom: 1px solid var(--border);
|
|
cursor: pointer;
|
|
}
|
|
.timeline-row:last-child { border-bottom: 0; }
|
|
.timeline-row:hover { background: var(--surface-2); }
|
|
.timeline-row:focus-visible {
|
|
background: var(--surface-2);
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
/* Artifact tiles (M5): the tile itself is a native button and Copy link/Share
|
|
are sibling controls. The grid is shared with the shell item, so the button
|
|
reset stays scoped here rather than editing base.css. */
|
|
.artifact-tile-wrap { position: relative; display: flex; }
|
|
.artifact-tile-wrap > .artifact-tile {
|
|
flex: 1 1 auto;
|
|
width: 100%;
|
|
margin: 0;
|
|
font: inherit;
|
|
color: inherit;
|
|
appearance: none;
|
|
cursor: pointer;
|
|
}
|
|
.artifact-tile-wrap > .artifact-tile:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: -2px;
|
|
}
|
|
.artifact-tile-wrap .artifact-actions { z-index: 1; }
|
|
.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: 8px;
|
|
align-items: center;
|
|
padding: 8px 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: 8px 12px; display: grid; gap: var(--space-xs); align-content: start; }
|
|
.stage-section > .section-body { padding-top: 4px; }
|
|
|
|
/* The verdict block leads the pane. */
|
|
.verdict {
|
|
display: grid;
|
|
gap: 8px;
|
|
padding: var(--space-s);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-card);
|
|
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);
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
/* ---------------------------------------------------------------------------
|
|
Run summary Changes (parity R4): the observed-file list and the full-screen
|
|
rendered/raw diff viewer. Hand-written, the app's dark palette.
|
|
--------------------------------------------------------------------------- */
|
|
|
|
.changes { display: grid; gap: 8px; }
|
|
.changes-summary { color: var(--accent); font-weight: 600; font-size: 13px; }
|
|
.changes-note { font-size: 12px; }
|
|
.changes-empty { font-size: 13px; }
|
|
.changes-list { display: grid; gap: 4px; }
|
|
|
|
.change-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
padding: 6px 8px;
|
|
border-radius: var(--radius-control);
|
|
cursor: pointer;
|
|
}
|
|
.change-row:hover { background: var(--surface-2); }
|
|
.change-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
.change-kind { font-weight: 600; font-size: 12px; min-width: 62px; }
|
|
.change-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
|
|
.change-path { overflow-wrap: anywhere; }
|
|
.change-meta { font-size: 12px; }
|
|
.change-stat { display: flex; gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
|
|
/* The run Summary's Pipeline value opens the definition that produced it. */
|
|
.kv-pipeline-link {
|
|
border: 0;
|
|
padding: 0;
|
|
background: transparent;
|
|
color: var(--accent);
|
|
font: inherit;
|
|
text-align: left;
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
cursor: pointer;
|
|
}
|
|
.kv-pipeline-link { border: 0; background: transparent; }
|
|
.kv-pipeline-link:hover { color: var(--color-text); }
|
|
/* The status badge sits above the run's name, where the run starts. */
|
|
.run-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
|
|
/* Section headers are one compact row: the toggle and its optional view switch. */
|
|
.section-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
|
|
.section-row .section-toggle { margin-top: 0; flex: 1 1 auto; }
|
|
.view-toggle {
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-control);
|
|
overflow: hidden;
|
|
}
|
|
.view-toggle-button {
|
|
padding: 4px 10px;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
.view-toggle-button:hover { background: var(--tint-hover); color: var(--text); }
|
|
.view-toggle-button.active { background: var(--surface-2); color: var(--text); font-weight: 600; }
|
|
/* The audit door at the bottom of a stage pane. */
|
|
.stage-pane-audit { display: flex; justify-content: flex-end; margin-top: 14px; }
|
|
.audit-list { display: grid; gap: 2px; }
|
|
.audit-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 6px 4px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.audit-row-label { flex: 1 1 auto; font-size: 13px; }
|
|
.audit-row-meta { font-size: 12px; }
|
|
.kv-pipeline-name { font-weight: 600; }
|
|
.kv-pipeline-ident { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
|
|
|
|
.stat-add { color: var(--ok); }
|
|
.stat-del { color: var(--bad); }
|
|
|
|
/* Full-screen diff viewer overlay (the artifact-viewer idiom). */
|
|
/* A dim scrim with one centred panel: the visible outside of the diff (and the
|
|
place a click closes it), matching the artifact viewer. */
|
|
.change-viewer {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 60;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
background: rgba(0, 0, 0, 0.78);
|
|
}
|
|
/* Fixed height, anchored at the top: the toolbar (modes, copy, paging, close)
|
|
never moves when a diff is long or short. */
|
|
.change-viewer-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
width: min(1200px, 100%);
|
|
height: calc(100vh - 48px);
|
|
min-height: 0;
|
|
padding: 16px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
|
|
}
|
|
.change-viewer-head { display: flex; gap: 12px; align-items: flex-start; }
|
|
.change-viewer-titles { flex: 1; min-width: 0; display: grid; gap: 2px; }
|
|
.change-viewer-title-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
|
|
.change-viewer-stat { font-size: 13px; }
|
|
.change-viewer-path { overflow-wrap: anywhere; }
|
|
.change-viewer-position { font-size: 12px; }
|
|
.change-viewer-controls { display: flex; gap: 8px; align-items: center; }
|
|
.change-viewer-spacer { flex: 1; }
|
|
.change-form { font-size: 12px; }
|
|
.change-form.active { border-color: var(--accent); color: var(--accent); }
|
|
.change-form:disabled { opacity: 0.45; }
|
|
.change-page:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
.change-icon {
|
|
width: 30px;
|
|
height: 30px;
|
|
padding: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-control);
|
|
background: var(--surface-2);
|
|
color: var(--text);
|
|
font-size: 16px;
|
|
line-height: 1;
|
|
}
|
|
.change-icon:hover { border-color: var(--color-border-strong); }
|
|
.change-icon:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
.change-viewer-body { flex: 1; min-height: 0; overflow: auto; display: grid; gap: 16px; align-content: start; }
|
|
|
|
.change-honest {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
padding: 32px;
|
|
text-align: center;
|
|
}
|
|
.change-raw {
|
|
margin: 0;
|
|
padding: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-card);
|
|
background: var(--surface-2);
|
|
font-size: 12px;
|
|
white-space: pre;
|
|
overflow: auto;
|
|
}
|
|
|
|
.change-diff { display: grid; gap: 12px; align-content: start; }
|
|
.change-diff-stat { display: flex; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
|
|
.change-diff-note { font-size: 12px; }
|
|
.change-hunk { border: 1px solid var(--border); border-radius: var(--radius-control); overflow: hidden; }
|
|
.change-hunk-head {
|
|
padding: 4px 8px;
|
|
background: var(--surface-2);
|
|
color: var(--accent);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-size: 12px;
|
|
}
|
|
.change-hunk-lines { overflow-x: auto; background: var(--surface); padding: 6px 0; }
|
|
.change-line {
|
|
display: flex;
|
|
gap: 10px;
|
|
padding: 0 8px;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-size: 12px;
|
|
white-space: pre;
|
|
}
|
|
.change-gutter { color: var(--muted); user-select: none; }
|
|
.diff-add { color: var(--ok); }
|
|
.diff-remove { color: var(--bad); }
|
|
.diff-context { color: var(--muted); }
|
|
|
|
/* A markdown stage body (the turn protocol) is prose, not a code block: keep the
|
|
app's reading measure and its natural spacing. */
|
|
.field-markdown { max-width: var(--layout-measure); padding: 2px 0; }
|
|
.run-markdown-body { max-width: var(--layout-measure); padding: 4px 0; }
|
|
.stage-field-markdown { max-width: var(--layout-measure); padding: 2px 0 10px; }
|
|
.field-markdown > :first-child { margin-top: 0; }
|
|
.field-markdown > :last-child { margin-bottom: 0; }
|