oficina / slides Public

Slides level-up: add and edit slides in the UI, and the I2 look

Paul, 2026-11-11: "I should be able to actually add and edit Slides via
the UI" and "level up its UI based on the recent Docs UI stuff".

Adding and editing:
- Empty blocks on the stage show placeholders. The renderer writes them
  (render.Options.Placeholders) and the CSS keys off the DOM the server
  and ProseMirror share, so binding moves nothing. An empty block keeps
  a placeholder's width.
- New slide makes one of eight layouts through the existing ops
  (fixtures/slide-layouts.mjs). It is offered in the Slide and Insert
  menus, on Mod+Enter, and as the strip's New slide button with a layout
  popover.
- The strip numbers its slides, and Delete asks before removing one.
- A format bar runs the keymap's own mark commands (format-bar.mjs).
- The list's New deck needs no name and opens the editor on a blank
  title slide (blankOpeningOps).

The look, after Docs design/richer-ui and its I2 mock-up:
- The editor draws its own header from estilo's parts (layout.html gains
  a "bar" block): the icon, the editable deck title over the
  File/Edit/Insert/Slide/View/Help menus, an undo/redo pill, the
  Inspector toggle, Share, Present, the switcher and the account.
- A keyboard-shortcuts dialog.
- One desk colour for the list, the viewer and the editor
  (static/desk.css). The slide is paper on it, notes are a card, and the
  inspector is a compact floating card that can be hidden.
- The viewer has a filmstrip of thumbnails.
- The deck list shows covers and rows, with search.
- Docs' pointer light is ported as opt-in brand/light.css and
  brand/pointer.js.

No op or document format change.

Reviewed by Claude Fable 5.1 (claude-fable-5-1) on oficina/slides #40.
CHANGES REQUIRED at d00eaf1: a red gate, phone menus clipped, and three
P2s. APPROVED at 4a99935 with one P2 (the keyboard path to the format
bar), fixed at e2b62aa. Hub CI is green at e2b62aa. Not deployed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from design/level-up into main.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev ddf880b20658ecfd77c0922f1e9c6f074dd67e6b parent af4f47e
38 files changed, +3,073 −347
  • fixtures/commands.mjs +10 −7
  • fixtures/editor-entry.js +9 −6
  • fixtures/editor-fonts.mjs +3 −1
  • fixtures/format-bar.mjs +104 −0
  • fixtures/format-bar.test.mjs +47 −0
  • fixtures/head.mjs +127 −0
  • fixtures/slide-layouts.mjs +63 −0
  • fixtures/slide-layouts.test.mjs +45 −0
  • fixtures/stage.mjs +2 −2
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/decks.go +299 −83
  • internal/slides/decks_list_test.go +68 −0
  • internal/slides/decks_test.go +53 −0
  • internal/slides/editor.go +87 −11
  • internal/slides/editor_layouts_test.go +48 −0
  • internal/slides/icons/icons.go +9 −0
  • internal/slides/locales/en.toml +100 −13
  • internal/slides/render/render.go +12 −1
  • internal/slides/static/brand/decks.js +16 −0
  • internal/slides/static/brand/light.css +154 −0
  • internal/slides/static/brand/pointer.js +95 −0
  • internal/slides/static/decks.css +335 −0
  • internal/slides/static/desk.css +18 −0
  • internal/slides/static/editor.css +713 −86
  • internal/slides/static/editor.dbe1616ac10c8b57.js +16 −0
  • internal/slides/static/editor.e8e32ceaf50be366.js +0 −16
  • internal/slides/team_access_test.go +4 −0
  • internal/slides/templates/deck_new.html +8 −14
  • internal/slides/templates/decks.html +83 −24
  • internal/slides/templates/editor.html +213 −40
  • internal/slides/templates/layout.html +5 −1
  • internal/slides/templates/viewer.html +118 −16
  • internal/slides/viewer.go +6 −0
  • internal/slidestest/browser_test.go +14 −15
  • internal/slidestest/decks_test.go +7 −5
  • internal/slidestest/editor_test.go +5 −3
  • internal/slidestest/fonts_browser_test.go +2 −2
  • internal/slidestest/list_test.go +174 −0

CI failed — run details

landed from design/level-up

fixtures/commands.mjs

Loading diff…

fixtures/editor-entry.js

Loading diff…

fixtures/editor-fonts.mjs

Loading diff…

fixtures/format-bar.mjs

Loading diff…

fixtures/format-bar.test.mjs

Loading diff…

fixtures/head.mjs

Loading diff…

fixtures/slide-layouts.mjs

Loading diff…

fixtures/slide-layouts.test.mjs

Loading diff…

fixtures/stage.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/decks.go

Loading diff…

internal/slides/decks_list_test.go

Loading diff…

internal/slides/decks_test.go

Loading diff…

internal/slides/editor.go

Loading diff…

internal/slides/editor_layouts_test.go

Loading diff…

internal/slides/icons/icons.go

Loading diff…

internal/slides/locales/en.toml

Loading diff…

internal/slides/render/render.go

Loading diff…

internal/slides/static/brand/decks.js

Loading diff…

internal/slides/static/brand/light.css

Loading diff…

internal/slides/static/brand/pointer.js

Loading diff…

internal/slides/static/decks.css

Loading diff…

internal/slides/static/desk.css

Loading diff…

internal/slides/static/editor.css

Loading diff…

internal/slides/static/editor.dbe1616ac10c8b57.js

Loading diff…

internal/slides/static/editor.e8e32ceaf50be366.js

Loading diff…

internal/slides/team_access_test.go

Loading diff…

internal/slides/templates/deck_new.html

Loading diff…

internal/slides/templates/decks.html

Loading diff…

internal/slides/templates/editor.html

Loading diff…

internal/slides/templates/layout.html

Loading diff…

internal/slides/templates/viewer.html

Loading diff…

internal/slides/viewer.go

Loading diff…

internal/slidestest/browser_test.go

Loading diff…

internal/slidestest/decks_test.go

Loading diff…

internal/slidestest/editor_test.go

Loading diff…

internal/slidestest/fonts_browser_test.go

Loading diff…

internal/slidestest/list_test.go

Loading diff…