@intentius/behold 0.29.54 → 0.29.55
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/demos.json +1 -4
- package/example-three-cloud/README.md +1 -1
- package/example-three-cloud/package-lock.json +19 -19
- package/example-three-cloud/package.json +4 -4
- package/example-three-cloud/scripts/front-door.ts +2 -1
- package/package.json +2 -2
- package/web/index.html +6 -1
- package/web/kiosk.html +1 -1
- package/web/theme.js +7 -2
- package/web/theme.test.js +13 -1
package/demos.json
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"": {
|
|
7
7
|
"name": "behold-example-three-cloud",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@intentius/chant": "^0.124.
|
|
10
|
-
"@intentius/chant-lexicon-aws": "^0.124.
|
|
11
|
-
"@intentius/chant-lexicon-azure": "^0.124.
|
|
12
|
-
"@intentius/chant-lexicon-gcp": "^0.124.
|
|
9
|
+
"@intentius/chant": "^0.124.38",
|
|
10
|
+
"@intentius/chant-lexicon-aws": "^0.124.38",
|
|
11
|
+
"@intentius/chant-lexicon-azure": "^0.124.38",
|
|
12
|
+
"@intentius/chant-lexicon-gcp": "^0.124.38"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"node_modules/@dagrejs/dagre": {
|
|
@@ -444,9 +444,9 @@
|
|
|
444
444
|
}
|
|
445
445
|
},
|
|
446
446
|
"node_modules/@intentius/chant": {
|
|
447
|
-
"version": "0.124.
|
|
448
|
-
"resolved": "https://registry.npmjs.org/@intentius/chant/-/chant-0.124.
|
|
449
|
-
"integrity": "sha512-
|
|
447
|
+
"version": "0.124.38",
|
|
448
|
+
"resolved": "https://registry.npmjs.org/@intentius/chant/-/chant-0.124.38.tgz",
|
|
449
|
+
"integrity": "sha512-BCLGgZTOHkwHCDaUNh3kLZJsgJbpJ6iTcrjYAIGLjt7JlZiUAZKB4vVmOxKqfGc/u0K7+pbTYeiIYQOTgjA7Pg==",
|
|
450
450
|
"license": "Apache-2.0",
|
|
451
451
|
"dependencies": {
|
|
452
452
|
"@dagrejs/dagre": "^3.0.0",
|
|
@@ -473,34 +473,34 @@
|
|
|
473
473
|
}
|
|
474
474
|
},
|
|
475
475
|
"node_modules/@intentius/chant-lexicon-aws": {
|
|
476
|
-
"version": "0.124.
|
|
477
|
-
"resolved": "https://registry.npmjs.org/@intentius/chant-lexicon-aws/-/chant-lexicon-aws-0.124.
|
|
478
|
-
"integrity": "sha512-
|
|
476
|
+
"version": "0.124.38",
|
|
477
|
+
"resolved": "https://registry.npmjs.org/@intentius/chant-lexicon-aws/-/chant-lexicon-aws-0.124.38.tgz",
|
|
478
|
+
"integrity": "sha512-S9IRHJxWeaswwezVCYbYflaXPhs3y98Xun8pLZSYTL8vLKY9+LI7cfvZI6WkyPGWyu+/ViVtlSAwgxSeUTAzGA==",
|
|
479
479
|
"license": "Apache-2.0",
|
|
480
480
|
"dependencies": {
|
|
481
481
|
"fflate": "^0.8.2",
|
|
482
482
|
"js-yaml": "^4.3.1"
|
|
483
483
|
},
|
|
484
484
|
"peerDependencies": {
|
|
485
|
-
"@intentius/chant": "^0.124.
|
|
485
|
+
"@intentius/chant": "^0.124.38"
|
|
486
486
|
}
|
|
487
487
|
},
|
|
488
488
|
"node_modules/@intentius/chant-lexicon-azure": {
|
|
489
|
-
"version": "0.124.
|
|
490
|
-
"resolved": "https://registry.npmjs.org/@intentius/chant-lexicon-azure/-/chant-lexicon-azure-0.124.
|
|
491
|
-
"integrity": "sha512-
|
|
489
|
+
"version": "0.124.38",
|
|
490
|
+
"resolved": "https://registry.npmjs.org/@intentius/chant-lexicon-azure/-/chant-lexicon-azure-0.124.38.tgz",
|
|
491
|
+
"integrity": "sha512-dXTxFRg6uxgdWiN/cz5jhkZM885wxcX3CLrskyP9xgcqFP9kWvPCqv1eE1Cr3MoRqIBVT5wj6K+RtoBm0pojug==",
|
|
492
492
|
"license": "Apache-2.0",
|
|
493
493
|
"dependencies": {
|
|
494
494
|
"fflate": "^0.8.2"
|
|
495
495
|
},
|
|
496
496
|
"peerDependencies": {
|
|
497
|
-
"@intentius/chant": "^0.124.
|
|
497
|
+
"@intentius/chant": "^0.124.38"
|
|
498
498
|
}
|
|
499
499
|
},
|
|
500
500
|
"node_modules/@intentius/chant-lexicon-gcp": {
|
|
501
|
-
"version": "0.124.
|
|
502
|
-
"resolved": "https://registry.npmjs.org/@intentius/chant-lexicon-gcp/-/chant-lexicon-gcp-0.124.
|
|
503
|
-
"integrity": "sha512-
|
|
501
|
+
"version": "0.124.38",
|
|
502
|
+
"resolved": "https://registry.npmjs.org/@intentius/chant-lexicon-gcp/-/chant-lexicon-gcp-0.124.38.tgz",
|
|
503
|
+
"integrity": "sha512-4DQlfww4TAq3pVGOOV7Eys+lvcRT4Azp4t+DIcKYZhGH0BRZPSr5eUhboAWOgTLyqjQOqFIdy1ueNgWNtVUUTg==",
|
|
504
504
|
"license": "Apache-2.0",
|
|
505
505
|
"dependencies": {
|
|
506
506
|
"@types/js-yaml": "^4.0.9",
|
|
@@ -508,7 +508,7 @@
|
|
|
508
508
|
"js-yaml": "^4.3.1"
|
|
509
509
|
},
|
|
510
510
|
"peerDependencies": {
|
|
511
|
-
"@intentius/chant": "^0.124.
|
|
511
|
+
"@intentius/chant": "^0.124.38"
|
|
512
512
|
}
|
|
513
513
|
},
|
|
514
514
|
"node_modules/@types/js-yaml": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"front-door": "tsx scripts/front-door.ts all --out export"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@intentius/chant": "^0.124.
|
|
12
|
-
"@intentius/chant-lexicon-aws": "^0.124.
|
|
13
|
-
"@intentius/chant-lexicon-azure": "^0.124.
|
|
14
|
-
"@intentius/chant-lexicon-gcp": "^0.124.
|
|
11
|
+
"@intentius/chant": "^0.124.38",
|
|
12
|
+
"@intentius/chant-lexicon-aws": "^0.124.38",
|
|
13
|
+
"@intentius/chant-lexicon-azure": "^0.124.38",
|
|
14
|
+
"@intentius/chant-lexicon-gcp": "^0.124.38"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -302,7 +302,8 @@ export async function waitFor(want: "healthy" | "unhealthy", timeoutMs = 180_000
|
|
|
302
302
|
// ---------------------------------------------------------------------------
|
|
303
303
|
// Export
|
|
304
304
|
|
|
305
|
-
export const NOTE =
|
|
305
|
+
export const NOTE =
|
|
306
|
+
"Azure was switched off: its app answers 503, Route 53's check on it fails, and AWS and GCP take the traffic. Run this yourself: `npx @intentius/behold demo three-cloud`";
|
|
306
307
|
|
|
307
308
|
export function exportPage(out: string): void {
|
|
308
309
|
// BEHOLD names the behold to run (a checkout's `tsx src/cli.ts`, say);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/behold",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.55",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "behold — a live control plane on chant. See your whole estate (every substrate in one graph), coloured by drift; act through delegated, gated Ops.",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@hono/node-server": "^2.0.5",
|
|
50
|
-
"@intentius/chant": "^0.124.
|
|
50
|
+
"@intentius/chant": "^0.124.38",
|
|
51
51
|
"@intentius/chant-k8s-client": "^0.124.24",
|
|
52
52
|
"@intentius/pinhole": "^0.5.0",
|
|
53
53
|
"ajv": "^8.20.0",
|
package/web/index.html
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
and fails if the two drift apart. */
|
|
41
41
|
:root {
|
|
42
42
|
--bg: #1e1e2e; --panel: #2e2f40; --line: #3b3c4a; --fg: #cdd6f4; --muted: #9598aa; --ink2: #c4cbe4;
|
|
43
|
-
--edge: #
|
|
43
|
+
--edge: #7e839b; --managed: #a6e3a1; --foreign: #f9e2af; --pending: #89b4fa;
|
|
44
44
|
--degraded: #f38ba8; --neutral: #6d7187; --runtime: #94e2d5;
|
|
45
45
|
--rule: #4e4f64; --focus: #a3b4d0; --active: #3d4660; --well: #11101f; --shadow: #050507;
|
|
46
46
|
--bar-managed: #a6e3a1; --bar-foreign: #f9e2af; --bar-pending: #89b4fa; --bar-degraded: #f38ba8; --bar-runtime: #94e2d5; --bar-neutral: #9b9fb7;
|
|
@@ -137,6 +137,11 @@
|
|
|
137
137
|
visible line. The hovered edge is also raised to the top in JS so it isn't
|
|
138
138
|
buried under the bundle. */
|
|
139
139
|
#graph g[data-edge-from] .pin-edge-line { transition: stroke .08s ease, stroke-width .08s ease; }
|
|
140
|
+
/* behold#824: an edge's label is read text, not a hint, so it takes the
|
|
141
|
+
full text colour, and its pill is outlined in the edge's own colour so
|
|
142
|
+
the label reads as part of its line. */
|
|
143
|
+
#graph g[data-edge-via] > text { fill: var(--pin-text); }
|
|
144
|
+
#graph g[data-edge-via] > rect { stroke: var(--pin-edge); }
|
|
140
145
|
/* ---- Motion (#229) ---------------------------------------------------
|
|
141
146
|
behold spends motion exactly twice, and never for decoration:
|
|
142
147
|
1. the graph fades through on every re-render, so a refresh reads as a
|
package/web/kiosk.html
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
tokens (KIOSK_THEME in theme.js), which initTheme() replaces with the viewer's theme. */
|
|
31
31
|
:root {
|
|
32
32
|
--bg: #141d2b; --panel: #213027; --line: #2e3d2a; --fg: #9fef00; --muted: #7d9e5a; --ink2: #97d742;
|
|
33
|
-
--edge: #
|
|
33
|
+
--edge: #609113; --managed: #19cb00; --foreign: #cecb00; --pending: #0d73cc;
|
|
34
34
|
--degraded: #cc0403; --neutral: #537c18; --runtime: #0dcdcd;
|
|
35
35
|
--rule: #515e48; --focus: #577597; --active: #223f47; --well: #070f1c; --shadow: #030406;
|
|
36
36
|
/* behold#571: the kiosk's surfaces and ink (theme.js kioskSurfaces), the kiosk's default theme's (KIOSK_THEME, Box since behold#758) until initTheme() runs. */
|
package/web/theme.js
CHANGED
|
@@ -150,6 +150,8 @@ function pushForContrast(hex, against, floor, dark) {
|
|
|
150
150
|
// all 552 palettes have to come out of here legible.
|
|
151
151
|
/** behold#725: the least contrast --muted and --muted-ink keep on the grounds they sit on (WCAG AA). */
|
|
152
152
|
export const MUTED_FLOOR = 4.5;
|
|
153
|
+
/** behold#824: the contrast an edge line keeps on the graph's background. */
|
|
154
|
+
export const EDGE_FLOOR = 3;
|
|
153
155
|
/** behold#725: the least contrast --ink2, the secondary prose ink, keeps on every ground (WCAG AAA). */
|
|
154
156
|
export const INK2_FLOOR = 7;
|
|
155
157
|
/** behold#725: how far --ink2 starts from --fg toward --bg before the floor holds it. */
|
|
@@ -189,7 +191,10 @@ export function tokensFor(th) {
|
|
|
189
191
|
// Push its OKLCH L away from --panel's until it clears MUTED_FLOOR
|
|
190
192
|
// (behold#725: 4.5:1, WCAG AA for body text; it was 3:1).
|
|
191
193
|
muted: pushForContrast(desaturate(fgMix(0.5), 0.75), panel, MUTED_FLOOR, th.dark),
|
|
192
|
-
|
|
194
|
+
// behold#824: an edge is how two cards read as connected, and at a 0.32 mix
|
|
195
|
+
// it all but vanished on most themes. 0.55, held to 3:1 on the background
|
|
196
|
+
// (WCAG's floor for a graphic), the floor the card outlines already keep.
|
|
197
|
+
edge: pushForContrast(fgMix(0.55), th.bg, EDGE_FLOOR, th.dark),
|
|
193
198
|
// The structural border — the panel shell, the pane edge, the footer rule.
|
|
194
199
|
// Tinted by the palette's OWN bright-black slot instead of being one more
|
|
195
200
|
// fg/bg mix, but anchored to a guaranteed-visible mix so a theme whose
|
|
@@ -406,7 +411,7 @@ export function pinTokensFor(th) {
|
|
|
406
411
|
const stroke = (c) => line(mix(th.bg, c, 0.62));
|
|
407
412
|
return {
|
|
408
413
|
bg0: th.bg, bg1: fgMix(0.045), dots: fgMix(0.12),
|
|
409
|
-
text: th.fg, textMuted: fgMix(0.5), textFaint: fgMix(0.38), edge: fgMix(0.
|
|
414
|
+
text: th.fg, textMuted: fgMix(0.5), textFaint: fgMix(0.38), edge: lightnessFor(fgMix(0.55), [th.bg, fgMix(0.045)], EDGE_FLOOR, up),
|
|
410
415
|
neutralFill: panel, neutralStroke: fgMix(0.3), neutralBar: fgMix(0.5),
|
|
411
416
|
accentFill: fill(accent), accentStroke: stroke(accent), accentBar: accent,
|
|
412
417
|
goodFill: fill(good), goodStroke: stroke(good), goodBar: good,
|
package/web/theme.test.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// sweeps all 552 palettes for the same assertion; this pins the exact
|
|
7
7
|
// palette the issue was filed against, with no browser involved.
|
|
8
8
|
import { describe, it, expect } from "vitest";
|
|
9
|
-
import { BAR_FLOOR, BAR_STATES, FRAME_STATES, INK2_FLOOR, KIOSK_THEME, MIN_STEP, MUTED_FLOOR, SURFACE_CHROMA, barGrounds, barInks, barVars, SOFT_CEILING, ZEBRA, contrast, desaturate, frameGrounds, frameInks, hexToOklch, ink2Grounds, mix, PAINT_KEY, paintFor, pinTokensFor, themeStep, tokensFor } from "./theme.js";
|
|
9
|
+
import { BAR_FLOOR, BAR_STATES, EDGE_FLOOR, FRAME_STATES, INK2_FLOOR, KIOSK_THEME, MIN_STEP, MUTED_FLOOR, SURFACE_CHROMA, barGrounds, barInks, barVars, SOFT_CEILING, ZEBRA, contrast, desaturate, frameGrounds, frameInks, hexToOklch, ink2Grounds, mix, PAINT_KEY, paintFor, pinTokensFor, themeStep, tokensFor } from "./theme.js";
|
|
10
10
|
import { THEMES } from "./themes.js";
|
|
11
11
|
|
|
12
12
|
describe("themeStep — the kiosk's < and > (behold#755)", () => {
|
|
@@ -277,3 +277,15 @@ describe("paintFor — the theme before first paint (behold#725)", () => {
|
|
|
277
277
|
expect(JSON.parse(JSON.stringify(p))).toEqual(p);
|
|
278
278
|
});
|
|
279
279
|
});
|
|
280
|
+
|
|
281
|
+
describe("edges (behold#824)", () => {
|
|
282
|
+
it("draws an edge at 3:1 or better on the background, on every theme", () => {
|
|
283
|
+
const weak = [];
|
|
284
|
+
for (const th of Object.values(THEMES)) {
|
|
285
|
+
const pin = pinTokensFor(th);
|
|
286
|
+
const css = tokensFor(th);
|
|
287
|
+
if (contrast(pin.edge, th.bg) < EDGE_FLOOR || contrast(css.edge, th.bg) < EDGE_FLOOR) weak.push(th.name);
|
|
288
|
+
}
|
|
289
|
+
expect(weak).toEqual([]);
|
|
290
|
+
});
|
|
291
|
+
});
|