Editor: arranging a box is a menu on the box; the card is its style
A round button on the selected box (and Shift+F10, the context-menu key, and a right-click outside text being edited) opens estilo's menu: Format, bring forward, send back, move up, move down, Position and size…, Move to region (four radio rows), Delete. Rows that do not apply to the slide's layout are hidden. The box's keys: Mod+] Mod+[, Mod+Shift+arrows and Delete from the box itself, Shift+F10 for the menu. The card's block form keeps only style: heading level and size are segments, fill and stroke round swatches, corner radius only for a rectangle, and position and size a closed <details slides-place> remembered for the session. Focus on a box survives a stage re-render. Tests: box-menu.test.mjs; TestQuieterBlockCardIsStyle, TestQuieterBoxMenuMarkup, the inventory's box-menu rows; TestQuieterBoxMenu, TestQuieterBoxMenuLeavesTextAlone, TestQuieterKeyboardOnlyShape, TestQuieterDeleteKey, the menu in TestQuieterNarrow. TestEditorTidyCardShape and TestEditorTidyStrings updated to the new shape and strings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 files changed,
+1,935
−143
fixtures/box-menu.mjs+299 −0fixtures/box-menu.test.mjs+332 −0fixtures/canvas.mjs+11 −4fixtures/commands.mjs+10 −4fixtures/commands.test.mjs+22 −0fixtures/editor-entry.js+43 −6fixtures/inspector-block.mjs+8 −1fixtures/inspector.mjs+27 −3fixtures/inspector.test.mjs+14 −0fixtures/selection.mjs+3 −2fixtures/stage-focus.mjs+26 −2fixtures/stage-focus.test.mjs+50 −0internal/slides/credits/assets.json+1 −1internal/slides/editor.go+10 −5internal/slides/locales/en.toml+19 −4internal/slides/static/editor.2dca1e6eaf8f63ba.js+16 −0internal/slides/static/editor.css+104 −12internal/slides/static/editor.db10b8d13a8c42be.js+0 −16internal/slides/templates/editor.html+97 −62internal/slidestest/browser_quieter_box_test.go+574 −0internal/slidestest/browser_quieter_test.go+32 −0internal/slidestest/editor_tidy_test.go+37 −11internal/slidestest/quieter_inventory_test.go+30 −10internal/slidestest/quieter_test.go+170 −0
fixtures/box-menu.mjsLoading diff…
fixtures/box-menu.test.mjsLoading diff…
fixtures/canvas.mjsLoading diff…
fixtures/commands.mjsLoading diff…
fixtures/commands.test.mjsLoading diff…
fixtures/editor-entry.jsLoading diff…
fixtures/inspector-block.mjsLoading diff…
fixtures/inspector.mjsLoading diff…
fixtures/inspector.test.mjsLoading diff…
fixtures/selection.mjsLoading diff…
fixtures/stage-focus.mjsLoading diff…
fixtures/stage-focus.test.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/editor.goLoading diff…
internal/slides/locales/en.tomlLoading diff…
internal/slides/static/editor.2dca1e6eaf8f63ba.jsLoading diff…
internal/slides/static/editor.cssLoading diff…
internal/slides/static/editor.db10b8d13a8c42be.jsLoading diff…
internal/slides/templates/editor.htmlLoading diff…
internal/slidestest/browser_quieter_box_test.goLoading diff…
internal/slidestest/browser_quieter_test.goLoading diff…
internal/slidestest/editor_tidy_test.goLoading diff…
internal/slidestest/quieter_inventory_test.goLoading diff…
internal/slidestest/quieter_test.goLoading diff…