@intentius/behold 0.29.47 → 0.29.48
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/dist/cli.js +13 -10
- package/package.json +1 -1
- package/web/app.js +22 -0
- package/web/event-help-modal.js +13 -3
- package/web/kiosk-annotations.js +2 -2
- package/web/kiosk-event-help-ui.js +46 -9
- package/web/kiosk-event-help.js +6 -3
- package/web/kiosk-metrics.js +39 -8
- package/web/kiosk-metrics.test.js +36 -1
- package/web/kiosk-modal-sticky.test.js +27 -3
- package/web/kiosk-result.test.js +36 -0
- package/web/kiosk-runs.js +12 -0
- package/web/kiosk-story-gate.test.js +22 -1
- package/web/kiosk-trace.js +84 -21
- package/web/kiosk-trace.test.js +56 -10
- package/web/kiosk-track.js +58 -8
- package/web/kiosk-track.test.js +46 -1
- package/web/kiosk-watch.js +3 -1
- package/web/kiosk-watch.test.js +2 -0
- package/web/kiosk-wave-list.js +130 -0
- package/web/kiosk-wave-list.test.js +103 -0
- package/web/kiosk.html +78 -10
- package/web/kiosk.js +202 -46
- package/web/kiosk.test.js +112 -2
- package/web/small-stage.test.js +8 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { drawWaveList, waveHead, waveListKey, waveListOf } from "./kiosk-wave-list.js";
|
|
3
|
+
|
|
4
|
+
// behold#776: the fan-out's marks as componentMarks has them when cluster-a fails in wave 2.
|
|
5
|
+
const card = (root, wave, state, tone, words, facts = []) => ({ root, wave, state, tone, words, short: state, facts });
|
|
6
|
+
const marks = {
|
|
7
|
+
cards: {
|
|
8
|
+
network: card("network", 1, "applied", "ok", "applied"),
|
|
9
|
+
"cluster-b": card("cluster-b", 2, "applied", "ok", "applied"),
|
|
10
|
+
"cluster-a": card("cluster-a", 2, "failed", "bad", "failed: queue name lacks .fifo"),
|
|
11
|
+
"app-02": card("app-02", 3, "blocked", "wait", "blocked by cluster-a"),
|
|
12
|
+
"app-01": card("app-01", 3, "blocked", "wait", "blocked by cluster-a", ["plans 1 create"]),
|
|
13
|
+
},
|
|
14
|
+
waves: {
|
|
15
|
+
1: { number: 1, state: "applied", tone: "ok", status: { words: "succeeded" } },
|
|
16
|
+
2: { number: 2, state: "failed", tone: "bad", status: { words: "1 failed, 1 applied" } },
|
|
17
|
+
3: { number: 3, state: "blocked", tone: "weird" },
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
describe("a phone's Watch as a list of waves and roots (behold#776)", () => {
|
|
22
|
+
it("lists the waves in the order they apply, each with its words and its roots by name", () => {
|
|
23
|
+
const list = waveListOf(marks);
|
|
24
|
+
expect(list.waves.map((w) => [w.wave, w.words, w.tone])).toEqual([
|
|
25
|
+
[1, "succeeded", "ok"],
|
|
26
|
+
[2, "1 failed, 1 applied", "bad"],
|
|
27
|
+
// A wave with no status says its state; a tone the kiosk has no bar for is idle.
|
|
28
|
+
[3, "blocked", "idle"],
|
|
29
|
+
]);
|
|
30
|
+
expect(list.waves[1].roots.map((r) => [r.root, r.words, r.tone])).toEqual([
|
|
31
|
+
["cluster-a", "failed: queue name lacks .fifo", "bad"],
|
|
32
|
+
["cluster-b", "applied", "ok"],
|
|
33
|
+
]);
|
|
34
|
+
expect(list.waves[2].roots[0]).toMatchObject({ root: "app-01", facts: ["plans 1 create"] });
|
|
35
|
+
});
|
|
36
|
+
it("carries each card's popover content when the frame has one", () => {
|
|
37
|
+
const details = { "cluster-a": { root: "cluster-a", head: "1 of 2 resources change.", rows: [{ address: "aws_sqs_queue.events", state: "change", words: "changes" }], more: 0, changed: 1 } };
|
|
38
|
+
const r = waveListOf(marks, details).waves[1].roots[0];
|
|
39
|
+
expect(r.detail).toEqual({ head: "1 of 2 resources change.", rows: [{ address: "aws_sqs_queue.events", state: "change", words: "changes" }], more: 0 });
|
|
40
|
+
expect(waveListOf(marks, details).waves[1].roots[1].detail).toBeUndefined();
|
|
41
|
+
});
|
|
42
|
+
it("is null with no cards, and keys equal lists alike", () => {
|
|
43
|
+
expect(waveListOf(null)).toBeNull();
|
|
44
|
+
expect(waveListOf({ cards: {} })).toBeNull();
|
|
45
|
+
expect(waveListKey(waveListOf(marks))).toBe(waveListKey(waveListOf(marks)));
|
|
46
|
+
});
|
|
47
|
+
it("heads each wave by its number and words", () => {
|
|
48
|
+
expect(waveHead({ wave: 2, words: "failed" })).toBe("Wave 2 · failed");
|
|
49
|
+
expect(waveHead({ wave: 1, words: "" })).toBe("Wave 1");
|
|
50
|
+
expect(waveHead({ wave: null, words: "" })).toBe("Other roots");
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
describe("drawing the list (behold#776)", () => {
|
|
55
|
+
// A small document: enough of the DOM for the list.
|
|
56
|
+
const fakeDocument = () => {
|
|
57
|
+
const make = (tag) => {
|
|
58
|
+
const n = {
|
|
59
|
+
tagName: tag.toUpperCase(),
|
|
60
|
+
className: "",
|
|
61
|
+
textContent: "",
|
|
62
|
+
children: [],
|
|
63
|
+
dataset: {},
|
|
64
|
+
attrs: {},
|
|
65
|
+
hidden: false,
|
|
66
|
+
listeners: {},
|
|
67
|
+
setAttribute(k, v) { this.attrs[k] = v; },
|
|
68
|
+
append(...xs) { for (const x of xs) this.appendChild(x); },
|
|
69
|
+
appendChild(x) { this.children.push(x); return x; },
|
|
70
|
+
replaceChildren() { this.children = []; },
|
|
71
|
+
addEventListener(t, f) { this.listeners[t] = f; },
|
|
72
|
+
};
|
|
73
|
+
return n;
|
|
74
|
+
};
|
|
75
|
+
return { createElement: make };
|
|
76
|
+
};
|
|
77
|
+
const all = (n, cls) => (n.className && n.className.split(" ").includes(cls) ? [n] : []).concat(...(n.children || []).map((c) => all(c, cls)));
|
|
78
|
+
|
|
79
|
+
it("draws a section a wave and a button a root, and opens a root's resources on a tap", () => {
|
|
80
|
+
const doc = fakeDocument();
|
|
81
|
+
const host = doc.createElement("section");
|
|
82
|
+
const list = waveListOf(marks, { "cluster-a": { head: "1 of 2 resources change.", rows: [{ address: "aws_sqs_queue.events", state: "change", words: "changes" }], more: 3 } });
|
|
83
|
+
const tapped = [];
|
|
84
|
+
drawWaveList(host, list, { doc, open: new Set(["cluster-a"]), onToggle: (r) => tapped.push(r) });
|
|
85
|
+
expect(host.hidden).toBe(false);
|
|
86
|
+
expect(all(host, "k-wl-wave-head").map((h) => h.textContent)).toEqual(["Wave 1 · succeeded", "Wave 2 · 1 failed, 1 applied", "Wave 3 · blocked"]);
|
|
87
|
+
const rows = all(host, "k-wl-row");
|
|
88
|
+
expect(rows).toHaveLength(5);
|
|
89
|
+
// The open root says it is open, and lists its resources under it.
|
|
90
|
+
const open = all(host, "k-wl-open");
|
|
91
|
+
expect(open.map((li) => li.dataset.kRoot)).toEqual(["cluster-a"]);
|
|
92
|
+
expect(all(open[0], "k-wl-res-head")[0].textContent).toBe("1 of 2 resources change.");
|
|
93
|
+
expect(all(open[0], "k-wl-res-more")[0].textContent).toBe("and 3 more");
|
|
94
|
+
rows[2].listeners.click();
|
|
95
|
+
expect(tapped).toEqual(["cluster-b"]);
|
|
96
|
+
});
|
|
97
|
+
it("hides itself with nothing to list", () => {
|
|
98
|
+
const doc = fakeDocument();
|
|
99
|
+
const host = doc.createElement("section");
|
|
100
|
+
drawWaveList(host, null, { doc });
|
|
101
|
+
expect(host.hidden).toBe(true);
|
|
102
|
+
});
|
|
103
|
+
});
|
package/web/kiosk.html
CHANGED
|
@@ -364,10 +364,13 @@
|
|
|
364
364
|
.k-menu summary::after { content: " ▾"; }
|
|
365
365
|
.k-menu[open] summary { border-color: var(--focus); }
|
|
366
366
|
.k-menu-body { position: absolute; right: 0; top: 2.4em; padding: var(--s2); background: var(--surface-pane-b); border: 1px solid var(--rule); border-radius: 8px; }
|
|
367
|
-
/* behold#755: the picker between its < and > arrows.
|
|
368
|
-
|
|
369
|
-
.k-theme-
|
|
370
|
-
.k-theme-
|
|
367
|
+
/* behold#755: the picker between its < and > arrows. behold#783: all three in one pill, so < and > read as
|
|
368
|
+
the theme's own arrows and never as a step back or forward. */
|
|
369
|
+
.k-theme-step { position: relative; display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface-pane-a); }
|
|
370
|
+
.k-theme-step:hover, .k-theme-step:has(.k-menu[open]) { border-color: var(--focus); }
|
|
371
|
+
.k-theme-arrow { display: inline-flex; align-items: center; justify-content: center; width: 1.9em; height: calc(2em - 2px); padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 0.92em var(--font-ui); cursor: pointer; }
|
|
372
|
+
.k-theme-arrow:hover, .k-theme-arrow:focus-visible { color: var(--fg); background: var(--active); }
|
|
373
|
+
.k-theme-step .k-menu summary { height: calc(2em - 2px); padding: 0 var(--s3); border: 0; border-radius: 0; background: transparent; box-shadow: inset 1px 0 0 var(--rule), inset -1px 0 0 var(--rule); }
|
|
371
374
|
.k-credit { color: var(--muted); }
|
|
372
375
|
.k-credit-link { color: var(--fg); }
|
|
373
376
|
.k-nograph-note { margin: 0; color: var(--ink2); font-size: 0.88em; }
|
|
@@ -412,7 +415,8 @@
|
|
|
412
415
|
#k-tools { position: static; justify-content: flex-end; flex-wrap: wrap; row-gap: var(--s2); margin: 0; padding: var(--s2) 16px 0; }
|
|
413
416
|
.k-theme-n { display: none; }
|
|
414
417
|
.k-what { white-space: nowrap; }
|
|
415
|
-
#
|
|
418
|
+
/* behold#777: over the title and the step bar, which come later in the page and are placed. */
|
|
419
|
+
#k-what-pop { right: 16px; left: 16px; width: auto; top: 2.2em; z-index: 45; }
|
|
416
420
|
.k-ap-row { grid-template-columns: 1.1em 5.6em minmax(0, 1fr); }
|
|
417
421
|
#stage, body.k-nograph #stage { display: flex; flex-direction: column; padding: 0; gap: 0; }
|
|
418
422
|
#view-pane { order: 1; height: 64vh; }
|
|
@@ -428,6 +432,10 @@
|
|
|
428
432
|
body.k-runs-open #runs-side { display: block; }
|
|
429
433
|
/* behold#771: in Watch the pane is the drawer's log, open with the drawer and not with the runs toggle. */
|
|
430
434
|
#k-drawer .k-drawer-body #runs-main { display: flex; height: auto; }
|
|
435
|
+
/* behold#780: a job row wraps on a phone: its roots go to the next line, each name whole, instead of past the screen's edge. */
|
|
436
|
+
.r-job { flex-wrap: wrap; row-gap: 0.1em; }
|
|
437
|
+
.r-job-roots { flex-wrap: wrap; gap: 0 var(--s3); flex: 1 1 10em; min-width: 0; }
|
|
438
|
+
.r-job-roots .k-root { white-space: nowrap; }
|
|
431
439
|
.r-log { margin-left: var(--s2); max-height: 60vh; }
|
|
432
440
|
.r-log-line { grid-template-columns: 2.4em 1fr; gap: var(--s2); }
|
|
433
441
|
.r-ann-note { grid-column: 1 / -1; }
|
|
@@ -474,6 +482,14 @@
|
|
|
474
482
|
.k-w-dora b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
475
483
|
.k-w-held { color: var(--foreign); font-size: 0.85em; min-width: 0; }
|
|
476
484
|
.k-w-held button { font: inherit; color: var(--pending); background: transparent; border: 0; padding: 0 0 0 var(--s2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
|
|
485
|
+
/* behold#779: on a touch screen each control is at least 44px under the finger, and a paused shot's resume is a big button. */
|
|
486
|
+
@media (pointer: coarse) {
|
|
487
|
+
.k-mode, .k-what, .k-theme-arrow, .k-menu summary, .eh-switch, .k-view, .eh-chip, .k-drawer-head { min-height: 44px; }
|
|
488
|
+
.k-modes { height: auto; }
|
|
489
|
+
.k-theme-arrow { min-width: 44px; }
|
|
490
|
+
.k-w-held { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); flex: 1 1 100%; }
|
|
491
|
+
.k-w-held button.k-w-resume { min-height: 44px; padding: 0 var(--s5); border: 2px solid var(--pending); border-radius: 999px; background: color-mix(in srgb, var(--pending) 18%, transparent); text-decoration: none; font-weight: 600; }
|
|
492
|
+
}
|
|
477
493
|
/* The caption: the title, what changes, the step. One of the two beats leads. */
|
|
478
494
|
#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: var(--s3) 1.4em var(--s4);
|
|
479
495
|
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); }
|
|
@@ -564,7 +580,19 @@
|
|
|
564
580
|
.k-badge.k-badge-trace { pointer-events: auto; cursor: pointer; border-color: color-mix(in srgb, var(--pending) 60%, var(--rule)); }
|
|
565
581
|
.k-badge.k-badge-trace:hover { border-color: var(--pending); background: var(--active); }
|
|
566
582
|
.k-badge-go { margin-left: var(--s3); color: var(--pending); font-weight: 600; }
|
|
567
|
-
.k-badge-go::after, .k-wf-go::after { content: " ›"; }
|
|
583
|
+
.k-badge-go::after, .k-wf-go::after, .r-job-trace::after { content: " ›"; }
|
|
584
|
+
/* behold#801: Inspect's per-wave traces in the header's right box, and a job row's way into its trace. */
|
|
585
|
+
.k-i-traces[hidden] { display: none; }
|
|
586
|
+
.k-box-hold .k-hold + .k-i-traces, .k-box-hold > * + .k-i-traces { margin-top: var(--s3); }
|
|
587
|
+
.k-i-traces .k-w-traces-head { margin: 0; font: 600 0.82em var(--font-ui); color: var(--muted); }
|
|
588
|
+
.k-i-traces .k-wf { margin-top: var(--s1); }
|
|
589
|
+
.r-job-trace { margin-left: var(--s2); padding: 0.05em var(--s3); border: 1px solid color-mix(in srgb, var(--pending) 60%, var(--rule)); border-radius: 999px; background: transparent; color: var(--pending); font: 600 0.78em var(--font-ui); cursor: pointer; white-space: nowrap; }
|
|
590
|
+
.r-job-trace:hover, .r-job-trace:focus-visible { border-color: var(--pending); background: var(--active); }
|
|
591
|
+
/* behold#801: an open trace gets the pane's height: the jobs scroll in a short list over it and the features fold away (Steps brings both back). */
|
|
592
|
+
@media (min-width: 601px) {
|
|
593
|
+
#runs-main:has(.r-trace) > .r-jobs { max-height: 9.5em; overflow-y: auto; }
|
|
594
|
+
#runs-main:has(.r-trace) > .r-feats, #runs-main:has(.r-trace) > .r-feats + .r-label { display: none; }
|
|
595
|
+
}
|
|
568
596
|
#k-drawer.k-trace-only .k-drawer-tail, #k-drawer.k-trace-only .k-drawer-body { display: none; }
|
|
569
597
|
#k-drawer.k-trace-only #k-traces { max-height: 60vh; border-top: 1px solid var(--rule); }
|
|
570
598
|
#k-drawer.k-trace-only #k-traces:empty::before { content: "Reading the trace from Tempo…"; display: block; padding: var(--s4) var(--s4); color: var(--muted); }
|
|
@@ -587,7 +615,6 @@
|
|
|
587
615
|
.k-wf-key span { display: inline-flex; align-items: center; gap: var(--s1); }
|
|
588
616
|
.k-wf-sw { display: inline-block; width: 1.2em; height: 0.55em; border-radius: 2px; }
|
|
589
617
|
.k-result-head { margin: 0 0 0.2em; font: 700 1.5em var(--font-ui); color: var(--managed); }
|
|
590
|
-
.k-result-line { margin: 0 0 var(--s3); font-size: 1.12em; line-height: 1.35; color: var(--fg); }
|
|
591
618
|
.k-result-counts { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); }
|
|
592
619
|
.k-result-counts li { padding: 0.15em var(--s3); border-radius: 999px; background: var(--surface-box); border: 1px solid var(--rule); font-size: 0.95em; font-variant-numeric: tabular-nums; }
|
|
593
620
|
.k-result-counts li:first-child { border-color: var(--managed); font-weight: 600; }
|
|
@@ -597,6 +624,13 @@
|
|
|
597
624
|
.k-result-waves dd.k-result-soon { color: var(--muted); font-style: italic; }
|
|
598
625
|
@media (max-width: 900px) and (min-width: 601px) { body.k-watch #k-head { display: flex; flex-direction: column-reverse; } body.k-watch #k-tools { position: static; justify-content: flex-end; padding: var(--s2) var(--s4) 0; } }
|
|
599
626
|
.k-w-dora-foot { display: none; }
|
|
627
|
+
/* behold#777: a phone's one line under the title, on what this is; the wide layouts have room for "What is this?". */
|
|
628
|
+
.k-w-intro { display: none; }
|
|
629
|
+
@media (max-width: 600px) { .k-w-intro { display: block; flex: 1 1 100%; margin: 0; color: var(--ink2); font-size: 0.92em; line-height: 1.35; } }
|
|
630
|
+
/* behold#775: a phone's trace rows, each wave's as it finishes, under the step (web/kiosk.js drawWaveTraces); a wider screen opens them from the badges. */
|
|
631
|
+
.k-w-traces, .k-w-traces[hidden] { display: none; }
|
|
632
|
+
.k-w-traces-head { margin: 0; font: 600 0.82em var(--font-ui); color: var(--muted); }
|
|
633
|
+
.k-w-traces .k-wf { margin-top: var(--s1); }
|
|
600
634
|
/* A phone: a short header, the graph, then the step and the approval under it; the rest stacks below, in the page's flow. */
|
|
601
635
|
@media (max-width: 600px) {
|
|
602
636
|
body.k-watch #bar { display: flex; flex-wrap: wrap; gap: 0.2em var(--s4); padding: var(--s1) 16px var(--s2); min-height: 0; }
|
|
@@ -619,10 +653,41 @@
|
|
|
619
653
|
.k-cap-lead { font-size: 1.12em; }
|
|
620
654
|
.k-over, #k-result { position: static; visibility: visible; width: auto; margin: 0 16px; max-height: none; transform: none !important; }
|
|
621
655
|
#k-callout, #k-drawer, #k-result { width: auto; }
|
|
622
|
-
#
|
|
656
|
+
/* behold#781, behold#776: the story, the change it makes, the approval or the result, then the waves as a list, then the running job's log. */
|
|
657
|
+
#k-change { order: 2; } #k-callout { order: 3; padding: var(--s3) var(--s4); } #k-result { order: 4; } #k-waves { order: 5; } #k-drawer { order: 6; }
|
|
623
658
|
#k-callout .k-ap-row { grid-template-columns: 1em 5.4em minmax(0, 1fr); }
|
|
624
659
|
.k-notch, .k-badge { display: none; }
|
|
625
|
-
.k-w-dora-foot { display: block; order:
|
|
660
|
+
.k-w-dora-foot { display: block; order: 7; margin: 0 16px; color: var(--muted); font-size: 0.9em; }
|
|
661
|
+
/* behold#776: with the list under it, the graph is the picture, not the place to read. */
|
|
662
|
+
body.k-watch:has(#k-waves:not([hidden])) #view-pane { height: 32vh; }
|
|
663
|
+
}
|
|
664
|
+
/* behold#781: Inspect's "The change" block (factLines), in a phone's Watch by the story. */
|
|
665
|
+
#k-change, #k-waves { display: none; }
|
|
666
|
+
@media (max-width: 600px) {
|
|
667
|
+
body.k-watch #k-change:not([hidden]) { display: block; margin: 0 16px; padding: var(--s2) var(--s3); box-shadow: inset 3px 0 0 var(--bar-neutral); }
|
|
668
|
+
#k-change .k-change-label { margin: 0 0 0.15em; font: 600 0.86em/1.3 var(--font-ui); color: var(--muted); }
|
|
669
|
+
#k-change .k-facts { display: flex; flex-wrap: wrap; gap: 0 var(--s2); margin: 0; font-size: 0.92em; line-height: 1.45; color: var(--fg); }
|
|
670
|
+
/* behold#776: the waves and their roots in words, every line 12px or more. */
|
|
671
|
+
body.k-watch #k-waves:not([hidden]) { display: block; margin: 0 16px; }
|
|
672
|
+
.k-wl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s3); margin-bottom: var(--s2); }
|
|
673
|
+
.k-wl-title { margin: 0; font: 700 1em var(--font-ui); color: var(--fg); }
|
|
674
|
+
.k-wl-hint { color: var(--muted); font-size: 0.86em; }
|
|
675
|
+
.k-wl-wave { position: relative; margin: 0 0 var(--s3); padding: var(--s2) 0 var(--s2) var(--s4); background: var(--surface-pane-b); border-radius: 8px; box-shadow: inset 4px 0 0 var(--bar, var(--bar-neutral)); }
|
|
676
|
+
.k-wl-wave-head { margin: 0 var(--s3) var(--s1) 0; font: 700 0.95em var(--font-mono); color: var(--fg); }
|
|
677
|
+
.k-wl-roots { list-style: none; margin: 0; padding: 0 var(--s2) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5em, 1fr)); gap: 0 var(--s2); }
|
|
678
|
+
.k-wl-root.k-wl-open { grid-column: 1 / -1; }
|
|
679
|
+
.k-wl-row { display: flex; align-items: baseline; gap: var(--s2); width: 100%; min-height: 2.4em; padding: var(--s1) var(--s2); border: 0; border-radius: 6px; background: transparent; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
|
|
680
|
+
.k-wl-row:hover, .k-wl-open > .k-wl-row { background: var(--active); }
|
|
681
|
+
.k-wl-name { font-weight: 600; white-space: nowrap; }
|
|
682
|
+
.k-wl-state { font-size: 0.92em; min-width: 0; overflow-wrap: anywhere; }
|
|
683
|
+
.k-wl-ok { color: var(--managed); } .k-wl-bad { color: var(--degraded); } .k-wl-wait { color: var(--foreign); } .k-wl-busy { color: var(--pending); } .k-wl-idle { color: var(--muted); }
|
|
684
|
+
.k-wl-wave-head.k-wl-idle { color: var(--fg); }
|
|
685
|
+
.k-wl-detail { margin: 0.1em 0 var(--s2) var(--s2); padding: var(--s1) var(--s3); border-left: 2px solid var(--rule); font-size: 0.92em; line-height: 1.4; }
|
|
686
|
+
.k-wl-detail p { margin: 0 0 0.15em; }
|
|
687
|
+
.k-wl-res-head { color: var(--fg); }
|
|
688
|
+
.k-wl-res { list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 0.95em; overflow-wrap: anywhere; }
|
|
689
|
+
.k-wl-res-change, .k-wl-res-unknown { color: var(--pending); } .k-wl-res-same, .k-wl-res-more { color: var(--muted); }
|
|
690
|
+
.k-w-traces:not([hidden]) { display: block; order: 1; margin: 0 16px; }
|
|
626
691
|
}
|
|
627
692
|
/*
|
|
628
693
|
* behold#725: the readability pass.
|
|
@@ -683,6 +748,9 @@
|
|
|
683
748
|
</section>
|
|
684
749
|
<aside id="k-result" class="k-over" aria-label="The result" hidden></aside>
|
|
685
750
|
<footer id="k-caption" aria-live="polite"></footer>
|
|
751
|
+
<!-- behold#781, behold#776: a phone's Watch only: the change's facts by the story, and the graph's marks as a list. -->
|
|
752
|
+
<section id="k-change" aria-label="The change" hidden></section>
|
|
753
|
+
<section id="k-waves" aria-label="The waves" hidden></section>
|
|
686
754
|
</div>
|
|
687
755
|
</div>
|
|
688
756
|
<!-- behold#571: event-help's tips and its modal, over everything. -->
|
|
@@ -711,7 +779,7 @@
|
|
|
711
779
|
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"),
|
|
712
780
|
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") },
|
|
713
781
|
eh: { switchHost: document.getElementById("k-tools"), trailHost: document.getElementById("eh-trail"), tipsHost: document.getElementById("eh-tips"), modalHost: document.getElementById("eh-modals") },
|
|
714
|
-
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") },
|
|
782
|
+
watch: { layer: document.getElementById("k-watch"), caption: document.getElementById("k-caption"), change: document.getElementById("k-change"), waves: document.getElementById("k-waves"), callout: document.getElementById("k-callout"), drawer: document.getElementById("k-drawer"), badges: document.getElementById("k-badges"), result: document.getElementById("k-result") },
|
|
715
783
|
},
|
|
716
784
|
{ tool: pageTool(document), source: pageSource(document) },
|
|
717
785
|
);
|