434 lines
16 KiB
CSS
434 lines
16 KiB
CSS
/* ---------------------------------------------------------------------------
|
|
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;
|
|
min-width: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.run-toolbar {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.run-toolbar .spacer { flex: 1; }
|
|
.run-applied-filters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
padding: 0 12px 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.run-applied-filters .run-filter-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
border-color: var(--accent);
|
|
color: var(--color-text);
|
|
padding: 4px 10px;
|
|
font-size: 12px;
|
|
}
|
|
.run-filter-chip > span:first-child { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; }
|
|
.run-filter-chip > span:last-child { flex: none; }
|
|
@media (max-width: 599px) {
|
|
.run-toolbar { flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
|
|
.run-applied-filters .run-filter-chip { min-height: 44px; }
|
|
}
|
|
.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: var(--radius-card);
|
|
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: var(--radius-control);
|
|
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: var(--radius-control);
|
|
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 (shell.css gives it its height); the
|
|
day headers stick to its top. */
|
|
.run-scroll {
|
|
min-height: 0;
|
|
align-content: start;
|
|
}
|
|
|
|
.metrics {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
padding: 8px 12px;
|
|
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: 4px 12px;
|
|
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: 8px 12px; width: 100%; min-width: 0; box-sizing: border-box; }
|
|
.run-row-head { display: flex; align-items: center; gap: 8px; }
|
|
/* The pipeline name leads the row; the stored task title is its second line. */
|
|
.run-row-head .run-row-pipeline-name {
|
|
min-width: 0;
|
|
color: var(--color-text);
|
|
font-weight: var(--weight-semibold);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.run-row-title {
|
|
display: block;
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
color: var(--color-text);
|
|
font-weight: 500;
|
|
}
|
|
.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: 8px 12px 0; }
|
|
.pane-head .pane-title { margin: 0; font-size: 16px; }
|
|
/* The destination is already named by the rail/dock; the list header is now an
|
|
action strip, not a second title block. */
|
|
.pane-head-compact {
|
|
min-height: 44px;
|
|
padding: 6px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.pane-head-compact .pane-head-actions { margin-left: auto; }
|
|
|
|
.gallery { padding-bottom: 8px; }
|
|
.cards { display: grid; gap: var(--space-xs); padding: var(--space-s); align-content: start; }
|
|
.card {
|
|
display: block;
|
|
width: 100%;
|
|
text-align: left;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-card);
|
|
background: var(--surface-2);
|
|
padding: 8px 12px;
|
|
}
|
|
.card:hover { border-color: var(--color-border-strong); background: var(--color-elevated); }
|
|
.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; }
|
|
|
|
.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: var(--radius-card); 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: var(--radius-control); 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: collapsible sections, source block. */
|
|
.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: var(--radius-control); 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: var(--radius-control); padding: 6px 10px; }
|
|
.version-title { font-weight: 600; }
|
|
|
|
.source-code { margin: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px; overflow: auto; }
|
|
.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; }
|
|
|
|
|
|
/* One coloured status glyph in list rows, with the word in its tooltip. */
|
|
.status-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
border-radius: 50%;
|
|
}
|
|
.status-icon svg { width: 14px; height: 14px; }
|
|
.status-icon.status-succeeded { color: var(--ok); }
|
|
.status-icon.status-failed { color: var(--bad); }
|
|
.status-icon.status-running { color: var(--accent); }
|
|
.status-icon.status-running svg { animation: spin 0.9s linear infinite; }
|
|
.status-icon.status-canceled { color: var(--muted); }
|
|
.status-icon.status-interrupted { color: var(--warn); }
|
|
.status-icon.status-waiting,
|
|
.status-icon.status-queued { color: var(--muted); }
|
|
|
|
/* The run row's version sits at the far right of its title line. */
|
|
.run-row-head .version-chip { margin-left: auto; }
|
|
|
|
/* Collapsible rail and list panes: one icon each, with the same information
|
|
grammar as the full surfaces when there is room for it. */
|
|
.shell-collapse {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
padding: 0;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-control);
|
|
background: transparent;
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
.shell-collapse:hover { color: var(--color-text); border-color: var(--color-border); }
|
|
.list-collapse { flex: 0 0 auto; }
|
|
.app-rail { position: relative; }
|
|
.rail-collapse { position: absolute; top: 6px; right: 6px; z-index: 2; }
|
|
.app-rail.collapsed { flex: 0 0 64px; width: 64px; align-items: center; }
|
|
.app-rail.collapsed .rail-brand span,
|
|
.app-rail.collapsed .rail-label,
|
|
.app-rail.collapsed .rail-search span,
|
|
.app-rail.collapsed .rail-heading,
|
|
.app-rail.collapsed .rail-sections,
|
|
.app-rail.collapsed .rail-divider,
|
|
.app-rail.collapsed .shell-status-label { display: none; }
|
|
.app-rail.collapsed .rail-brand { justify-content: center; padding-left: 0; padding-right: 0; }
|
|
.app-rail.collapsed .rail-tab,
|
|
.app-rail.collapsed .rail-search { justify-content: center; width: 40px; padding: 0; gap: 0; }
|
|
.app-rail.collapsed .rail-destinations { align-items: center; }
|
|
.app-rail.collapsed .rail-footer { width: 100%; }
|
|
.pipeline-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
.pipeline-glyph { flex: none; width: 18px; height: 18px; color: var(--muted); }
|
|
|
|
.pane-layout.list-collapsed { grid-template-columns: 64px minmax(0, 1fr); }
|
|
.list-collapsed .list-pane .pane-head { padding: 6px; justify-content: center; }
|
|
.list-collapsed .list-pane .pane-head-text,
|
|
.list-collapsed .list-pane .pane-head-actions > *:not(.list-collapse) { display: none; }
|
|
.list-collapsed .list-pane .pane-head-actions { margin: 0; }
|
|
.list-collapsed .list-pane .list,
|
|
.list-collapsed .list-pane .list-scroll { padding-left: 2px; padding-right: 2px; }
|
|
.list-collapsed .list-pane .run-toolbar,
|
|
.list-collapsed .list-pane .list-controls,
|
|
.list-collapsed .list-pane .chat-toolbar,
|
|
.list-collapsed .list-pane .list-toolbar { display: none; }
|
|
/* Run rows: a single status glyph. */
|
|
.list-collapsed .run-row > *:not(.run-row-head) { display: none; }
|
|
.list-collapsed .run-row .run-row-head > *:not(.status-icon) { display: none; }
|
|
.list-collapsed .run-row .run-row-head { justify-content: center; }
|
|
/* Pipeline rows: a single pipeline glyph. */
|
|
.list-collapsed #pipelineRows .row > *:not(.pipeline-head) { display: none; }
|
|
.list-collapsed #pipelineRows .pipeline-head .row-title { display: none; }
|
|
.list-collapsed #pipelineRows .pipeline-head { justify-content: center; }
|
|
/* Chat rows: the status word only. */
|
|
.list-collapsed .chat-row .row-title,
|
|
.list-collapsed .chat-row .row-meta,
|
|
.list-collapsed .chat-row .chat-star,
|
|
.list-collapsed .chat-row .chat-menu-button,
|
|
.list-collapsed .chat-row .chat-row-actions,
|
|
.list-collapsed .chat-group-header,
|
|
.list-collapsed .chat-group-toggle { display: none; }
|
|
.list-collapsed .chat-row .row-head { justify-content: center; }
|
|
.list-collapsed .chat-row .chat-session-button { grid-row: auto; }
|
|
.list-collapsed .chat-row .chat-activity { font-size: 10px; }
|
|
.list-collapsed .list-pane .day-header { display: none; }
|
|
|
|
/* The list-row shape cue: the pipeline's route at a glance, without labels. */
|
|
.pipeline-mini {
|
|
display: block;
|
|
width: min(210px, 56%);
|
|
height: 22px;
|
|
/* A shape cue at the row's trailing edge, not a full-width block. */
|
|
margin: 3px 6px 1px auto;
|
|
color: var(--color-muted);
|
|
}
|
|
.pipeline-mini-graph { display: block; width: 100%; height: 100%; overflow: visible; }
|
|
.pipeline-mini-edge {
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 1.2;
|
|
opacity: 0.5;
|
|
vector-effect: non-scaling-stroke;
|
|
}
|
|
.pipeline-mini-node { fill: currentColor; opacity: 0.55; }
|
|
.run-mini .pipeline-mini-node { opacity: 0.85; }
|
|
.run-mini .pipeline-mini-edge { opacity: 0.8; }
|
|
.run-mini .mini-untaken { color: var(--muted); opacity: 0.4; stroke-dasharray: 2 2; }
|
|
.run-mini .pipeline-mini-node.mini-untaken { fill: none; stroke: currentColor; stroke-width: 1; }
|
|
.row.selected .pipeline-mini { color: var(--color-accent); }
|
|
.row:hover .pipeline-mini { color: var(--color-text); }
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.pipeline-mini { transition: color 120ms ease-out; }
|
|
}
|