oficina / slides Public

Slides: a scene's still is never offered as an unused image

unusedAssets() kept image blocks, backgrounds and clip posters but not
scenes[*].stills[*].ref, so the Unused images list offered a scene's
still for removal; removing it broke thumbnails, the PDF and the
picture a frame shows before it is ready. It now keeps every asset a
scene still names.

stillsCurrent(scene, assets) also counts a still whose ref no asset is
registered under as missing (what deck.go's StillOf draws as the
panel), and the scene card and Deck settings' list pass the deck's
assets. The Go side has no unused-asset list or cleanup path to guard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 4b58762a70a26fc7f8d6a6b2d5f46a747868cdfa parent 19c82f9
10 files changed, +94 −41
  • docs/api.md +5 −2
  • fixtures/assets.test.mjs +14 −0
  • fixtures/inspector-ops.mjs +13 −5
  • fixtures/scene-card.mjs +10 −9
  • fixtures/scene-card.test.mjs +11 −0
  • fixtures/scene-stills.test.mjs +14 −0
  • fixtures/scene-version.mjs +5 −3
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/editor.0ac6de7cc750619b.js +0 −21
  • internal/slides/static/editor.b7d7ed4324f72e40.js +21 −0
docs/api.md

Loading diff…

fixtures/assets.test.mjs

Loading diff…

fixtures/inspector-ops.mjs

Loading diff…

fixtures/scene-card.mjs

Loading diff…

fixtures/scene-card.test.mjs

Loading diff…

fixtures/scene-stills.test.mjs

Loading diff…

fixtures/scene-version.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/editor.0ac6de7cc750619b.js

Loading diff…

internal/slides/static/editor.b7d7ed4324f72e40.js

Loading diff…