oficina / slides Public

Merge main into feat/scenes: follow-along codes, the settings undo

Brings in 38535b9 (one undo takes back a Deck settings change) and
aed32cd (the qr block, a follow-along code, and the Audience share
link) beside scenes and clips.

Migrations: main owns 0013_alter_share_links, so the branch's
0013_create_scene_bundles is renumbered 0014_create_scene_bundles.
Neither has shipped from this branch; schema.sql carries both tables'
end state and rastrillo migration check agrees.

Both features extend the block vocabulary: core/src/schema.rs,
fixtures/ops-model.mjs, the agent edit contract and docs/api.md list
scene, clip and qr; add_block validates a qr url and a clip/scene's
props; Insert adds a qr with its audience link and a scene or clip
with its own props; the inspector holds the clip group, then the qr
group; the tidy and inventory tests name both.

Generated files taken from one side and rebuilt: the core wasm and
its stamp (scripts/build-wasm.sh), the vectors (generate.mjs), the
editor bundle (build-bundles.mjs, the two stale hashes removed) and
the credits (scripts/credits.py).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 19c82f9acfd4884fdb8456b51e32eff967ac98d7 parent 5bce43eparent aed32cd
66 files changed, +2,117 −95
  • AGENTS.md +18 −0
  • core/src/ops.rs +18 −0
  • core/src/schema.rs +47 −1
  • core/tests/ops.rs +69 −0
  • docs/api.md +13 −1
  • fixtures/commands.mjs +39 −3
  • fixtures/commands.test.mjs +49 −0
  • fixtures/data/qr.json +15 −0
  • fixtures/editor-entry.js +28 −4
  • fixtures/inspector-block.mjs +13 −1
  • fixtures/inspector.mjs +14 −3
  • fixtures/inspector.test.mjs +18 −1
  • fixtures/ops-model.mjs +23 −1
  • fixtures/ops.test.mjs +43 −0
  • fixtures/vectors/qr.view.json +99 −0
  • fixtures/vectors/qr.yjs binary
  • internal/slides/agent_edit_contract.go +1 −1
  • internal/slides/api.go +1 −1
  • internal/slides/app.go +3 −0
  • internal/slides/core/testdata/slides_core.wasm binary
  • internal/slides/core/testdata/slides_core.wasm.stamp +2 −2
  • internal/slides/credits/assets.json +2 −2
  • internal/slides/deck/deck.go +21 −0
  • internal/slides/deck/deck_test.go +33 −0
  • internal/slides/editor.go +55 −10
  • internal/slides/export.go +6 −1
  • internal/slides/export_qr_test.go +63 −0
  • internal/slides/exports.go +1 −0
  • internal/slides/layout/blocks.go +79 −0
  • internal/slides/layout/layout.go +4 −0
  • internal/slides/layout/paint.go +8 −1
  • internal/slides/layout/qr_test.go +161 −0
  • internal/slides/layout/sizes.go +8 −0
  • internal/slides/locales/en.toml +8 −0
  • internal/slides/migrations/0013_alter_share_links.sql +2 −0
  • internal/slides/migrations/{0013_create_scene_bundles.sql => 0014_create_scene_bundles.sql} +0 −0
  • internal/slides/migrations/schema.sql +1 −1
  • internal/slides/models.go +11 −2
  • internal/slides/presentation.go +2 −1
  • internal/slides/presenter_window.go +2 −1
  • internal/slides/presenting_talk.go +7 −3
  • internal/slides/qr/qr.go +57 −0
  • internal/slides/qrlink.go +144 −0
  • internal/slides/render/qr_test.go +173 −0
  • internal/slides/render/render.go +79 −1
  • internal/slides/share.go +24 −4
  • internal/slides/static/{editor.f4d35e829c09ae4d.js => editor.0ac6de7cc750619b.js} +19 −19
  • internal/slides/static/editor.css +10 −3
  • internal/slides/static/slides.css +40 −0
  • internal/slides/svg/svg.go +3 −0
  • internal/slides/svg/svg_test.go +18 −0
  • internal/slides/templates/editor.html +23 −3
  • internal/slides/templates/share.html +1 −1
  • internal/slides/thumbs.go +8 −3
  • internal/slides/viewer.go +1 −1
  • internal/slidestest/browser_editor_tidy_test.go +7 −6
  • internal/slidestest/browser_quieter_test.go +4 −4
  • internal/slidestest/browser_settings_undo_test.go +134 −0
  • internal/slidestest/editor_test.go +2 −2
  • internal/slidestest/editor_tidy_test.go +1 −1
  • internal/slidestest/harness_test.go +2 −2
  • internal/slidestest/qr_browser_test.go +102 −0
  • internal/slidestest/qrlink_test.go +271 −0
  • internal/slidestest/quieter_inventory_test.go +4 −1
  • internal/slidestest/quieter_test.go +1 −1
  • internal/slidestest/scenes_editor_test.go +2 −2
AGENTS.md

Loading diff…

core/src/ops.rs

Loading diff…

core/src/schema.rs

Loading diff…

core/tests/ops.rs

Loading diff…

docs/api.md

Loading diff…

fixtures/commands.mjs

Loading diff…

fixtures/commands.test.mjs

Loading diff…

fixtures/data/qr.json

Loading diff…

fixtures/editor-entry.js

Loading diff…

fixtures/inspector-block.mjs

Loading diff…

fixtures/inspector.mjs

Loading diff…

fixtures/inspector.test.mjs

Loading diff…

fixtures/ops-model.mjs

Loading diff…

fixtures/ops.test.mjs

Loading diff…

fixtures/vectors/qr.view.json

Loading diff…

fixtures/vectors/qr.yjs

Loading diff…

internal/slides/agent_edit_contract.go

Loading diff…

internal/slides/api.go

Loading diff…

internal/slides/app.go

Loading diff…

internal/slides/core/testdata/slides_core.wasm

Loading diff…

internal/slides/core/testdata/slides_core.wasm.stamp

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/deck/deck.go

Loading diff…

internal/slides/deck/deck_test.go

Loading diff…

internal/slides/editor.go

Loading diff…

internal/slides/export.go

Loading diff…

internal/slides/export_qr_test.go

Loading diff…

internal/slides/exports.go

Loading diff…

internal/slides/layout/blocks.go

Loading diff…

internal/slides/layout/layout.go

Loading diff…

internal/slides/layout/paint.go

Loading diff…

internal/slides/layout/qr_test.go

Loading diff…

internal/slides/layout/sizes.go

Loading diff…

internal/slides/locales/en.toml

Loading diff…

internal/slides/migrations/0013_alter_share_links.sql

Loading diff…

internal/slides/migrations/{0013_create_scene_bundles.sql => 0014_create_scene_bundles.sql}

Loading diff…

internal/slides/migrations/schema.sql

Loading diff…

internal/slides/models.go

Loading diff…

internal/slides/presentation.go

Loading diff…

internal/slides/presenter_window.go

Loading diff…

internal/slides/presenting_talk.go

Loading diff…

internal/slides/qr/qr.go

Loading diff…

internal/slides/qrlink.go

Loading diff…

internal/slides/render/qr_test.go

Loading diff…

internal/slides/render/render.go

Loading diff…

internal/slides/share.go

Loading diff…

internal/slides/static/{editor.f4d35e829c09ae4d.js => editor.0ac6de7cc750619b.js}

Loading diff…

internal/slides/static/editor.css

Loading diff…

internal/slides/static/slides.css

Loading diff…

internal/slides/svg/svg.go

Loading diff…

internal/slides/svg/svg_test.go

Loading diff…

internal/slides/templates/editor.html

Loading diff…

internal/slides/templates/share.html

Loading diff…

internal/slides/thumbs.go

Loading diff…

internal/slides/viewer.go

Loading diff…

internal/slidestest/browser_editor_tidy_test.go

Loading diff…

internal/slidestest/browser_quieter_test.go

Loading diff…

internal/slidestest/browser_settings_undo_test.go

Loading diff…

internal/slidestest/editor_test.go

Loading diff…

internal/slidestest/editor_tidy_test.go

Loading diff…

internal/slidestest/harness_test.go

Loading diff…

internal/slidestest/qr_browser_test.go

Loading diff…

internal/slidestest/qrlink_test.go

Loading diff…

internal/slidestest/quieter_inventory_test.go

Loading diff…

internal/slidestest/quieter_test.go

Loading diff…

internal/slidestest/scenes_editor_test.go

Loading diff…