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.
38 files changed,
+3,073
−347
fixtures/commands.mjs+10 −7fixtures/editor-entry.js+9 −6fixtures/editor-fonts.mjs+3 −1fixtures/format-bar.mjs+104 −0fixtures/format-bar.test.mjs+47 −0fixtures/head.mjs+127 −0fixtures/slide-layouts.mjs+63 −0fixtures/slide-layouts.test.mjs+45 −0fixtures/stage.mjs+2 −2internal/slides/credits/assets.json+1 −1internal/slides/decks.go+299 −83internal/slides/decks_list_test.go+68 −0internal/slides/decks_test.go+53 −0internal/slides/editor.go+87 −11internal/slides/editor_layouts_test.go+48 −0internal/slides/icons/icons.go+9 −0internal/slides/locales/en.toml+100 −13internal/slides/render/render.go+12 −1internal/slides/static/brand/decks.js+16 −0internal/slides/static/brand/light.css+154 −0internal/slides/static/brand/pointer.js+95 −0internal/slides/static/decks.css+335 −0internal/slides/static/desk.css+18 −0internal/slides/static/editor.css+713 −86internal/slides/static/editor.dbe1616ac10c8b57.js+16 −0internal/slides/static/editor.e8e32ceaf50be366.js+0 −16internal/slides/team_access_test.go+4 −0internal/slides/templates/deck_new.html+8 −14internal/slides/templates/decks.html+83 −24internal/slides/templates/editor.html+213 −40internal/slides/templates/layout.html+5 −1internal/slides/templates/viewer.html+118 −16internal/slides/viewer.go+6 −0internal/slidestest/browser_test.go+14 −15internal/slidestest/decks_test.go+7 −5internal/slidestest/editor_test.go+5 −3internal/slidestest/fonts_browser_test.go+2 −2internal/slidestest/list_test.go+174 −0
CI failed — run details
fixtures/commands.mjsLoading diff…
fixtures/editor-entry.jsLoading diff…
fixtures/editor-fonts.mjsLoading diff…
fixtures/format-bar.mjsLoading diff…
fixtures/format-bar.test.mjsLoading diff…
fixtures/head.mjsLoading diff…
fixtures/slide-layouts.mjsLoading diff…
fixtures/slide-layouts.test.mjsLoading diff…
fixtures/stage.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/decks.goLoading diff…
internal/slides/decks_list_test.goLoading diff…
internal/slides/decks_test.goLoading diff…
internal/slides/editor.goLoading diff…
internal/slides/editor_layouts_test.goLoading diff…
internal/slides/icons/icons.goLoading diff…
internal/slides/locales/en.tomlLoading diff…
internal/slides/render/render.goLoading diff…
internal/slides/static/brand/decks.jsLoading diff…
internal/slides/static/brand/light.cssLoading diff…
internal/slides/static/brand/pointer.jsLoading diff…
internal/slides/static/decks.cssLoading diff…
internal/slides/static/desk.cssLoading diff…
internal/slides/static/editor.cssLoading diff…
internal/slides/static/editor.dbe1616ac10c8b57.jsLoading diff…
internal/slides/static/editor.e8e32ceaf50be366.jsLoading diff…
internal/slides/team_access_test.goLoading diff…
internal/slides/templates/deck_new.htmlLoading diff…
internal/slides/templates/decks.htmlLoading diff…
internal/slides/templates/editor.htmlLoading diff…
internal/slides/templates/layout.htmlLoading diff…
internal/slides/templates/viewer.htmlLoading diff…
internal/slides/viewer.goLoading diff…
internal/slidestest/browser_test.goLoading diff…
internal/slidestest/decks_test.goLoading diff…
internal/slidestest/editor_test.goLoading diff…
internal/slidestest/fonts_browser_test.goLoading diff…
internal/slidestest/list_test.goLoading diff…