oficina / slides Public

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>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 1953b440fa0416d77978603c7ad39f0d59066a83 parent 49ab993
24 files changed, +1,935 −143
  • fixtures/box-menu.mjs +299 −0
  • fixtures/box-menu.test.mjs +332 −0
  • fixtures/canvas.mjs +11 −4
  • fixtures/commands.mjs +10 −4
  • fixtures/commands.test.mjs +22 −0
  • fixtures/editor-entry.js +43 −6
  • fixtures/inspector-block.mjs +8 −1
  • fixtures/inspector.mjs +27 −3
  • fixtures/inspector.test.mjs +14 −0
  • fixtures/selection.mjs +3 −2
  • fixtures/stage-focus.mjs +26 −2
  • fixtures/stage-focus.test.mjs +50 −0
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/editor.go +10 −5
  • internal/slides/locales/en.toml +19 −4
  • internal/slides/static/editor.2dca1e6eaf8f63ba.js +16 −0
  • internal/slides/static/editor.css +104 −12
  • internal/slides/static/editor.db10b8d13a8c42be.js +0 −16
  • internal/slides/templates/editor.html +97 −62
  • internal/slidestest/browser_quieter_box_test.go +574 −0
  • internal/slidestest/browser_quieter_test.go +32 −0
  • internal/slidestest/editor_tidy_test.go +37 −11
  • internal/slidestest/quieter_inventory_test.go +30 −10
  • internal/slidestest/quieter_test.go +170 −0
fixtures/box-menu.mjs

Loading diff…

fixtures/box-menu.test.mjs

Loading diff…

fixtures/canvas.mjs

Loading diff…

fixtures/commands.mjs

Loading diff…

fixtures/commands.test.mjs

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/selection.mjs

Loading diff…

fixtures/stage-focus.mjs

Loading diff…

fixtures/stage-focus.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/editor.go

Loading diff…

internal/slides/locales/en.toml

Loading diff…

internal/slides/static/editor.2dca1e6eaf8f63ba.js

Loading diff…

internal/slides/static/editor.css

Loading diff…

internal/slides/static/editor.db10b8d13a8c42be.js

Loading diff…

internal/slides/templates/editor.html

Loading diff…

internal/slidestest/browser_quieter_box_test.go

Loading diff…

internal/slidestest/browser_quieter_test.go

Loading diff…

internal/slidestest/editor_tidy_test.go

Loading diff…

internal/slidestest/quieter_inventory_test.go

Loading diff…

internal/slidestest/quieter_test.go

Loading diff…