commit 4399a94de83b6ffde8493484cc4f93cc121ee3e6
parent 091f4185d086e870cdfa1a22dcd192048edd1595
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sat, 24 Oct 2026 02:42:45 -0400
deck claim checks: the finale's standing goalpost step leads with what it is (the goalpost's label)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/umtool/report-to-video/chrome-claims.mjs b/umtool/report-to-video/chrome-claims.mjs
@@ -275,7 +275,10 @@ export function finaleClaims(fcl, { toBig, Y, top, markerRows = 0, bigX, size, t
rows[rows.length - 1].push([left, right]);
return rows.length - 1;
};
- const words = (said, record) => ({ said, record, width: textWidth(said, size) + (record ? textWidth(` ${record}`, size) + 12 : 0) });
+ const words = (said, record, lead = null) => ({
+ said, record, ...(lead ? { lead } : {}),
+ width: (lead ? textWidth(`${lead} `, size) + 8 : 0) + textWidth(said, size) + (record ? textWidth(` ${record}`, size) + 12 : 0),
+ });
const labels = [];
const items = fcl.items.map((it, j) => {
if (it.kind === "count") {
@@ -293,7 +296,9 @@ export function finaleClaims(fcl, { toBig, Y, top, markerRows = 0, bigX, size, t
}
const steps = it.steps.map((st, s) => {
const a = r2(toBig(st.a)), b = r2(toBig(st.b));
- const w = words(st.said, st.open ? `→ ${st.dueText}` : `· ${st.dueText}`);
+ // What it is (the goalpost's `label`) leads its standing step's words.
+ const last = s === it.steps.length - 1;
+ const w = words(st.said, st.open ? `→ ${st.dueText}` : `· ${st.dueText}`, last && it.label ? `${it.label}:` : null);
const align = st.align;
const left = align === "right" ? b - w.width : a;
const label = { ...w, left: r2(left), stickX: r2(align === "right" ? b - 1 : a + 1), j, s, ghost: s + 1 < it.steps.length };
@@ -321,6 +326,7 @@ export function finaleClaimsMarkup(fc, { Y, ground, size, pal }) {
return (
(l.stickX === null ? "" : `<div class="fqstick${l.ghost ? " ghost" : ""}" style="left:${r4(l.stickX - 1)}px; top:${stickTop}px; height:${Math.max(0, Y - 16 - stickTop)}px"></div>`) +
`<div class="fqlabel${l.ghost ? " ghost" : ""}" style="left:${l.left}px; top:${l.top}px; width:${l.width + 8}px">` +
+ (l.lead ? `<span class="fqlead">${esc(l.lead)}</span> ` : "") +
`<span class="fqsaid">${esc(l.said)}</span>${l.record ? ` <span class="fqrec">${esc(l.record)}</span>` : ""}</div>`
);
};
@@ -368,6 +374,7 @@ export function finaleClaimsMarkup(fc, { Y, ground, size, pal }) {
.fqlabel { position: absolute; white-space: nowrap; font-family: 'DeckSansBold', sans-serif; font-size: ${size}px;
line-height: ${Math.round(size * 1.25)}px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.fqsaid { color: ${pal.fg}; }
+ .fqlead { color: ${pal.muted}; }
.fqrec { color: ${red}; }
.fqlabel.ghost .fqsaid, .fqlabel.ghost .fqrec { color: rgba(229, 83, 75, 0.5); }`;
return { html: html.join(""), keys, css };