1694c20b12
CI / Lint + build + test (push) Has been cancelled
Pipeline now always renders all 13 nodes (3 pre-stage + 9 stage +
Completed), synthesising ghosts from run state when stage rows
aren't seeded yet. Makes a WaitingWoL host show the full timeline
ahead of it instead of just 4 dots.
Agent tags each log line with its stage; logs.Hub fans out to both
log-{runID} and log-{runID}-{stage} SSE events so the detail page
can show per-stage tabs with a pure-CSS radio-sibling switch. Flat
run log prepends [stage] so grep still works.
Dispatcher writes picked/sent-WoL/heartbeat lines into the per-run
log — the operator opens the detail page, sees WaitingWoL stuck,
and reads exactly what the dispatcher did and why nothing's
progressing, instead of having to tail journalctl on the LXC.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
552 lines
17 KiB
CSS
552 lines
17 KiB
CSS
:root {
|
|
--bg: #0f1115;
|
|
--bg-elev: #171a21;
|
|
--bg-elev-2: #1f232c;
|
|
--border: #2a2f3a;
|
|
--text: #e5e8ef;
|
|
--text-dim: #9aa2b1;
|
|
--accent: #6aa9ff;
|
|
--accent-strong: #3c82f6;
|
|
--success: #35c27b;
|
|
--warn: #e4a94b;
|
|
--danger: #e56466;
|
|
--radius: 8px;
|
|
--font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font: 15px/1.45 var(--font);
|
|
}
|
|
|
|
a { color: var(--accent); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
padding: 12px 24px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-elev);
|
|
}
|
|
.topbar .brand { font-weight: 700; letter-spacing: .2px; }
|
|
.topbar nav { display: flex; gap: 16px; flex: 1; }
|
|
.topbar nav a { color: var(--text-dim); }
|
|
.topbar nav a:hover { color: var(--text); text-decoration: none; }
|
|
.topbar .session { display: flex; align-items: center; gap: 12px; }
|
|
.topbar .heartbeat { color: var(--text-dim); font-family: var(--mono); font-size: 12px; }
|
|
.topbar .logout-form { margin: 0; }
|
|
|
|
main { max-width: 1280px; margin: 0 auto; padding: 24px; }
|
|
|
|
button, .button, .button-secondary {
|
|
appearance: none;
|
|
font: inherit;
|
|
padding: 8px 14px;
|
|
border-radius: var(--radius);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-elev-2);
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
}
|
|
button:hover, .button:hover { border-color: var(--accent); }
|
|
button:disabled { opacity: .5; cursor: not-allowed; }
|
|
button.danger { border-color: var(--danger); color: var(--danger); background: transparent; }
|
|
button.danger:hover { background: rgba(229,100,102,.1); }
|
|
.button-secondary { background: transparent; }
|
|
|
|
.error {
|
|
background: rgba(229,100,102,.12);
|
|
border: 1px solid var(--danger);
|
|
color: var(--danger);
|
|
padding: 10px 14px;
|
|
border-radius: var(--radius);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.dashboard-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
.dashboard-header h1 { font-size: 20px; margin: 0; }
|
|
|
|
.empty {
|
|
text-align: center;
|
|
padding: 48px 24px;
|
|
border: 1px dashed var(--border);
|
|
border-radius: var(--radius);
|
|
color: var(--text-dim);
|
|
}
|
|
.empty .button { margin-top: 12px; }
|
|
|
|
.tile-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.tile {
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
position: relative;
|
|
transition: border-color .12s ease, transform .12s ease;
|
|
}
|
|
.tile:hover { border-color: var(--accent); }
|
|
.tile-link {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 0;
|
|
border-radius: var(--radius);
|
|
background: transparent;
|
|
text-decoration: none;
|
|
}
|
|
.tile > *:not(.tile-link) { position: relative; z-index: 1; }
|
|
.tile-primary-action { display: flex; gap: 8px; }
|
|
.tile-primary-action .inline { margin: 0; }
|
|
.tile-primary-action:empty { display: none; }
|
|
.tile-head { display: flex; justify-content: space-between; align-items: center; }
|
|
.tile-name { font-weight: 600; }
|
|
.tile-header-right { display: flex; align-items: center; gap: 10px; }
|
|
.tile-status { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
|
|
.tile-idle .tile-status { color: var(--text-dim); }
|
|
|
|
.tile-last-seen {
|
|
font-family: var(--mono);
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
.tile-last-seen::before {
|
|
content: "";
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--text-dim);
|
|
}
|
|
.tile-last-seen.online { color: var(--success); }
|
|
.tile-last-seen.online::before { background: var(--success); }
|
|
.tile-last-seen.stale::before { background: var(--warn); }
|
|
.tile-last-seen.offline::before { background: var(--text-dim); opacity: .5; }
|
|
|
|
.tile-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin: 0; font-size: 13px; }
|
|
.tile-meta div { display: flex; justify-content: space-between; align-items: baseline; }
|
|
.tile-meta dt { color: var(--text-dim); }
|
|
.tile-meta dd { margin: 0; font-family: var(--mono); }
|
|
|
|
.tile-actions { display: flex; gap: 8px; }
|
|
.tile-actions .inline { margin: 0; flex: 0; }
|
|
|
|
.tile-meta dd.bad { color: var(--danger); }
|
|
|
|
.tile-hold {
|
|
background: rgba(229,100,102,.08);
|
|
border: 1px solid rgba(229,100,102,.35);
|
|
border-radius: var(--radius);
|
|
padding: 8px 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
.tile-hold .hold-title {
|
|
font-size: 12px;
|
|
color: var(--danger);
|
|
text-transform: uppercase;
|
|
letter-spacing: .5px;
|
|
}
|
|
.tile-hold .hold-ssh {
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
color: var(--text);
|
|
word-break: break-all;
|
|
user-select: all;
|
|
}
|
|
|
|
.tile-log {
|
|
background: #0b0d12;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 8px 10px;
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
color: var(--text-dim);
|
|
max-height: 160px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
.tile-log:empty { display: none; }
|
|
.tile-log .log-line { white-space: pre-wrap; }
|
|
.tile-log .log-warn { color: var(--warn); }
|
|
.tile-log .log-error { color: var(--danger); }
|
|
|
|
.tile-fail { border-color: rgba(229,100,102,.6); }
|
|
.tile-pass { border-color: rgba(53,194,123,.5); }
|
|
.tile-active { border-color: var(--accent); }
|
|
|
|
.form-wrap { max-width: 640px; }
|
|
.form-wrap h1 { font-size: 20px; }
|
|
|
|
.host-form { display: flex; flex-direction: column; gap: 14px; }
|
|
.host-form label { display: flex; flex-direction: column; gap: 4px; color: var(--text-dim); font-size: 13px; }
|
|
.host-form input,
|
|
.host-form textarea {
|
|
font: inherit;
|
|
font-family: var(--mono);
|
|
color: var(--text);
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 8px 10px;
|
|
}
|
|
.host-form textarea { resize: vertical; min-height: 96px; }
|
|
.host-form .grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
|
|
.host-form .actions { display: flex; gap: 10px; margin-top: 4px; }
|
|
|
|
.login-card {
|
|
max-width: 360px;
|
|
margin: 12vh auto;
|
|
padding: 28px;
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
}
|
|
.login-card h1 { margin: 0 0 16px; font-size: 22px; }
|
|
.login-card label { display: flex; flex-direction: column; gap: 4px; color: var(--text-dim); font-size: 13px; }
|
|
.login-card input {
|
|
font: inherit;
|
|
color: var(--text);
|
|
background: var(--bg-elev-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.login-card button { width: 100%; background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
|
|
.login-card button:hover { background: var(--accent); border-color: var(--accent); }
|
|
|
|
body.bare main { max-width: none; }
|
|
|
|
.quick-register {
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 16px 18px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.quick-register h2 { margin: 0 0 8px; font-size: 16px; }
|
|
.quick-register p { margin: 6px 0; font-size: 13px; color: var(--text-dim); }
|
|
.quick-register p b { color: var(--text); }
|
|
.quick-register .muted { color: var(--text-dim); font-weight: 400; }
|
|
.quick-register code { font-family: var(--mono); }
|
|
.quick-register .one-liner {
|
|
background: #0b0d12;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 10px 12px;
|
|
margin: 8px 0;
|
|
overflow-x: auto;
|
|
user-select: all;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
}
|
|
.quick-register .one-liner code { white-space: pre; }
|
|
|
|
.manual-register { margin-top: 16px; }
|
|
.manual-register summary {
|
|
cursor: pointer;
|
|
color: var(--text-dim);
|
|
font-size: 13px;
|
|
padding: 6px 0;
|
|
}
|
|
.manual-register summary:hover { color: var(--text); }
|
|
.manual-register[open] summary { margin-bottom: 12px; }
|
|
|
|
/* ===== Host detail page ===== */
|
|
.detail { display: flex; flex-direction: column; gap: 20px; }
|
|
.breadcrumb { color: var(--text-dim); font-size: 13px; display: flex; gap: 6px; }
|
|
.breadcrumb a { color: var(--text-dim); }
|
|
.breadcrumb a:hover { color: var(--text); }
|
|
.breadcrumb-sep { opacity: .5; }
|
|
|
|
.detail-summary {
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 18px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
.detail-summary.tile-fail { border-color: rgba(229,100,102,.6); }
|
|
.detail-summary.tile-pass { border-color: rgba(53,194,123,.5); }
|
|
.detail-summary.tile-active { border-color: var(--accent); }
|
|
.detail-summary-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
|
|
.detail-name { margin: 0; font-size: 22px; }
|
|
.detail-status-row { display: flex; align-items: center; gap: 12px; }
|
|
.detail-meta {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 8px 24px;
|
|
margin: 0;
|
|
font-size: 13px;
|
|
}
|
|
.detail-meta div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
|
|
.detail-meta dt { color: var(--text-dim); }
|
|
.detail-meta dd { margin: 0; font-family: var(--mono); }
|
|
.detail-meta dd.bad { color: var(--danger); }
|
|
|
|
.detail-section {
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 16px 20px;
|
|
}
|
|
.detail-section h2 { margin: 0 0 12px; font-size: 15px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
|
|
.detail-section details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
|
|
.detail-section details > summary::before { content: "▸"; color: var(--text-dim); font-size: 12px; transition: transform .1s ease; }
|
|
.detail-section details[open] > summary::before { transform: rotate(90deg); }
|
|
.detail-section details > summary h2 { margin: 0; }
|
|
|
|
.detail-hold {
|
|
background: rgba(229,100,102,.08);
|
|
border-color: rgba(229,100,102,.35);
|
|
}
|
|
.detail-hold h2 { color: var(--danger); }
|
|
.hold-ssh {
|
|
font-family: var(--mono);
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
word-break: break-all;
|
|
user-select: all;
|
|
display: block;
|
|
padding: 10px 12px;
|
|
background: #0b0d12;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.detail-actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
|
|
.detail-actions-row .inline { margin: 0; }
|
|
|
|
.detail-log {
|
|
background: #0b0d12;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 10px 12px;
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
color: var(--text-dim);
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
.detail-log:empty::before { content: "(no log output yet)"; color: var(--text-dim); opacity: .5; }
|
|
.detail-log .log-line { white-space: pre-wrap; }
|
|
.detail-log .log-warn { color: var(--warn); }
|
|
.detail-log .log-error { color: var(--danger); }
|
|
|
|
/* ===== Log tabs (CSS-only radio switch) ===== */
|
|
/* Radios are visually hidden but still functional: checked state is read
|
|
by sibling selectors below to flip the active label + pane. */
|
|
.log-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: #0b0d12;
|
|
overflow: hidden;
|
|
}
|
|
.log-tab-input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
.log-tab-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 8px 14px;
|
|
font-size: 12px;
|
|
font-family: var(--mono);
|
|
color: var(--text-dim);
|
|
cursor: pointer;
|
|
border-right: 1px solid var(--border);
|
|
border-bottom: 1px solid var(--border);
|
|
user-select: none;
|
|
background: transparent;
|
|
transition: background .12s ease, color .12s ease;
|
|
}
|
|
.log-tab-label:hover { background: rgba(255,255,255,.03); color: var(--text); }
|
|
/* Active tab: coloured bar + filled background. */
|
|
.log-tab-input:checked + .log-tab-label {
|
|
background: var(--bg-elev-2);
|
|
color: var(--text);
|
|
box-shadow: inset 0 -2px 0 0 var(--accent);
|
|
}
|
|
.log-pane {
|
|
display: none;
|
|
flex-basis: 100%;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding: 10px 12px;
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
color: var(--text-dim);
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
order: 99; /* keep panes below the tab labels in flex order */
|
|
}
|
|
.log-pane .log-line { white-space: pre-wrap; }
|
|
.log-pane .log-warn { color: var(--warn); }
|
|
.log-pane .log-error { color: var(--danger); }
|
|
.log-pane .log-stage { color: var(--text-dim); opacity: .75; margin-right: 4px; }
|
|
.log-pane:empty::before { content: "(no log output yet)"; color: var(--text-dim); opacity: .5; }
|
|
|
|
/* Sibling-selector cascade: .log-tab-all:checked flips .log-pane-all,
|
|
.log-tab-Inventory:checked flips .log-pane-Inventory, etc. The radios
|
|
live as siblings of the panes inside .log-tabs, so ~ works. */
|
|
.log-tab-all:checked ~ .log-pane-all { display: flex; }
|
|
.log-tab-Inventory:checked ~ .log-pane-Inventory { display: flex; }
|
|
.log-tab-SpecValidate:checked ~ .log-pane-SpecValidate { display: flex; }
|
|
.log-tab-SMART:checked ~ .log-pane-SMART { display: flex; }
|
|
.log-tab-CPUStress:checked ~ .log-pane-CPUStress { display: flex; }
|
|
.log-tab-Storage:checked ~ .log-pane-Storage { display: flex; }
|
|
.log-tab-Network:checked ~ .log-pane-Network { display: flex; }
|
|
.log-tab-GPU:checked ~ .log-pane-GPU { display: flex; }
|
|
.log-tab-PSU:checked ~ .log-pane-PSU { display: flex; }
|
|
.log-tab-Reporting:checked ~ .log-pane-Reporting { display: flex; }
|
|
|
|
.diff-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
|
|
.diff-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
gap: 12px;
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
font-size: 13px;
|
|
}
|
|
.diff-row code { font-family: var(--mono); font-size: 12px; color: var(--text); }
|
|
.diff-field { font-weight: 600; }
|
|
.diff-expected, .diff-actual { color: var(--text-dim); }
|
|
.diff-critical { border-color: rgba(229,100,102,.5); background: rgba(229,100,102,.06); }
|
|
.diff-critical .diff-field { color: var(--danger); }
|
|
.diff-warning { border-color: rgba(228,169,75,.45); background: rgba(228,169,75,.05); }
|
|
.diff-warning .diff-field { color: var(--warn); }
|
|
.diff-info { opacity: .75; }
|
|
|
|
.detail-host-meta h3 { margin: 12px 0 6px; font-size: 13px; color: var(--text-dim); }
|
|
.detail-notes p { margin: 0; color: var(--text); }
|
|
.detail-spec-yaml {
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
background: #0b0d12;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 10px 12px;
|
|
white-space: pre;
|
|
overflow-x: auto;
|
|
margin: 0;
|
|
}
|
|
|
|
/* ===== Pipeline timeline =====
|
|
13 nodes (3 pre-stage + 9 stage + Completed). flex:1 on every node
|
|
so they share the full width evenly; overflow-x:auto only kicks in
|
|
on very narrow viewports. */
|
|
.pipeline {
|
|
display: flex;
|
|
align-items: stretch;
|
|
gap: 0;
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
padding: 28px 12px 16px;
|
|
background: #0b0d12;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
}
|
|
.stage-node {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex: 1 1 0;
|
|
min-width: 72px;
|
|
padding: 0 4px;
|
|
}
|
|
.stage-dot {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
border: 2px solid var(--border);
|
|
background: var(--bg-elev-2);
|
|
color: var(--text-dim);
|
|
line-height: 1;
|
|
transition: transform .12s ease, box-shadow .12s ease;
|
|
}
|
|
.stage-node:hover .stage-dot { transform: scale(1.12); }
|
|
.stage-dot-passed { background: var(--success); border-color: var(--success); color: #0b0d12; }
|
|
.stage-dot-running { background: var(--accent-strong); border-color: var(--accent); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
|
|
.stage-dot-failed { background: var(--danger); border-color: var(--danger); color: #fff; }
|
|
.stage-dot-skipped { background: transparent; border-color: var(--border); color: var(--text-dim); opacity: .45; }
|
|
.stage-dot-pending { background: transparent; border-color: var(--border); color: transparent; }
|
|
|
|
.stage-name {
|
|
font-size: 12px;
|
|
color: var(--text-dim);
|
|
text-align: center;
|
|
font-weight: 500;
|
|
line-height: 1.2;
|
|
}
|
|
.stage-node-passed .stage-name { color: var(--text); }
|
|
.stage-node-running .stage-name { color: var(--accent); font-weight: 600; }
|
|
.stage-node-failed .stage-name { color: var(--danger); font-weight: 600; }
|
|
.stage-node-skipped .stage-name { opacity: .5; }
|
|
.stage-duration { font-size: 10px; color: var(--text-dim); font-family: var(--mono); min-height: 12px; }
|
|
|
|
.stage-connector {
|
|
flex: 1 1 0;
|
|
min-width: 8px;
|
|
height: 3px;
|
|
align-self: center;
|
|
margin-top: -30px;
|
|
background: var(--border);
|
|
border-radius: 2px;
|
|
}
|
|
.stage-connector-passed { background: var(--success); }
|
|
.stage-connector-running { background: linear-gradient(90deg, var(--success), var(--accent)); }
|
|
.stage-connector-failed { background: var(--danger); }
|
|
.stage-connector-skipped { background: var(--border); opacity: .5; }
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { box-shadow: 0 0 0 0 rgba(60,130,246,.55); }
|
|
50% { box-shadow: 0 0 0 8px rgba(60,130,246,0); }
|
|
}
|