@intentius/behold 0.29.47 → 0.29.49

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
@@ -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
- .k-theme-step { position: relative; display: inline-flex; align-items: center; gap: var(--s1); }
369
- .k-theme-arrow { display: inline-flex; align-items: center; justify-content: center; width: 2em; height: 2em; padding: 0; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface-pane-a); color: var(--fg); font: 600 0.92em var(--font-ui); cursor: pointer; }
370
- .k-theme-arrow:hover, .k-theme-arrow:focus-visible { border-color: var(--focus); }
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
- #k-what-pop { right: 16px; left: 16px; width: auto; top: 2.2em; }
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,8 +615,14 @@
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); }
619
+ /* behold#787: the done card's chip that replays the failure, and the banner of a replay the viewer asked for with its way back. */
620
+ .k-result-replay, .k-replay-back { font: 600 0.95em var(--font-ui); color: var(--pending); background: color-mix(in srgb, var(--pending) 16%, transparent); border: 2px solid var(--pending); border-radius: 999px; padding: 0.25em var(--s4); cursor: pointer; }
621
+ .k-result-replay { margin-top: var(--s3); color: var(--degraded); border-color: var(--degraded); background: color-mix(in srgb, var(--degraded) 12%, transparent); }
622
+ .k-result-replay:focus-visible, .k-replay-back:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
623
+ .k-replay.k-replay-asked { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); padding-right: var(--s3); white-space: normal; border-left-color: var(--pending); }
624
+ body.k-watch #bar > .k-replay-asked { flex: 1 1 100%; }
625
+ @media (pointer: coarse), (max-width: 600px) { .k-result-replay, .k-replay-back { min-height: 44px; padding: 0 var(--s5); } }
592
626
  .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
627
  .k-result-counts li:first-child { border-color: var(--managed); font-weight: 600; }
594
628
  .k-result-waves { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2em var(--s4); margin: 0; padding-top: var(--s2); border-top: 1px solid var(--rule); }
@@ -597,6 +631,13 @@
597
631
  .k-result-waves dd.k-result-soon { color: var(--muted); font-style: italic; }
598
632
  @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
633
  .k-w-dora-foot { display: none; }
634
+ /* behold#777: a phone's one line under the title, on what this is; the wide layouts have room for "What is this?". */
635
+ .k-w-intro { display: none; }
636
+ @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; } }
637
+ /* 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. */
638
+ .k-w-traces, .k-w-traces[hidden] { display: none; }
639
+ .k-w-traces-head { margin: 0; font: 600 0.82em var(--font-ui); color: var(--muted); }
640
+ .k-w-traces .k-wf { margin-top: var(--s1); }
600
641
  /* 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
642
  @media (max-width: 600px) {
602
643
  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 +660,41 @@
619
660
  .k-cap-lead { font-size: 1.12em; }
620
661
  .k-over, #k-result { position: static; visibility: visible; width: auto; margin: 0 16px; max-height: none; transform: none !important; }
621
662
  #k-callout, #k-drawer, #k-result { width: auto; }
622
- #k-callout { order: 2; padding: var(--s3) var(--s4); } #k-drawer { order: 3; } #k-result { order: 4; }
663
+ /* 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. */
664
+ #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
665
  #k-callout .k-ap-row { grid-template-columns: 1em 5.4em minmax(0, 1fr); }
624
666
  .k-notch, .k-badge { display: none; }
625
- .k-w-dora-foot { display: block; order: 5; margin: 0 16px; color: var(--muted); font-size: 0.9em; }
667
+ .k-w-dora-foot { display: block; order: 7; margin: 0 16px; color: var(--muted); font-size: 0.9em; }
668
+ /* behold#776: with the list under it, the graph is the picture, not the place to read. */
669
+ body.k-watch:has(#k-waves:not([hidden])) #view-pane { height: 32vh; }
670
+ }
671
+ /* behold#781: Inspect's "The change" block (factLines), in a phone's Watch by the story. */
672
+ #k-change, #k-waves { display: none; }
673
+ @media (max-width: 600px) {
674
+ 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); }
675
+ #k-change .k-change-label { margin: 0 0 0.15em; font: 600 0.86em/1.3 var(--font-ui); color: var(--muted); }
676
+ #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); }
677
+ /* behold#776: the waves and their roots in words, every line 12px or more. */
678
+ body.k-watch #k-waves:not([hidden]) { display: block; margin: 0 16px; }
679
+ .k-wl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s3); margin-bottom: var(--s2); }
680
+ .k-wl-title { margin: 0; font: 700 1em var(--font-ui); color: var(--fg); }
681
+ .k-wl-hint { color: var(--muted); font-size: 0.86em; }
682
+ .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)); }
683
+ .k-wl-wave-head { margin: 0 var(--s3) var(--s1) 0; font: 700 0.95em var(--font-mono); color: var(--fg); }
684
+ .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); }
685
+ .k-wl-root.k-wl-open { grid-column: 1 / -1; }
686
+ .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; }
687
+ .k-wl-row:hover, .k-wl-open > .k-wl-row { background: var(--active); }
688
+ .k-wl-name { font-weight: 600; white-space: nowrap; }
689
+ .k-wl-state { font-size: 0.92em; min-width: 0; overflow-wrap: anywhere; }
690
+ .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); }
691
+ .k-wl-wave-head.k-wl-idle { color: var(--fg); }
692
+ .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; }
693
+ .k-wl-detail p { margin: 0 0 0.15em; }
694
+ .k-wl-res-head { color: var(--fg); }
695
+ .k-wl-res { list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 0.95em; overflow-wrap: anywhere; }
696
+ .k-wl-res-change, .k-wl-res-unknown { color: var(--pending); } .k-wl-res-same, .k-wl-res-more { color: var(--muted); }
697
+ .k-w-traces:not([hidden]) { display: block; order: 1; margin: 0 16px; }
626
698
  }
627
699
  /*
628
700
  * behold#725: the readability pass.
@@ -683,6 +755,9 @@
683
755
  </section>
684
756
  <aside id="k-result" class="k-over" aria-label="The result" hidden></aside>
685
757
  <footer id="k-caption" aria-live="polite"></footer>
758
+ <!-- behold#781, behold#776: a phone's Watch only: the change's facts by the story, and the graph's marks as a list. -->
759
+ <section id="k-change" aria-label="The change" hidden></section>
760
+ <section id="k-waves" aria-label="The waves" hidden></section>
686
761
  </div>
687
762
  </div>
688
763
  <!-- behold#571: event-help's tips and its modal, over everything. -->
@@ -711,7 +786,7 @@
711
786
  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
787
  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
788
  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") },
789
+ 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
790
  },
716
791
  { tool: pageTool(document), source: pageSource(document) },
717
792
  );