commit c7d77e4ada9409d49e0610f7ab18d747866b5092
parent 8491dd04fff13964b7f58fa501cbdb0cbc0a82e2
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 27 Oct 2026 00:23:23 -0400
report-to-video: deck.finale.pips -- false keeps the finale's own clips off the rail, footer and large
The rail is then the record alone and has the room; the finale's clips keep
their titles, dates and QRs in their own area. The deck's handovers leave the
marker where it is for a segment with no pip. Default true: every cut is as it was.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
5 files changed, 41 insertions(+), 9 deletions(-)
diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md
@@ -149,6 +149,7 @@ box with its title, source line and QR. The deck footer and popup posts are not
| `deck.finale.stats` | ≤ 8 `{label ≤ 32, value ≤ 16, note? ≤ 60, color?}` (`color`: a `#hex` or `fg` `muted` `accent` `amber`) · none | same |
| `deck.finale.statsTitle` | ≤ 40 characters · none | same |
| `deck.finale.railLabels` | `all` (each pip's label, its date when the label does not already say it, the markers' labels) · `nodes` (the pips' labels only) · default `all`. A run of clips with the same label is labelled once; on a crowded rail each label is said once (its longest run) and the turned labels fan out along the rail on thin leaders so no two meet — `all` keeps every distinct date | same |
+| `deck.finale.pips` | `true` · `false` · default `true`. `false`: the finale's own clips get no pip on the rail, the footer's or the large one, so the rail is the record alone and has the room; their titles, dates and QRs stay in their own area | same |
| `deck.finale.timelineShare` | `auto` · a number 0.38–0.6 · default `auto`: the timeline (rail, markers, claim checks, labels) takes the height its rows need, from the share it always had (0.415, 448 px of 1080) up to 0.54, and with claim checks to show its words are set as large (up to 1.3×) as that room lets them; the clip shrinks in its aspect and the totals and stats to the column under it. A number: that share of the frame's height. A finale with no claim checks and nothing crowded is laid as it always was | same |
| `deck.finale.claims` | `rotate` (one claim check at a time — a count claim with its band or spans, a goalpost with its steps — each for an even share of the finale's time once the rail is in place, at least 6 s, with a 0.5 s crossfade, in the order `deck.claims` lists them) · `all` (all at once, stacked in rows) · default `rotate`; one claim, or too little time for 6 s each, stands as `all`. Either way the words, span labels and markers' labels are laid in rows so no two meet, each claim's words at its bracket with its stick (moved inside the bracket, never through other words) | same |
diff --git a/umtool/report-to-video/chrome-deck.mjs b/umtool/report-to-video/chrome-deck.mjs
@@ -229,10 +229,13 @@ export function deckCues(schedule, render) {
add(keyOf(b, "qr"), h.m, h.qr[1] - h.m, { rotationY: 0 }, "power1.out", `${why} qr`);
// The pip.
const pa = pipOf.get(h.from), pb = pipOf.get(h.to);
- add("marker", h.pip[0], h.pip[1] - h.pip[0], { x: pips[pb].x }, "power3.inOut", `${why} pip`);
- fillPipsBefore(pb, h.pip[0], Math.min(0.25, h.pip[1] - h.pip[0]), `${why} pip`);
- depart.set(pa, h.pip[0]);
- arrive.set(pb, h.pip[1]);
+ // A segment with no pip (finale.pips: false) leaves the marker where it is.
+ if (pb !== undefined) {
+ add("marker", h.pip[0], h.pip[1] - h.pip[0], { x: pips[pb].x }, "power3.inOut", `${why} pip`);
+ fillPipsBefore(pb, h.pip[0], Math.min(0.25, h.pip[1] - h.pip[0]), `${why} pip`);
+ }
+ if (pa !== undefined) depart.set(pa, h.pip[0]);
+ if (pb !== undefined) arrive.set(pb, h.pip[1]);
}
for (const v of ch.visibility) {
@@ -248,16 +251,18 @@ export function deckCues(schedule, render) {
if (prev !== undefined) {
add(keyOf(prev, "seg"), v.at[1], INSTANT, { autoAlpha: 0 }, "none", why);
const pk = pipOf.get(segs[prev].id);
- if (!depart.has(pk)) depart.set(pk, v.at[0]);
+ if (pk !== undefined && !depart.has(pk)) depart.set(pk, v.at[0]);
}
} else {
// Whatever came before is already set when the deck rises: the new text
// is in place, the marker is on its pip and every pip before it is lit.
setSeg(v.i, SEG_STATE.shown(), v.at[0], why);
const k = pipOf.get(segs[v.i].id);
- add("marker", v.at[0], INSTANT, { x: pips[k].x }, "none", why);
- fillPipsBefore(k, v.at[0], INSTANT, why);
- arrive.set(k, v.at[0]);
+ if (k !== undefined) {
+ add("marker", v.at[0], INSTANT, { x: pips[k].x }, "none", why);
+ fillPipsBefore(k, v.at[0], INSTANT, why);
+ arrive.set(k, v.at[0]);
+ }
}
}
diff --git a/umtool/report-to-video/deck.mjs b/umtool/report-to-video/deck.mjs
@@ -1219,6 +1219,8 @@ export function deckSchedule({
: {}),
// Only on a finale clip, likewise.
...(finIds.has(e.id) ? { finale: true } : {}),
+ // And off the rail, when the finale says so (finale.pips: false).
+ ...(finIds.has(e.id) && resolveFinale(render).pips === false ? { noPip: true } : {}),
};
}),
// The finale: present only when the cut has one.
@@ -1824,7 +1826,7 @@ export function deckChoreography(schedule, render) {
/** The segments that get a pip: every one the deck is shown over. */
export function pipSegments(schedule) {
- return schedule.segments.filter((s) => !s.hideDeck);
+ return schedule.segments.filter((s) => !s.hideDeck && !s.noPip);
}
// ---------------------------------------------------------------------------
diff --git a/umtool/report-to-video/finale.mjs b/umtool/report-to-video/finale.mjs
@@ -14,6 +14,9 @@
// "auto" (the default) the height its rows need, from
// the share it always had up to FINALE_SHARE.auto;
// a number, that share of the frame, needed or not
+// "pips": true | false false: the finale's own clips get no pip on the rail
+// (footer or large) -- the rail is the record alone; their
+// titles and dates stay in their own area (default true)
// "claims": "rotate" | "all" the claim checks (deck.claims) on the large rail:
// one at a time, each for an even share of the page's
// time (default "rotate"; all at once when there is
@@ -80,6 +83,7 @@ export const FINALE_DEFAULTS = Object.freeze({
railLabels: "all",
timelineShare: "auto",
claims: "rotate",
+ pips: true,
});
/**
@@ -132,6 +136,7 @@ export function validateFinaleSettings(f, where = "render.chrome.deck.finale") {
errors.push(`${where}.timelineShare must be "auto" or a number from ${FINALE_SHARE.min} to ${FINALE_SHARE.max} (the frame's height the timeline takes)`);
}
if (f.totals !== undefined && typeof f.totals !== "boolean") errors.push(`${where}.totals must be true or false`);
+ if (f.pips !== undefined && typeof f.pips !== "boolean") errors.push(`${where}.pips must be true or false`);
if (f.statsTitle !== undefined && f.statsTitle !== null) {
const p = lineProblem(f.statsTitle, FINALE_LIMITS.statsTitle, `${where}.statsTitle`);
if (p) errors.push(p);
diff --git a/umtool/report-to-video/finale.test.mjs b/umtool/report-to-video/finale.test.mjs
@@ -228,3 +228,22 @@ test("tallyLabel: the deck's tally cell shows it, the finale's totals keep the f
const totals = finaleLayout(s, r).totals;
assert.deepEqual(totals.map((t) => t.label).sort(), ["Huck's Blend pitches", "Seizure episodes"]);
});
+
+test("finale.pips: false -- the finale's clips leave the rail, footer and large; the rest is untouched", () => {
+ assert.equal(FINALE_DEFAULTS.pips, true);
+ assert.ok(validateFinaleSettings({ pips: "no" }).includes("render.chrome.deck.finale.pips must be true or false"));
+ const fin = [22, 23, 24, 25];
+ const on = sched(clips(fin), renderWith({ finale: {} }));
+ const r = renderWith({ finale: { pips: false } });
+ const s = sched(clips(fin), r);
+ assert.deepEqual(s.segments.filter((x) => x.noPip).map((x) => x.id), ["c22", "c23", "c24", "c25"]);
+ assert.ok(!on.segments.some((x) => x.noPip), "default: every clip pipped, as before");
+ // The deck's cues are drawn with 22 pips and no lookup of a missing one.
+ const deck = deckHtml(s, r, {});
+ assert.equal((deck.match(/data-k="pip\d+"/g) ?? []).length, N - fin.length);
+ // The finale's large rail: the record's pips only; its clips keep their captions.
+ const win = finaleRegions(r, "/tmp/x", s)[0].window;
+ const html = finaleHtml(s, r, win, {});
+ assert.equal((html.match(/class="pip"/g) ?? []).length, N - fin.length);
+ assert.match(html, /class="ct">26 Oct 2026</);
+});