Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 41dfe188bb2a9cfda57cd8e432e13be94073ab44
parent 0f12a9f09e145541f837c2bbf98f67d84df1e07d
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 21 Oct 2026 22:42:54 -0400

deck: a verdict's shape in its tally cell's corner, so the label keeps its width

Seen in the proof render: inline before the label it pushed "Corroborated" and
"Contradicted" into an ellipsis.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/report-to-video/chrome-deck.mjs | 14++++++++------
Mumtool/report-to-video/deck-counts.test.mjs | 3++-
2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/umtool/report-to-video/chrome-deck.mjs b/umtool/report-to-video/chrome-deck.mjs @@ -469,11 +469,13 @@ export function deckHtml(schedule, render, opts = {}) { `style="left:${j * (tb.cell + tb.gap)}px; --vc:${esc(color)}; --vg:${rgba(color, 0.55)}; --vr:${rgba(color, 0.4)}; ` + `--vl:${mix(color, pal.fg, 0.35)}">` + `<div class="tbar"></div><div class="tcount">${nums}</div>` + - // With verdict pips the cell carries its pip's shape too: the key - // a viewer who cannot tell the colours apart reads the rail by. - `<div class="tlabel">${byVerdict - ? `<span class="tshape" data-shape="${VERDICT_SHAPES[v]}" style="${shapeCss(VERDICT_SHAPES[v], 10, esc(color))}"></span>` - : ""}${esc(verdictSet[v].label)}</div>` + + // With verdict pips the cell carries its pip's shape too, in its + // top corner (the label keeps its width): the key a viewer who + // cannot tell the colours apart reads the rail by. + (byVerdict + ? `<div class="tshape" data-shape="${VERDICT_SHAPES[v]}" style="${shapeCss(VERDICT_SHAPES[v], 12, esc(color))}"></div>` + : "") + + `<div class="tlabel">${esc(verdictSet[v].label)}</div>` + `<div class="tflash" data-k="${tallyKey(v, "flash")}"></div></div>` ); }) @@ -606,7 +608,7 @@ export function deckHtml(schedule, render, opts = {}) { text-overflow: ellipsis; color: var(--vl); } .tflash { position: absolute; inset: 0; border-radius: 8px; opacity: 0; pointer-events: none; box-shadow: inset 0 0 0 2px var(--vc), inset 0 0 22px var(--vg); }` : ""}${tb && byVerdict ? ` - .tshape { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: 0; }` : ""}${markers.length ? ` + .tshape { position: absolute; left: 10px; top: 14px; width: 12px; height: 12px; }` : ""}${markers.length ? ` /* The markers: a flag on the track, its label in the band above, both in the marker's colour; hidden until the fuse reaches it. */ .mflag { position: absolute; top: 0; width: 0; height: 0; transform-origin: 0 0; } diff --git a/umtool/report-to-video/deck-counts.test.mjs b/umtool/report-to-video/deck-counts.test.mjs @@ -184,7 +184,8 @@ test("pip.color verdict: a claimed pip lit in its verdict's colour (relabels inc // The tally cell is the same colour, and carries the same shape. const cell = /<div class="tcell" data-verdict="PARTLY"[^>]*>.*?<div class="tlabel">(.*?)<\/div>/s.exec(html); assert.match(cell[0], /--vc:#ff00aa/); - assert.match(cell[1], /class="tshape" data-shape="diamond"[^>]*background:#ff00aa/); + assert.match(cell[0], /<div class="tshape" data-shape="diamond"[^>]*background:#ff00aa/); + assert.equal(cell[1], "Partly true", "the label keeps its width: the shape is in the cell's corner"); // The pips still light as they did: one opacity cue each, same times. const plain = renderWith({}, { verdicts: { PARTLY: { color: "#ff00aa" } } }); const cuesOf = (rr) => deckCues(s, rr).cues.filter((c) => c.k.startsWith("pip"));