oficina / slides Public

Slides: scenes run on every surface, carry on, and show stills elsewhere

Task 4 of the scenes plan.

- render: a scene block is its stills, one per state from `from` to `to`,
  the state's description as alt, the states after `from` arriving on
  presses; a state with no registered still is the placeholder panel
  (scene name, state description, theme colours). AssetPaths fetches
  the stills. layout/svg draw the `to` state (still or panel) for
  thumbnails and the PDF.
- fixtures/scene-frame.mjs: one sealed frame; init after load, state on
  each move, shown only after ready; given up after 3 s silent, on a
  second load or an error message; reduced motion shows the still until
  a new state settles.
- fixtures/scene-layer.mjs: a layer outside the slide DOM, one frame per
  scene, kept for the same scene in the same box (canvas box, flow
  region) and told the new state, animate unless a jump; stills only on
  a phone view. Wired into the slide and presenter windows (Now live,
  Next stills; talk payload carries scenes and preloads bundles), the
  viewer and follow view (scene-pages.mjs from the font gate, scenes in
  a JSON script on the page), and the editor (selected block or
  play-through).
- docs/scenes.md: carrying on, the error message, the inert frame.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 7a53b156b142c248e923c98204bcf204abb86cce parent 488b357
35 files changed, +2,383 −60
  • docs/scenes.md +15 −4
  • fixtures/editor-entry.js +15 −2
  • fixtures/fonts-gate.mjs +5 −0
  • fixtures/play-through.mjs +30 −14
  • fixtures/presenter-window.mjs +8 −0
  • fixtures/scene-frame.mjs +141 −0
  • fixtures/scene-frame.test.mjs +184 −0
  • fixtures/scene-layer.mjs +282 −0
  • fixtures/scene-layer.test.mjs +110 −0
  • fixtures/scene-pages.mjs +70 −0
  • fixtures/slide-window.mjs +8 −0
  • fixtures/talk-driver.mjs +4 −2
  • fixtures/talk-store.mjs +14 −1
  • internal/slides/credits/assets.json +4 −4
  • internal/slides/deck/scenes.go +44 −0
  • internal/slides/layout/blocks.go +2 −0
  • internal/slides/layout/scenes.go +80 −0
  • internal/slides/layout/scenes_test.go +122 −0
  • internal/slides/presentation.go +4 −0
  • internal/slides/presenting_talk.go +6 −1
  • internal/slides/render/render.go +92 −3
  • internal/slides/render/scenes_test.go +267 −0
  • internal/slides/scene_pages.go +67 −0
  • internal/slides/static/{editor.9c05be46d0d57612.js => editor.40aed9dd0801d716.js} +18 −17
  • internal/slides/static/fontsgate.3e08aa5807012613.js +0 −4
  • internal/slides/static/fontsgate.7c1b9c1c68e4e66d.js +5 −0
  • internal/slides/static/present.js +5 −2
  • internal/slides/static/presenter.898ea955958ffad6.js +0 −4
  • internal/slides/static/presenter.ea094c31a2eb5ec1.js +5 −0
  • internal/slides/static/slides.css +57 −1
  • internal/slides/templates/present.html +3 −1
  • internal/slides/templates/viewer.html +8 −0
  • internal/slides/viewer.go +4 −0
  • internal/slidestest/scenes_layer_browser_test.go +453 −0
  • internal/slidestest/scenes_stills_test.go +251 −0
docs/scenes.md

Loading diff…

fixtures/editor-entry.js

Loading diff…

fixtures/fonts-gate.mjs

Loading diff…

fixtures/play-through.mjs

Loading diff…

fixtures/presenter-window.mjs

Loading diff…

fixtures/scene-frame.mjs

Loading diff…

fixtures/scene-frame.test.mjs

Loading diff…

fixtures/scene-layer.mjs

Loading diff…

fixtures/scene-layer.test.mjs

Loading diff…

fixtures/scene-pages.mjs

Loading diff…

fixtures/slide-window.mjs

Loading diff…

fixtures/talk-driver.mjs

Loading diff…

fixtures/talk-store.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/deck/scenes.go

Loading diff…

internal/slides/layout/blocks.go

Loading diff…

internal/slides/layout/scenes.go

Loading diff…

internal/slides/layout/scenes_test.go

Loading diff…

internal/slides/presentation.go

Loading diff…

internal/slides/presenting_talk.go

Loading diff…

internal/slides/render/render.go

Loading diff…

internal/slides/render/scenes_test.go

Loading diff…

internal/slides/scene_pages.go

Loading diff…

internal/slides/static/{editor.9c05be46d0d57612.js => editor.40aed9dd0801d716.js}

Loading diff…

internal/slides/static/fontsgate.3e08aa5807012613.js

Loading diff…

internal/slides/static/fontsgate.7c1b9c1c68e4e66d.js

Loading diff…

internal/slides/static/present.js

Loading diff…

internal/slides/static/presenter.898ea955958ffad6.js

Loading diff…

internal/slides/static/presenter.ea094c31a2eb5ec1.js

Loading diff…

internal/slides/static/slides.css

Loading diff…

internal/slides/templates/present.html

Loading diff…

internal/slides/templates/viewer.html

Loading diff…

internal/slides/viewer.go

Loading diff…

internal/slidestest/scenes_layer_browser_test.go

Loading diff…

internal/slidestest/scenes_stills_test.go

Loading diff…