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>
15 files changed,
+1,146
−96
fixtures/head.test.mjs+2 −2fixtures/inspector.mjs+9 −6fixtures/layout-pick.mjs+146 −0fixtures/layout-pick.test.mjs+208 −0internal/slides/credits/assets.json+1 −1internal/slides/editor.go+12 −4internal/slides/locales/en.toml+4 −6internal/slides/static/{editor.772606a03f877bb4.js => editor.64ea0246789e1cb9.js}+15 −15internal/slides/static/editor.css+137 −8internal/slides/templates/editor.html+77 −45internal/slidestest/browser_quieter_test.go+336 −0internal/slidestest/browser_test.go+2 −2internal/slidestest/editor_tidy_test.go+9 −1internal/slidestest/quieter_inventory_test.go+17 −6internal/slidestest/quieter_test.go+171 −0
fixtures/head.test.mjsLoading diff…
fixtures/inspector.mjsLoading diff…
fixtures/layout-pick.mjsLoading diff…
fixtures/layout-pick.test.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/editor.goLoading diff…
internal/slides/locales/en.tomlLoading diff…
internal/slides/static/{editor.772606a03f877bb4.js => editor.64ea0246789e1cb9.js}Loading diff…
internal/slides/static/editor.cssLoading diff…
internal/slides/templates/editor.htmlLoading diff…
internal/slidestest/browser_quieter_test.goLoading diff…
internal/slidestest/browser_test.goLoading diff…
internal/slidestest/editor_tidy_test.goLoading diff…
internal/slidestest/quieter_inventory_test.goLoading diff…
internal/slidestest/quieter_test.goLoading diff…