| 1 | # π€ Slides: the editor, tidied β design |
| 2 | |
| 3 | Design, 2026-11-16, **draft 2, approved by Paul the same day ("go |
| 4 | ahead"), with the slide's move, add and delete actions taken out of |
| 5 | the card (Β§4.3, Β§12).** Written by Claude Fable 5.2 on branch |
| 6 | `design/editor-tidy`, cut from `origin/main` at `cb30df5`, from a |
| 7 | conversation with Paul on 16 November in which he went through the |
| 8 | live editor and a clickable mockup, change by change. Draft 2 answers |
| 9 | a builder's read of draft 1 (Β§12). |
| 10 | |
| 11 | The mockup he approved ("good enough to proceed for now") is beside |
| 12 | this file: `2026-11-16-editor-tidy-mockup.html`. Open it in a browser. |
| 13 | **The mockup shows where things go, not which fields exist.** Three |
| 14 | things in it are not part of this slice and are called out where they |
| 15 | arise: extra formatting fields on a box (Β§4.2), the Appears and In the |
| 16 | talk groups (Β§4.2), and the three-way On a phone choice (Β§6.2). Where |
| 17 | this text and the mockup disagree, this text wins. |
| 18 | |
| 19 | This is the first slice of a larger piece of work, levelling Slides up |
| 20 | until the talk Paul gave at HalfStack Vienna on 16 November could have |
| 21 | been made and rehearsed in it (Β§9). It stands alone: it ships without |
| 22 | any of the rest. |
| 23 | |
| 24 | It builds on, and does not restate: |
| 25 | |
| 26 | - the Slides design, `2026-09-07-slides-design.md` (cited as **Β§n of |
| 27 | the main spec**), in particular its Β§0.1 (one tree), Β§2.2 and Β§2.5 |
| 28 | (a slide's `phone` and a block's phone overrides) and Β§3.2 (the |
| 29 | editor); |
| 30 | - `AGENTS.md`: the one rule, the seams, the fixtures rule, the font |
| 31 | rule ("never a flash"), and the UX conventions. |
| 32 | |
| 33 | **This slice changes no document state.** Every field, op and |
| 34 | rendering stays as it is. It moves the editor's chrome. |
| 35 | |
| 36 | --- |
| 37 | |
| 38 | ## 0. Intent |
| 39 | |
| 40 | The editor works, but it does not look or behave like the rest of the |
| 41 | suite, and parts of it get in the way. Paul's words, on the live site: |
| 42 | "The creme background is weird and the thumbnail doesn't show the |
| 43 | slides centered." "The left nav should be distinct from the canvas, |
| 44 | and the canvas should probably match Docs's grey canvas." The |
| 45 | inspector "shouldn't have an 'Inspector' title", "should be dynamic |
| 46 | according to whether the presentation document is focussed, or what |
| 47 | element is clicked", and "causes the whole page to scroll." And of |
| 48 | Docs' inspector: "we should be consistent." |
| 49 | |
| 50 | **Success** is that someone who knows Docs sits down at Slides and |
| 51 | finds the same desk, the same floating inspector and the same buttons, |
| 52 | and that the inspector always shows the options for the thing they |
| 53 | last clicked and nothing else. |
| 54 | |
| 55 | ### 0.1 Goals |
| 56 | |
| 57 | 1. The editor's desk, strip, inspector, buttons and notes look and |
| 58 | behave like Docs'. |
| 59 | 2. The inspector follows the selection: a box, the notes, or the |
| 60 | slide and its deck. |
| 61 | 3. Nothing in the editor makes the page itself scroll. |
| 62 | 4. The phone view is a phone: a frame of a phone's proportions, |
| 63 | showing what the viewer serves at that width. |
| 64 | |
| 65 | ### 0.2 Non-goals |
| 66 | |
| 67 | - Anything in the presenter, the viewer, the remote or the export. |
| 68 | - **Any new field, op or rendering.** In particular the new ways for a |
| 69 | slide to show on a phone that Paul asked for (letterboxed for any |
| 70 | slide; a tall page arranged by hand) are their own slice (Β§9), with |
| 71 | questions of their own (Β§11). |
| 72 | - New kinds of block, steps, layouts beyond the eight that exist, |
| 73 | scenes, video. Later slices (Β§9). |
| 74 | - Changing Docs. Docs is the reference; it moves onto the shared parts |
| 75 | this slice adds to estilo in its own time (Β§7). |
| 76 | |
| 77 | ### 0.3 Anti-goals (failure even if it works) |
| 78 | |
| 79 | - **A second inspector.** A formatting toolbar that survives beside |
| 80 | the inspector, or options for the slide showing while a box is |
| 81 | selected, is the confusion this slice removes. |
| 82 | - **A control that looks like Docs' and behaves differently.** If |
| 83 | Format toggles a card in Docs, it toggles a card here, from the same |
| 84 | place in the bar, with the same keyboard behaviour. |
| 85 | - **Something a person could do before and cannot now.** Every field |
| 86 | and every action the inspector, the pill and the notes switch offer |
| 87 | today is still reachable, by pointer and by keyboard (Β§4.4). |
| 88 | - **A lost word or a flash.** Moving the notes and the inspector must |
| 89 | not add a path around the save queue or the font gate |
| 90 | (`AGENTS.md`). |
| 91 | - **A phone view that lies.** The phone frame shows what the viewer |
| 92 | serves at phone width, and nothing the viewer does not. |
| 93 | |
| 94 | --- |
| 95 | |
| 96 | ## 1. Calls this design makes |
| 97 | |
| 98 | Paul's decisions are marked **Paul**. The rest are the session's |
| 99 | calls, listed so they can be reversed in one place. |
| 100 | |
| 101 | | # | Call | Whose | Rejected alternative | |
| 102 | |---|---|---|---| |
| 103 | | 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). | |
| 104 | | 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. | |
| 105 | | 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. | |
| 106 | | 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). | |
| 107 | | 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. | |
| 108 | | 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. | |
| 109 | | 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. | |
| 110 | | 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. | |
| 111 | | 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). | |
| 112 | | 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). | |
| 113 | | 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. | |
| 114 | |
| 115 | --- |
| 116 | |
| 117 | ## 2. The page |
| 118 | |
| 119 | Three regions and nothing else: the bar across the top, the strip down |
| 120 | the start edge, and the desk filling the rest. The inspector and the |
| 121 | notes float over the desk; they are not regions. |
| 122 | |
| 123 | ``` |
| 124 | ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| 125 | β β£ Title Saved βΆ β· [β Format] [Shareβ¦] [Present] P β |
| 126 | β File Edit Insert Slide View Help β |
| 127 | βββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ |
| 128 | β 1 β β [β β― ββ―] βββββββββββββββββββ β |
| 129 | β 2 β β β the inspector β β |
| 130 | β 3 β β βββββββββββββββββββββ β (by selection) β β |
| 131 | β 4 β β β the slide β βββββββββββββββββββ β |
| 132 | β β¦ β βββββββββββββββββββββ β |
| 133 | βββββββββββ ββββββββββββββββββββββββββββββββββββ β |
| 134 | β[+ New β]β β Notes Γ β β |
| 135 | βββββββββββ΄βββ΄βββββββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββ |
| 136 | ``` |
| 137 | |
| 138 | - **The page never scrolls.** The editor is as tall as the window. The |
| 139 | strip scrolls inside itself, the stage scrolls inside itself when a |
| 140 | frame does not fit, and the inspector and notes scroll inside |
| 141 | themselves (Β§4, Β§5). |
| 142 | - **The desk** is Docs' grey (`--docs-desk` today; E9 names it in |
| 143 | estilo). The slide lies on it with Docs' paper shadow, as now. |
| 144 | - **The strip** is a surface of its own (the bar's surface), with a |
| 145 | hairline on its desk edge. |
| 146 | - **New slide** sits in a foot that does not scroll, under the list. |
| 147 | It is one pill: the button, and the chevron that opens the layouts |
| 148 | as pictures, joined. Behaviour is unchanged (the button adds the |
| 149 | layout that usually follows the current slide; the chevron picks). |
| 150 | The picker opens upward from the chevron. |
| 151 | - **The bar** is estilo's stacked bar as today. Its controls, in |
| 152 | order: the save line, undo and redo in one pill, **Format**, |
| 153 | **Shareβ¦**, **Present**, the suite switcher, the account. Buttons |
| 154 | are estilo's pills, as in Docs: Format is the soft-tinted toggle, |
| 155 | Share⦠is outlined, Present is the filled one. The bar's |
| 156 | "Inspector" toggle becomes Format: same place, new name and look. |
| 157 | Its state is remembered in a cookie the server reads, as Docs' is, |
| 158 | so the first paint is final (today it is `localStorage`, applied |
| 159 | after the editor mounts). It has no shortcut today and none is |
| 160 | added. |
| 161 | - **The view switch** is the only thing on the stage's toolbar: three |
| 162 | icon buttons in one pill, exactly one lit, each with a tooltip and |
| 163 | an accessible name (Desktop; Phone; Both, side by side). It is |
| 164 | still three radios underneath (Β§3.2 of the main spec), and the View |
| 165 | menu's three items stay. |
| 166 | |
| 167 | --- |
| 168 | |
| 169 | ## 3. The deck list |
| 170 | |
| 171 | - The page's ground is the same grey as the editor's desk. The warm |
| 172 | gradient goes. |
| 173 | - A deck's cover shows its first slide **centred** in the card. Today |
| 174 | the slide's content sits off-centre in the cover; that is a bug. |
| 175 | The builder finds whether it is the cover's box or the thumbnail's |
| 176 | own picture, and fixes it where it is wrong. |
| 177 | |
| 178 | --- |
| 179 | |
| 180 | ## 4. The inspector |
| 181 | |
| 182 | A floating card, as in Docs: a white rounded card with a soft shadow, |
| 183 | over the top right of the desk. It has **no title**. Inside are small |
| 184 | labelled groups, with no accordion and no sections to fold. |
| 185 | |
| 186 | - **Format** in the bar shows and hides it. It is lit while the card |
| 187 | shows. |
| 188 | - **The stage keeps clear of it.** While the card shows, the stage |
| 189 | reserves the card's width, so a frame is never under it; when it is |
| 190 | hidden, the frame re-centres in the whole desk. |
| 191 | - **It stops short of the foot of the desk and scrolls inside |
| 192 | itself.** It never makes the page scroll. |
| 193 | - **From 1100px**, the width at which the editor already goes side |
| 194 | by side. Narrower than that the editor keeps today's stacked column, |
| 195 | with the card in the flow under the stage, regrouped but not |
| 196 | floating. |
| 197 | |
| 198 | ### 4.1 What it shows |
| 199 | |
| 200 | Exactly one of these, decided by where the selection is: |
| 201 | |
| 202 | | Selection | The card shows | |
| 203 | |---|---| |
| 204 | | A box (click it, put the caret in it, or pick it from the list in Β§4.3) | That box's options (Β§4.2) | |
| 205 | | The caret in the notes | The notes' marks: the Text group alone (Β§4.2) | |
| 206 | | 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) | |
| 207 | |
| 208 | The card changes when this person's selection changes, and at no |
| 209 | other time. It does not change because someone else selected |
| 210 | something. |
| 211 | |
| 212 | ### 4.2 A box's options |
| 213 | |
| 214 | **Today's fields for that kind of box, regrouped. No field is added |
| 215 | and none is dropped** (E8). The builder takes the exact list per kind |
| 216 | from the Block section of `editor.html` and its locale keys |
| 217 | (`slides.editor.block.*`); the table says where each goes. |
| 218 | |
| 219 | | Group | Holds | For | |
| 220 | |---|---|---| |
| 221 | | **Style** | Level | headings | |
| 222 | | | Size | text, and the kinds that have it today | |
| 223 | | | List style | lists | |
| 224 | | | Shape, fill, stroke, stroke width, label | shapes | |
| 225 | | | Language | code | |
| 226 | | | Rows, columns, first row is a header | tables | |
| 227 | | | Number of columns | columns blocks | |
| 228 | | | Citation | quotes | |
| 229 | | **Text** | The marks the pill has today: bold, italic, code, highlight, link | any box with text, as the pill allows today | |
| 230 | | **Alignment** | Alignment | the kinds that have it today | |
| 231 | | **Image** | Image file, fit, corner radius | images | |
| 232 | | **Description** | Alternative text; decorative | images | |
| 233 | | **Place** | Region (flow slides); position and size, bring forward, send back (canvas slides); move up, move down | every box, as today | |
| 234 | | **On a phone** | Hidden, order, size, and Reset to desktop, with today's phone-override badge | every box, as today | |
| 235 | | (foot) | Delete block | every box | |
| 236 | |
| 237 | - The **Text** group is the pill, moved. Each mark is a toggle that |
| 238 | shows the state of the selection and is disabled when the selection |
| 239 | cannot take it, exactly as the pill's buttons are now |
| 240 | (`fixtures/format-bar.mjs`). Shortcuts are unchanged. **The pill |
| 241 | formats the notes too**, so with the caret in the notes the card |
| 242 | shows the Text group and nothing else. |
| 243 | - A group with nothing in it for this box does not show. |
| 244 | - In phone view, changing an option that has a phone override writes |
| 245 | the override, as today (Β§2.5 of the main spec). |
| 246 | |
| 247 | Not in this slice, though the mockup draws them: a heading's font, |
| 248 | size and colour and alignment on kinds that have none today |
| 249 | (illustrative only; ruling 9 stands); **Appears** on a box and **In |
| 250 | the talk** on a slide (the steps slice, Β§9). |
| 251 | |
| 252 | ### 4.3 The slide's and the deck's options |
| 253 | |
| 254 | Today's Slide and Deck sections, regrouped. Nothing added, nothing |
| 255 | dropped. |
| 256 | |
| 257 | - **Slide**: layout (flow or canvas); template; background and its |
| 258 | colour; transition; **On a phone** (Β§6.2). |
| 259 | - **Boxes**: the list of boxes on this slide, and Add block. Picking |
| 260 | a box from the list selects it, and the card becomes that box's |
| 261 | options. |
| 262 | - **No move, add or delete buttons for the slide.** They are in the |
| 263 | Slide menu and in each slide's own menu in the strip today, and |
| 264 | stay there. Delete slide, from either, asks for its confirmation in |
| 265 | the card, at the top of the slide's options, as it does in the |
| 266 | inspector today (Β§4.4). |
| 267 | - **Deck**, under a rule: what the Deck section holds today (title |
| 268 | and theme where it has them, accent and its reset, heading font, |
| 269 | body font, unused images). |
| 270 | |
| 271 | ### 4.4 The keyboard, and the card hidden |
| 272 | |
| 273 | The inspector's list of boxes is today the only keyboard way to select |
| 274 | a box that holds no text. That stays true and stays possible: |
| 275 | |
| 276 | - With nothing selected, the list is in the card (Β§4.3). With a box |
| 277 | selected, **Esc** returns to the slide's options, where the list is. |
| 278 | - With the card hidden, Format in the bar or Inspector in the View |
| 279 | menu shows it. An action that needs the card (Delete slide's |
| 280 | confirmation; a menu item that today opens the inspector) shows the |
| 281 | card and puts it on the slide's options, as such actions force the |
| 282 | inspector open today. |
| 283 | - Focus moves into the card when a keyboard action opened it, and |
| 284 | back to where it was when the card is dismissed. |
| 285 | |
| 286 | --- |
| 287 | |
| 288 | ## 5. Notes |
| 289 | |
| 290 | - **Open**, the notes are a floating card along the foot of the desk, |
| 291 | inset from its edges, in the same style as the inspector. It has the |
| 292 | word Notes, an **Γ** that closes it, and the notes themselves, which |
| 293 | are the same editable field as today, bound the same way. |
| 294 | - **It keeps clear of the inspector**: it stops short of the card's |
| 295 | width while the card shows. The stage reserves the notes' height, |
| 296 | so a frame is never under them. |
| 297 | - **Its height is adjustable** by dragging its top edge, and from the |
| 298 | keyboard on that edge, between two lines and half the desk; taller |
| 299 | notes scroll inside it. The height is remembered. |
| 300 | - **Closed**, the notes are a small icon button in the desk's bottom |
| 301 | start corner. A dot on it means this slide has notes. Its accessible |
| 302 | name says so in words, never by the dot alone. |
| 303 | - **Show notes** stays in the View menu and does the same thing as |
| 304 | the Γ and the icon. The switch above the stage goes. |
| 305 | - Open or closed is remembered where the switch's state is today |
| 306 | (`NOTES_KEY` in `fixtures/editor-entry.js`). |
| 307 | |
| 308 | --- |
| 309 | |
| 310 | ## 6. The phone view |
| 311 | |
| 312 | ### 6.1 The frame |
| 313 | |
| 314 | In phone view the stage shows a phone: a frame of a phone's |
| 315 | proportions, as tall as the stage allows. It is no longer a card the |
| 316 | height of its content. In Both, the desktop frame and the phone frame |
| 317 | sit side by side. |
| 318 | |
| 319 | Inside it is **this slide as the viewer serves it at phone width**, |
| 320 | fetched from the server as the stage's HTML is today, and placed as |
| 321 | the viewer places it on a phone's page. The viewer serves one slide |
| 322 | to a page at every width, so the frame holds one slide. If the slide |
| 323 | is shorter than the phone, the rest of the frame is the viewer's page |
| 324 | ground. If it is longer, the frame scrolls inside itself. |
| 325 | |
| 326 | ### 6.2 On a phone, in this slice |
| 327 | |
| 328 | The slide's **On a phone** field is unchanged: it exists today, for |
| 329 | canvas slides, with its two values ("Scale the canvas to fit"; |
| 330 | "Reflow the blocks as a column"). It moves into the card's Slide |
| 331 | group with everything else and shows when it applies, as now. |
| 332 | |
| 333 | The mockup draws a three-way choice (Document, Letterboxed, Arranged). |
| 334 | That is the later phone slice (Β§9), not this one. |
| 335 | |
| 336 | --- |
| 337 | |
| 338 | ## 7. Where the shared parts live |
| 339 | |
| 340 | Docs' inspector, its segmented controls and its desk colour are rules |
| 341 | inside Docs' own page today. This slice puts the parts Slides needs |
| 342 | into estilo, as a named part beside `chrome` and `menu`, with Docs' |
| 343 | own values for the card (its 12px radius and padding; estilo's float |
| 344 | tokens are the menus', at 9px, and are not the card's): |
| 345 | |
| 346 | - the floating card and its labelled groups; |
| 347 | - the segmented control (filled, with the tinted and outlined |
| 348 | selected state) and the icon toggle; |
| 349 | - the desk colour, as a token both apps read. |
| 350 | |
| 351 | Slides is the first user. Docs keeps its own rules and is moved onto |
| 352 | the shared parts later, as its own change, checked against Docs' |
| 353 | tests. |
| 354 | |
| 355 | **Holding the two alike until then** is done in estilo, not across |
| 356 | apps: the new part is written from Docs' rules at a named Docs commit, |
| 357 | and a test in estilo records the numbers that make the look (radius, |
| 358 | shadow, padding, group label size, segmented control height and |
| 359 | selected state) so that a change to them is a deliberate one. There is |
| 360 | no automated Slides-against-Docs comparison; Slides has no gate that |
| 361 | can render Docs. Before merge, the builder puts a screenshot of each |
| 362 | app's card side by side in the branch's discussion for Paul. |
| 363 | |
| 364 | --- |
| 365 | |
| 366 | ## 8. Constraints and testing |
| 367 | |
| 368 | Constraints, from `AGENTS.md`, that bind this slice in particular: |
| 369 | |
| 370 | - **The stage is not a second renderer.** The phone frame and the |
| 371 | desktop frame show the server's HTML for that slide and viewport. |
| 372 | - **Never a flash.** The card, the notes and the frames appear in |
| 373 | their final layout; nothing moves when a font arrives. |
| 374 | - **Every string is a catalog key**, in every locale the editor has. |
| 375 | New: Format, Notes, Close notes, Show notes (this slide has notes), |
| 376 | Both side by side, and the card's group labels where no key exists |
| 377 | (Style, Text, Place, Description, Boxes, This slide). Reused: |
| 378 | Desktop, Phone, On a phone, and every field's own label. Removed: |
| 379 | the Inspector title and its bar label, the notes switch's label. |
| 380 | - **Accessible by construction.** Icon-only buttons have names; the |
| 381 | view switch is radios; the notes' dot is never the only signal; |
| 382 | focus order is bar, strip, stage, notes, inspector; the card and the |
| 383 | notes are reachable and operable from the keyboard (Β§4.4); WCAG 2.2 |
| 384 | AA contrast on the grey desk. |
| 385 | - **Icons are lucide, inline**, from `internal/slides/icons`. |
| 386 | - **Vendored components where one exists** (`AGENTS.md`, UX |
| 387 | conventions): do not hand-roll a field or a switch. |
| 388 | - **The gate.** Browser tests sit where the repo's existing browser |
| 389 | tests sit; the gate itself is as `AGENTS.md` describes it. |
| 390 | |
| 391 | Tests, each written before the code it holds: |
| 392 | |
| 393 | - The page does not scroll: with a deck of forty slides, long notes |
| 394 | and a box with every group showing, the document's scroll height |
| 395 | equals the window's, at 1280Γ720 and 1920Γ1080. |
| 396 | - **Nothing is lost:** every field and action in today's Deck, Slide |
| 397 | and Block sections, the pill's marks, and the notes switch, by its |
| 398 | catalog key, is present in the card (or the place this design names) |
| 399 | for the selection it belongs to. The list is written from `main` |
| 400 | before any template changes. |
| 401 | - The card shows the options of the selection and no others: for each |
| 402 | kind of box, for the notes, for nothing selected, and after each |
| 403 | change of selection; and it does not change on another |
| 404 | collaborator's selection. |
| 405 | - The marks in the card toggle the same marks, with the same |
| 406 | shortcuts and the same disabled states, as the pill did, in a box |
| 407 | and in the notes. |
| 408 | - A box with no text can be selected, changed and deleted with the |
| 409 | keyboard alone, with the card showing and starting with it hidden. |
| 410 | - Delete slide confirms in the card, with the card hidden beforehand. |
| 411 | - Notes: open, close by Γ, reopen by the icon and by the View menu; |
| 412 | the dot is there exactly when the slide has notes; |
| 413 | typing in the floating card saves through the same queue (the |
| 414 | existing saving tests pass unchanged against it). |
| 415 | - New slide stays in view with forty slides in the strip. |
| 416 | - The view switch: one of three, by pointer and by keyboard; the |
| 417 | frames that show for each. |
| 418 | - The phone frame is a phone's proportions and no taller than the |
| 419 | stage, and its content is the server's phone rendering of the |
| 420 | slide (the same bytes the stage shows in phone view today). |
| 421 | - The deck list's cover is centred (the picture's content box is |
| 422 | centred in the cover, by measurement). |
| 423 | - In estilo: the recorded numbers of the floating card and the |
| 424 | segmented control (Β§7). |
| 425 | |
| 426 | --- |
| 427 | |
| 428 | ## 9. Where this sits |
| 429 | |
| 430 | Paul chose to revise the 11 November design |
| 431 | (`design/presenter-and-rehearsal`, draft 4, unapproved) into one |
| 432 | design for the whole of "this talk could have been made in Slides", |
| 433 | with the HalfStack deck as its test. That revision is not this |
| 434 | document. Its order of work, agreed in conversation: |
| 435 | |
| 436 | 1. **This slice**: the editor, tidied. |
| 437 | 2. Steps and core/full, and the presenter. |
| 438 | 3. Scenes and video. Decided so far: a scene is code an agent writes, |
| 439 | run in a sealed frame with no network, told only the step, the |
| 440 | size and whether to reduce motion; presses stay with Slides; it is |
| 441 | stored as a fixed bundle with a named author; and it carries a |
| 442 | still picture per step, captured in the author's browser, which |
| 443 | the PDF, thumbnails, the phone view and the checks use. |
| 444 | 4. Rehearsal and requests. |
| 445 | 5. Checks, a storyboard, and the talk as prose (all the notes in |
| 446 | order, read-only, with word count and minutes; notes readable and |
| 447 | writable in one go by an agent; no "script" feature). |
| 448 | 6. Layouts. |
| 449 | 7. Offline. |
| 450 | |
| 451 | And one more, raised on 16 November, not yet placed in that order: |
| 452 | |
| 453 | - **On a phone.** Paul: "there needs to be an option, to either show |
| 454 | on the phone letterboxed, or to position elements separately for |
| 455 | the vertical view". That is a model change with questions of its |
| 456 | own (Β§11, 1 and 2), so it is not in this slice. |
| 457 | |
| 458 | --- |
| 459 | |
| 460 | ## 10. Left to the builder |
| 461 | |
| 462 | - Reading Docs' inspector, bar and desk rules (`internal/docs/views/ |
| 463 | show.html` at Docs' `origin/main`) and matching them; the exact |
| 464 | desk colour comes from there, not from the mockup, whose grey was |
| 465 | matched by eye. |
| 466 | - The card's exact width, the notes' default height, the phone |
| 467 | frame's proportions and corner radius. |
| 468 | - Which of estilo's existing parts the pills and toggles already are, |
| 469 | and what is genuinely new there. |
| 470 | - The cause of the off-centre cover. |
| 471 | - The exact per-kind field lists for Β§4.2, from the template. |
| 472 | |
| 473 | ## 11. Open questions for Paul |
| 474 | |
| 475 | None of these blocks this slice. The first two decide the later phone |
| 476 | slice. |
| 477 | |
| 478 | 1. **Letterboxing a flow slide, against the reflow rule.** A canvas |
| 479 | slide already scales to fit on a phone, with a floor under its |
| 480 | type. A flow slide scaled the same way puts body text near 9px on |
| 481 | a narrow phone, and `AGENTS.md` holds "320px reflow, no |
| 482 | exemptions". Do you want letterboxing for flow slides anyway (as |
| 483 | a deliberate exception, perhaps with pinch to zoom), or only the |
| 484 | tall arranged page for slides that should not reflow? |
| 485 | 2. **Arranged reverses a ruling.** Ruling 2 of the main spec (you, |
| 486 | 2026-09-07) rejected "a hand-authored second layout per slide". A |
| 487 | tall page arranged by hand is that, for slides that opt in, and it |
| 488 | can fall behind when the desktop side changes. Confirm you want |
| 489 | it. |
| 490 | 3. **Frames with their own settings.** You asked whether the desktop |
| 491 | and phone views could have settings of their own, as artboards do |
| 492 | in Figma. A mockup exists (click the Desktop frame, the Phone |
| 493 | frame, a box, or the desk, and the card follows). You then said |
| 494 | the single Slide group with On a phone in it was fine for now. It |
| 495 | is left out. Keep it out, or add it to the phone slice? |
| 496 | 4. *Decided, 2026-11-16.* How long the slide's card is: the slide's |
| 497 | move, add and delete actions leave the card and the list of boxes |
| 498 | stays (E10). |
| 499 | |
| 500 | ## 12. Review record |
| 501 | |
| 502 | - **Builder check, 2026-11-16** (a fresh agent, read-only, asked what |
| 503 | it would need before planning draft 1). Six questions; all answered |
| 504 | in draft 2: |
| 505 | 1. *Is Β§4.2 the target or today's fields regrouped?* Today's fields, |
| 506 | regrouped (E8). The table now says so and the mockup's extras are |
| 507 | named as illustrative. |
| 508 | 2. *Does the phone viewer become a continuous page?* No. Draft 1 |
| 509 | wrongly assumed a phone reader scrolls from slide to slide; the |
| 510 | viewer serves one slide to a page at every width. The "following |
| 511 | slides" frame is gone (E11), and the new phone settings left this |
| 512 | slice. |
| 513 | 3. *The notes' marks.* The card shows the Text group when the caret |
| 514 | is in the notes (Β§4.1, Β§4.2). |
| 515 | 4. *Keyboard selection of a box, and Delete slide's confirmation.* |
| 516 | The list of boxes and the confirmation stay in the card (E10, |
| 517 | Β§4.3, Β§4.4). |
| 518 | 5. *What Letterboxed means on a flow slide.* Not decided here; it is |
| 519 | question 1 of Β§11, for the phone slice. |
| 520 | 6. *Where the Slides-against-Docs check runs.* In estilo, as |
| 521 | recorded numbers, with a side-by-side screenshot for Paul (Β§7). |
| 522 | - **Approved by Paul, 2026-11-16** ("go ahead"), on the summary of |
| 523 | draft 2 and its one question for this slice, answered as |
| 524 | recommended: the slide's move, add and delete actions leave the |
| 525 | card. Questions 1 to 3 of Β§11 stay open for the phone slice. |
| 526 | - **Corrections from the code, 2026-11-16**, found while planning; |
| 527 | none changes what Paul approved: |
| 528 | - The inspector toggle and the notes have no keyboard shortcut |
| 529 | today, so "the same shortcut" meant nothing. None is added. |
| 530 | - The editor goes side by side at 1100px, not Docs' 64rem. The card |
| 531 | floats from 1100px, and the stacked column below that stays. |
| 532 | - Docs remembers its inspector in a cookie the server renders. |
| 533 | Slides does the same, so the card's first paint is final. |
| 534 | - The Slide section has a Layout field (flow or canvas), which Β§4.3 |
| 535 | had left out. |
| 536 | - Docs' card is 12px round with 12px padding. estilo's float tokens |
| 537 | are the menus' (9px) and are not used for it. |
| 538 | - Slides pins an older estilo with no pill buttons. This slice moves |
| 539 | the pin to estilo's head. |
| 540 | - The editor has one locale, `en`. |
| 541 | |