oficina / slides Public

Slides: scene edits are undone like any other edit

The editor's undo manager tracked slides, meta and assets but not the
scenes root, so a scene's words, data and code made no undo step, and a
mixed batch (the assistant's) undid its slide changes and left its
scene changes behind. The scope is now ydoc.mjs's undoScope, all four
roots.

Tests: undo-scope.test.mjs (a word, data and code each one step; a
slide plus scene batch one step; an added scene undone) and the browser
test TestASceneWordEditIsUndone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 4b0250ec8208535b6195464b54388a15e63c03eb parent 4b58762
7 files changed, +126 −22
  • AGENTS.md +2 −1
  • fixtures/editor-entry.js +2 −2
  • fixtures/undo-scope.test.mjs +67 −0
  • fixtures/ydoc.mjs +6 −0
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/{editor.b7d7ed4324f72e40.js => editor.3402a720a42a04c0.js} +18 −18
  • internal/slidestest/scenes_final_browser_test.go +30 −0
AGENTS.md

Loading diff…

fixtures/editor-entry.js

Loading diff…

fixtures/undo-scope.test.mjs

Loading diff…

fixtures/ydoc.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/{editor.b7d7ed4324f72e40.js => editor.3402a720a42a04c0.js}

Loading diff…

internal/slidestest/scenes_final_browser_test.go

Loading diff…