oficina / slides Public

Editor: quieter notes, and a tab that says how much is there

The notes card loses its heading and estilo-card: a hairline frame on
the surface, no shadow, the × in its corner, named "Speaker notes". In
Desktop view it is the slide's width with the slide's edges, from the
one min() expression that sizes the desktop slide (the stage pane is
now a size container; its lengths are named once). The resize grip
shows on hover, focus and drag only.

Closed, the icon and dot become a text tab: "Notes", or "Notes · {n}
words", server-rendered for the first slide (len(strings.Fields(
Plain()))) and kept by notes-card.mjs's countWords, which splits on
Go's whitespace so the two agree. HEAD_PX is 26, notesMinHeight 73.
notes.title, notes.open and notes.open.has are removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev afb7cb63953b6d6293d8038e1804161f23a39cf2 parent 57f3e14
13 files changed, +680 −249
  • fixtures/editor-entry.js +3 −3
  • fixtures/notes-card.mjs +54 −36
  • fixtures/notes-card.test.mjs +79 −42
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/editor.go +22 −11
  • internal/slides/locales/en.toml +2 −3
  • internal/slides/static/{editor.e08a0a4c7c160e02.js => editor.ad37c27afd1f222f.js} +16 −15
  • internal/slides/static/editor.css +105 −66
  • internal/slides/templates/editor.html +20 −19
  • internal/slidestest/browser_editor_tidy_test.go +35 −32
  • internal/slidestest/browser_quieter_notes_test.go +220 −0
  • internal/slidestest/editor_tidy_test.go +19 −21
  • internal/slidestest/quieter_test.go +104 −0
fixtures/editor-entry.js

Loading diff…

fixtures/notes-card.mjs

Loading diff…

fixtures/notes-card.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.e08a0a4c7c160e02.js => editor.ad37c27afd1f222f.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_notes_test.go

Loading diff…

internal/slidestest/editor_tidy_test.go

Loading diff…

internal/slidestest/quieter_test.go

Loading diff…