6992ecd4e8
Add the run-level operator actions to the browser run detail, matching the Android client's wording and wire frames: - R11 human decision: pure model in src/actions.js (pendingDecision, lastWaitingStep, waitingPrompt/waitingOptions, humanOptions, decisionTargetLabel, DecisionDraft) plus the decision card and sheet; decide_run sends run_id, the chosen option and trimmed feedback. - R12 cancel: a Cancel run action offered only while executing; the Android confirm copy; cancel_run then a silent get_run refresh. - R13 retry: offered only for a loaded, non-executing failed run; resume is the default (no retry_mode, like Android) with a browser-only Restart from start secondary that sends retry_mode:"restart". - R14 rename: an inline set_run_title field; refreshes the run and its list row. - One shared Action failed dialog for all of the above. Add the protocol constants and typed builders, a hand-written dark-palette section for the card/sheet/dialogs, focused unit tests for the helpers and request shapes, and ui-smoke captures for the new states. Update PARITY.md: R11 stays partial (no live waiting run), R12–R14 done with the stated shown-not-executed and Android-divergence notes. Also harden openRunDetail() in the UI smoke: the tabstrip already exists from the previously opened run, so wait for the target run's identity line before asserting on its actions (review finding).
1181 lines
40 KiB
CSS
1181 lines
40 KiB
CSS
/* Throwaway spike styling. Dark-first, echoing the Android client's theme. */
|
||
:root {
|
||
color-scheme: dark;
|
||
--bg: #0e1513;
|
||
--surface: #171f1d;
|
||
--surface-2: #1f2a27;
|
||
--border: #2c3a36;
|
||
--text: #e2e8e6;
|
||
--muted: #9db0ab;
|
||
--accent: #7fd1bb;
|
||
--ok: #6bd39a;
|
||
--warn: #e6c268;
|
||
--bad: #ef8a8a;
|
||
}
|
||
|
||
* { box-sizing: border-box; }
|
||
|
||
body {
|
||
margin: 0;
|
||
background: var(--bg);
|
||
color: var(--text);
|
||
font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||
}
|
||
|
||
.topbar {
|
||
display: flex;
|
||
gap: 16px;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 10px 16px;
|
||
background: var(--surface);
|
||
border-bottom: 1px solid var(--border);
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 2;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.brand { display: flex; gap: 8px; align-items: baseline; }
|
||
.brand strong { font-size: 16px; }
|
||
|
||
.connbar { display: flex; gap: 8px; align-items: center; flex: 1 1 420px; justify-content: flex-end; }
|
||
|
||
input[type="text"] {
|
||
flex: 1 1 260px;
|
||
min-width: 200px;
|
||
padding: 7px 10px;
|
||
background: var(--surface-2);
|
||
color: var(--text);
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
font: inherit;
|
||
}
|
||
|
||
button {
|
||
font: inherit;
|
||
padding: 7px 12px;
|
||
border-radius: 8px;
|
||
border: 1px solid var(--border);
|
||
background: var(--surface-2);
|
||
color: var(--text);
|
||
cursor: pointer;
|
||
}
|
||
button:hover { border-color: var(--accent); }
|
||
button.ghost { background: transparent; }
|
||
|
||
.tabs { display: flex; gap: 4px; align-items: center; padding: 10px 16px 0; }
|
||
.tabs .spacer { flex: 1; }
|
||
.tab { border-color: transparent; background: transparent; }
|
||
.tab.active { background: var(--surface-2); border-color: var(--border); color: var(--accent); }
|
||
|
||
.split { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 16px; padding: 16px; align-items: start; }
|
||
@media (max-width: 760px) {
|
||
.split { grid-template-columns: 1fr; }
|
||
.artifact-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
|
||
}
|
||
|
||
.list, .detail {
|
||
background: var(--surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: 12px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.row {
|
||
display: block;
|
||
width: 100%;
|
||
text-align: left;
|
||
border: 0;
|
||
border-bottom: 1px solid var(--border);
|
||
border-radius: 0;
|
||
background: transparent;
|
||
padding: 10px 12px;
|
||
}
|
||
.row:last-child { border-bottom: 0; }
|
||
.row:hover { background: var(--surface-2); }
|
||
.row.selected { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
|
||
.row-head { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
|
||
.row-title { font-weight: 600; }
|
||
.row-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
|
||
|
||
.detail { padding: 16px; }
|
||
.detail h2 { margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
|
||
.detail h3 { margin: 18px 0 8px; font-size: 14px; color: var(--muted); text-transform: none; }
|
||
|
||
.kv { display: grid; gap: 4px; }
|
||
.kv.tight { margin-top: 6px; }
|
||
.kv-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
|
||
.kv-key { color: var(--muted); }
|
||
.kv-val { word-break: break-word; }
|
||
|
||
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
|
||
.stages li { display: flex; gap: 8px; align-items: center; }
|
||
|
||
.steps { display: grid; gap: 8px; }
|
||
.step { border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
|
||
.step-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
|
||
|
||
.artifacts { margin-top: 8px; font-size: 12px; }
|
||
.artifacts a { color: var(--accent); margin-right: 10px; }
|
||
.artifacts-summary { color: var(--accent); }
|
||
.artifacts-note { margin-top: 2px; }
|
||
.artifact-hint { margin: 4px 0; }
|
||
|
||
/* Run-level artifacts gallery: group headers + a fitting tile grid. */
|
||
.artifacts-header { margin-top: 18px; }
|
||
.artifact-gallery { display: grid; gap: 12px; }
|
||
.artifact-group-head { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 4px; }
|
||
.artifact-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
||
gap: 10px;
|
||
}
|
||
|
||
.artifact-tile {
|
||
position: relative;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 4px;
|
||
min-height: 120px;
|
||
padding: 10px;
|
||
background: var(--surface-2);
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
overflow: hidden;
|
||
text-align: center;
|
||
}
|
||
.artifact-tile.clickable { cursor: pointer; }
|
||
.artifact-tile.clickable:hover { border-color: var(--accent); }
|
||
.artifact-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
||
.artifact-poster {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 56px;
|
||
height: 56px;
|
||
border-radius: 50%;
|
||
background: rgba(0, 0, 0, 0.45);
|
||
}
|
||
.artifact-play { font-size: 18px; color: var(--text); }
|
||
.artifact-kind { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
|
||
.artifact-name { font-size: 12px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.artifact-size { color: var(--muted); font-size: 11px; }
|
||
.artifact-actions { position: absolute; top: 8px; right: 6px; display: flex; gap: 4px; }
|
||
.artifact-action {
|
||
padding: 2px 6px;
|
||
font-size: 10px;
|
||
border-radius: 6px;
|
||
background: rgba(14, 21, 19, 0.72);
|
||
}
|
||
.artifact-action:disabled { opacity: 0.4; cursor: not-allowed; }
|
||
|
||
/* The per-visit session export link / notice (parity R9). */
|
||
.session-export { margin-top: 6px; font-size: 12px; }
|
||
.session-link { color: var(--accent); }
|
||
|
||
/* Full-screen artifact viewer overlay. */
|
||
.artifact-viewer {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 20;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
padding: 20px;
|
||
background: rgba(0, 0, 0, 0.86);
|
||
}
|
||
.viewer-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
|
||
.viewer-title { font-size: 15px; font-weight: 600; }
|
||
.viewer-position { font-size: 12px; }
|
||
.viewer-board { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
|
||
.viewer-image { max-width: 100%; max-height: 100%; object-fit: contain; }
|
||
.viewer-placeholder {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 32px;
|
||
color: var(--muted);
|
||
}
|
||
.viewer-placeholder .artifact-play { font-size: 40px; }
|
||
.viewer-nav { display: flex; gap: 8px; justify-content: center; }
|
||
.viewer-page:disabled { opacity: 0.4; cursor: not-allowed; }
|
||
.viewer-actions { display: flex; gap: 8px; justify-content: flex-end; }
|
||
|
||
.chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--border); color: var(--muted); }
|
||
/* The app-owned status hues (RunStatusPalette): status is never colour-only,
|
||
every chip still carries its own label. */
|
||
.chip-running, .chip-active { color: #7fb2f0; border-color: #7fb2f0; }
|
||
.chip-waiting { color: #8edff5; border-color: #8edff5; }
|
||
.chip-succeeded { color: var(--ok); border-color: var(--ok); }
|
||
.chip-failed { color: var(--bad); border-color: var(--bad); }
|
||
.chip-canceled { color: #889391; border-color: #889391; }
|
||
.chip-interrupted { color: var(--warn); border-color: var(--warn); }
|
||
.chip-queued { color: #9aa6a2; border-color: #9aa6a2; }
|
||
.chip-blocked { color: #f0a35e; border-color: #f0a35e; }
|
||
.chip-skipped { color: #a8b8c8; border-color: #a8b8c8; }
|
||
|
||
.dot::before { content: "●"; margin-right: 6px; }
|
||
.dot.ok::before { color: var(--ok); }
|
||
.dot.warn::before { color: var(--warn); }
|
||
.dot.bad::before { color: var(--bad); }
|
||
.dot.idle::before { color: var(--muted); }
|
||
.state { color: var(--muted); white-space: nowrap; }
|
||
|
||
.muted { color: var(--muted); }
|
||
.ok { color: var(--ok); }
|
||
.warn { color: var(--warn); }
|
||
.bad { color: var(--bad); }
|
||
.pad { padding: 12px; }
|
||
|
||
.banner { padding: 8px 16px; }
|
||
.banner.warn { background: #2a2410; color: var(--warn); }
|
||
.banner.error { background: #2c1616; color: var(--bad); }
|
||
|
||
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
|
||
|
||
/* ---------------------------------------------------------------------------
|
||
Runs history: toolbar, filter/sort menus, usage roll-up, sticky day headers
|
||
and the run rows. Hand-written, dark palette, no framework.
|
||
--------------------------------------------------------------------------- */
|
||
|
||
.list.runs {
|
||
display: flex;
|
||
flex-direction: column;
|
||
/* The filter/sort menus hang below the toolbar; keep them unclipped so their
|
||
bounded, scrollable box can be reached over the rows beneath. */
|
||
overflow: visible;
|
||
}
|
||
|
||
.run-toolbar {
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
padding: 8px 12px;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
.run-toolbar .spacer { flex: 1; }
|
||
.run-toolbar button.ghost { padding: 4px 10px; font-size: 12px; }
|
||
.filter-btn.active { border-color: var(--accent); color: var(--accent); }
|
||
|
||
.menu-anchor { position: relative; }
|
||
.menu {
|
||
position: absolute;
|
||
top: calc(100% + 4px);
|
||
left: 0;
|
||
z-index: 6;
|
||
min-width: 210px;
|
||
/* The filter menu lists every pipeline, so with a busy history it is taller
|
||
than the viewport. Bound it to the viewport and scroll it in place: every
|
||
section (Status, Pipeline, Time range) and the Clear filters/Done actions
|
||
stay reachable instead of being clipped off-screen. */
|
||
max-height: min(70vh, 600px);
|
||
overflow-y: auto;
|
||
overscroll-behavior: contain;
|
||
padding: 6px;
|
||
background: var(--surface-2);
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
|
||
display: grid;
|
||
gap: 2px;
|
||
}
|
||
.menu-section {
|
||
font-size: 11px;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.04em;
|
||
color: var(--muted);
|
||
padding: 6px 8px 2px;
|
||
}
|
||
.menu-divider { height: 1px; background: var(--border); margin: 6px 0; }
|
||
.menu-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; }
|
||
.menu-actions button { padding: 4px 8px; font-size: 12px; }
|
||
.menu-item {
|
||
display: block;
|
||
width: 100%;
|
||
text-align: left;
|
||
border: 0;
|
||
background: transparent;
|
||
padding: 6px 8px;
|
||
border-radius: 6px;
|
||
font-size: 13px;
|
||
}
|
||
.menu-item:hover { background: var(--surface); }
|
||
.menu-item.selected { color: var(--accent); }
|
||
|
||
.filter-check {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
padding: 4px 8px;
|
||
border-radius: 6px;
|
||
font-size: 13px;
|
||
cursor: pointer;
|
||
}
|
||
/* Pipeline names can be long; keep each option on one line inside the bounded
|
||
menu width rather than wrapping to two or three lines. */
|
||
.filter-check span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.filter-check:hover { background: var(--surface); }
|
||
.filter-check input { accent-color: var(--accent); }
|
||
.filter-menu { min-width: 240px; max-width: 340px; grid-template-columns: minmax(0, 1fr); }
|
||
|
||
/* The list body is the scroll container so the day headers can stick to its top
|
||
without depending on the (wrapping) top bar's height. */
|
||
.run-scroll {
|
||
max-height: calc(100vh - 210px);
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.metrics {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 20px;
|
||
padding: 12px 16px;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
.metric { display: flex; flex-direction: column; min-width: 56px; }
|
||
.metric-value { font-size: 18px; font-weight: 600; line-height: 1.2; }
|
||
.metric-label { font-size: 11px; color: var(--muted); }
|
||
.metric-succeeded .metric-value { color: var(--ok); }
|
||
.metric-failed .metric-value { color: var(--bad); }
|
||
.metric-canceled .metric-value { color: #889391; }
|
||
.metric-interrupted .metric-value { color: var(--warn); }
|
||
.metric-active .metric-value { color: #7fb2f0; }
|
||
|
||
.day-header {
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 1;
|
||
padding: 7px 16px;
|
||
background: var(--surface);
|
||
border-bottom: 1px solid var(--border);
|
||
font-size: 11px;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.05em;
|
||
color: var(--muted);
|
||
}
|
||
|
||
.run-row { display: block; padding: 10px 14px; }
|
||
.run-row-head { display: flex; align-items: center; gap: 8px; }
|
||
.run-row-title { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.run-row-pipeline { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--muted); font-size: 12px; }
|
||
.run-row-pipeline-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.run-row-progress,
|
||
.run-row-meta,
|
||
.run-row-diag {
|
||
display: block;
|
||
margin-top: 2px;
|
||
color: var(--muted);
|
||
font-size: 12px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.run-row-diag.error { color: var(--bad); }
|
||
|
||
.version-chip {
|
||
flex: none;
|
||
padding: 0 7px;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--border);
|
||
background: var(--surface-2);
|
||
color: var(--muted);
|
||
font-size: 11px;
|
||
}
|
||
|
||
.spinner {
|
||
flex: none;
|
||
width: 12px;
|
||
height: 12px;
|
||
border: 2px solid var(--border);
|
||
border-top-color: #7fb2f0;
|
||
border-radius: 50%;
|
||
display: inline-block;
|
||
animation: spin 0.8s linear infinite;
|
||
}
|
||
@keyframes spin { to { transform: rotate(360deg); } }
|
||
|
||
.empty-state {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
gap: 10px;
|
||
padding: 16px;
|
||
color: var(--muted);
|
||
}
|
||
.run-list-error { padding: 12px 16px; color: var(--bad); }
|
||
|
||
/* --- Templates gallery + detail ------------------------------------------ */
|
||
|
||
.pane-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 12px 0; }
|
||
.pane-head h2 { margin: 0; font-size: 16px; }
|
||
|
||
.gallery { padding-bottom: 8px; }
|
||
.cards { display: grid; gap: 8px; padding: 10px 12px; }
|
||
.card {
|
||
display: block;
|
||
width: 100%;
|
||
text-align: left;
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
background: var(--surface-2);
|
||
padding: 10px 12px;
|
||
}
|
||
.card:hover { border-color: var(--accent); }
|
||
.card.selected { box-shadow: inset 3px 0 0 var(--accent); border-color: var(--accent); }
|
||
.card-name { display: block; font-weight: 600; }
|
||
.card-desc {
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
color: var(--muted);
|
||
font-size: 12px;
|
||
margin-top: 2px;
|
||
}
|
||
.card-desc:empty { display: none; }
|
||
.card-meta { display: block; color: var(--accent); font-size: 12px; margin-top: 4px; }
|
||
|
||
.tabstrip { display: flex; gap: 4px; margin: -4px 0 12px; }
|
||
.minitab { border-color: transparent; background: transparent; padding: 5px 10px; }
|
||
.minitab.active { background: var(--surface-2); border-color: var(--border); color: var(--accent); }
|
||
|
||
.tabbody h2 { margin-top: 0; }
|
||
.tabbody .body { margin: 0 0 12px; }
|
||
.meta-line { color: var(--muted); font-size: 12px; margin-top: 4px; }
|
||
|
||
.codeblock { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 12px; }
|
||
.codeblock-label { padding: 6px 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; }
|
||
.codeblock-body {
|
||
margin: 0;
|
||
padding: 10px;
|
||
max-height: 420px;
|
||
overflow: auto;
|
||
background: transparent;
|
||
color: var(--text);
|
||
font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
}
|
||
|
||
/* Pipeline list: filter + sort controls. */
|
||
.list-controls { border-bottom: 1px solid var(--border); }
|
||
.list-toolbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 12px; }
|
||
.control { font-size: 12px; padding: 4px 10px; }
|
||
.control.active { border-color: var(--accent); color: var(--accent); }
|
||
.control .count { color: var(--accent); }
|
||
.clear { font-size: 12px; padding: 4px 10px; }
|
||
|
||
.menu-panel { border-top: 1px solid var(--border); padding: 8px 12px 12px; background: var(--surface); }
|
||
.filter-section { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; margin: 10px 0 4px; }
|
||
.filter-field { display: block; }
|
||
.filter-field-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
|
||
.filter-field input[type="text"] { flex: none; width: 100%; min-width: 0; }
|
||
.filter-item { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: 13px; cursor: pointer; }
|
||
.filter-item input { accent-color: var(--accent); }
|
||
.filter-actions { margin-top: 10px; display: flex; gap: 8px; }
|
||
.sort-option { display: block; width: 100%; text-align: left; border: 1px solid transparent; background: transparent; padding: 5px 8px; border-radius: 6px; font-size: 13px; }
|
||
.sort-option:hover { background: var(--surface-2); }
|
||
.sort-option.active { border-color: var(--accent); color: var(--accent); }
|
||
|
||
.row-run { display: flex; gap: 8px; align-items: center; margin-top: 3px; }
|
||
.row-run .row-meta { margin-top: 0; }
|
||
|
||
.empty { display: grid; gap: 10px; justify-items: start; }
|
||
|
||
/* Pipeline detail: tab strip, collapsible sections, source block. */
|
||
.detail-tabs { display: flex; gap: 4px; margin: 10px 0 12px; border-bottom: 1px solid var(--border); }
|
||
.detail-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); padding: 6px 10px; }
|
||
.detail-tab:hover { border-color: transparent; color: var(--text); }
|
||
.detail-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
|
||
.detail-subtitle { font-size: 12px; margin-bottom: 10px; }
|
||
.monospace { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
|
||
|
||
.section-toggle { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; margin-top: 16px; border: 0; border-radius: 8px; background: var(--surface-2); padding: 8px 10px; font-weight: 600; }
|
||
.section-toggle .chevron { color: var(--muted); }
|
||
.section-body { padding: 8px 4px 0; display: grid; gap: 6px; }
|
||
.version-row { display: flex; gap: 12px; align-items: baseline; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; }
|
||
.version-title { font-weight: 600; }
|
||
|
||
.source-code { margin: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; overflow: auto; max-height: 60vh; }
|
||
.source-code 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; }
|
||
|
||
.graph-note { margin: 0; max-width: 60ch; }
|
||
|
||
/* The workflow graph (P6): a mounted, pannable/zoomable canvas of stage nodes,
|
||
labelled outcome edges and the success/failure terminals, plus the definition
|
||
pane opened from a node. Hand-written, dark-first, no runtime dependency. */
|
||
.graph-host { margin-top: 12px; }
|
||
|
||
.graph-panel { display: grid; gap: 12px; }
|
||
.graph-panel.expanded .graph-viewport { height: 78vh; }
|
||
|
||
.graph-viewport {
|
||
position: relative;
|
||
height: 440px;
|
||
overflow: hidden;
|
||
border: 1px solid var(--border);
|
||
border-radius: 12px;
|
||
background: var(--surface);
|
||
cursor: grab;
|
||
/* A drag pans the graph instead of scrolling the page or selecting text. */
|
||
touch-action: none;
|
||
user-select: none;
|
||
}
|
||
.graph-viewport:active { cursor: grabbing; }
|
||
|
||
/* One transformed layer: pan/zoom only rewrite this element's transform. */
|
||
.graph-content { position: absolute; top: 0; left: 0; will-change: transform; }
|
||
|
||
.graph-edges { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
|
||
.graph-edge-path { stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
|
||
.graph-edge-path.not-executed { stroke-width: 2.5; stroke-dasharray: 14 10; }
|
||
.graph-arrowhead path { fill: var(--text); fill: context-stroke; }
|
||
|
||
.graph-node-layer, .graph-label-layer { position: absolute; top: 0; left: 0; }
|
||
.graph-label-layer { pointer-events: none; }
|
||
|
||
.graph-node {
|
||
position: absolute;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 6px 8px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 12px;
|
||
background: var(--surface-2);
|
||
color: var(--text);
|
||
font: inherit;
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
text-align: center;
|
||
overflow-wrap: anywhere;
|
||
cursor: pointer;
|
||
}
|
||
.graph-node:hover { border-color: var(--accent); }
|
||
.graph-node.selected { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
|
||
/* Node fills convey type: model neutral, ntfy amber, other/custom green. */
|
||
.graph-node-ntfy {
|
||
background: color-mix(in srgb, var(--warn) 22%, var(--surface-2));
|
||
border-color: color-mix(in srgb, var(--warn) 42%, var(--border));
|
||
}
|
||
.graph-node-custom {
|
||
background: color-mix(in srgb, var(--ok) 18%, var(--surface-2));
|
||
border-color: color-mix(in srgb, var(--ok) 38%, var(--border));
|
||
}
|
||
/* Terminals are pills tinted by outcome, so they read as endpoints, not stages. */
|
||
.graph-node-terminal-success,
|
||
.graph-node-terminal-failure { border-radius: 999px; }
|
||
.graph-node-terminal-success {
|
||
background: color-mix(in srgb, var(--ok) 30%, var(--surface-2));
|
||
border-color: var(--ok);
|
||
color: var(--ok);
|
||
}
|
||
.graph-node-terminal-failure {
|
||
background: color-mix(in srgb, var(--bad) 30%, var(--surface-2));
|
||
border-color: var(--bad);
|
||
color: var(--bad);
|
||
}
|
||
/* Not executed (R5 only): hollow, dashed and muted, never a faded fill. */
|
||
.graph-node.not-executed {
|
||
background: transparent;
|
||
border-style: dashed;
|
||
color: var(--muted);
|
||
}
|
||
|
||
.graph-edge-label {
|
||
position: absolute;
|
||
transform: translate(-50%, -100%);
|
||
padding: 1px 6px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 999px;
|
||
background: var(--surface-2);
|
||
color: var(--muted);
|
||
font-size: 11px;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.graph-controls { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 6px; }
|
||
.graph-control {
|
||
padding: 4px 10px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: var(--surface);
|
||
color: var(--text);
|
||
font-size: 12px;
|
||
}
|
||
.graph-control:hover { border-color: var(--accent); color: var(--accent); }
|
||
|
||
/* The run-mode legend (R5), pinned top-start opposite the Fit/expand controls.
|
||
A solid, arrowed swatch means "executed"; a dashed, arrowless one "not
|
||
executed". Never shown for the definition-only view. */
|
||
.graph-legend {
|
||
position: absolute;
|
||
top: 8px;
|
||
left: 8px;
|
||
z-index: 2;
|
||
display: flex;
|
||
gap: 12px;
|
||
align-items: center;
|
||
padding: 4px 8px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: color-mix(in srgb, var(--surface) 85%, transparent);
|
||
font-size: 12px;
|
||
color: var(--muted);
|
||
}
|
||
.graph-legend-entry { display: inline-flex; gap: 6px; align-items: center; }
|
||
.graph-legend-swatch {
|
||
position: relative;
|
||
width: 26px;
|
||
border-top: 3px solid var(--muted);
|
||
}
|
||
.graph-legend-swatch.executed { border-top-color: var(--text); }
|
||
/* A small filled arrowhead on the executed swatch, matching the drawn head. */
|
||
.graph-legend-swatch.executed::after {
|
||
content: "";
|
||
position: absolute;
|
||
top: -6px;
|
||
right: -1px;
|
||
border-left: 7px solid var(--text);
|
||
border-top: 4px solid transparent;
|
||
border-bottom: 4px solid transparent;
|
||
}
|
||
.graph-legend-swatch.not-executed { border-top-style: dashed; }
|
||
|
||
/* The live active stage (R5): a ring around the node plus a soft glow, pulsing
|
||
while the run executes and static when the user prefers reduced motion. */
|
||
.graph-node.active {
|
||
border-color: var(--accent);
|
||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent);
|
||
}
|
||
.graph-node.active.pulsing { animation: graph-halo-pulse 1.6s ease-in-out infinite; }
|
||
@keyframes graph-halo-pulse {
|
||
0%,
|
||
100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
|
||
50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 20%, transparent); }
|
||
}
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.graph-node.active.pulsing { animation: none; }
|
||
}
|
||
|
||
/* The live elapsed-time badge on the active node. */
|
||
.graph-elapsed {
|
||
position: absolute;
|
||
bottom: -9px;
|
||
right: 6px;
|
||
padding: 0 5px;
|
||
border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
|
||
border-radius: 999px;
|
||
background: var(--surface);
|
||
color: var(--accent);
|
||
font-size: 10px;
|
||
font-weight: 600;
|
||
line-height: 16px;
|
||
}
|
||
|
||
/* The definition pane opened from a node click. */
|
||
.graph-pane {
|
||
display: grid;
|
||
gap: 8px;
|
||
padding: 10px 12px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 12px;
|
||
background: var(--surface);
|
||
}
|
||
.graph-pane[hidden] { display: none; }
|
||
.graph-pane-head { display: flex; align-items: center; gap: 8px; }
|
||
.graph-pane-title { margin: 0; font-size: 15px; }
|
||
.graph-type-chip {
|
||
padding: 2px 8px;
|
||
border: 1px solid var(--border);
|
||
border-radius: 999px;
|
||
background: var(--surface-2);
|
||
color: var(--accent);
|
||
font-size: 11px;
|
||
}
|
||
.graph-pane-close { margin-left: auto; padding: 3px 10px; font-size: 12px; }
|
||
.graph-pane-empty { margin: 0; }
|
||
|
||
.graph-section-toggle {
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
width: 100%;
|
||
padding: 8px 10px;
|
||
border: 0;
|
||
border-radius: 8px;
|
||
background: var(--surface-2);
|
||
color: var(--text);
|
||
font-weight: 600;
|
||
text-align: left;
|
||
}
|
||
.graph-section-body { display: grid; gap: 6px; padding: 8px 2px 0; }
|
||
.graph-field { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 10px; align-items: baseline; }
|
||
.graph-field-label { color: var(--muted); font-size: 12px; }
|
||
.graph-field-value { font-size: 13px; overflow-wrap: anywhere; }
|
||
.graph-field-block { grid-template-columns: 1fr; }
|
||
.graph-block {
|
||
margin: 4px 0 0;
|
||
padding: 8px 10px;
|
||
max-height: 260px;
|
||
overflow: auto;
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
background: var(--surface-2);
|
||
color: var(--text);
|
||
font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
}
|
||
|
||
/* The waiting / canceled / interrupted hues are set once above, next to the
|
||
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);
|
||
}
|
||
|
||
/* ---------------------------------------------------------------------------
|
||
Transport: the persistent connection banner (T5) and the live badge. The
|
||
banner is in normal flow directly under the header, so it can never cover the
|
||
content; its container colours follow ConnectionBanner.kt's Material roles
|
||
(surfaceVariant idle/connecting, errorContainer disconnected, primary
|
||
connected). Hand-written, on the app's dark palette.
|
||
--------------------------------------------------------------------------- */
|
||
|
||
.conn-banner {
|
||
display: flex;
|
||
gap: 10px;
|
||
align-items: center;
|
||
padding: 8px 16px;
|
||
font-size: 13px;
|
||
border-bottom: 1px solid var(--border);
|
||
background: var(--surface-2);
|
||
color: var(--text);
|
||
}
|
||
.conn-banner[hidden] { display: none; }
|
||
.conn-banner-dot::before { content: "\25cf"; }
|
||
.conn-banner-text { font-weight: 500; }
|
||
.conn-build { margin-left: auto; color: var(--muted); font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
|
||
.conn-warning { color: var(--warn); font-weight: 600; }
|
||
|
||
/* Idle: surfaceVariant (never an error colour — nothing is wrong yet). */
|
||
.conn-idle { background: var(--surface-2); color: var(--muted); }
|
||
.conn-idle .conn-banner-dot::before { color: var(--muted); }
|
||
|
||
/* Connecting: surfaceVariant with a warm dot, matching the state badge. */
|
||
.conn-connecting { background: var(--surface-2); color: var(--muted); }
|
||
.conn-connecting .conn-banner-dot::before { color: var(--warn); }
|
||
|
||
/* Disconnected: errorContainer. */
|
||
.conn-error { background: #2c1616; color: var(--bad); }
|
||
.conn-error .conn-banner-dot::before { color: var(--bad); }
|
||
.conn-error .conn-build { color: var(--muted); }
|
||
|
||
/* Connected: an explicit green (primary) state, the page's one visible
|
||
difference from ConnectionBanner.kt, which renders nothing once connected. */
|
||
.conn-ok { background: #12251b; color: var(--ok); }
|
||
.conn-ok .conn-banner-dot::before { color: var(--ok); }
|
||
|
||
/* Live-stream badge (LiveBadge.kt): a dot plus the honest word, so colour is
|
||
never the only signal. */
|
||
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
|
||
.live-badge .live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
|
||
.live-live { color: var(--ok); }
|
||
.live-reconnecting { color: var(--warn); }
|
||
.live-reconnecting .live-dot { opacity: 0.4; }
|
||
.live-not-live { color: var(--muted); }
|
||
.live-not-live .live-dot { opacity: 0.4; }
|
||
|
||
/* ---------------------------------------------------------------------------
|
||
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: 8px;
|
||
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; }
|
||
.stat-add { color: var(--ok); }
|
||
.stat-del { color: var(--bad); }
|
||
|
||
/* Full-screen diff viewer overlay (the artifact-viewer idiom). */
|
||
.change-viewer {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 30;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
padding: 20px;
|
||
background: rgba(0, 0, 0, 0.86);
|
||
}
|
||
.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-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: 10px;
|
||
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: 8px; 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); }
|
||
|
||
/* ---------------------------------------------------------------------------
|
||
Run-level operator actions (parity R11–R14): the waiting-for-decision card
|
||
and sheet, the shared cancel/retry/restart confirm dialogs, the one
|
||
Action-failed dialog and the inline rename control. Hand-written, the app's
|
||
dark palette; every string is set with textContent.
|
||
--------------------------------------------------------------------------- */
|
||
|
||
.run-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 4px; }
|
||
.run-action { padding: 4px 12px; font-size: 12px; }
|
||
.run-action.cancel-run { border-color: var(--warn); color: var(--warn); }
|
||
.run-action.retry-run { border-color: var(--accent); color: var(--accent); }
|
||
|
||
/* The decision card: a prominent banner above the tabs. */
|
||
.decision-card {
|
||
display: flex;
|
||
gap: 12px;
|
||
align-items: center;
|
||
padding: 12px 14px;
|
||
margin-bottom: 12px;
|
||
border: 1px solid #8edff5;
|
||
border-radius: 10px;
|
||
background: #102329;
|
||
}
|
||
.decision-card-icon { font-size: 18px; line-height: 1; }
|
||
.decision-card-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
|
||
.decision-card-title { font-weight: 600; }
|
||
.decision-card-meta { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.decision-open { border-color: #8edff5; color: #8edff5; font-weight: 600; }
|
||
|
||
/* The decision sheet: a centred modal panel over a dim backdrop. */
|
||
.decision-sheet {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 35;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 24px;
|
||
background: rgba(0, 0, 0, 0.55);
|
||
}
|
||
.decision-sheet-panel {
|
||
display: grid;
|
||
gap: 10px;
|
||
width: min(520px, 100%);
|
||
max-height: 100%;
|
||
overflow-y: auto;
|
||
padding: 16px;
|
||
background: var(--surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: 12px;
|
||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
|
||
}
|
||
.decision-sheet-title { margin: 0; font-size: 16px; }
|
||
.decision-sheet-meta { font-size: 12px; }
|
||
.decision-instructions { margin: 0; line-height: 1.5; }
|
||
.decision-options { display: grid; gap: 6px; }
|
||
.decision-option {
|
||
display: flex;
|
||
gap: 10px;
|
||
align-items: center;
|
||
width: 100%;
|
||
text-align: left;
|
||
padding: 8px 10px;
|
||
background: var(--surface-2);
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
}
|
||
.decision-option:hover { border-color: var(--accent); }
|
||
.decision-option.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
|
||
.decision-radio {
|
||
width: 14px;
|
||
height: 14px;
|
||
border-radius: 50%;
|
||
border: 2px solid var(--muted);
|
||
flex: none;
|
||
}
|
||
.decision-option.selected .decision-radio {
|
||
border-color: var(--accent);
|
||
box-shadow: inset 0 0 0 3px var(--surface-2), inset 0 0 0 8px var(--accent);
|
||
}
|
||
.decision-option-body { display: grid; gap: 2px; min-width: 0; }
|
||
.decision-option-key { font-weight: 600; }
|
||
.decision-option-target { font-size: 12px; }
|
||
.decision-field { display: grid; gap: 4px; }
|
||
.decision-field-label { font-size: 12px; color: var(--muted); }
|
||
.decision-feedback {
|
||
width: 100%;
|
||
padding: 6px 8px;
|
||
background: var(--surface-2);
|
||
color: var(--text);
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
font: inherit;
|
||
}
|
||
.decision-feedback:focus { outline: none; border-color: var(--accent); }
|
||
.decision-error { font-size: 13px; }
|
||
.decision-sheet-actions { display: flex; gap: 8px; justify-content: flex-end; }
|
||
.decision-confirm { border-color: var(--accent); color: var(--accent); font-weight: 600; }
|
||
.decision-confirm:disabled, .decision-cancel:disabled { opacity: 0.5; }
|
||
|
||
/* Shared confirm dialog (cancel / retry / restart) and the Action-failed one. */
|
||
.confirm-dialog,
|
||
.action-failed {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 40;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 24px;
|
||
background: rgba(0, 0, 0, 0.55);
|
||
}
|
||
.confirm-panel,
|
||
.action-failed-panel {
|
||
display: grid;
|
||
gap: 12px;
|
||
width: min(420px, 100%);
|
||
padding: 16px;
|
||
background: var(--surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: 12px;
|
||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
|
||
}
|
||
.confirm-title,
|
||
.action-failed-title { margin: 0; font-size: 16px; }
|
||
.confirm-message,
|
||
.action-failed-message { margin: 0; line-height: 1.5; }
|
||
.action-failed-message { color: var(--bad); }
|
||
.confirm-actions { display: flex; gap: 8px; align-items: center; }
|
||
.confirm-secondary { margin-right: auto; font-size: 12px; }
|
||
.confirm-accept { border-color: var(--accent); color: var(--accent); font-weight: 600; }
|
||
.action-failed-ok { justify-self: end; }
|
||
|
||
/* The inline rename control on the Summary title row. */
|
||
.run-title-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
||
.run-title-row .run-detail-title { margin: 0; }
|
||
.rename-field { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 0; }
|
||
.rename-input {
|
||
flex: 1;
|
||
min-width: 0;
|
||
padding: 6px 8px;
|
||
background: var(--surface-2);
|
||
color: var(--text);
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
font: inherit;
|
||
}
|
||
.rename-input:focus { outline: none; border-color: var(--accent); }
|
||
.rename-save { border-color: var(--accent); color: var(--accent); font-weight: 600; }
|