oficina / slides Public

Editor: boxes are tab stops; Outline and Insert replace the card's list

Every box on the stage is a tab stop in the slide's order (spec §4.4).
A box with text keeps its text editor as its stop; any other box gets
tabindex, role="group" and its kind as its name after each install
(fixtures/stage-focus.mjs; the renderer is unchanged). Focus on a box
selects it. On a canvas slide focus goes on to the overlay, which is no
longer a tab stop itself, and Tab and Shift+Tab on it walk the boxes.

Esc in a box's options puts focus back on that box, still selected; Esc
on the box gives it up. Esc in a popover closes it and keeps the box.

View → Outline (fixtures/outline.mjs) lists the slide's boxes by kind
and first words; a row selects its box and focuses it. Insert adds a box
through commands.addBlock. The card loses its Boxes group and Add block,
and with them group.boxes, inspector.blocks.none and block.add.

The card now paints in its final state (R11): the server renders the
painted slide's layout choice, template or phone field, and background
colour field, and the floating card has its own compositing layer from
the first paint (will-change: transform), so a late editor's mount no
longer changes a pixel of the slide.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 7ff7b4dc6a3d5fed3248a2ecc0d3097ea1c17da5 parent 908fff7
34 files changed, +1,490 −401
  • fixtures/canvas.mjs +4 −2
  • fixtures/commands.mjs +21 −7
  • fixtures/commands.test.mjs +34 −0
  • fixtures/dom-stub.mjs +45 −5
  • fixtures/editor-entry.js +43 −11
  • fixtures/engines/first-reveal.mjs +2 −3
  • fixtures/engines/wait-keys.mjs +2 −3
  • fixtures/format-bar.mjs +4 −3
  • fixtures/head.mjs +10 −10
  • fixtures/head.test.mjs +34 −0
  • fixtures/inspector-image.mjs +1 −1
  • fixtures/inspector-ops.mjs +1 −1
  • fixtures/inspector.mjs +17 −109
  • fixtures/inspector.test.mjs +0 −50
  • fixtures/outline.mjs +143 −0
  • fixtures/outline.test.mjs +173 −0
  • fixtures/selection.mjs +6 −5
  • fixtures/stage-focus.mjs +123 −0
  • fixtures/stage-focus.test.mjs +193 −0
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/editor.go +15 −7
  • internal/slides/locales/en.toml +8 −8
  • internal/slides/static/{editor.3f63277e9d63eaf9.js => editor.4552a48e18eb34e3.js} +15 −15
  • internal/slides/static/editor.css +33 −18
  • internal/slides/templates/editor.html +27 −24
  • internal/slidestest/browser_assets_test.go +4 −8
  • internal/slidestest/browser_editor_tidy_test.go +71 −88
  • internal/slidestest/browser_quieter_test.go +418 −0
  • internal/slidestest/editor_test.go +11 −4
  • internal/slidestest/editor_tidy_test.go +7 −4
  • internal/slidestest/fonts_browser_test.go +3 −4
  • internal/slidestest/harness_test.go +1 −1
  • internal/slidestest/quieter_inventory_test.go +18 −7
  • internal/slidestest/testdata/phone-stage-html.json +2 −2
fixtures/canvas.mjs

Loading diff…

fixtures/commands.mjs

Loading diff…

fixtures/commands.test.mjs

Loading diff…

fixtures/dom-stub.mjs

Loading diff…

fixtures/editor-entry.js

Loading diff…

fixtures/engines/first-reveal.mjs

Loading diff…

fixtures/engines/wait-keys.mjs

Loading diff…

fixtures/format-bar.mjs

Loading diff…

fixtures/head.mjs

Loading diff…

fixtures/head.test.mjs

Loading diff…

fixtures/inspector-image.mjs

Loading diff…

fixtures/inspector-ops.mjs

Loading diff…

fixtures/inspector.mjs

Loading diff…

fixtures/inspector.test.mjs

Loading diff…

fixtures/outline.mjs

Loading diff…

fixtures/outline.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.3f63277e9d63eaf9.js => editor.4552a48e18eb34e3.js}

Loading diff…

internal/slides/static/editor.css

Loading diff…

internal/slides/templates/editor.html

Loading diff…

internal/slidestest/browser_assets_test.go

Loading diff…

internal/slidestest/browser_editor_tidy_test.go

Loading diff…

internal/slidestest/browser_quieter_test.go

Loading diff…

internal/slidestest/editor_test.go

Loading diff…

internal/slidestest/editor_tidy_test.go

Loading diff…

internal/slidestest/fonts_browser_test.go

Loading diff…

internal/slidestest/harness_test.go

Loading diff…

internal/slidestest/quieter_inventory_test.go

Loading diff…

internal/slidestest/testdata/phone-stage-html.json

Loading diff…