@intentius/behold 0.29.30 → 0.29.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web/kiosk.html CHANGED
@@ -19,6 +19,8 @@
19
19
  /* behold#571: the kiosk's surfaces and ink (theme.js kioskSurfaces), the kiosk's default theme's (KIOSK_THEME, Sea Shells) until initTheme() runs. */
20
20
  --surface-box: #101b22; --surface-pane-a: #152128; --surface-pane-b: #1b272e; --zebra: #deb88d; --soft: #deb88d; --muted-ink: #7c7365;
21
21
  --managed-ink: #0e7f9e; --foreign-ink: #fca02f; --pending-ink: #567b82; --degraded-ink: #d15123; --runtime-ink: #50a3b5;
22
+ /* behold#571: the left bars (theme.js barInks), Sea Shells' until initTheme() runs. */
23
+ --bar-managed: #258dac; --bar-foreign: #fca02f; --bar-pending: #5d8890; --bar-degraded: #da592c; --bar-runtime: #50a3b5; --bar-neutral: #8c8170;
22
24
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
23
25
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
24
26
  }
@@ -39,6 +41,30 @@
39
41
  #runs-side { overflow-y: auto; background: var(--surface-pane-b); border-radius: 6px 6px 0 0; }
40
42
  #runs-main { overflow: hidden; display: flex; flex-direction: column; min-height: 0; background: var(--surface-pane-a); border-radius: 6px 6px 0 0; }
41
43
  #k-runs-toggle { display: none; }
44
+ /*
45
+ * behold#571: the left bars. Every listed item (a run, a job, a step and
46
+ * its log, a wave card, a row of the hold panel, a job on the trace's
47
+ * strip) has a bar down its left edge, so the eye can part the items
48
+ * where the zebra barely shows. Its colour is its state's (theme.js
49
+ * barInks, 3:1 on every ground in every theme): running in the accent,
50
+ * held in the waiting amber, failed, applied; neutral where it has none.
51
+ * The selected item's bar, and a hover-linked one's, is twice as wide.
52
+ * The zebra stays: on a calm theme the bars part the items, and the
53
+ * zebra still guides the eye along a wide row.
54
+ */
55
+ /* Rows that touch get a bar inset 2px top and bottom, so two of one state still read as two. */
56
+ .r-run, .r-job, .r-step-line, .k-ap-row, .t-strip .t-row { position: relative; }
57
+ .r-run::before, .r-job::before, .r-step-line::before, .k-ap-row::before, .t-strip .t-row::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: var(--bar-w, 3px); border-radius: 0 2px 2px 0; background: var(--bar, var(--bar-neutral)); pointer-events: none; }
58
+ /* A log block scrolls, and a card stands apart already: their bar is an inset edge. */
59
+ .r-log, .k-metrics-wave, .k-metrics-dora { box-shadow: inset var(--bar-w, 3px) 0 0 var(--bar, var(--bar-neutral)); }
60
+ [data-k-tone="busy"] { --bar: var(--bar-pending); }
61
+ [data-k-tone="wait"] { --bar: var(--bar-foreign); }
62
+ [data-k-tone="ok"] { --bar: var(--bar-managed); }
63
+ [data-k-tone="bad"] { --bar: var(--bar-degraded); }
64
+ [data-k-tone="idle"] { --bar: var(--bar-neutral); }
65
+ .k-ap-lit { --bar: var(--bar-managed); }
66
+ .k-ap-going { --bar: var(--bar-foreign); }
67
+ .r-selected, .t-strip .t-row.t-sel, .r-open > .r-step-line, .r-open > .r-log { --bar-w: 6px; }
42
68
  .r-run:nth-child(even of .r-run), .r-job:nth-child(even of .r-job), .r-log-line:nth-child(even of .r-log-line) { background: var(--zebra-row); }
43
69
  /* behold#571: the panes step back from the lead block: quieter heads, lighter rules. */
44
70
  .r-side-head { padding: 0.7em 1em 0.4em; }
@@ -46,9 +72,9 @@
46
72
  .r-side-note { color: var(--muted); font-size: 0.82em; margin-top: 0.15em; }
47
73
  .r-runs { list-style: none; margin: 0; padding: 0 0 1em; }
48
74
  .r-group { font: 600 0.72em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0.7em 1em 0.25em; }
49
- .r-run { display: grid; grid-template-columns: 1.2em 1fr; gap: 0.6em; padding: 0.5em 1em; cursor: pointer; border-left: 3px solid transparent; }
75
+ .r-run { display: grid; grid-template-columns: 1.2em 1fr; gap: 0.6em; padding: 0.5em 1em; cursor: pointer; }
50
76
  .r-run:hover { background: color-mix(in srgb, var(--active) 50%, transparent); }
51
- .r-run.r-selected { background: var(--active); border-left-color: var(--focus); }
77
+ .r-run.r-selected { background: var(--active); }
52
78
  .r-run-title { font-weight: 600; line-height: 1.25; }
53
79
  .r-run-place { color: var(--muted); font-size: 0.85em; }
54
80
  .r-run-meta { display: flex; flex-wrap: wrap; gap: 0 0.7em; color: var(--muted); font-size: 0.8em; }
@@ -142,55 +168,59 @@
142
168
  #bar { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0.4em 0.7em; align-items: stretch;
143
169
  padding: 0.3em 0.6em 0.3em; background: var(--bg); }
144
170
  #bar > .k-empty, #bar > .k-replay, #bar > .k-nograph-note { grid-column: 1 / -1; }
145
- :root { --k-title-h: 1.82em; --k-beat-h: 3.25em; --k-step-h: 4.45em; --k-progress-h: 1.5em; --k-card-h: 3.3em; --k-facts-h: 1.2em; }
146
- /* Wide enough that the step's 200 characters, and Watch for with Shows, take two lines each: their boxes are two lines tall. */
147
- @media (min-width: 1700px) { :root { --k-step-h: 3.05em; --k-card-h: 2.3em; } }
148
- .k-lead { display: grid; grid-template-rows: var(--k-title-h) var(--k-beat-h) var(--k-step-h) var(--k-progress-h) var(--k-card-h) var(--k-facts-h) auto; gap: 0.16em; min-width: 0;
149
- padding: 0.25em 0.8em 0.3em; background: var(--surface-pane-b); border-radius: 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); }
171
+ /*
172
+ * behold#571: the lead block is a grid of labelled rows. A quiet line
173
+ * (the tool, the kicker, the scenario's progress) over the title, then
174
+ * one beat a row: what changes, the step, next, watch for, shows and the
175
+ * pull request's facts. Each label sits in a fixed column and the words
176
+ * in the next, at most 72ch wide, so a wrapped line hangs under the
177
+ * words and never under the label. Each row is a fixed box (it scrolls,
178
+ * with a fade, inside it) with a rail down its left: neutral, and the
179
+ * step's rail in the step's state colour (theme.js barInks).
180
+ */
181
+ :root { --k-label-w: 7.6rem; --k-title-h: 3.15em; --k-beat-h: 3em; --k-step-h: 4.45em; --k-next-h: 1.35em; --k-watch-h: 3.75em; --k-shows-h: 2.5em; --k-facts-h: 3.75em; }
182
+ .k-lead { display: grid; grid-template-rows: var(--k-title-h) var(--k-beat-h) var(--k-step-h) var(--k-next-h) var(--k-watch-h) var(--k-shows-h) var(--k-facts-h) auto; gap: 0.2em; min-width: 0;
183
+ padding: 0.25em 0.9em 0.35em; background: var(--surface-pane-b); border-radius: 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); }
150
184
  .k-box { min-height: 0; overflow-y: auto; scrollbar-width: thin; border-radius: 6px; padding: 0.1em 0.2em; }
151
185
  .k-box.k-more-below { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.3em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 1.3em), transparent); }
152
186
  .k-box.k-more-above { -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 1.3em), transparent); mask-image: linear-gradient(to top, #000 calc(100% - 1.3em), transparent); }
153
187
  .k-box.k-more-above.k-more-below { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 1.3em, #000 calc(100% - 1.3em), transparent); mask-image: linear-gradient(to bottom, transparent, #000 1.3em, #000 calc(100% - 1.3em), transparent); }
154
188
  .k-box-empty { background: transparent; box-shadow: none; }
155
- .k-box-title { overflow: hidden; padding: 0; }
156
- .k-kicker { font: 600 0.5em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 0.9em; vertical-align: 0.3em; white-space: nowrap; }
157
189
  .k-cycle { color: var(--muted); font: 0.78em var(--font-mono); white-space: nowrap; }
158
- .k-title { margin: 0; font-size: 1.5em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
159
- /* The two beats: the largest text after the title, each with its label first. */
160
- .k-beat, .k-intro { margin: 0; font-size: 1.32em; line-height: 1.22; color: var(--fg); }
161
- .k-step { margin: 0; font-size: 1.16em; line-height: 1.25; color: var(--fg); }
162
- .k-beat-text { font-weight: 600; }
163
- .k-box-beat { padding: 0 0.2em; }
164
- .k-beat-label, .k-step-word, .k-intro-head { font: 700 0.62em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 0.8em; vertical-align: 0.12em; white-space: nowrap; }
165
- .k-beat-label, .k-intro-head { color: var(--muted); }
166
- .k-step-word { color: var(--pending); }
167
- .k-box-step { border-left: 4px solid var(--pending); border-radius: 0 6px 6px 0; padding: 0.05em 0.2em 0.05em 0.65em; background: color-mix(in srgb, var(--pending) 7%, transparent); }
168
- .k-box-step:has(.k-step-waiting) { border-left-color: var(--foreign); }
169
- .k-box-step:has(.k-step-failed), .k-box-step:has(.k-step-stalled) { border-left-color: var(--degraded); }
170
- .k-box-step:has(.k-step-applied) { border-left-color: var(--managed); }
171
- .k-box-step:has(.k-step-reset) { border-left-color: var(--neutral); }
172
- /* The rest of the card, quieter. */
173
- .k-box-more { padding: 0 0.2em; }
174
- .k-about { margin: 0; font-size: 0.84em; line-height: 1.3; }
175
- .k-about-label { font: 600 0.74em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 0.6em; }
176
- .k-about-text { margin-right: 1.2em; color: color-mix(in srgb, var(--fg) 82%, var(--muted)); }
177
190
  .k-muted { color: var(--muted); margin: 0.25em 0; }
178
- /* The progress, with the step: the strip, the driver's next action, the cycle. */
179
- .k-progress { display: flex; flex-wrap: nowrap; gap: 0.3em 0.9em; align-items: center; min-width: 0; overflow: hidden; }
180
- .k-progress .k-strip { flex: none; }
181
- .k-progress .k-next { flex: 1; }
182
- .k-strip { list-style: none; display: flex; flex-wrap: nowrap; gap: 0.3em; padding: 0; margin: 0; }
183
191
  .k-stop { font: 0.78em var(--font-mono); padding: 0.18em 0.6em; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; }
184
192
  .k-done { color: var(--fg); border-color: var(--managed); }
185
193
  .k-current { color: var(--bg); background: var(--pending); border-color: var(--pending); font-weight: 600; }
186
194
  .k-failed { color: var(--bg); background: var(--degraded); border-color: var(--degraded); font-weight: 600; }
187
- .k-next { display: flex; gap: 0.3em 0.6em; align-items: baseline; font-size: 0.95em; min-width: 0; white-space: nowrap; }
188
- .k-next-word { font: 600 0.72em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
189
- .k-action { font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
190
195
  .k-when { color: var(--foreign); font-family: var(--font-mono); }
191
- /* The pull request's facts, one line; the whole line is its title. */
192
- .k-box-facts { overflow: hidden; padding: 0 0.2em; }
193
- .k-facts { margin: 0; font-size: 0.86em; line-height: 1.4; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
196
+ .k-box-title { overflow: hidden; padding: 0; }
197
+ .k-overline { display: flex; align-items: center; gap: 0.3em 0.9em; min-width: 0; height: 1.4em; overflow: hidden; }
198
+ .k-overline .k-brand { margin: 0; font-size: 0.9em; }
199
+ .k-kicker { font: 600 0.5em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 0.9em; vertical-align: 0.3em; white-space: nowrap; }
200
+ .k-overline .k-kicker { font-size: 0.68em; margin: 0; vertical-align: 0; }
201
+ .k-overline .k-strip { margin-left: auto; }
202
+ .k-strip { list-style: none; display: flex; flex-wrap: nowrap; gap: 0.3em; padding: 0; margin: 0; }
203
+ .k-overline .k-stop { font-size: 0.7em; }
204
+ .k-title { margin: 0; font-size: 1.45em; line-height: 1.15; text-wrap: balance; overflow: hidden; }
205
+ .k-row { display: grid; grid-template-columns: var(--k-label-w) minmax(0, 1fr); column-gap: 0.8em; min-height: 0; padding-left: 0.75em; box-shadow: inset 3px 0 0 var(--bar, var(--bar-neutral)); }
206
+ .k-row-empty { box-shadow: none; }
207
+ .k-row-label { font: 600 0.66em/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 0.5em; overflow-wrap: normal; }
208
+ .k-row-box { padding: 0 0.2em 0 0; border-radius: 0; }
209
+ .k-row-box > p { margin: 0; max-width: 72ch; text-wrap: pretty; overflow-wrap: normal; }
210
+ /* What changes and the step, at the same strong size; the step's rail colour is what sets it apart. */
211
+ .k-beat, .k-step, .k-intro { font-size: 1.12em; line-height: 1.3; font-weight: 500; color: var(--fg); }
212
+ .k-row-step { box-shadow: inset 5px 0 0 var(--bar, var(--bar-neutral)); }
213
+ .k-row-step .k-row-label { color: var(--bar, var(--muted)); }
214
+ /* Next, watch for and shows: smaller, quieter. */
215
+ .k-next, .k-about { font-size: 0.9em; line-height: 1.35; color: color-mix(in srgb, var(--fg) 82%, var(--muted)); }
216
+ .k-row-next .k-row-label, .k-row-more .k-row-label { padding-top: 0.3em; }
217
+ .k-action { font-family: var(--font-mono); color: var(--fg); }
218
+ .k-when { color: var(--foreign); font-family: var(--font-mono); }
219
+ .k-next-by { color: var(--muted); }
220
+ /* The pull request's facts, smallest: each part a chip that wraps whole, never cut off. */
221
+ .k-row-facts .k-row-label { padding-top: 0.25em; }
222
+ .k-row-box > p.k-facts { display: flex; flex-wrap: wrap; gap: 0 0.5em; max-width: none; font-size: 0.84em; line-height: 1.45; color: var(--fg); }
223
+ .k-fact:not(:last-child)::after { content: "\00B7"; color: var(--muted); margin-left: 0.5em; }
194
224
  .k-credits { margin: 0; color: var(--muted); font-size: 0.78em; line-height: 1.35; }
195
225
  /* behold#571: the hold panel, lit in the waiting tone its job row and its wave box carry. */
196
226
  .k-right { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0.3em; min-width: 0; min-height: 0; contain: size; }
@@ -198,14 +228,14 @@
198
228
  .k-box-hold { padding: 0.5em 0.9em 0.6em; }
199
229
  .k-hold { background: var(--surface-box); border-radius: 8px; }
200
230
  .k-hold-head { margin: 0 0 0.3em; font: 700 0.95em var(--font-mono); color: var(--fg); }
201
- .k-hold-wave { background: color-mix(in srgb, var(--foreign) 7%, var(--surface-box)); box-shadow: inset 4px 0 0 var(--foreign); padding-left: 1.2em; }
231
+ .k-hold-wave { background: color-mix(in srgb, var(--foreign) 7%, var(--surface-box)); box-shadow: inset 6px 0 0 var(--bar-foreign); padding-left: 1.2em; }
202
232
  .k-hold-wave .k-hold-head { color: var(--foreign); }
203
233
  .k-hold > .k-note { margin-top: 0.2em; }
204
234
  /* behold#571: "How this hold ends": four rows that light from the records. */
205
235
  .k-ap-head { font: 600 0.7em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 0.1em; }
206
236
  .k-ap-head .k-ap-plan { text-transform: none; letter-spacing: 0; color: var(--fg); font-weight: 400; }
207
237
  .k-ap-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.05em; }
208
- .k-ap-row { display: grid; grid-template-columns: 1em 6.4em minmax(0, 1fr); gap: 0 0.35em; align-items: baseline; font-size: 0.84em; line-height: 1.28; }
238
+ .k-ap-row { display: grid; grid-template-columns: 1em 6.4em minmax(0, 1fr); gap: 0 0.35em; align-items: baseline; font-size: 0.84em; line-height: 1.28; padding: 0.12em 0 0.12em 0.7em; }
209
239
  .k-ap-mark { width: 0.75em; height: 0.75em; border-radius: 50%; border: 2px solid var(--muted); display: inline-block; align-self: start; margin-top: 0.25em; }
210
240
  .k-ap-lit .k-ap-mark { background: var(--managed); border-color: var(--managed); }
211
241
  .k-ap-going .k-ap-mark { border-color: var(--foreign); background: linear-gradient(90deg, var(--foreign) 50%, transparent 50%); }
@@ -298,13 +328,14 @@
298
328
  .k-left > * + *, .k-right > * + * { margin-top: 0.4em; }
299
329
  .k-box { height: auto; max-height: none; overflow: visible; -webkit-mask-image: none !important; mask-image: none !important; }
300
330
  .k-box-empty { display: none; }
301
- .k-title { white-space: normal; font-size: 1.4em; }
302
- .k-progress { flex-wrap: wrap; overflow: visible; }
303
- .k-progress .k-strip { flex: 1 1 100%; }
331
+ .k-title { font-size: 1.4em; }
332
+ .k-overline { flex-wrap: wrap; height: auto; overflow: visible; }
333
+ .k-overline .k-strip { margin-left: 0; flex: 1 1 100%; }
334
+ .k-row { grid-template-columns: minmax(0, 1fr); row-gap: 0.1em; padding: 0.1em 0 0.1em 0.75em; }
335
+ .k-row-empty { display: none; }
336
+ .k-row-label { padding-top: 0; }
304
337
  #views { flex-wrap: wrap; gap: 0.3em 0.9em; }
305
338
  .k-strip { flex-wrap: wrap; }
306
- .k-next { white-space: normal; flex-wrap: wrap; }
307
- .k-facts { white-space: normal; }
308
339
  .k-right > .k-cycle { padding: 0; }
309
340
  #k-read { padding: 0.2em 16px; }
310
341
  .k-read-head { position: static; }
@@ -330,11 +361,142 @@
330
361
  .r-log-line { grid-template-columns: 2.4em 1fr; gap: 0.5em; }
331
362
  .r-ann-note { grid-column: 1 / -1; }
332
363
  }
364
+
365
+ /*
366
+ * behold#571: Watch, the default. The Components graph fills the stage,
367
+ * and the rest rides on it: the caption along the bottom, the approval
368
+ * a callout on the held wave's box, the running job's log a drawer from
369
+ * the active wave's box, each wave's numbers a badge on its box, the
370
+ * result a card at the end. The header is one quiet line. Inspect is
371
+ * the layout above, one click away.
372
+ */
373
+ .k-modes { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
374
+ .k-mode { font: 600 0.95em var(--font-ui); color: var(--muted); background: transparent; border: 0; padding: 0.25em 0.9em; cursor: pointer; }
375
+ .k-mode + .k-mode { border-left: 1px solid var(--rule); }
376
+ .k-mode:hover { color: var(--fg); }
377
+ .k-mode-on, .k-mode-on:hover { color: var(--bg); background: var(--pending); }
378
+ #k-watch { display: none; }
379
+ body.k-watch #k-watch { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 6; }
380
+ body.k-watch #k-watch > * { pointer-events: auto; }
381
+ body.k-watch { grid-template-columns: minmax(0, 1fr); }
382
+ body.k-watch #stage { display: block; position: relative; padding: 0 5px 5px; }
383
+ body.k-watch #runs-side, body.k-watch #k-metrics, body.k-watch #k-runs-toggle, body.k-watch #views, body.k-watch #k-read { display: none !important; }
384
+ body.k-watch #view-pane { position: absolute; inset: 0 5px 5px; border-radius: 8px; overflow: hidden; background: var(--bg); }
385
+ body.k-watch #view { height: 100%; }
386
+ /* The header, one line: the scenario's place, the steps, the delivery numbers. */
387
+ body.k-watch #bar { display: flex; align-items: center; gap: 0.5em 1.2em; min-height: 2.6em; padding: 0.35em 1em; padding-right: 24em; }
388
+ .k-w-place { display: flex; align-items: baseline; gap: 0.7em; flex: none; white-space: nowrap; }
389
+ body.k-watch #bar .k-strip { flex: none; }
390
+ .k-w-place .k-brand { margin: 0; }
391
+ .k-w-kicker { font: 600 0.78em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
392
+ .k-w-dora { margin-left: auto; color: var(--muted); font-size: 0.88em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
393
+ .k-w-dora b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
394
+ .k-w-held { color: var(--foreign); font-size: 0.85em; white-space: nowrap; }
395
+ .k-w-held button { font: inherit; color: var(--pending); background: transparent; border: 0; padding: 0 0 0 0.4em; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
396
+ /* The caption: the title, what changes, the step. One of the two beats leads. */
397
+ #k-caption { position: absolute; left: 5px; right: 5px; bottom: 5px; display: grid; grid-template-rows: auto calc(2 * 1.25em * 1.3) calc(2 * 1.25em * 1.3); gap: 0.25em; padding: 0.7em 1.4em 0.8em;
398
+ background: var(--surface-pane-b); border-top: 1px solid var(--rule); border-radius: 0 0 8px 8px; box-shadow: 0 -10px 30px color-mix(in srgb, var(--bg) 70%, transparent); }
399
+ .k-cap-top { display: flex; align-items: baseline; gap: 0.8em; min-width: 0; }
400
+ .k-cap-title { margin: 0; font-size: 1.55em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
401
+ .k-cap-title .k-brand { vertical-align: 0; }
402
+ .k-cap-next { margin-left: auto; color: var(--muted); font-size: 0.92em; white-space: nowrap; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
403
+ .k-cap-next .k-action { font-family: var(--font-mono); color: var(--fg); }
404
+ /* behold#571: the caption's beats are the lead block's rows: the label in a fixed column, the words beside it (two lines, at most 72ch), a rail down the left; only the step's rail takes its state's colour (theme.js barInks). */
405
+ .k-cap-row { margin: 0; display: grid; grid-template-columns: var(--k-label-w) minmax(0, 1fr); column-gap: 0.8em; align-items: start; align-self: stretch; padding-left: 0.75em; line-height: 1.25; font-size: 1em; color: color-mix(in srgb, var(--fg) 78%, var(--muted)); box-shadow: inset 3px 0 0 var(--bar, var(--bar-neutral)); }
406
+ .k-cap-row:empty { box-shadow: none; }
407
+ .k-cap-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 72ch; text-wrap: pretty; }
408
+ .k-cap-label { font: 600 0.66rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 0.35em; }
409
+ .k-cap-step { --bar: var(--bar-pending); box-shadow: inset 5px 0 0 var(--bar); }
410
+ .k-cap-step .k-cap-label { color: var(--bar); }
411
+ .k-cap-step.k-tone-wait { --bar: var(--bar-foreign); }
412
+ .k-cap-step.k-tone-bad { --bar: var(--bar-degraded); }
413
+ .k-cap-step.k-tone-ok { --bar: var(--bar-managed); }
414
+ .k-cap-step.k-tone-idle { --bar: var(--bar-neutral); }
415
+ /* The beat that leads is larger and full ink; the other steps back. Both keep their rows, so nothing moves. */
416
+ .k-cap-lead { font-size: 1.3em; color: var(--fg); font-weight: 600; }
417
+ .k-cap-lead .k-cap-label { padding-top: 0.6em; }
418
+ /* The approval, on the held wave's box. */
419
+ .k-over { position: absolute; left: 0; top: 0; visibility: hidden; }
420
+ .k-over.k-placed { visibility: visible; }
421
+ @media (prefers-reduced-motion: no-preference) { .k-over.k-placed { transition: opacity 0.4s; } }
422
+ #k-callout { width: min(30em, 40vw); padding: 0.8em 1em 0.9em; background: color-mix(in srgb, var(--foreign) 6%, var(--surface-box)); border: 2px solid var(--bar-foreign); border-radius: 10px;
423
+ box-shadow: 0 10px 34px color-mix(in srgb, var(--shadow) 75%, transparent), 0 0 0 6px color-mix(in srgb, var(--foreign) 12%, transparent); }
424
+ .k-call-word { margin: 0; font: 700 0.72em var(--font-mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--foreign); }
425
+ .k-call-head { margin: 0.15em 0 0.1em; font: 700 1.15em var(--font-mono); color: var(--fg); }
426
+ .k-call-nums { margin: 0 0 0.45em; color: var(--muted); font-size: 0.88em; }
427
+ #k-callout .k-ap-row { font-size: 0.92em; }
428
+ #k-callout .k-approve-gloss { font-size: 1em; }
429
+ .k-notch { position: absolute; width: 14px; height: 14px; background: inherit; border: inherit; transform: rotate(45deg); top: 1.4em; }
430
+ .k-side-right > .k-notch { left: -9px; border-top: 0; border-right: 0; }
431
+ .k-side-left > .k-notch { right: -9px; border-bottom: 0; border-left: 0; }
432
+ .k-side-below > .k-notch { display: none; }
433
+ /* The running job's log, a drawer from the active wave's box: folded to its last lines, open on a hover or a click. */
434
+ #k-drawer { width: min(34em, 46vw); background: var(--surface-pane-a); border: 2px solid color-mix(in srgb, var(--pending) 80%, var(--fg)); border-radius: 10px; box-shadow: 0 10px 34px color-mix(in srgb, var(--shadow) 75%, transparent); display: flex; flex-direction: column; }
435
+ .k-drawer-head { display: flex; align-items: center; gap: 0.55em; width: 100%; padding: 0.55em 0.9em 0.35em; background: transparent; border: 0; color: var(--fg); cursor: pointer; text-align: left; font: inherit; }
436
+ .k-drawer-head .r-icon { margin: 0; }
437
+ .k-drawer-job { font: 700 1em var(--font-mono); }
438
+ .k-drawer-nums { color: var(--muted); font-size: 0.85em; }
439
+ .k-drawer-more { margin-left: auto; color: var(--pending); font-size: 0.82em; white-space: nowrap; }
440
+ .k-drawer-tail { margin: 0 0.7em 0.7em; padding: 0.45em 0.7em; background: var(--well); border-radius: 6px; font: 0.86em/1.45 var(--font-mono); min-height: calc(2 * 1.45em + 0.9em); }
441
+ .k-drawer-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
442
+ .k-drawer-line:last-child { color: var(--fg); }
443
+ .k-drawer-line.k-drawer-quiet { color: var(--muted); font-family: var(--font-ui); }
444
+ .k-drawer-line:not(:last-child) { color: var(--muted); }
445
+ .k-drawer-body { display: none; min-height: 0; }
446
+ #k-drawer.k-open .k-drawer-tail { display: none; }
447
+ #k-drawer.k-open .k-drawer-body { display: flex; flex-direction: column; height: min(62vh, 40em); border-top: 1px solid var(--rule); overflow: hidden; border-radius: 0 0 10px 10px; }
448
+ #k-drawer.k-open .k-drawer-body #runs-main { flex: 1; border-radius: 0; }
449
+ /* behold#571: where the job's trace waterfall mounts (OpenTelemetry traces), once that pane is built. Empty, it takes no room. */
450
+ #k-traces:empty { display: none; }
451
+ #k-traces { border-top: 1px solid var(--rule); max-height: 30vh; overflow: auto; }
452
+ #k-drawer:not(.k-open) #k-traces { display: none; }
453
+ #k-drawer.k-open:has(#k-traces:not(:empty)) .k-drawer-body { height: min(40vh, 26em); border-radius: 0; }
454
+ #k-drawer.k-open #k-traces { border-radius: 0 0 10px 10px; padding-bottom: 0.4em; }
455
+ /* Each wave's numbers, on its box. */
456
+ .k-badge { position: absolute; left: 0; top: 0; padding: 0.15em 0.65em; border-radius: 999px; background: var(--surface-box); border: 1px solid var(--rule); color: var(--fg); font-size: 0.86em; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; visibility: hidden; }
457
+ .k-badge.k-placed { visibility: visible; }
458
+ /* The result, at the end of the run. */
459
+ #k-result { width: min(30em, 36vw); padding: 0.9em 1.2em 1em; background: color-mix(in srgb, var(--managed) 8%, var(--surface-box)); border: 2px solid var(--bar-managed); border-radius: 12px;
460
+ box-shadow: 0 10px 34px color-mix(in srgb, var(--shadow) 75%, transparent), 0 0 0 6px color-mix(in srgb, var(--managed) 12%, transparent); }
461
+ #k-result[hidden], #k-callout[hidden], #k-drawer[hidden] { display: none; }
462
+ .k-result-head { margin: 0 0 0.2em; font: 700 1.5em var(--font-ui); color: var(--managed); }
463
+ .k-result-line { margin: 0 0 0.6em; font-size: 1.12em; line-height: 1.35; color: var(--fg); }
464
+ .k-result-counts { list-style: none; margin: 0 0 0.6em; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35em 0.5em; }
465
+ .k-result-counts li { padding: 0.15em 0.65em; border-radius: 999px; background: var(--surface-box); border: 1px solid var(--rule); font-size: 0.95em; font-variant-numeric: tabular-nums; }
466
+ .k-result-counts li:first-child { border-color: var(--managed); font-weight: 600; }
467
+ .k-result-waves { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2em 0.9em; margin: 0; padding-top: 0.5em; border-top: 1px solid var(--rule); }
468
+ .k-result-waves dt { font: 600 0.9em var(--font-mono); color: var(--muted); }
469
+ .k-result-waves dd { margin: 0; font-variant-numeric: tabular-nums; }
470
+ @media (max-width: 900px) and (min-width: 601px) { body.k-watch #bar { padding-right: 1em; flex-wrap: wrap; } body.k-watch #k-head { display: flex; flex-direction: column-reverse; } body.k-watch #k-tools { position: static; justify-content: flex-end; padding: 0.4em 1em 0; } }
471
+ .k-w-dora-foot { display: none; }
472
+ /* A phone: a short header, the graph, then the step and the approval under it; the rest stacks below, in the page's flow. */
473
+ @media (max-width: 600px) {
474
+ body.k-watch #bar { display: flex; flex-wrap: wrap; gap: 0.2em 0.8em; padding: 0.3em 16px 0.4em; min-height: 0; }
475
+ body.k-watch #bar .k-strip, body.k-watch #bar .k-w-dora { display: none; }
476
+ body.k-watch #stage { display: flex; flex-direction: column; padding: 0; }
477
+ body.k-watch #view-pane { position: relative; inset: auto; order: 1; height: 40vh; border-radius: 0; }
478
+ body.k-watch #k-watch { position: static; display: flex; flex-direction: column; order: 2; pointer-events: auto; gap: 0.6em; padding: 0 0 1.2em; }
479
+ body.k-watch #k-caption { position: static; order: 1; display: flex; flex-direction: column; gap: 0.35em; border-radius: 0; box-shadow: none; padding: 0.6em 16px 0.7em; }
480
+ .k-cap-top { order: 1; flex-wrap: wrap; }
481
+ .k-cap-step { order: 2; } .k-cap-changes { order: 3; }
482
+ .k-cap-title { white-space: normal; font-size: 1.12em; }
483
+ .k-cap-title .k-kicker { display: block; margin-bottom: 0.1em; }
484
+ .k-cap-next { display: none; }
485
+ .k-cap-row { grid-template-columns: minmax(0, 1fr); row-gap: 0.1em; } .k-cap-text { -webkit-line-clamp: unset; display: block; } .k-cap-label { padding-top: 0; }
486
+ .k-cap-lead { font-size: 1.12em; }
487
+ .k-over, #k-result { position: static; visibility: visible; width: auto; margin: 0 16px; max-height: none; transform: none !important; }
488
+ #k-callout, #k-drawer, #k-result { width: auto; }
489
+ #k-callout { order: 2; padding: 0.6em 0.8em; } #k-drawer { order: 3; } #k-result { order: 4; }
490
+ #k-callout .k-ap-row { grid-template-columns: 1em 5.4em minmax(0, 1fr); }
491
+ .k-notch, .k-badge { display: none; }
492
+ .k-w-dora-foot { display: block; order: 5; margin: 0 16px; color: var(--muted); font-size: 0.9em; }
493
+ }
333
494
  </style>
334
495
  </head>
335
496
  <body>
336
497
  <div id="k-head">
337
498
  <div id="k-tools">
499
+ <div id="k-mode" class="k-modes" role="group" aria-label="Layout"></div>
338
500
  <button type="button" class="k-what" aria-expanded="false" aria-controls="k-what-pop">What is this?</button>
339
501
  <details class="k-menu"><summary>Theme</summary><div class="k-menu-body" id="k-theme"></div></details>
340
502
  <div id="k-what-pop" role="dialog" aria-label="What is this?" hidden></div>
@@ -351,6 +513,20 @@
351
513
  <section id="k-read" aria-label="How to read this" hidden></section>
352
514
  <iframe id="view" title="behold's view of the change"></iframe>
353
515
  </section>
516
+ <!-- behold#571: Watch mode's overlays, over the graph; web/kiosk-watch.js says what each holds and where it goes. -->
517
+ <div id="k-watch">
518
+ <div id="k-badges" aria-hidden="true"></div>
519
+ <aside id="k-callout" class="k-over" aria-label="The approval" hidden></aside>
520
+ <section id="k-drawer" class="k-over" aria-label="The running job's log" hidden>
521
+ <button type="button" class="k-drawer-head" aria-expanded="false"></button>
522
+ <div class="k-drawer-tail"></div>
523
+ <div class="k-drawer-body"></div>
524
+ <!-- behold#571: the mount point for the job's trace waterfall (OpenTelemetry traces); empty until that pane mounts here. -->
525
+ <div id="k-traces" data-k-mount="traces"></div>
526
+ </section>
527
+ <aside id="k-result" class="k-over" aria-label="The result" hidden></aside>
528
+ <footer id="k-caption" aria-live="polite"></footer>
529
+ </div>
354
530
  </div>
355
531
  <script type="module">
356
532
  import { initTheme, KIOSK_THEME } from "/theme.js";
@@ -358,15 +534,16 @@
358
534
  import { pageTool } from "/kiosk-vendor.js";
359
535
  initTheme(KIOSK_THEME);
360
536
  // behold#571: /<tool> serves this page with its tool in a meta tag; /kiosk has none.
361
- startKiosk(
537
+ const kiosk = startKiosk(
362
538
  {
363
539
  bar: document.getElementById("bar"), frame: document.getElementById("view"), read: document.getElementById("k-read"), side: document.getElementById("runs-side"), main: document.getElementById("runs-main"), views: document.getElementById("views"),
364
- tools: { what: document.querySelector(".k-what"), pop: document.getElementById("k-what-pop"), theme: document.getElementById("k-theme"), runsToggle: document.getElementById("k-runs-toggle") },
540
+ tools: { what: document.querySelector(".k-what"), pop: document.getElementById("k-what-pop"), theme: document.getElementById("k-theme"), runsToggle: document.getElementById("k-runs-toggle"), mode: document.getElementById("k-mode") },
541
+ watch: { layer: document.getElementById("k-watch"), caption: document.getElementById("k-caption"), callout: document.getElementById("k-callout"), drawer: document.getElementById("k-drawer"), badges: document.getElementById("k-badges"), result: document.getElementById("k-result") },
365
542
  },
366
543
  { tool: pageTool(document) },
367
544
  );
368
- // behold#571: the repo's numbers from Prometheus, a pane of its own (web/kiosk-metrics.js).
369
- import("/kiosk-metrics.js").then((m) => m.startMetrics(document.getElementById("k-metrics"), { tool: pageTool(document) }));
545
+ // behold#571: the repo's numbers from Prometheus, a pane of its own in Inspect (web/kiosk-metrics.js), and Watch's badges and delivery line.
546
+ import("/kiosk-metrics.js").then((m) => m.startMetrics(document.getElementById("k-metrics"), { tool: pageTool(document), onModel: (model) => kiosk.setMetrics(model) }));
370
547
  </script>
371
548
  </body>
372
549
  </html>