oficina / slides Public

Fonts: the Fonts page samples each family; Deck settings refreshes

Two minor review points (final review). The Fonts page showed names
and styles only, not the spec's sample line: each family's name is
now set in a face of it, loaded with font-display: block from
GET /fonts/files/{ref}, which serves a library file to its owner
alone. And Deck settings offered a family uploaded in the Fonts tab
only once the editor was opened again: GET /fonts answers the
person's families as JSON, and the editor asks again whenever its
window has focus (refreshYourFonts), naming a new group with the
approved "Your fonts" carried on the page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 2e64ba7ab328182bd1834ca940f035ec0f75049f parent 973956e
12 files changed, +329 −27
  • fixtures/deck-fonts.mjs +35 −0
  • fixtures/inspector.mjs +15 −2
  • internal/slides/app.go +1 −0
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/deckfonts.go +7 −0
  • internal/slides/library.go +102 −2
  • internal/slides/static/editor.98b1154b7eb2a97c.js +0 −18
  • internal/slides/static/editor.b84fc015e0f3efec.js +18 −0
  • internal/slides/templates/editor.html +4 −2
  • internal/slides/templates/fonts.html +4 −2
  • internal/slidestest/deckfonts_refresh_browser_test.go +72 −0
  • internal/slidestest/library_sample_test.go +70 −0
fixtures/deck-fonts.mjs

Loading diff…

fixtures/inspector.mjs

Loading diff…

internal/slides/app.go

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/deckfonts.go

Loading diff…

internal/slides/library.go

Loading diff…

internal/slides/static/editor.98b1154b7eb2a97c.js

Loading diff…

internal/slides/static/editor.b84fc015e0f3efec.js

Loading diff…

internal/slides/templates/editor.html

Loading diff…

internal/slides/templates/fonts.html

Loading diff…

internal/slidestest/deckfonts_refresh_browser_test.go

Loading diff…

internal/slidestest/library_sample_test.go

Loading diff…