feat(promo-video): give the Assembly two-device clip the same decorative treatment as every other beat

This commit is contained in:
OmO Orchestrator committed 2026-11-20 15:14:31 -05:00
1 parent ae2f920e0b
commit 6065a640c5
4 files changed
+201 -15

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 KiB

@@ -0,0 +1,146 @@
TASK 7 — Assembly segment decorative treatment (first-place-overhaul plan)
===========================================================================
Scope: e2e/openmotion/buildComposition.mjs — give the Assembly two-device
clip the same visual family as every other beat (gradient field, framed/
padded/bordered/shadowed video, GSAP-driven caption), without touching
assembly.mp4 itself or any other segment's styling.
CHANGES
-------
1. COLORS.fieldAssembly: new plum/indigo radial-gradient field entry,
consistent with the preceding Epilogue field (fieldEpi) but distinct.
2. buildTimeline(): the "assembly" segment now carries `field:
COLORS.fieldAssembly`, like every stage segment.
3. fieldEls: now rendered for `[...stages, asmSeg]` (previously only
`stages`), so a `#field-assembly` div exists in #fieldwrap.
4. asmEl markup: the video is now wrapped in `.assembly-frame` (a padded,
rounded, bordered, drop-shadowed card inset from the canvas edges —
left/right:370px, top:250px, bottom:170px — not full-bleed), plus a
`.stagetext.top` caption block (the existing, previously-unused "top"
variant of the same st-eyebrow/st-title pattern used by every act) with
eyebrow "Live Capture · Two Devices" and title "Two devices. One signed
log. A real network partition, and a real heal."
5. GSAP "ASSEMBLY" timeline section: fades `#field-assembly` and
`#assembly-frame` in/out around the segment window (same F=0.5s
crossfade used everywhere else), and fades `#text-assembly` in/out —
exactly the existing stagetext fade pattern, never a CSS @keyframes
animation (this file's whole timeline is one paused GSAP timeline
scrubbed frame-by-frame for deterministic rendering, per the
ledger-panel blinking-cursor precedent in the same file).
Also added `tl.to('#phoneRig', { opacity: 0 }, A.start - F)`: once the
assembly frame stopped being full-bleed, the leftover phone-rig
position from the Epilogue segment was visible peeking through the
field margins (caught during visual QA below); hiding the phone rig at
assembly start fixes this. Nothing after assembly needs the phone again
(the Result Wall that follows is itself full-bleed), so no restore is
needed.
Assembly segment window in this build: 75.89s–83.19s (from console output:
`assembly[75.9-83.2]`).
VERIFICATION
------------
0. `bun install` was required first — this worktree had no node_modules at
all (git worktree, not the primary checkout) — exit 0, 531 packages.
bun.lock was generated as a side effect of this and is left untracked/
uncommitted (out of scope for this task; package-lock.json is unchanged).
1. Baseline (pre-change) build, via `git stash` to get the unmodified file:
$ bun e2e/openmotion/buildComposition.mjs
Composition built (redesign 3).
total duration : 89.86s (2696 frames @ 30fps)
segments : ... epilogue[69.6-76.4] assembly[75.9-83.2] wall[82.7-89.7]
exit 0
2. Baseline hyperframes lint (pre-change, stashed):
$ cd e2e/openmotion && \
HYPERFRAMES_FFMPEG_PATH=/home/athapa/patriothacks/node_modules/ffmpeg-static/ffmpeg \
HYPERFRAMES_FFPROBE_PATH=/home/athapa/patriothacks/node_modules/ffprobe-static/bin/linux/x64/ffprobe \
HYPERFRAMES_BROWSER_PATH=~/.cache/ms-playwright/chromium-1255/chrome-linux64/chrome \
node /home/athapa/openmotion/node_modules/hyperframes/bin/hyperframes.mjs lint .
→ 0 error(s), 6 warning(s) — all `nested_media_start_basis_ambiguous`
on vid-intro, vid-act1, vid-act2, vid-act3, vid-epilogue, vid-assembly
(pre-existing, unrelated to data-start values, not to markup structure).
exit 0
(git stash pop restored the change after this baseline run.)
3. Post-change build:
$ bun e2e/openmotion/buildComposition.mjs
Composition built (redesign 3).
total duration : 89.86s (2696 frames @ 30fps)
segments : ... epilogue[69.6-76.4] assembly[75.9-83.2] wall[82.7-89.7]
exit 0 — segment timings unchanged (assembly duration comes from
assembly-manifest.json, untouched).
4. Post-change hyperframes lint (same env vars as above):
→ 0 error(s), 6 warning(s) — identical set of 6
`nested_media_start_basis_ambiguous` warnings (same ids, same lines ±2
for the inserted markup). Zero NEW errors or warnings introduced.
exit 0
5. Snapshot inside the assembly segment (window 75.89–83.19s):
$ cd e2e/openmotion && \
HYPERFRAMES_FFMPEG_PATH=... HYPERFRAMES_FFPROBE_PATH=... HYPERFRAMES_BROWSER_PATH=... \
node /home/athapa/openmotion/node_modules/hyperframes/bin/hyperframes.mjs snapshot . --at 79.0 -o /tmp/qa-assembly
→ 2 snapshots saved (79s + an added end-of-timeline frame at 89.61s),
exit 0. Used frame-00-at-79s.png.
First snapshot attempt revealed two visual defects, fixed and
re-verified before accepting:
a) The initial frame (170px margins on all sides) left almost no
visible gradient margin — the field's bright gradient center was
entirely hidden behind the near-full-bleed frame, so the "field"
read as plain black. Fixed by shrinking the frame to
left/right:370px, top:250px, bottom:170px (a 1180x660 card) and
brightening/re-centering the radial-gradient stops.
b) The Epilogue's last phone-rig position was visible peeking above/
behind the (now smaller) assembly frame, since the frame no longer
fully occludes #phoneRig (z-index 10 vs assembly-frame z-index 20).
Fixed with the `tl.to('#phoneRig', { opacity: 0 }, ...)` GSAP call
described above.
Re-ran build + lint + snapshot after each fix (both clean, same 0
errors / 6 warnings as baseline).
VISUAL CONFIRMATION (read directly, not just claimed)
------------------------------------------------------
Read /tmp/qa-assembly/frame-00-at-79s.png (copied to
.omo/evidence/first-place-overhaul/task-7-first-place-overhaul-assembly.png)
directly via the image-reading tool. Confirmed all three required elements
are present and correctly composed:
- A visible plum/indigo radial-gradient field surrounds the frame on all
sides (clearly distinguishable from the root's near-black background,
matching the darkness level of the existing per-act fields sampled for
comparison, e.g. Act III's field at the same canvas position).
- The assembly.mp4 video (showing the two side-by-side governance
device screens) sits inset inside a rounded-corner, bordered,
drop-shadowed card with real padding on every side — not full-bleed
edge-to-edge.
- The caption is visible and legible at the top: eyebrow "LIVE CAPTURE ·
TWO DEVICES" above the title "Two devices. One signed log. A real
network partition, and a real heal." — matching the st-eyebrow/
st-title typography used by every other beat, fully clear of the
frame below it.
- No leftover phone-rig artifact from the prior segment.
NOT TOUCHED
-----------
- assets/assembly.mp4 itself — untouched (out of scope per the task).
- Every other segment's markup/CSS/GSAP (data, chapters, acts I–III,
epilogue, wall) — untouched; `git diff` for buildComposition.mjs shows
only the COLORS/field/asmEl/CSS/GSAP-assembly-section edits described
above.
DISCLOSED DEVIATIONS / RISK
----------------------------
- This worktree had no node_modules; `bun install` was run to make the
render/lint/snapshot commands runnable. This produced a new, untracked
bun.lock in the worktree root — left untracked/uncommitted since it is
a side effect of local verification tooling, not part of this feature;
package-lock.json (the tracked lockfile) is unmodified.
- The frame's exact pixel geometry (370/250/170px insets) and the
gradient's exact color stops are a judgment call sized to make the field
clearly visible around a landscape (not phone-aspect) video, verified
visually rather than against a numeric spec.
+31 -10
View File
@@ -101,6 +101,7 @@ const COLORS = {
fieldAct2: "radial-gradient(1200px 820px at 50% 24%,#1a2330 0%,#0d1117 62%,#06080c 100%)", // charcoal
fieldAct3: "radial-gradient(1200px 820px at 30% 30%,#1b2a66 0%,#10163a 60%,#080b22 100%)", // indigo
fieldEpi: "radial-gradient(1200px 820px at 50% 28%,#2c1a56 0%,#1a1030 60%,#0d0820 100%)", // plum
fieldAssembly: "radial-gradient(900px 640px at 50% 56%,#4a2a86 0%,#241a52 55%,#0d0820 100%)", // plum/indigo blend
wall: "linear-gradient(160deg,#1a7bff 0%,#0e55c0 55%,#0a327e 100%)",
};
@@ -206,9 +207,9 @@ function buildTimeline(clips, assemblyDur) {
],
});
// Assembly two-device clip plays full-canvas (it is a pre-composited
// 1920x1080 scene with its own baked fades).
push({ id: "assembly", kind: "assembly", dur: assemblyDur });
// Assembly two-device clip: a pre-composited 1920x1080 scene with its own
// baked fades, given the same field/frame/caption treatment as every act.
push({ id: "assembly", kind: "assembly", dur: assemblyDur, field: COLORS.fieldAssembly });
// Result wall + brand lockup.
const wall = push({ id: "wall", kind: "wall", dur: WALL_DUR });
@@ -303,7 +304,7 @@ function main() {
// ---- markup ----
// Field panels: one per stage (+ data/wall carry their own bg in their
// section). Crossfaded to create the color journey behind the phone.
const fieldEls = stages
const fieldEls = [...stages, asmSeg]
.map((s) => ` <div class="field" id="field-${s.id}" style="background:${s.field};opacity:0;"></div>`)
.join("\n");
@@ -380,8 +381,16 @@ ${bars}
<div class="data-hook">Their systems are failing. The Commons is how they <span class="hook-cap">fight back</span>.</div>
</div>`;
// Assembly full-canvas clip.
const asmEl = ` <video class="assembly" id="vid-assembly" src="assets/assembly.mp4" data-start="${asmSeg.start.toFixed(3)}" data-media-start="0" data-duration="${assemblyDur.toFixed(3)}" muted playsinline></video>`;
// Assembly clip: inset in a padded, bordered/shadowed frame on its own
// field (same visual family as the act stages), with a GSAP-driven caption
// naming the beat - never a bare full-bleed video.
const asmEl = ` <div class="assembly-frame" id="assembly-frame" style="opacity:0;">
<video class="assembly" id="vid-assembly" src="assets/assembly.mp4" data-start="${asmSeg.start.toFixed(3)}" data-media-start="0" data-duration="${assemblyDur.toFixed(3)}" muted playsinline></video>
</div>
<div class="stagetext top" id="text-assembly" style="opacity:0;">
<div class="st-eyebrow">Live Capture &middot; Two Devices</div>
<div class="st-title">Two devices. One signed log. A real network partition, and a real heal.</div>
</div>`;
// Result wall: real screenshots fan in, then a brand lockup.
const tileEls = WALL_TILES.map(
@@ -503,7 +512,11 @@ ${tileEls}
.lock-title { color:#fff; font-size:150px; font-weight:800; letter-spacing:-0.03em; line-height:1.0; margin-top:14px; text-shadow:0 12px 60px rgba(0,20,80,0.5); }
.lock-sub { color:rgba(255,255,255,0.94); font-size:28px; font-weight:500; margin-top:22px; max-width:1040px; line-height:1.45; }
.assembly { position:absolute; inset:0; z-index:20; width:100%; height:100%; object-fit:cover; display:block; background:#000; opacity:0; }
.assembly-frame { position:absolute; z-index:20; left:370px; right:370px; top:250px; bottom:170px;
border-radius:28px; overflow:hidden; background:#000; border:1px solid rgba(196,168,255,0.26);
box-shadow:0 60px 120px rgba(0,0,0,0.55), 0 20px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(140,110,255,0.08) inset;
will-change:opacity; }
.assembly { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
</style>
<div id="root" data-composition-id="promo" data-width="${CANVAS_W}" data-height="${CANVAS_H}" data-duration="${total}">
@@ -608,10 +621,18 @@ ${audioEl}
tl.fromTo('#' + c.id, { scale: 1 }, { scale: 1.02, duration: c.end - c.start, ease: 'sine.inOut' }, c.start);
}
// ---------- ASSEMBLY (full canvas) ----------
// ---------- ASSEMBLY (framed field + caption) ----------
const A = { start: ${asmSeg.start}, end: ${asmSeg.end} };
tl.fromTo('#vid-assembly', { opacity: 0 }, { opacity: 1, duration: F, ease: 'power1.out' }, A.start - F);
tl.to('#vid-assembly', { opacity: 0, duration: F, ease: 'power1.in' }, A.end - F);
// The phone rig is not full-bleed-covered by the assembly frame (unlike
// the chapter/section overlays), so hide it explicitly - otherwise the
// Epilogue's last phone position peeks through the field margins.
tl.to('#phoneRig', { opacity: 0, duration: F, ease: 'power1.in' }, A.start - F);
tl.fromTo('#field-assembly', { opacity: 0 }, { opacity: 1, duration: F, ease: 'power1.out' }, A.start - F);
tl.to('#field-assembly', { opacity: 0, duration: F, ease: 'power1.in' }, A.end - F);
tl.fromTo('#assembly-frame', { opacity: 0 }, { opacity: 1, duration: F, ease: 'power1.out' }, A.start - F);
tl.to('#assembly-frame', { opacity: 0, duration: F, ease: 'power1.in' }, A.end - F);
tl.fromTo('#text-assembly', { opacity: 0, y: -18 }, { opacity: 1, y: 0, duration: 0.6, ease: 'power2.out' }, A.start + 0.3);
tl.to('#text-assembly', { opacity: 0, duration: 0.45, ease: 'power2.in' }, A.end - F);
// ---------- RESULT WALL + LOCKUP ----------
const W = { start: ${wallSeg.start}, end: ${wallSeg.end} };
+24 -5
View File
@@ -91,7 +91,11 @@
.lock-title { color:#fff; font-size:150px; font-weight:800; letter-spacing:-0.03em; line-height:1.0; margin-top:14px; text-shadow:0 12px 60px rgba(0,20,80,0.5); }
.lock-sub { color:rgba(255,255,255,0.94); font-size:28px; font-weight:500; margin-top:22px; max-width:1040px; line-height:1.45; }
.assembly { position:absolute; inset:0; z-index:20; width:100%; height:100%; object-fit:cover; display:block; background:#000; opacity:0; }
.assembly-frame { position:absolute; z-index:20; left:370px; right:370px; top:250px; bottom:170px;
border-radius:28px; overflow:hidden; background:#000; border:1px solid rgba(196,168,255,0.26);
box-shadow:0 60px 120px rgba(0,0,0,0.55), 0 20px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(140,110,255,0.08) inset;
will-change:opacity; }
.assembly { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
</style>
<div id="root" data-composition-id="promo" data-width="1920" data-height="1080" data-duration="89.86">
@@ -100,6 +104,7 @@
<div class="field" id="field-act2" style="background:radial-gradient(1200px 820px at 50% 24%,#1a2330 0%,#0d1117 62%,#06080c 100%);opacity:0;"></div>
<div class="field" id="field-act3" style="background:radial-gradient(1200px 820px at 30% 30%,#1b2a66 0%,#10163a 60%,#080b22 100%);opacity:0;"></div>
<div class="field" id="field-epilogue" style="background:radial-gradient(1200px 820px at 50% 28%,#2c1a56 0%,#1a1030 60%,#0d0820 100%);opacity:0;"></div>
<div class="field" id="field-assembly" style="background:radial-gradient(900px 640px at 50% 56%,#4a2a86 0%,#241a52 55%,#0d0820 100%);opacity:0;"></div>
</div>
<div id="stage">
@@ -164,7 +169,13 @@
</div>
</div>
<video class="assembly" id="vid-assembly" src="assets/assembly.mp4" data-start="75.890" data-media-start="0" data-duration="7.270" muted playsinline></video>
<div class="assembly-frame" id="assembly-frame" style="opacity:0;">
<video class="assembly" id="vid-assembly" src="assets/assembly.mp4" data-start="75.890" data-media-start="0" data-duration="7.270" muted playsinline></video>
</div>
<div class="stagetext top" id="text-assembly" style="opacity:0;">
<div class="st-eyebrow">Live Capture &middot; Two Devices</div>
<div class="st-title">Two devices. One signed log. A real network partition, and a real heal.</div>
</div>
<div class="section" id="data" style="background:linear-gradient(150deg,#1a7bff 0%,#0f62d8 55%,#0a46a6 100%);opacity:0;">
<div class="data-kicker">The Hollow &middot; live seed data</div>
@@ -313,10 +324,18 @@
tl.fromTo('#' + c.id, { scale: 1 }, { scale: 1.02, duration: c.end - c.start, ease: 'sine.inOut' }, c.start);
}
// ---------- ASSEMBLY (full canvas) ----------
// ---------- ASSEMBLY (framed field + caption) ----------
const A = { start: 75.89, end: 83.16 };
tl.fromTo('#vid-assembly', { opacity: 0 }, { opacity: 1, duration: F, ease: 'power1.out' }, A.start - F);
tl.to('#vid-assembly', { opacity: 0, duration: F, ease: 'power1.in' }, A.end - F);
// The phone rig is not full-bleed-covered by the assembly frame (unlike
// the chapter/section overlays), so hide it explicitly - otherwise the
// Epilogue's last phone position peeks through the field margins.
tl.to('#phoneRig', { opacity: 0, duration: F, ease: 'power1.in' }, A.start - F);
tl.fromTo('#field-assembly', { opacity: 0 }, { opacity: 1, duration: F, ease: 'power1.out' }, A.start - F);
tl.to('#field-assembly', { opacity: 0, duration: F, ease: 'power1.in' }, A.end - F);
tl.fromTo('#assembly-frame', { opacity: 0 }, { opacity: 1, duration: F, ease: 'power1.out' }, A.start - F);
tl.to('#assembly-frame', { opacity: 0, duration: F, ease: 'power1.in' }, A.end - F);
tl.fromTo('#text-assembly', { opacity: 0, y: -18 }, { opacity: 1, y: 0, duration: 0.6, ease: 'power2.out' }, A.start + 0.3);
tl.to('#text-assembly', { opacity: 0, duration: 0.45, ease: 'power2.in' }, A.end - F);
// ---------- RESULT WALL + LOCKUP ----------
const W = { start: 82.66, end: 89.66 };