oficina / slides Public

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>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 08d0914f1f5a1ed6d157cbd2a74a545e86a572cf parent 13a0081
14 files changed, +765 −110
  • fixtures/commands.mjs +3 −1
  • fixtures/editor-entry.js +35 −3
  • fixtures/format-bar.mjs +9 −5
  • fixtures/inspect.mjs +51 −0
  • fixtures/inspect.test.mjs +100 −0
  • fixtures/inspector.mjs +26 −13
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/{editor.9ed13c9265c27119.js => editor.2b962d0af940b242.js} +15 −15
  • internal/slides/static/editor.css +22 −0
  • internal/slides/templates/editor.html +64 −56
  • internal/slidestest/browser_editor_tidy_test.go +322 −10
  • internal/slidestest/browser_test.go +7 −6
  • internal/slidestest/editor_tidy_test.go +55 −0
  • internal/slidestest/harness_test.go +55 −0
fixtures/commands.mjs

Loading diff…

fixtures/editor-entry.js

Loading diff…

fixtures/format-bar.mjs

Loading diff…

fixtures/inspect.mjs

Loading diff…

fixtures/inspect.test.mjs

Loading diff…

fixtures/inspector.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/{editor.9ed13c9265c27119.js => editor.2b962d0af940b242.js}

Loading diff…

internal/slides/static/editor.css

Loading diff…

internal/slides/templates/editor.html

Loading diff…

internal/slidestest/browser_editor_tidy_test.go

Loading diff…

internal/slidestest/browser_test.go

Loading diff…

internal/slidestest/editor_tidy_test.go

Loading diff…

internal/slidestest/harness_test.go

Loading diff…