oficina / slides Public

Clone
git clone https://amadan.net/oficina/slides

Plain git — no account needed to clone.

Download

Download this file

1# 🤖 Slides: the quieter editor — design
2
3Design, 2026-11-17, **draft 2, approved by Paul the same day** ("Let's
4go with it and we can iterate when built"; then "Very nice" to the
5question of whether that covered this document; §12's three questions
6stay open). Draft 2 answers a
7builder's read of draft 1 (§13). Written by Claude
8Fable 5.2 on branch `design/quieter-editor`, cut from `origin/main` at
9`07d2e96`, from a conversation with Paul on 17 November: a UX review
10of the merged editor (two independent assessments, one by a design
11reviewer and one a scan and count of the code), four choices he made
12from it, and a clickable mockup he answered with "Let's go with it and
13we can iterate when built."
14
15The mockup is beside this file: `2026-11-17-quieter-editor-mockup.html`
16(Proposed and Today, side by side). **It shows where things go and how
17much is on screen. Where this text and the mockup disagree, this text
18wins**; §4.5 lists three things the mockup draws that are not in the
19slice.
20
21It builds on, and does not restate:
22
23- the Slides design, `2026-09-07-slides-design.md` (the **main spec**);
24- the editor tidy, `2026-11-16-editor-tidy-design.md` (the **tidy**),
25 whose card, notes, strip and cookies this slice changes;
26- `AGENTS.md`.
27
28**This slice changes no document state.** No field, op, migration or
29renderer changes. Every field the editor offers today is still
30offered; most of them move.
31
32---
33
34## 0. Intent
35
36Paul, of the merged editor: "It's too clunky right now. I think it
37could be more subtle without being unintuitive."
38
39The review put numbers on it. At rest the editor shows about 38
40controls where Docs shows about 22. The card's markup holds 57
41controls under 10 group labels, shows the slide's form and the whole
42deck's form whenever nothing is selected, and scrolls. Six surfaces
43carry a border or a shadow where Docs has three. Position, order and
44layer are form fields and standing buttons, though the slide already
45has handles.
46
47**Success** is that with nothing selected the editor shows the slide,
48its strip, and a card with one visible choice; and that nothing a
49person could do before has become harder to find.
50
51### 0.1 Goals
52
531. The card shows only what describes the selected thing's look.
542. Arranging a box is done on the box.
553. Settings visited once per deck are not on screen all the time.
564. The strip, the notes and the view switch take less ink.
57
58### 0.2 Non-goals
59
60- Steps, full only, parked, the presenter. The next slice (§9).
61- Drag to reorder boxes, or to move them between regions, on a flow
62 slide. Reordering stays a command (§5).
63- Arranging the phone layout by hand in the phone frame. The phone
64 slice.
65- Any new field, including duplicate box and text colour (§4.5).
66- Changing estilo's shared controls (§7).
67
68### 0.3 Anti-goals (failure even if it works)
69
70- **Subtle and unfindable.** Every action that left the card has a
71 visible home a new person meets without a manual: a button on the
72 selected box, a menu in the bar, or a named row in the card.
73- **Mouse-only.** Everything in the box's menu is reachable from the
74 keyboard, and a box that holds no text can still be selected,
75 changed and deleted with the keyboard alone (the tidy's §4.4).
76- **Something lost.** The tidy's "nothing is lost" inventory still
77 passes, with each field's new home written beside it.
78- **A flash.** The card, the notes and the dialog paint in their final
79 state (the tidy's cookies stay).
80- **Slides drifting from Docs.** Where a control is estilo's, it looks
81 as it does in Docs (§7).
82
83---
84
85## 1. Calls this design makes
86
87| # | Call | Whose |
88|---|---|---|
89| Q1 | With nothing selected, the card is **a row of layout pictures** and a quiet Background and Transition line. | Paul (chose it from the review) |
90| Q2 | The deck's settings move to a **Deck settings dialog** under File. The deck's title is edited only in the bar. | Paul |
91| Q3 | With a box selected, the card holds **only that box's style**. Layer, order, region, position and delete move to **a menu on the box**. | Paul (approved the mockup) |
92| Q4 | **Notes stay a floating card**, quieter; closed, they are a text tab. | Paul |
93| Q5 | The list of boxes and Add block leave the card. **Boxes become tab stops on the stage**, and View gains an Outline. | Session; drawn in the mockup Paul approved |
94| Q6 | **On a phone** shows only in Phone and Both view, and the stage says the phone layout is being edited. | Session, from the review |
95| Q7 | Flow or Canvas stops being a separate field: **Free placement is the ninth layout picture**. | Session, from the review |
96| Q8 | The strip loses the title under each thumbnail; the number moves to a gutter; New slide is a quiet row after the last slide. | Paul (approved the mockup) |
97| Q9 | The view switch stays above the slide, as three icons. | Session; the reviewer would move it into the bar |
98| Q10 | **estilo's controls keep estilo's look**, accent included. The quiet comes from fewer things, not from recolouring shared parts. | Session (§7); the mockup draws these neutral |
99| Q11 | New words go to Paul's copy review **before** they are written into any file. | House rule; the tidy got the order wrong |
100
101---
102
103## 2. The page at rest
104
105Bar, strip, desk, as the tidy left them. What differs:
106
107- **The card** floats where it does today, 248px, and is short (§3.1).
108- **The strip** (§6).
109- **The notes** (§6).
110- **The view switch** is unchanged: estilo's segmented control above
111 the slide (§7).
112
113Below 1100px the stacked column stays; the card in the flow is now a
114few rows.
115
116---
117
118## 3. The card
119
120Still estilo's floating card, still following the selection through
121`[slides-editor][data-inspect]`. Its buttons are estilo's segments and
122quiet rows. No bold outlined pill (`rst-btn`) remains in it, and no
123standing paragraph of help.
124
125### 3.1 Nothing selected
126
127- **Layout**: eight pictures, four across: **the slide's seven
128 templates** (the values of today's Template field), then **Free
129 placement**. Exactly one is lit: the slide's template, or Free
130 placement on a canvas slide. Each has a name as its tooltip and its
131 accessible name. It is a radio group. The pictures are in the style
132 of the New slide glyphs, one per template; they are not the eight
133 New slide layouts, two of which share a template. Choosing a picture
134 never adds or removes a box.
135 - Choosing a template on a flow slide sets the slide's template, as
136 the Template field does today.
137 - Choosing **Free placement** sets the slide's layout to canvas, as
138 the Canvas choice does today.
139 - Choosing a template on a canvas slide sets the layout to flow and
140 the template. That drops each box's position, so it **asks first,
141 in the card**, the way Delete slide does: one line saying the
142 boxes go back into the layout's regions, with the action and
143 Cancel. Not a modal, and not a standing hint.
144- **Background** and **Transition**: two quiet rows under the grid.
145 Each opens a small popover holding today's field: background and its
146 colour; transition.
147- Nothing else. The slide's On a phone choice is in §3.4.
148
149### 3.2 A box selected
150
151Today's style fields for that kind, as the tidy grouped them, minus
152everything in §4:
153
154| Group | Holds |
155|---|---|
156| **Style** | Heading level, shown as three segments named in words (the three levels that exist); size as three segments; list style; shape kind, fill, stroke, stroke width, label, corner radius; code language; table rows, columns, header; column count; citation |
157| **Text** | The five marks |
158| **Alignment** | Alignment, as segments |
159| **Image** | Image file, fit as segments |
160| **Description** | Alternative text; decorative |
161
162- Fill and stroke stay colour fields. They are drawn as a swatch that
163 opens the colour picker, not as a bar.
164- Corner radius does not show for a shape whose kind has no corners.
165- A group with nothing in it for this box does not show (estilo's
166 rule).
167
168### 3.3 The caret in the notes
169
170As today: the Text group alone.
171
172### 3.4 Phone and Both view
173
174In these two views, and only in them:
175
176- with nothing selected, the card adds the slide's **On a phone**
177 choice (canvas slides, as today);
178- with a box selected, the card adds the **On a phone** group (hidden,
179 order, size, reset, and today's override badge);
180- in Phone view only, the stage carries one line of text beside the
181 view switch saying that the phone layout is being edited, so a
182 person knows why an edit there differs. In Both view the editable
183 stage is the desktop's, and dragging or placing a box there edits
184 the desktop layout, so the line is not drawn (ruling R18, from the
185 whole-branch review).
186
187In Desktop view none of the three shows.
188
189---
190
191## 4. The menu on a box
192
193### 4.1 How it opens
194
195- **A round button** on the selected box's outline, at its top end
196 corner. It is a real button with a name, at least 24px, and it never
197 covers a resize handle.
198- **The keyboard**: the context-menu key or Shift+F10 with a box
199 selected.
200- **Right-click** on a selected box, **unless the pointer is in text
201 being edited**. In text the browser's own menu opens, because that
202 is where spelling and paste live.
203
204It is estilo's menu. Esc closes it and returns focus to the box.
205
206### 4.2 What it holds
207
208Each row shows its key. A row that does not apply to this box is not
209drawn.
210
211| Row | Does | Applies to |
212|---|---|---|
213| Bring forward, Send back | Today's two commands | canvas slides |
214| Move up, Move down | Today's two commands | every slide, as today (on a canvas slide they set reading and phone order) |
215| Move to region ▸ | Today's Region field, as a submenu | flow slides |
216| Position and size… | Shows the Place row in the card (§4.3) | canvas slides |
217| Delete | Today's Delete block | every box |
218
219Keys: the builder proposes them with the copy (Q11), checks each
220against the browser's and the editor's existing shortcuts, and lists
221them in the keyboard-shortcuts dialog.
222
223**New behaviour, and the only one:** Delete or Backspace deletes a box
224when the box itself has focus and no text is being edited (§4.4).
225Today no key deletes a box. It never fires from inside text, and the
226strip's own Delete (which asks about a slide) is untouched, because
227focus is in the strip then.
228
229### 4.3 Position and size
230
231Left, top, width and height stay available for a canvas box, because
232handles cannot type 60.0. They are **a Place group in the card that is
233closed by default** and opened by Position and size… in the menu, or
234by its own disclosure row at the foot of the card. Open or closed is
235remembered for the session, not across reloads.
236
237### 4.4 Selecting a box without a pointer
238
239- Every box on the stage is **a tab stop**, in the slide's order.
240 Focus on a box selects it: the card shows its options and the round
241 button shows. Esc returns to the slide.
242 - **A box with text**: its tab stop is its own text, as the editor
243 mounts it today. Tabbing to it puts the caret in it, which already
244 selects the box. Tab leaves it for the next box, unless the text
245 editor already uses Tab there (a table moves between its cells
246 first, then on).
247 - **A box with no text** (shape, image, divider, spacer and the
248 like): it gets a focusable outline of its own, on flow slides as
249 canvas slides have today. This is the "box itself has focus" of
250 §4.2.
251- **View → Outline** opens a popover listing this slide's boxes by
252 kind and first words. Choosing one selects it and closes the
253 popover. This is the list the card holds today, moved.
254- Tab order of the page: bar, strip, the slide's boxes, notes, card.
255
256### 4.5 Drawn in the mockup, not in this slice
257
258- **Duplicate** in the box's menu. There is no op to duplicate a box.
259- **Colour** on a text box. There is no such field (main-spec ruling
260 9).
261- **Neutral tints** on Format and the selected segments, and a view
262 switch without its frame. See §7.
263- **Nine layout pictures**, some of layouts that do not exist. There
264 are eight (§3.1).
265
266---
267
268## 5. Adding things
269
270- **Add block** leaves the card. The Insert menu holds every kind, as
271 today, and is the one place.
272- The layouts stay on New slide's chevron and in Insert.
273
274---
275
276## 6. The strip and the notes
277
278### 6.1 The strip
279
280- No title under a thumbnail. The slide's number sits in a narrow
281 gutter beside it. The thumbnail keeps its accessible name (number
282 and title), and its title becomes its tooltip.
283- The current slide has one mark: the accent outline.
284- The ⋮ button shows on the current, hovered or focused thumbnail, as
285 now, on a translucent ground so it reads on a light slide in the
286 dark theme. Right-click on a thumbnail opens the same menu.
287- **New slide** is a quiet row directly after the last thumbnail, with
288 the layouts chevron beside it. It scrolls with the list. The foot
289 that pinned it goes. (This reverses the tidy's E6. With no titles
290 about six slides fit where four did, and the Slide menu, Insert and
291 the shortcut add a slide from anywhere.)
292
293### 6.2 The notes
294
295- Open: the same card and field, in the same place in the stage pane
296 (it takes its room by layout, as now). In Desktop view it is **the
297 slide's width and aligned with its edges**; in Phone and Both view
298 it keeps today's width. Either way it stops short of the card, as
299 the slide does. A hairline frame and no shadow. No
300 heading: the field's placeholder names it. The × stays. The resize
301 edge stays, and its grip shows on hover and on focus.
302- Closed: **a text tab** at the bottom start of the desk in place of
303 the icon: the word for notes, followed by a count of the words when
304 the slide has any. No dot.
305- State and height stay in the tidy's cookies.
306
307---
308
309## 7. Shared parts, and where this stops
310
311Format's lit state, the selected segment, the primary Present pill and
312its shadow are estilo's, and Docs shows them the same way in its own
313accent. This slice does not restyle them for Slides alone: a control
314that looks one way in Docs and another in Slides is what the tidy was
315for.
316
317So Slides' quiet comes from what it removes. If Paul wants the shared
318selected state itself quieter, that is a change to estilo, for both
319apps, and its own piece of work.
320
321What this slice does own:
322
323- no accent on anything that is Slides' own except the selection
324 outline and the current thumbnail;
325- `editor.css` uses the type sizes and radii estilo and rastrillo
326 publish wherever one fits. A value the editor needs and they lack
327 (a glyph's 2px corner, the phone's 28px, a circle) is declared once,
328 by name, in one block at the top of the file. Nothing else in the
329 file states a size or a radius as a number. No token is added to
330 estilo or rastrillo for this.
331
332If the box's menu, the popovers or the dialog need something estilo
333lacks, it is added to estilo first, as the desk part was.
334
335---
336
337## 8. The Deck settings dialog
338
339File → **Deck settings…** opens a dialog in the pattern the
340keyboard-shortcuts dialog already uses (Share is a page, not a
341dialog). It holds what the card's Deck
342group holds today, unchanged: theme, accent and its reset, heading
343font, body font, unused images. Changes apply as they are made, as
344they do in the card today; the dialog has one button, to close.
345
346The deck's title is not in it. The bar's title field is the one place.
347
348---
349
350## 9. Where this sits
351
352The order of work, as it stands on 17 November:
353
3541. The editor, tidied. Merged, `07d2e96`.
3552. **This slice.**
3563. Steps, full only and parked, and the presenter. Decided so far, in
357 conversation with Paul, and to be written up in that slice's own
358 design:
359 - **Network:** the window you press in always moves; other windows
360 and the phone follow through the server. Both windows on one
361 laptop staying together with no network is wanted afterwards,
362 and may be a Mac app. So a position is absolute (this slide, this
363 step, this mode), never relative.
364 - **A slide is always in the talk, full only, or parked.** A parked
365 slide stays in place in the strip as a slim bar. Set from the
366 slide's own menu in the strip.
367 - **Steps in the editor, in the subtle form:** the stage always
368 shows the finished slide; one "Appears" row in the box's card;
369 press numbers as small numerals in the box's margin; a small
370 control in the slide's corner to step through, only on slides
371 that have steps; how things arrive is one setting for the deck.
372 - **The presenter window is the HalfStack deck's, copied**:
373 `2026-11-17-presenter-mockup.html`. One menu is added for what
374 Slides has and the deck did not (pairing a phone, the slide
375 window, ending). Open with Paul: the typefaces, and whether
376 Present opens the slide first.
377 - **Paul's additions to the presenter, 17 November:** its layout
378 is customisable (move and resize the panels; remembered per
379 person, with a reset to the default); the notes can **fit** or
380 **scroll**, with their text size under the presenter's control;
381 jumping to any slide stays (type a number, or pick from a grid);
382 and the window shows **where you are in a slide's steps**,
383 because that was unclear when giving the talk. The notes'
384 controls are icons, not words. The slide picker has to stay
385 usable at the HalfStack deck's size (105 slides): it scrolls,
386 opens on the current slide, and narrows as a number or words
387 are typed.
388 - **The presenter window never scrolls** (Paul, 18 November). Every
389 panel fits the window at any size, and the slides scale to the
390 room. Only two things scroll, inside themselves: the notes when
391 the presenter chooses Scroll, and the slide picker.
392 - **Where you are in a slide's steps sits beside the slide number**
393 (Paul, 18 November: "I was pressing advance, and the slide number
394 wasn't going up ... I wasn't sure why"). Every press visibly moves
395 something next to the number.
396 - **Proposed, not yet answered by Paul:** the notes follow the
397 steps, with the part for the current press bright and the rest
398 dimmed. The mockup draws it.
3994. Scenes and video. 5. Rehearsal and requests. 6. Checks, storyboard,
400 the talk as prose. 7. Layouts. 8. Offline.
401
402---
403
404## 10. Constraints and testing
405
406From `AGENTS.md`, binding here in particular: the stage is not a
407second renderer; never a flash; every string a catalog key; icons
408lucide, inline; WCAG 2.2 AA; targets at least 24px; destructive
409actions never a modal; `editor-entry.js` is wiring only; the committed
410bundle is rebuilt.
411
412Tests, each written before the code it holds:
413
414- **Nothing is lost**: the tidy's inventory, rewritten with each
415 field's and command's new home (card group, box menu row, Background
416 or Transition popover, Deck settings dialog, phone-view group), and
417 asserted there.
418- At rest at 1280×720 the card does not scroll and holds the layout
419 group of eight, two rows, and nothing else; exactly one picture is
420 lit for a slide of each template and for a canvas slide.
421- Choosing each layout picture writes what the Template and Layout
422 fields wrote; leaving Free placement asks in the card, and Cancel
423 changes nothing.
424- The box's menu: opens from the button, the keyboard and right-click;
425 right-click in text being edited does not open it; each row does
426 what its field or button did; rows that do not apply are absent;
427 Esc returns focus to the box.
428- Keyboard alone, starting from the bar: reach a shape, change its
429 fill, send it back, open Position and size, delete it.
430- Outline lists the slide's boxes and selects the one chosen.
431- On a phone shows in Phone and Both view and not in Desktop, for the
432 slide and for a box; the stage's line shows with it.
433- Deck settings: every field writes what it wrote in the card; the
434 title is editable only in the bar.
435- The strip: no visible title, the accessible name unchanged, New
436 slide after the last thumbnail, right-click opens the item's menu.
437- Notes: the card's edges match the slide's within 1px; closed, the
438 tab's text says whether there are notes, in words.
439- `editor.css` states no font size or radius as a number outside its
440 one named block (a test over the stylesheet).
441- Delete with a shape focused deletes it; Delete with the caret in a
442 heading deletes a character; Delete in the strip still asks about
443 the slide.
444- The tidy's tests for no page scroll, the cookies' first paint, and
445 the font wait still pass.
446
447---
448
449## 11. Left to the builder
450
451- The exact keys in the box's menu, and Outline's.
452- The popovers' and the dialog's markup, from what estilo and the
453 keyboard-shortcuts dialog already provide.
454- Rewiring what reaches into the card today: the Insert menu's block
455 rows press the card's Add block buttons; the bar's title writes
456 through the card's Deck title field; Esc in a box's options returns
457 focus to the Boxes list.
458- Where the round button sits when a box is at the slide's edge.
459- Which of `editor.css`'s sizes and radii map to which tokens.
460- The wording, as proposals for Paul's copy review (Q11).
461
462## 12. Open questions for Paul
463
464None blocks the build.
465
4661. **The accent on shared controls** (§7). The mockup draws Format and
467 the selected segments neutral. Built, they will be orange-tinted
468 as Docs' are blue-tinted. Leave that, or quieten the shared
469 selected state in estilo for both apps?
4702. **New slide no longer pinned** (§6.1). You asked for the pin in the
471 tidy. The quiet row scrolls away on a long deck. Keep the row, or
472 keep a pinned foot in the quieter style?
4733. **The view switch** (Q9). Stays above the slide as it is, or moves
474 into the bar as one phone-preview button, as the reviewer
475 suggested?
476
477## 13. Review record
478
479- **UX review, 2026-11-17**: a design review (Claude Opus 5.5) from
480 sixteen screenshots and the merged source, and a separate scan and
481 count (Claude Sonnet 5.5). Score 24 of 40 on Nielsen's ten. Its
482 priority issues are §3, §4, §3.4, §7 and §6 here. Where it
483 contradicted what Paul had already decided (docked notes, parked
484 slides in a pile), Paul chose: notes stay floating; parked slides
485 stay in place.
486- **Builder check, 2026-11-17** (a fresh agent, read-only, asked what
487 it would need before planning draft 1). Three statements about
488 today's code were wrong and are corrected: there are seven
489 templates, not eight; Share is a page, not a dialog; no key deletes
490 a box today. Six questions, all settled as the session's calls:
491 1. *Templates or New slide layouts?* The seven templates plus Free
492 placement; a picture sets the template and never adds a box
493 (§3.1).
494 2. *Where does Tab land on a text box?* In its text, which selects
495 the box; boxes with no text get a focus outline of their own
496 (§4.4).
497 3. *Move up and down on canvas slides?* They stay, as today (§4.2).
498 4. *The notes' edges in Phone and Both view?* Today's width there;
499 the slide's edges in Desktop view only (§6.2).
500 5. *A frameless view switch?* No. It stays estilo's control (§2).
501 6. *New tokens?* None. One named block in `editor.css` for values
502 the published set lacks (§7).
503- **As built, 2026-11-18.** Rulings the session made while the ten
504 tasks were built and reviewed (each task by GPT-6 Astra, then the
505 whole branch). Where they differ from the text above, they are what
506 shipped:
507 - **§3.1** While the card asks before leaving Free placement, Free
508 placement stays the lit picture; the one asked about carries a
509 dashed "pending" outline until the answer.
510 - **§3.2** An image's limits ("PNG, JPEG, WebP or SVG, up to 20 MB.")
511 stay visible as one quiet line under its file field. "No standing
512 paragraph of help" meant the multi-sentence explanations.
513 - **§3.4** "Editing the phone layout" shows in **Phone view only**.
514 In Both view dragging a box edits the desktop layout, so the line
515 was false there; the card's On a phone settings still show in
516 both.
517 - **§4.1** The round button sits above the box's top end corner,
518 clear of the handles and, where it can, of other boxes; when no
519 spot on the slide is free it docks beside the view switch. In
520 text being edited the browser's own menu always wins on
521 right-click; a text box's menu is the button or Shift+F10.
522 - **§4.2** The menu's first row on every box is **Format**: it
523 shows the card and puts focus in the box's options, which is the
524 keyboard's way in. **Move to region is four rows in the menu, not
525 a submenu** (estilo has no submenu part). Keys: Ctrl/Cmd+] and
526 Ctrl/Cmd+[ for forward and back, Ctrl/Cmd+Shift+Up and Down to
527 move, Shift+F10 for the menu, Delete to delete a focused box.
528 After a delete, focus goes to the next box.
529 - **§4.3** Position and size's open state is kept in memory for the
530 page, so a reload starts closed. Its percentage note is visible.
531 - **§6.1** A slide's number in the strip is real text, shown once
532 and spoken once ("1 Welcome to Slides, current slide"), and
533 renumbered when slides move.
534 - **§6.2** The notes' tab counts words. One word reads "Notes · 1
535 words": the approved wording has no singular, and that is Paul's
536 to decide.
537 - **§7** Notes text stays 15px and the strip's number 12px as named
538 values; everything else in `editor.css` uses the published sizes
539 and radii. The floating card is kept on its own compositing layer
540 from first paint (`will-change: transform`), which stops a
541 one-pixel change at load whose trigger was not found.
542 - **Found, predating this work, not fixed here:** on a canvas slide
543 a box hidden on the phone is still drawn (the renderer's rule
544 loses to the box's own); after New slide, a save that finishes
545 late can override where the person has since navigated; at 320px
546 the bar's divider and account control wrap onto a row of their
547 own.
548