oficina / slides Public

Editor: the deck's settings are a dialog under File

File → Deck settings… opens <dialog slides-deck-dialog>, after </main>
and inside [slides-editor], holding the deck form unchanged (theme,
accent and its reset, heading and body fonts, unused images) with one
button, Close (spec §8). Changes apply as they are made. The card no
longer has a Deck group.

The deck's title is edited only in the bar: head.mjs commits it through
commitTitle (commands.setTitle, one set_meta) instead of writing the
card's old Title field. inspector.mjs finds its three forms in the
editor and listens on the card and on the deck form; the editor's root
click handler skips buttons in any inspector form, so the accent reset
runs once. A dialog opened from a menu row returns focus to that menu's
title when it closes. The font wait makes the dialog inert too.

Strings: file.deck and deck.settings added; inspector.deck and
deck.title removed.

Visible changes beyond the brief: Help → Keyboard shortcuts now also
returns focus to Help when it closes; the dialog's selects are 28px
tall, as the card's are; a deck with no slides shows an empty card.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev daa806d7ab9c8ef6d57f031a5c38e0d946c53491 parent 2331d17
22 files changed, +555 −193
  • fixtures/commands.mjs +7 −3
  • fixtures/commands.test.mjs +23 −0
  • fixtures/editor-entry.js +5 −3
  • fixtures/editor-fonts.mjs +1 −0
  • fixtures/editor-fonts.test.mjs +13 −0
  • fixtures/head.mjs +28 −15
  • fixtures/head.test.mjs +63 −0
  • fixtures/inspector-image.mjs +2 −1
  • fixtures/inspector.mjs +23 −13
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/editor.go +4 −4
  • internal/slides/locales/en.toml +7 −6
  • internal/slides/static/{editor.7597f74bc62422a4.js => editor.3f63277e9d63eaf9.js} +13 −13
  • internal/slides/static/editor.css +24 −25
  • internal/slides/templates/editor.html +65 −58
  • internal/slidestest/browser_editor_tidy_test.go +26 −23
  • internal/slidestest/browser_quieter_test.go +118 −0
  • internal/slidestest/editor_test.go +19 −6
  • internal/slidestest/editor_tidy_test.go +17 −12
  • internal/slidestest/fonts_browser_test.go +3 −2
  • internal/slidestest/quieter_inventory_test.go +22 −8
  • internal/slidestest/quieter_test.go +71 −0
fixtures/commands.mjs

Loading diff…

fixtures/commands.test.mjs

Loading diff…

fixtures/editor-entry.js

Loading diff…

fixtures/editor-fonts.mjs

Loading diff…

fixtures/editor-fonts.test.mjs

Loading diff…

fixtures/head.mjs

Loading diff…

fixtures/head.test.mjs

Loading diff…

fixtures/inspector-image.mjs

Loading diff…

fixtures/inspector.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.7597f74bc62422a4.js => editor.3f63277e9d63eaf9.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_quieter_test.go

Loading diff…

internal/slidestest/editor_test.go

Loading diff…

internal/slidestest/editor_tidy_test.go

Loading diff…

internal/slidestest/fonts_browser_test.go

Loading diff…

internal/slidestest/quieter_inventory_test.go

Loading diff…

internal/slidestest/quieter_test.go

Loading diff…