oficina / slides Public

Slides: every block of a scene on a slide runs, paired by order

The scene layer kept one frame per scene and skipped a second block of
the same scene, which stayed a still while presenting. Each placement
is now tracked on its own, keyed by scene and its occurrence order on
the slide (scene-places.mjs placementSlots). Carrying on pairs the
next slide's placements by that key: the first block of S carries on
into the next slide's first block of S when it is in the same box, and
so on; unmatched ones start fresh. The code panel's preview remakes
the scene's first running placement.

The deck-font helpers move to scene-fonts.mjs, so scene-layer.mjs is
264 lines. docs/scenes.md and the spec say how repeated blocks pair,
and the spec says Next previews the next press while thumbnails and the
PDF show `to`.

Tests: scene-layer.test.mjs (slots; pairing by order) and the browser
test TestTwoBlocksOfOneSceneEachRun.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 79b5d64be7bb4530c410ba908a32d474310036f5 parent 923b9c6
13 files changed, +272 −115
  • docs/scenes.md +6 −0
  • docs/superpowers/specs/2026-11-23-scenes-and-clips-design.md +7 −1
  • fixtures/scene-fonts.mjs +52 −0
  • fixtures/scene-layer.mjs +36 −72
  • fixtures/scene-layer.test.mjs +27 −10
  • fixtures/scene-places.mjs +15 −0
  • internal/slides/credits/assets.json +3 −3
  • internal/slides/static/{editor.9dd5fa8c96e57356.js => editor.df0112d696cc35ea.js} +19 −19
  • internal/slides/static/fontsgate.373bcddfb737463b.js +0 −5
  • internal/slides/static/fontsgate.fa2160227e5d7324.js +5 −0
  • internal/slides/static/presenter.3dffbc7e34883216.js +5 −0
  • internal/slides/static/presenter.f43d38f16c1e5936.js +0 −5
  • internal/slidestest/scenes_final_browser_test.go +97 −0
docs/scenes.md

Loading diff…

docs/superpowers/specs/2026-11-23-scenes-and-clips-design.md

Loading diff…

fixtures/scene-fonts.mjs

Loading diff…

fixtures/scene-layer.mjs

Loading diff…

fixtures/scene-layer.test.mjs

Loading diff…

fixtures/scene-places.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/{editor.9dd5fa8c96e57356.js => editor.df0112d696cc35ea.js}

Loading diff…

internal/slides/static/fontsgate.373bcddfb737463b.js

Loading diff…

internal/slides/static/fontsgate.fa2160227e5d7324.js

Loading diff…

internal/slides/static/presenter.3dffbc7e34883216.js

Loading diff…

internal/slides/static/presenter.f43d38f16c1e5936.js

Loading diff…

internal/slidestest/scenes_final_browser_test.go

Loading diff…