Editor: the card shows the selection's options and no others
The inspector card shows one thing at a time (spec 4.1), and this person's selection decides which: a box's options, the notes (no form yet; the marks move into the card next), or, with nothing selected, the slide's options then the deck's. A deck with no slides shows the deck's alone. fixtures/inspect.mjs keeps the root's data-inspect (the server paints "slide"); editor.css shows the section whose data-section matches, and the bundle no longer sets hidden on the forms. The selection feeds it, a deleted selected box included (reapply hears an empty selection); the format bar's new onCaret says when the caret goes into the notes. A click on the desk's ground, a slide picked in the strip and Esc in the notes clear the selection. Delete slide's question puts the card back on the slide's options, and a box chosen from the list moves focus into its options. The Slide section now precedes the Deck's in the markup. The notes icon is disabled while the deck has no slides.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 files changed,
+765
−110
fixtures/commands.mjs+3 −1fixtures/editor-entry.js+35 −3fixtures/format-bar.mjs+9 −5fixtures/inspect.mjs+51 −0fixtures/inspect.test.mjs+100 −0fixtures/inspector.mjs+26 −13internal/slides/credits/assets.json+1 −1internal/slides/static/{editor.9ed13c9265c27119.js => editor.2b962d0af940b242.js}+15 −15internal/slides/static/editor.css+22 −0internal/slides/templates/editor.html+64 −56internal/slidestest/browser_editor_tidy_test.go+322 −10internal/slidestest/browser_test.go+7 −6internal/slidestest/editor_tidy_test.go+55 −0internal/slidestest/harness_test.go+55 −0
fixtures/commands.mjsLoading diff…
fixtures/editor-entry.jsLoading diff…
fixtures/format-bar.mjsLoading diff…
fixtures/inspect.mjsLoading diff…
fixtures/inspect.test.mjsLoading diff…
fixtures/inspector.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/static/{editor.9ed13c9265c27119.js => editor.2b962d0af940b242.js}Loading diff…
internal/slides/static/editor.cssLoading diff…
internal/slides/templates/editor.htmlLoading diff…
internal/slidestest/browser_editor_tidy_test.goLoading diff…
internal/slidestest/browser_test.goLoading diff…
internal/slidestest/editor_tidy_test.goLoading diff…
internal/slidestest/harness_test.goLoading diff…