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>
34 files changed,
+1,490
−401
fixtures/canvas.mjs+4 −2fixtures/commands.mjs+21 −7fixtures/commands.test.mjs+34 −0fixtures/dom-stub.mjs+45 −5fixtures/editor-entry.js+43 −11fixtures/engines/first-reveal.mjs+2 −3fixtures/engines/wait-keys.mjs+2 −3fixtures/format-bar.mjs+4 −3fixtures/head.mjs+10 −10fixtures/head.test.mjs+34 −0fixtures/inspector-image.mjs+1 −1fixtures/inspector-ops.mjs+1 −1fixtures/inspector.mjs+17 −109fixtures/inspector.test.mjs+0 −50fixtures/outline.mjs+143 −0fixtures/outline.test.mjs+173 −0fixtures/selection.mjs+6 −5fixtures/stage-focus.mjs+123 −0fixtures/stage-focus.test.mjs+193 −0internal/slides/credits/assets.json+1 −1internal/slides/editor.go+15 −7internal/slides/locales/en.toml+8 −8internal/slides/static/{editor.3f63277e9d63eaf9.js => editor.4552a48e18eb34e3.js}+15 −15internal/slides/static/editor.css+33 −18internal/slides/templates/editor.html+27 −24internal/slidestest/browser_assets_test.go+4 −8internal/slidestest/browser_editor_tidy_test.go+71 −88internal/slidestest/browser_quieter_test.go+418 −0internal/slidestest/editor_test.go+11 −4internal/slidestest/editor_tidy_test.go+7 −4internal/slidestest/fonts_browser_test.go+3 −4internal/slidestest/harness_test.go+1 −1internal/slidestest/quieter_inventory_test.go+18 −7internal/slidestest/testdata/phone-stage-html.json+2 −2
fixtures/canvas.mjsLoading diff…
fixtures/commands.mjsLoading diff…
fixtures/commands.test.mjsLoading diff…
fixtures/dom-stub.mjsLoading diff…
fixtures/editor-entry.jsLoading diff…
fixtures/engines/first-reveal.mjsLoading diff…
fixtures/engines/wait-keys.mjsLoading diff…
fixtures/format-bar.mjsLoading diff…
fixtures/head.mjsLoading diff…
fixtures/head.test.mjsLoading diff…
fixtures/inspector-image.mjsLoading diff…
fixtures/inspector-ops.mjsLoading diff…
fixtures/inspector.mjsLoading diff…
fixtures/inspector.test.mjsLoading diff…
fixtures/outline.mjsLoading diff…
fixtures/outline.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.3f63277e9d63eaf9.js => editor.4552a48e18eb34e3.js}Loading diff…
internal/slides/static/editor.cssLoading diff…
internal/slides/templates/editor.htmlLoading diff…
internal/slidestest/browser_assets_test.goLoading diff…
internal/slidestest/browser_editor_tidy_test.goLoading diff…
internal/slidestest/browser_quieter_test.goLoading diff…
internal/slidestest/editor_test.goLoading diff…
internal/slidestest/editor_tidy_test.goLoading diff…
internal/slidestest/fonts_browser_test.goLoading diff…
internal/slidestest/harness_test.goLoading diff…
internal/slidestest/quieter_inventory_test.goLoading diff…
internal/slidestest/testdata/phone-stage-html.jsonLoading diff…