oficina / slides Public

Editor: the card at rest is the layout, as pictures

With nothing selected the card shows the slide's layout as eight
pictures, four across: the seven templates, then Free placement, one
lit (spec §3.1). A template on a flow slide sets the template; Free
placement sets the canvas layout; a template on a canvas slide asks in
the card first (Use the layout, Keep free placement) and then commits
the flow layout and the template in one commit, one undo step. The
question withdraws when the slide stops being canvas or the card moves
to another slide (fixtures/layout-pick.mjs). Background and Transition
are two quiet rows, each opening a popover that holds the field as it
was, still inside the slide form; Esc closes it with focus on its row.
The Flow/Canvas segments, their standing help and the Template field
are gone, with slide.layout, layout.flow(.desc), layout.canvas(.desc)
and slide.template. The server lights the painted slide's picture, so
the first paint is final.

Tests changed:
- browser_test.go TestBrowserInspectorAndCanvas: sets the template with
  pickLayout("section") instead of #rst-slide-template, and reads the
  lit picture instead of the select's value after undo.
- quieter_inventory_test.go: the slide's layout and template needles
  become the eight pictures, the question and the two rows; background
  and transition fields move to their popovers; rst-slide-layout and
  rst-slide-template are retired.
- editor_tidy_test.go TestEditorTidyStrings: the four new strings, and
  the six removed keys in the gone list.
- browser_quieter_test.go TestQuieterEmptyDeck and TestQuieterNarrow
  extended (no pictures or rows with no slides; both popovers inside
  the window at 1000x800 and 320x700).
- head.test.mjs: the radio-group fixture uses the new radio name.
New: TestQuieterCardAtRest, TestQuieterLayoutPictures,
TestQuieterLeaveFreeWithdraws, TestQuieterSlideRows, layout-pick.test.mjs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 982d86c1ae59fa447204a17fdefa0830398df9c2 parent ca22016
15 files changed, +1,146 −96
  • fixtures/head.test.mjs +2 −2
  • fixtures/inspector.mjs +9 −6
  • fixtures/layout-pick.mjs +146 −0
  • fixtures/layout-pick.test.mjs +208 −0
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/editor.go +12 −4
  • internal/slides/locales/en.toml +4 −6
  • internal/slides/static/{editor.772606a03f877bb4.js => editor.64ea0246789e1cb9.js} +15 −15
  • internal/slides/static/editor.css +137 −8
  • internal/slides/templates/editor.html +77 −45
  • internal/slidestest/browser_quieter_test.go +336 −0
  • internal/slidestest/browser_test.go +2 −2
  • internal/slidestest/editor_tidy_test.go +9 −1
  • internal/slidestest/quieter_inventory_test.go +17 −6
  • internal/slidestest/quieter_test.go +171 −0
fixtures/head.test.mjs

Loading diff…

fixtures/inspector.mjs

Loading diff…

fixtures/layout-pick.mjs

Loading diff…

fixtures/layout-pick.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.772606a03f877bb4.js => editor.64ea0246789e1cb9.js}

Loading diff…

internal/slides/static/editor.css

Loading diff…

internal/slides/templates/editor.html

Loading diff…

internal/slidestest/browser_quieter_test.go

Loading diff…

internal/slidestest/browser_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…