oficina / slides Public

Editor: the box's menu closes when the slide changes under it

A colleague turning a canvas slide into a flow slide left an open box
menu showing canvas rows, and they still ran. After every change to the
document the open menu now closes if its box is gone or no longer
selected, or the slide's layout is not the one its rows were drawn for;
otherwise its region checks follow the box. A row also checks that it
still applies to the box before it runs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 55004170afe3afd2c96ed0abc3b08c90ee188890 parent f7128f7
6 files changed, +137 −24
  • fixtures/box-menu.mjs +31 −3
  • fixtures/box-menu.test.mjs +57 −3
  • fixtures/editor-entry.js +1 −1
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/{editor.90c13b3e54239115.js => editor.df26b0b121842b74.js} +16 −16
  • internal/slidestest/browser_quieter_fixes_test.go +31 −0
fixtures/box-menu.mjs

Loading diff…

fixtures/box-menu.test.mjs

Loading diff…

fixtures/editor-entry.js

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/{editor.90c13b3e54239115.js => editor.df26b0b121842b74.js}

Loading diff…

internal/slidestest/browser_quieter_fixes_test.go

Loading diff…