oficina / slides Public

Editor: the inspector is a floating card, shown by Format

The inspector is now <aside slides-inspector estilo-card
estilo-inspector>, Docs' card over the desk's top end corner from
1100px (12px in, 248px wide, scrolling inside itself), and in the flow
under the stage with no shadow below that. The desk grid is "strip
stage"; the stage pane keeps clear of the open card, so the slide and
the notes never run under it and the slide re-centres when it hides.

Format, an estilo pill before Share, shows and hides it. The state is
the slides-inspector cookie, read by the server (inspectorState) into
the card's data-state, the button's aria-expanded and the View row's
aria-pressed, so the first paint is final. head.mjs owns the state
after that, writes the cookie, moves the old localStorage preference to
it once, works with cookies blocked, and moves focus into the card when
a keyboard action or a delete-ask opens it and back when it is hidden.

The fields inside the card are unchanged. head.inspector and the old
title key are gone; head.format is new.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 79fa1d6a7584b9e40999412746bb472582ca3211 parent 4291f0f
12 files changed, +771 −103
  • fixtures/head.mjs +97 −22
  • fixtures/head.test.mjs +262 −0
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/editor.go +30 −5
  • internal/slides/locales/en.toml +1 −2
  • internal/slides/static/{editor.e968c8fbcf43501d.js => editor.014dc9dc11538dd3.js} +15 −15
  • internal/slides/static/editor.css +56 −50
  • internal/slides/templates/editor.html +15 −5
  • internal/slidestest/browser_editor_tidy_test.go +197 −0
  • internal/slidestest/editor_test.go +1 −1
  • internal/slidestest/editor_tidy_test.go +94 −0
  • internal/slidestest/fonts_browser_test.go +2 −2
fixtures/head.mjs

Loading diff…

fixtures/head.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.e968c8fbcf43501d.js => editor.014dc9dc11538dd3.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/editor_test.go

Loading diff…

internal/slidestest/editor_tidy_test.go

Loading diff…

internal/slidestest/fonts_browser_test.go

Loading diff…