oficina / slides Public
π€ Slides: the editor, tidied β design
Design, 2026-11-16, draft 2, approved by Paul the same day ("go ahead"), with the slide's move, add and delete actions taken out of the card (Β§4.3, Β§12). Written by Claude Fable 5.2 on branch design/editor-tidy, cut from origin/main at cb30df5, from a conversation with Paul on 16 November in which he went through the live editor and a clickable mockup, change by change. Draft 2 answers a builder's read of draft 1 (Β§12).
The mockup he approved ("good enough to proceed for now") is beside this file: 2026-11-16-editor-tidy-mockup.html. Open it in a browser. The mockup shows where things go, not which fields exist. Three things in it are not part of this slice and are called out where they arise: extra formatting fields on a box (Β§4.2), the Appears and In the talk groups (Β§4.2), and the three-way On a phone choice (Β§6.2). Where this text and the mockup disagree, this text wins.
This is the first slice of a larger piece of work, levelling Slides up until the talk Paul gave at HalfStack Vienna on 16 November could have been made and rehearsed in it (Β§9). It stands alone: it ships without any of the rest.
It builds on, and does not restate:
- the Slides design,
2026-09-07-slides-design.md(cited as Β§n of the main spec), in particular its Β§0.1 (one tree), Β§2.2 and Β§2.5 (a slide'sphoneand a block's phone overrides) and Β§3.2 (the editor); AGENTS.md: the one rule, the seams, the fixtures rule, the font rule ("never a flash"), and the UX conventions.
This slice changes no document state. Every field, op and rendering stays as it is. It moves the editor's chrome.
---
0. Intent
The editor works, but it does not look or behave like the rest of the suite, and parts of it get in the way. Paul's words, on the live site: "The creme background is weird and the thumbnail doesn't show the slides centered." "The left nav should be distinct from the canvas, and the canvas should probably match Docs's grey canvas." The inspector "shouldn't have an 'Inspector' title", "should be dynamic according to whether the presentation document is focussed, or what element is clicked", and "causes the whole page to scroll." And of Docs' inspector: "we should be consistent."
Success is that someone who knows Docs sits down at Slides and finds the same desk, the same floating inspector and the same buttons, and that the inspector always shows the options for the thing they last clicked and nothing else.
0.1 Goals
- The editor's desk, strip, inspector, buttons and notes look and behave like Docs'.
- The inspector follows the selection: a box, the notes, or the slide and its deck.
- Nothing in the editor makes the page itself scroll.
- The phone view is a phone: a frame of a phone's proportions, showing what the viewer serves at that width.
0.2 Non-goals
- Anything in the presenter, the viewer, the remote or the export.
- Any new field, op or rendering. In particular the new ways for a slide to show on a phone that Paul asked for (letterboxed for any slide; a tall page arranged by hand) are their own slice (Β§9), with questions of their own (Β§11).
- New kinds of block, steps, layouts beyond the eight that exist, scenes, video. Later slices (Β§9).
- Changing Docs. Docs is the reference; it moves onto the shared parts this slice adds to estilo in its own time (Β§7).
0.3 Anti-goals (failure even if it works)
- A second inspector. A formatting toolbar that survives beside the inspector, or options for the slide showing while a box is selected, is the confusion this slice removes.
- A control that looks like Docs' and behaves differently. If Format toggles a card in Docs, it toggles a card here, from the same place in the bar, with the same keyboard behaviour.
- Something a person could do before and cannot now. Every field and every action the inspector, the pill and the notes switch offer today is still reachable, by pointer and by keyboard (Β§4.4).
- A lost word or a flash. Moving the notes and the inspector must not add a path around the save queue or the font gate (
AGENTS.md). - A phone view that lies. The phone frame shows what the viewer serves at phone width, and nothing the viewer does not.
---
1. Calls this design makes
Paul's decisions are marked Paul. The rest are the session's calls, listed so they can be reversed in one place.
| # | Call | Whose | Rejected alternative | |---|---|---|---| | E1 | The inspector is Docs' floating card: over the top right of the desk, shown and hidden by a Format button in the bar. | Paul ("more similar to the Docs inspector, e.g. floating") | A full-height docked panel with accordion sections (the first mockup). | | E2 | The card shows one thing at a time, by selection: a box's options; the notes' marks; or, with nothing selected, the slide's options with the deck's under a rule. | Paul ("dynamic according to β¦ what element is clicked") | Deck, Slide and Block all listed at once, as today. | | E3 | Character formatting lives in the card. The stage toolbar keeps only the view switch. | Paul ("This should all be in the inspector") | The B / I / code / highlight / link pill above the stage. | | E4 | The view switch is three icons, one lit: desktop, phone, both. | Paul ("we need the third state") | Two on/off toggles (tried in the mockup; confusing). | | E5 | Notes are a floating card at the foot of the desk with an Γ to close. Closed, they are a small icon in the desk's corner, with a dot when the slide has notes. | Paul | A switch in the toolbar and a pane under the stage, as today; a docked panel that folds to a one-line strip. | | E6 | New slide is pinned to the foot of the strip, one pill with the layout chevron joined to it. | Paul asked; session proposed the pin | At the end of the list, scrolling away. | | E7 | The desk is Docs' grey, taken from Docs' own value, and the strip is its own surface. | Paul | The warm ground the editor has today. | | E8 | The card holds today's fields, regrouped, and no new ones. | Session (main-spec ruling 9: no per-block fonts) | The mockup's heading font, size and colour, which were drawn to show the layout. | | E9 | The shared look (the floating card, its groups and segmented controls, the desk colour) goes into estilo, and Slides uses it from there. Docs is not changed in this slice. | Session | Copying Docs' rules into Slides (two copies drift); changing Docs now (a second app at risk for a Slides slice). | | E10 | The list of boxes on the slide and Add block stay in the card, in the slide's options. Move, add and delete for the slide leave the card: they are in the Slide menu and each slide's own menu in the strip already. Delete slide still asks for its confirmation in the card (Β§4.3, Β§4.4). | Session, approved by Paul | Tab stops on the stage's boxes (a different piece of work); a modal for Delete slide (house rules forbid it); keeping the actions in the card (it would be long). | | E11 | The phone frame shows this slide as the viewer serves it at phone width, and only that. | Session | Draft 1's "following slides, dimmed": the viewer serves one slide to a page at every width, so that would have been a phone view that lies. |
---
2. The page
Three regions and nothing else: the bar across the top, the strip down the start edge, and the desk filling the rest. The inspector and the notes float over the desk; they are not regions.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β£ Title Saved βΆ β· [β Format] [Shareβ¦] [Present] P β
β File Edit Insert Slide View Help β
βββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 1 β β [β β― ββ―] βββββββββββββββββββ β
β 2 β β β the inspector β β
β 3 β β βββββββββββββββββββββ β (by selection) β β
β 4 β β β the slide β βββββββββββββββββββ β
β β¦ β βββββββββββββββββββββ β
βββββββββββ ββββββββββββββββββββββββββββββββββββ β
β[+ New β]β β Notes Γ β β
βββββββββββ΄βββ΄βββββββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββ- The page never scrolls. The editor is as tall as the window. The strip scrolls inside itself, the stage scrolls inside itself when a frame does not fit, and the inspector and notes scroll inside themselves (Β§4, Β§5).
- The desk is Docs' grey (
--docs-desktoday; E9 names it in estilo). The slide lies on it with Docs' paper shadow, as now. - The strip is a surface of its own (the bar's surface), with a hairline on its desk edge.
- New slide sits in a foot that does not scroll, under the list. It is one pill: the button, and the chevron that opens the layouts as pictures, joined. Behaviour is unchanged (the button adds the layout that usually follows the current slide; the chevron picks). The picker opens upward from the chevron.
- The bar is estilo's stacked bar as today. Its controls, in order: the save line, undo and redo in one pill, Format, Shareβ¦, Present, the suite switcher, the account. Buttons are estilo's pills, as in Docs: Format is the soft-tinted toggle, Shareβ¦ is outlined, Present is the filled one. The bar's "Inspector" toggle becomes Format: same place, new name and look. Its state is remembered in a cookie the server reads, as Docs' is, so the first paint is final (today it is
localStorage, applied after the editor mounts). It has no shortcut today and none is added. - The view switch is the only thing on the stage's toolbar: three icon buttons in one pill, exactly one lit, each with a tooltip and an accessible name (Desktop; Phone; Both, side by side). It is still three radios underneath (Β§3.2 of the main spec), and the View menu's three items stay.
---
3. The deck list
- The page's ground is the same grey as the editor's desk. The warm gradient goes.
- A deck's cover shows its first slide centred in the card. Today the slide's content sits off-centre in the cover; that is a bug. The builder finds whether it is the cover's box or the thumbnail's own picture, and fixes it where it is wrong.
---
4. The inspector
A floating card, as in Docs: a white rounded card with a soft shadow, over the top right of the desk. It has no title. Inside are small labelled groups, with no accordion and no sections to fold.
- Format in the bar shows and hides it. It is lit while the card shows.
- The stage keeps clear of it. While the card shows, the stage reserves the card's width, so a frame is never under it; when it is hidden, the frame re-centres in the whole desk.
- It stops short of the foot of the desk and scrolls inside itself. It never makes the page scroll.
- From 1100px, the width at which the editor already goes side by side. Narrower than that the editor keeps today's stacked column, with the card in the flow under the stage, regrouped but not floating.
4.1 What it shows
Exactly one of these, decided by where the selection is:
| Selection | The card shows | |---|---| | A box (click it, put the caret in it, or pick it from the list in Β§4.3) | That box's options (Β§4.2) | | The caret in the notes | The notes' marks: the Text group alone (Β§4.2) | | Nothing (click the desk, or a slide in the strip; or press Esc in a box) | The slide's options, then a rule, then the deck's (Β§4.3) |
The card changes when this person's selection changes, and at no other time. It does not change because someone else selected something.
4.2 A box's options
Today's fields for that kind of box, regrouped. No field is added and none is dropped (E8). The builder takes the exact list per kind from the Block section of editor.html and its locale keys (slides.editor.block.*); the table says where each goes.
| Group | Holds | For | |---|---|---| | Style | Level | headings | | | Size | text, and the kinds that have it today | | | List style | lists | | | Shape, fill, stroke, stroke width, label | shapes | | | Language | code | | | Rows, columns, first row is a header | tables | | | Number of columns | columns blocks | | | Citation | quotes | | Text | The marks the pill has today: bold, italic, code, highlight, link | any box with text, as the pill allows today | | Alignment | Alignment | the kinds that have it today | | Image | Image file, fit, corner radius | images | | Description | Alternative text; decorative | images | | Place | Region (flow slides); position and size, bring forward, send back (canvas slides); move up, move down | every box, as today | | On a phone | Hidden, order, size, and Reset to desktop, with today's phone-override badge | every box, as today | | (foot) | Delete block | every box |
- The Text group is the pill, moved. Each mark is a toggle that shows the state of the selection and is disabled when the selection cannot take it, exactly as the pill's buttons are now (
fixtures/format-bar.mjs). Shortcuts are unchanged. The pill formats the notes too, so with the caret in the notes the card shows the Text group and nothing else. - A group with nothing in it for this box does not show.
- In phone view, changing an option that has a phone override writes the override, as today (Β§2.5 of the main spec).
Not in this slice, though the mockup draws them: a heading's font, size and colour and alignment on kinds that have none today (illustrative only; ruling 9 stands); Appears on a box and In the talk on a slide (the steps slice, Β§9).
4.3 The slide's and the deck's options
Today's Slide and Deck sections, regrouped. Nothing added, nothing dropped.
- Slide: layout (flow or canvas); template; background and its colour; transition; On a phone (Β§6.2).
- Boxes: the list of boxes on this slide, and Add block. Picking a box from the list selects it, and the card becomes that box's options.
- No move, add or delete buttons for the slide. They are in the Slide menu and in each slide's own menu in the strip today, and stay there. Delete slide, from either, asks for its confirmation in the card, at the top of the slide's options, as it does in the inspector today (Β§4.4).
- Deck, under a rule: what the Deck section holds today (title and theme where it has them, accent and its reset, heading font, body font, unused images).
4.4 The keyboard, and the card hidden
The inspector's list of boxes is today the only keyboard way to select a box that holds no text. That stays true and stays possible:
- With nothing selected, the list is in the card (Β§4.3). With a box selected, Esc returns to the slide's options, where the list is.
- With the card hidden, Format in the bar or Inspector in the View menu shows it. An action that needs the card (Delete slide's confirmation; a menu item that today opens the inspector) shows the card and puts it on the slide's options, as such actions force the inspector open today.
- Focus moves into the card when a keyboard action opened it, and back to where it was when the card is dismissed.
---
5. Notes
- Open, the notes are a floating card along the foot of the desk, inset from its edges, in the same style as the inspector. It has the word Notes, an Γ that closes it, and the notes themselves, which are the same editable field as today, bound the same way.
- It keeps clear of the inspector: it stops short of the card's width while the card shows. The stage reserves the notes' height, so a frame is never under them.
- Its height is adjustable by dragging its top edge, and from the keyboard on that edge, between two lines and half the desk; taller notes scroll inside it. The height is remembered.
- Closed, the notes are a small icon button in the desk's bottom start corner. A dot on it means this slide has notes. Its accessible name says so in words, never by the dot alone.
- Show notes stays in the View menu and does the same thing as the Γ and the icon. The switch above the stage goes.
- Open or closed is remembered where the switch's state is today (
NOTES_KEYinfixtures/editor-entry.js).
---
6. The phone view
6.1 The frame
In phone view the stage shows a phone: a frame of a phone's proportions, as tall as the stage allows. It is no longer a card the height of its content. In Both, the desktop frame and the phone frame sit side by side.
Inside it is this slide as the viewer serves it at phone width, fetched from the server as the stage's HTML is today, and placed as the viewer places it on a phone's page. The viewer serves one slide to a page at every width, so the frame holds one slide. If the slide is shorter than the phone, the rest of the frame is the viewer's page ground. If it is longer, the frame scrolls inside itself.
6.2 On a phone, in this slice
The slide's On a phone field is unchanged: it exists today, for canvas slides, with its two values ("Scale the canvas to fit"; "Reflow the blocks as a column"). It moves into the card's Slide group with everything else and shows when it applies, as now.
The mockup draws a three-way choice (Document, Letterboxed, Arranged). That is the later phone slice (Β§9), not this one.
---
7. Where the shared parts live
Docs' inspector, its segmented controls and its desk colour are rules inside Docs' own page today. This slice puts the parts Slides needs into estilo, as a named part beside chrome and menu, with Docs' own values for the card (its 12px radius and padding; estilo's float tokens are the menus', at 9px, and are not the card's):
- the floating card and its labelled groups;
- the segmented control (filled, with the tinted and outlined selected state) and the icon toggle;
- the desk colour, as a token both apps read.
Slides is the first user. Docs keeps its own rules and is moved onto the shared parts later, as its own change, checked against Docs' tests.
Holding the two alike until then is done in estilo, not across apps: the new part is written from Docs' rules at a named Docs commit, and a test in estilo records the numbers that make the look (radius, shadow, padding, group label size, segmented control height and selected state) so that a change to them is a deliberate one. There is no automated Slides-against-Docs comparison; Slides has no gate that can render Docs. Before merge, the builder puts a screenshot of each app's card side by side in the branch's discussion for Paul.
---
8. Constraints and testing
Constraints, from AGENTS.md, that bind this slice in particular:
- The stage is not a second renderer. The phone frame and the desktop frame show the server's HTML for that slide and viewport.
- Never a flash. The card, the notes and the frames appear in their final layout; nothing moves when a font arrives.
- Every string is a catalog key, in every locale the editor has. New: Format, Notes, Close notes, Show notes (this slide has notes), Both side by side, and the card's group labels where no key exists (Style, Text, Place, Description, Boxes, This slide). Reused: Desktop, Phone, On a phone, and every field's own label. Removed: the Inspector title and its bar label, the notes switch's label.
- Accessible by construction. Icon-only buttons have names; the view switch is radios; the notes' dot is never the only signal; focus order is bar, strip, stage, notes, inspector; the card and the notes are reachable and operable from the keyboard (Β§4.4); WCAG 2.2 AA contrast on the grey desk.
- Icons are lucide, inline, from
internal/slides/icons. - Vendored components where one exists (
AGENTS.md, UX conventions): do not hand-roll a field or a switch. - The gate. Browser tests sit where the repo's existing browser tests sit; the gate itself is as
AGENTS.mddescribes it.
Tests, each written before the code it holds:
- The page does not scroll: with a deck of forty slides, long notes and a box with every group showing, the document's scroll height equals the window's, at 1280Γ720 and 1920Γ1080.
- Nothing is lost: every field and action in today's Deck, Slide and Block sections, the pill's marks, and the notes switch, by its catalog key, is present in the card (or the place this design names) for the selection it belongs to. The list is written from
mainbefore any template changes. - The card shows the options of the selection and no others: for each kind of box, for the notes, for nothing selected, and after each change of selection; and it does not change on another collaborator's selection.
- The marks in the card toggle the same marks, with the same shortcuts and the same disabled states, as the pill did, in a box and in the notes.
- A box with no text can be selected, changed and deleted with the keyboard alone, with the card showing and starting with it hidden.
- Delete slide confirms in the card, with the card hidden beforehand.
- Notes: open, close by Γ, reopen by the icon and by the View menu; the dot is there exactly when the slide has notes; typing in the floating card saves through the same queue (the existing saving tests pass unchanged against it).
- New slide stays in view with forty slides in the strip.
- The view switch: one of three, by pointer and by keyboard; the frames that show for each.
- The phone frame is a phone's proportions and no taller than the stage, and its content is the server's phone rendering of the slide (the same bytes the stage shows in phone view today).
- The deck list's cover is centred (the picture's content box is centred in the cover, by measurement).
- In estilo: the recorded numbers of the floating card and the segmented control (Β§7).
---
9. Where this sits
Paul chose to revise the 11 November design (design/presenter-and-rehearsal, draft 4, unapproved) into one design for the whole of "this talk could have been made in Slides", with the HalfStack deck as its test. That revision is not this document. Its order of work, agreed in conversation:
- This slice: the editor, tidied.
- Steps and core/full, and the presenter.
- Scenes and video. Decided so far: a scene is code an agent writes, run in a sealed frame with no network, told only the step, the size and whether to reduce motion; presses stay with Slides; it is stored as a fixed bundle with a named author; and it carries a still picture per step, captured in the author's browser, which the PDF, thumbnails, the phone view and the checks use.
- Rehearsal and requests.
- Checks, a storyboard, and the talk as prose (all the notes in order, read-only, with word count and minutes; notes readable and writable in one go by an agent; no "script" feature).
- Layouts.
- Offline.
And one more, raised on 16 November, not yet placed in that order:
- On a phone. Paul: "there needs to be an option, to either show on the phone letterboxed, or to position elements separately for the vertical view". That is a model change with questions of its own (Β§11, 1 and 2), so it is not in this slice.
---
10. Left to the builder
- Reading Docs' inspector, bar and desk rules (
internal/docs/views/ show.htmlat Docs'origin/main) and matching them; the exact desk colour comes from there, not from the mockup, whose grey was matched by eye. - The card's exact width, the notes' default height, the phone frame's proportions and corner radius.
- Which of estilo's existing parts the pills and toggles already are, and what is genuinely new there.
- The cause of the off-centre cover.
- The exact per-kind field lists for Β§4.2, from the template.
11. Open questions for Paul
None of these blocks this slice. The first two decide the later phone slice.
- Letterboxing a flow slide, against the reflow rule. A canvas slide already scales to fit on a phone, with a floor under its type. A flow slide scaled the same way puts body text near 9px on a narrow phone, and
AGENTS.mdholds "320px reflow, no exemptions". Do you want letterboxing for flow slides anyway (as a deliberate exception, perhaps with pinch to zoom), or only the tall arranged page for slides that should not reflow? - Arranged reverses a ruling. Ruling 2 of the main spec (you, 2026-09-07) rejected "a hand-authored second layout per slide". A tall page arranged by hand is that, for slides that opt in, and it can fall behind when the desktop side changes. Confirm you want it.
- Frames with their own settings. You asked whether the desktop and phone views could have settings of their own, as artboards do in Figma. A mockup exists (click the Desktop frame, the Phone frame, a box, or the desk, and the card follows). You then said the single Slide group with On a phone in it was fine for now. It is left out. Keep it out, or add it to the phone slice?
- Decided, 2026-11-16. How long the slide's card is: the slide's move, add and delete actions leave the card and the list of boxes stays (E10).
12. Review record
- Builder check, 2026-11-16 (a fresh agent, read-only, asked what it would need before planning draft 1). Six questions; all answered in draft 2: 1. Is Β§4.2 the target or today's fields regrouped? Today's fields, regrouped (E8). The table now says so and the mockup's extras are named as illustrative. 2. Does the phone viewer become a continuous page? No. Draft 1 wrongly assumed a phone reader scrolls from slide to slide; the viewer serves one slide to a page at every width. The "following slides" frame is gone (E11), and the new phone settings left this slice. 3. The notes' marks. The card shows the Text group when the caret is in the notes (Β§4.1, Β§4.2). 4. Keyboard selection of a box, and Delete slide's confirmation. The list of boxes and the confirmation stay in the card (E10, Β§4.3, Β§4.4). 5. What Letterboxed means on a flow slide. Not decided here; it is question 1 of Β§11, for the phone slice. 6. Where the Slides-against-Docs check runs. In estilo, as recorded numbers, with a side-by-side screenshot for Paul (Β§7).
- Approved by Paul, 2026-11-16 ("go ahead"), on the summary of draft 2 and its one question for this slice, answered as recommended: the slide's move, add and delete actions leave the card. Questions 1 to 3 of Β§11 stay open for the phone slice.
- Corrections from the code, 2026-11-16, found while planning; none changes what Paul approved: - The inspector toggle and the notes have no keyboard shortcut today, so "the same shortcut" meant nothing. None is added. - The editor goes side by side at 1100px, not Docs' 64rem. The card floats from 1100px, and the stacked column below that stays. - Docs remembers its inspector in a cookie the server renders. Slides does the same, so the card's first paint is final. - The Slide section has a Layout field (flow or canvas), which Β§4.3 had left out. - Docs' card is 12px round with 12px padding. estilo's float tokens are the menus' (9px) and are not used for it. - Slides pins an older estilo with no pill buttons. This slice moves the pin to estilo's head. - The editor has one locale,
en.