oficina / slides Public

Editor: the box's button never covers a handle; Place resets on reload

Review fix round 1. buttonSpot now validates the rectangle it returns:
when none of its five places fits (a box smaller than the button in a
corner), it searches the stage for the nearest spot that covers no
handle, within 48px of the box. The geometry moves to box-spot.mjs,
with the reviewer's case and a sweep of box sizes and positions in two
stages in box-spot.test.mjs.

Position and size keeps open or closed in memory for the page load
(mountPlace): a resync's rebuilt editor keeps it, a reload starts
closed, and nothing is written to sessionStorage (spec §4.3).
TestQuieterPlaceClosesOnReload.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 2ac1f8d2190cb10914fa3e32048c56ad93d4e18e parent 299c7c1
10 files changed, +253 −138
  • fixtures/box-menu.mjs +4 −55
  • fixtures/box-menu.test.mjs +1 −52
  • fixtures/box-spot.mjs +77 −0
  • fixtures/box-spot.test.mjs +82 −0
  • fixtures/editor-entry.js +1 −2
  • fixtures/inspector.mjs +18 −14
  • fixtures/inspector.test.mjs +25 −0
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/{editor.2dca1e6eaf8f63ba.js => editor.d0692e9941f516b2.js} +14 −14
  • internal/slidestest/browser_quieter_box_test.go +30 −0
fixtures/box-menu.mjs

Loading diff…

fixtures/box-menu.test.mjs

Loading diff…

fixtures/box-spot.mjs

Loading diff…

fixtures/box-spot.test.mjs

Loading diff…

fixtures/editor-entry.js

Loading diff…

fixtures/inspector.mjs

Loading diff…

fixtures/inspector.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/{editor.2dca1e6eaf8f63ba.js => editor.d0692e9941f516b2.js}

Loading diff…

internal/slidestest/browser_quieter_box_test.go

Loading diff…