oficina / slides Public

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

Plain git — no account needed to clone.

Download

Download this file

The quieter editor — implementation plan

> For agentic workers: REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (- [ ]) syntax for tracking.

Goal: With nothing selected the Slides editor shows the slide, a lighter strip, and a card with one visible choice; arranging a box moves onto the box; deck settings move to a dialog; no document state changes.

Architecture: The card keeps following [slides-editor][data-inspect]. Controls leave it for four new homes, each a small module with a server-rendered shell: a layout picker in the card (layout-pick.mjs), a menu on the selected box (box-menu.mjs), an Outline popover and stage tab stops (outline.mjs, stage-focus.mjs), and a Deck settings <dialog>. Every field keeps its name, data-prop and op; only its place in the markup and its presentation change. One inventory test names each field's home and is edited first in every task that moves one.

Tech Stack: Go templates and CSS in internal/slides; the editor bundle in fixtures/*.mjs; estilo and rastrillo as they are pinned; chromedp browser tests (-tags browser); node --test.

Spec: docs/superpowers/specs/2026-11-17-quieter-editor-design.md (cited as §n). The mockup beside it shows where things go; the spec wins, and its §4.5 lists what the mockup draws that is not built.

Global Constraints

  • No document state changes (§ intro). No op, field, migration, Rust core or renderer change. A task that seems to need one stops and reports.
  • One repo. Worktree ~/amadan.net/oficina/slides-quieter-editor, branch quieter-editor, cut from origin/main after git fetch, then git cherry-pick the commits of design/quieter-editor (docs only). estilo is not changed; if a shared part is missing, stop and report (§7).
  • Nothing is pushed, merged or posted without Paul's word each time (push, discussion, merge are asked separately).
  • Copy review first (§1 Q11). The controller runs the copy-review skill with Paul on the strings table below before Task Q2; tasks use his wording verbatim. No new English reaches en.toml before that review returns.
  • Every string is a catalog key in internal/slides/locales/en.toml, listed in editorStrings (internal/slides/editor.go:198). A string a module needs reaches it as a data-* attribute on its server-rendered shell; a literal in a .mjs is a bug.
  • estilo's controls keep estilo's look (§7). No Slides rule restyles Format's lit state, a selected segment, or the Present pill.
  • Accessibility: WCAG 2.2 AA; targets at least 24×24 CSS px; every icon-only control has a name; nothing by colour alone; destructive actions never a modal.
  • JS house rules: editor-entry.js is wiring only; every other module under 300 lines, with a *.test.mjs (cd fixtures && node --test *.test.mjs).
  • The bundle is committed: after any fixtures/ change, cd fixtures && npm ci && node build-bundles.mjs, delete the old internal/slides/static/editor.<hash>.js, commit the new one, and regenerate credits with GOTOOLCHAIN=go1.26.5. Commit before running the gate (it reverts uncommitted files under internal/slides/static).
  • Gates: while iterating, the one Go test and the one JS test. Before each commit, make ci. Once at the end of a task that changed behaviour, ./.amadan/ci.d/10-gate and the browser tests the task names. Browser tests are outside the gate; twelve fail on main itself (table in oficina/slides discussion 44): eight need Playwright engines, four fail for their own reasons, one more is flaky. Report any other failure.
  • Shared machine: scratch under $TMPDIR; bind servers to 127.0.0.1 on a free port; stop what you start; leave GOCACHE alone; no sudo. The session's sandbox refuses writes outside its start directory: retry a refused command with the sandbox disabled.
  • Commits: subject under 80 characters, blank line, body, then the Co-Authored-By line of the model that wrote the code.

Names every task shares

| Name | Meaning | |---|---| | homes (Go, in quieter_inventory_test.go) | The table {needle, home string} of every field and command; home is one of the constants below. | | homeCardSlide, homeCardBlock+":"+group, homePopBackground, homePopTransition, homeDeckDialog, homeBoxMenu, homeInsertMenu, homeOutline, homePhoneOnly, homeStrip | Where a needle must be found, and the only place. | | [slides-layout-pick], radios name="slides-layout-pick", values title, title-body, two-column, section, image-full, quote, blank, free | The layout pictures (§3.1). | | [slides-confirm-layout], commands layout-leave-free, layout-leave-free-cancel | The in-card question when a template is chosen on a canvas slide. | | button[popovertarget="slides-pop-background"], #slides-pop-background[popover]; the same with transition | The two quiet rows and their popovers. | | <dialog slides-deck-dialog id="slides-deck-dialog"> | Deck settings (§8). | | button[slides-box-more], <div slides-box-menu estilo-menu popover="manual" role="menu"> | The round button on a selected box and its menu (§4). | | commands block-place (new), block-forward, block-back, block-move-up, block-move-down, block-delete; rows [data-region="heading\|body\|aside\|media"] | The menu's rows. | | <details slides-place> | The closed-by-default Place group in the card (§4.3). | | #slides-outline[popover], View row [data-view-toggle="outline"] | The Outline (§4.4). | | [slides-editor][data-view="desktop\|phone\|both"] | The view, mirrored on the root so CSS can read it. | | [slides-phone-editing] | The line of text beside the view switch in Phone and Both. | | li[slides-strip-new] | The New slide row, last in the <ol slides-strip>. | | button[slides-notes-open] with data-label, data-label-words | The closed-notes text tab. |

Strings (proposal for the copy review)

| Key (under slides.editor.) | English | Where | |---|---|---| | file.deck | Deck settings… | File menu row; the dialog's title without the ellipsis (deck.settings "Deck settings") | | layout.free | Free placement | Ninth picture's name | | layout.leave.confirm | Put the boxes back into this layout's regions? Their positions are dropped. Undo brings them back. | In-card question | | layout.leave | Use the layout | Its action | | layout.leave.cancel | Keep free placement | Its cancel | | level.1, level.2, level.3 | Title, Heading, Subheading | Heading level segments | | box.more | More for this box | The round button's name | | box.place | Position and size… | Menu row; place.title "Position and size" for the card group | | box.region | Move to region | Submenu label | | box.delete | Delete | Menu row | | view.outline | Outline | View menu row and the popover's name | | outline.none | This slide has no boxes yet. | Empty Outline | | phone.editing | Editing the phone layout | Beside the view switch | | notes.tab | Notes | Closed notes, no notes | | notes.tab.words | Notes · {n} words | Closed notes, with notes ({n} is replaced) | | keys.box.forward, keys.box.back, keys.box.up, keys.box.down, keys.box.delete, keys.box.menu | Bring the box forward; Send the box back; Move the box up; Move the box down; Delete the selected box; Open the box's menu | Keyboard-shortcuts dialog |

Reused as they are: the template names (template.*), slide.background, slide.transition, block.forward, block.back, block.move.up, block.move.down, region.*, keys.close. Removed when nothing reads them: slide.layout, layout.flow, layout.canvas, layout.flow.desc, layout.canvas.desc, slide.template, group.boxes, inspector.blocks.none, block.add, block.delete, block.level, block.box, notes.title, notes.open, notes.open.has, inspector.deck, deck.title.

Review Focus

  1. Right-click and the menu key inside text being edited. The browser's own menu opens (spelling, paste); the box's menu does not. On a device with no hover the round button is always shown on the selected box. Pinned in Q4 (TestQuieterBoxMenuLeavesTextAlone).
  2. The slide changes under an open question or menu. A collaborator changes the slide's layout, or deletes the selected box, while the leave-free question or the box's menu is open: the question withdraws, the menu closes, nothing is committed against the old state. Pinned in Q3 (layout-pick.test.mjs, TestQuieterLeaveFreeWithdraws) and Q4 (box-menu.test.mjs).
  3. A deck with no slides. The card at rest is empty of pictures and rows and says nothing misleading; View → Outline and Insert's block rows are disabled; the New slide row still adds a slide. Pinned in Q3, Q5 and Q7 (TestQuieterEmptyDeck).
  4. Deck settings while something else is happening. Fonts still loading (the dialog's font fields are inert with the rest), a collaborator changing the theme while it is open (the fields follow), Esc and the close button both return focus to the File menu's title. Pinned in Q2 (TestQuieterDeckSettingsLive).
  5. Narrow and touch. At 1000×800 and 320×700 the box's menu and both popovers stay inside the window, the card in the flow is a few rows, and the New slide row sits after the last thumbnail in the horizontal strip. Pinned in Q4 and Q7 (TestQuieterNarrow).

---

File map

| Path | Change | |---|---| | internal/slidestest/quieter_inventory_test.go | New: homes, TestQuieterNothingIsLost. Replaces TestEditorTidyNothingIsLost. | | internal/slidestest/quieter_test.go, browser_quieter_test.go (//go:build browser) | This slice's HTML and browser tests. | | internal/slides/templates/editor.html | Card, dialog, box menu shell, outline, strip, notes, stage bar. | | internal/slides/static/editor.css | All of the above; the token block (Q9). | | internal/slides/editor.go, locales/en.toml | Strings; notes word count; template list for the picker. | | fixtures/layout-pick.mjs, box-menu.mjs, outline.mjs, stage-focus.mjs (+ tests) | New modules. | | fixtures/inspector.mjs, inspector-block.mjs, inspector-ops.mjs, commands.mjs, head.mjs, selection.mjs, canvas.mjs, stage.mjs, strip.mjs, notes-card.mjs, editor-entry.js | Changed as each task says. | | internal/slidestest/editor_tidy_test.go, browser_editor_tidy_test.go, editor_test.go, browser_assets_test.go, fonts_browser_test.go | Assertions on things this slice moves, updated in the task that moves them. |

---

Task Q1: The inventory, as it stands

Files: create internal/slidestest/quieter_inventory_test.go; delete TestEditorTidyNothingIsLost from editor_tidy_test.go (lines 548-726) once the new test covers it.

Interfaces:

  • Produces: type needle struct{ needle, home string }; var homes []needle; the home* constants; func homeOf(page, home string) string returning the slice of the page that home denotes (for example the aside's block form's style group, or the <dialog slides-deck-dialog>); TestQuieterNothingIsLost, which asserts every needle occurs in homeOf(page, n.home) and nowhere else in the editor page outside <template> elements.
  • [ ] Step 1: Write homes from today's markup: every needle the old test lists (deck fields, slide fields, the eleven data-add-block, block fields by group, marks, commands), each with the home it has today (homeCardSlide, homeCardBlock:<group>, and homeCardDeck as a constant that Q2 retires). Write homeOf for the homes that exist today.
  • [ ] Step 2: Run go test ./internal/slidestest/ -run TestQuieterNothingIsLost — passes against unchanged markup. Then break one row's home on purpose, see it fail with a message naming the needle and both homes, restore it.
  • [ ] Step 3: Remove the old test; make ci; commit (Editor: one inventory of where every field lives).

Task Q2: Deck settings become a dialog

Files: editor.html (deck form 547-589 moves after </main> into the dialog; File menu row; bar title 98), editor.css (dialog, on the keyboard-shortcuts dialog's rules 451-496), fixtures/inspector.mjs (form lookup), head.mjs:66,208-219 (title), commands.mjs, editor-entry.js, en.toml, editor.go; tests in the three test files; editor_test.go:204 (TestEditorInspectorMarkupIsFormsWithLabels: the card holds 2 forms, the page 3).

Interfaces:

  • Produces: <dialog slides-deck-dialog id="slides-deck-dialog" aria-labelledby> holding <form rst-form slides-inspector-form data-section="deck" method="dialog"> with today's deck controls except rst-deck-title, and one submit button (keys.close); File row <button estilo-menu-item data-open-dialog="slides-deck-dialog">; mountHead({…, commitTitle: (v: string) => void}) replacing the write through the card's field; createCommands gains setTitle(v) committing deckOp('title', v).
  • Consumes: homes (Q1).
  • [ ] Step 1: Failing tests. Edit homes: the deck needles move to homeDeckDialog; name="rst-deck-title" is removed from homes and asserted absent from the page; name="slides-head-title" asserted present once. TestQuieterDeckSettingsMarkup: the dialog is after </main>, has no element with the old Deck group label, the File menu has the row. Browser, TestQuieterDeckSettingsLive: File → Deck settings opens it with focus inside; changing Theme changes the stage's theme class at once; a second session changing the accent updates the open dialog's accent field; Esc and the button close it and focus is on the File menu's title; editing the bar's title changes the deck's title in a second session; while fonts wait (fonts_browser_test.go's wait helper) the dialog's two font selects are disabled or inert.
  • [ ] Step 2: Run — fails.
  • [ ] Step 3: Implement. inspector.mjs finds the three forms by root.querySelector('[slides-inspector-form][data-section="…"]') instead of inside the aside, and attaches its change and click listeners to the deck form where it now lives. The font-wait inert list (editor-fonts.mjs:168-175) gains [slides-deck-dialog]; update the two assertions at fonts_browser_test.go that list it.
  • [ ] Step 4: Run the new tests, TestEditorInspectorMarkupIsFormsWithLabels, go test -tags browser ./internal/slidestest/ -run 'Deck|Title|Fonts|Races' — pass.
  • [ ] Step 5: Rebuild the bundle; commit (Editor: the deck's settings are a dialog under File).

Task Q3: The card at rest is layout pictures

Files: create fixtures/layout-pick.mjs, layout-pick.test.mjs; editor.html (slide form 462-545; new {{define "slides-template-glyph"}} beside the layout glyphs at 863-871), editor.css, inspector.mjs:134-146,173-202, commands.mjs, editor-entry.js, editor.go, en.toml.

Interfaces:

  • Produces: - litFor(slide: {layout, template}): string — 'free' when layout === 'canvas', else slide.template. - pickOps(slide, value: string): { ops: Op[], ask: boolean } — a template on a flow slide: [{op:'set_slide', id, template: value}], ask: false; 'free' on a flow slide: [{op:'set_slide', id, layout:'canvas'}], ask: false; a template on a canvas slide: [{op:'set_slide', id, layout:'flow'}, {op:'set_slide', id, template: value}], ask: true; the lit value again: ops: []. - mountLayoutPick({ form, getSlide, commit }) → { fill(), withdraw() }. fill() lights litFor(getSlide()) and calls withdraw() if the slide's layout is no longer canvas. withdraw() hides [slides-confirm-layout] and re-lights the true value. - Markup: <fieldset slides-layout-pick> with a visually hidden legend (slide.layout's replacement is the group label group.slide), eight <label> each wrapping a radio and a glyph, title and aria-label from template.* and layout.free; [slides-confirm-layout] in the callout pattern of [slides-confirm], first in the form after it; the two quiet rows and their popovers, each popover holding today's field unchanged (rst-slide-background with rst-slide-background-color; rst-slide-transition), still inside the slide <form>.
  • Consumes: homes.
  • [ ] Step 1: Failing tests. layout-pick.test.mjs: the four pickOps cases above with exact ops; litFor; choosing a template on canvas shows the question and commits nothing; its action commits both ops in one commit call; cancel commits nothing and re-lights free; fill() after the slide became flow elsewhere withdraws the question (Review Focus 2). homes: rst-slide-layout and rst-slide-template are removed and name="slides-layout-pick" (eight values) added at homeCardSlide; background needles → homePopBackground; transition → homePopTransition. TestQuieterCardAtRest: the slide form's visible content is the fieldset, the two rows, the two hidden callouts, and (until Q5 and Q6) the Boxes group and the phone field; there is no rst-field-hint in it. Browser, TestQuieterLayoutPictures: for a slide of each template and a canvas slide exactly one picture is lit; each choice writes what the Template and Layout fields wrote (read the slide back through the API); leaving Free asks in the card with focus on the action, and Cancel changes nothing; at 1280×720 with nothing selected the card's scrollHeight === clientHeight. TestQuieterLeaveFreeWithdraws: a second session sets the slide to flow while the question shows → the question is gone and nothing was committed. TestQuieterEmptyDeck (first part): no slides → the fieldset and rows are not drawn.
  • [ ] Step 2: Run — fails.
  • [ ] Step 3: Implement. Glyphs: one drawn branch per template value, reusing the New slide drawings (title-body takes title-text's, image-full takes picture's) and a new one for free (three offset rectangles), in the same 48×27 box and --slides-glyph-* colours. Four pictures across. The popovers use the anchor-positioning rules the layouts popover uses (editor.css:582-590), each anchored to its row. inspector.mjs fillSlide calls layoutPick.fill() and no longer reads the removed controls.
  • [ ] Step 4: Run the task's tests and -run 'Template|Layout|Canvas' under -tags browser (existing tests that set rst-slide-template or the layout radios are moved onto the pictures; list each in the commit body) — pass.
  • [ ] Step 5: Rebuild the bundle; commit (Editor: the card at rest is the layout, as pictures).

Task Q4: The menu on a box; the card keeps only style

Files: create fixtures/box-menu.mjs, box-menu.test.mjs; editor.html (block form 596-808; the menu shell and the round button after the stages), editor.css, inspector-block.mjs, inspector.mjs:204-244, commands.mjs, selection.mjs:124-133, canvas.mjs:179-232, editor-entry.js:1027-1033, editor.go (Keys, 361-368), en.toml.

Interfaces:

  • Produces: - rowsFor({ layout: 'flow'|'canvas', type: string }): string[] — the row ids in order: canvas → ['block-forward','block-back','block-move-up','block-move-down','block-place','block-delete']; flow → ['block-move-up','block-move-down','region','block-delete']. - mountBoxMenu({ root, stageEl, getSelected, getSlide, run, setRegion }) → { open({x, y} | 'button'), close(), place(), isOpen() }. place() positions [slides-box-more] for the current selection, or hides it. open shows only rowsFor(...) rows, clamps the menu inside the viewport, focuses its first row; Arrow keys move, Enter and Space activate, Esc closes and focuses the box. - canOwnContextMenu(target: Element): boolean — false when target is inside a focused [contenteditable="true"]. - Commands: block-place opens <details slides-place> in the card, shows the card (showInspector(true)), and focuses its first field. - Keys, added to Keys and the keyboard-shortcuts dialog: bring forward Mod+], send back Mod+[, move up Mod+Shift+↑, move down Mod+Shift+↓, open the menu Shift+F10 and the context-menu key, delete Delete. The implementer checks each against text-keys.mjs, the canvas overlay's own arrows (canvas.mjs:290-302) and the browser, and reports any it had to change.
  • Consumes: homes.
  • [ ] Step 1: Failing tests. box-menu.test.mjs: rowsFor for both layouts; canOwnContextMenu; open draws only the applicable rows; activating a row calls run with its command and closes; a region row calls setRegion; close() on place() when the selection is empty (Review Focus 2). homes: block-forward, block-back, block-move-up, block-move-down, block-delete, and rst-block-region (as the four data-region rows) → homeBoxMenu; rst-block-x/y/w/h stay at homeCardBlock:place, now inside <details slides-place>; rst-block-level and rst-block-size stay in style as radios. TestQuieterBlockCardIsStyle: the block form holds no rst-btn, no slides-block-delete, no rst-field-hint; level is three radios labelled from level.1..3; size three radios from size.s/m/l. Browser: - TestQuieterBoxMenu: on a canvas shape and on a flow heading: the round button is drawn on selection, is at least 24×24, lies inside the stage pane, and its rect intersects no [slides-handle] rect; click, Shift+F10 and right-click each open the menu at a place inside the window; each row does what its button or field did (read the slide back); rows that do not apply are absent; Esc returns focus to the box. - TestQuieterBoxMenuLeavesTextAlone (Review Focus 1): with the caret in a heading's text, a contextmenu event on that text is not defaultPrevented and the box menu stays closed; on the box's outline (or a shape) it opens. - TestQuieterKeyboardOnlyShape (replaces TestTidyKeyboardOnlyBox's canvas half; the Boxes list is still in the card in this task and is how the shape is reached): reach a shape, change its fill, send it back with the key, open Position and size from the menu, change Left, delete it with Delete. - TestQuieterDeleteKey: Delete with a shape focused deletes it; with the caret in a heading it deletes a character; in the strip it still asks about the slide. - TestQuieterNarrow (first part): at 1000×800 and 320×700 the open menu's rect is inside the window. - Corner radius is not drawn for a shape whose kind is not a rectangle.
  • [ ] Step 2: Run — fails.
  • [ ] Step 3: Implement. The menu shell is server-rendered with every row; open hides the ones not in rowsFor. selection.mjs's Escape skips a target inside [slides-box-menu], as it does dialog, [rst-dropdown]. The root click dispatcher (editor-entry.js:1027) already runs data-command buttons outside the card: the menu's rows go through it. Delete/Backspace on a box fires only when document.activeElement is the canvas overlay or a block element that is not and does not contain a focused editable. Fill and stroke: a round swatch over the native colour input, CSS only. <details slides-place> remembers open or closed in sessionStorage['slides.editor.place']. On (hover: none) the round button shows whenever a box is selected.
  • [ ] Step 4: Run the task's tests and -run 'Canvas|Inspector|Tidy(Card|Marks|Delete)' under -tags browser; update the tidy tests that pressed the card's removed buttons to use the menu, listing each in the commit body — pass.
  • [ ] Step 5: Rebuild the bundle; commit (Editor: arranging a box is a menu on the box; the card is its style).

Task Q5: Boxes are tab stops; Outline; Insert adds on its own

Files: create fixtures/stage-focus.mjs, stage-focus.test.mjs, outline.mjs, outline.test.mjs; editor.html (Boxes group 534-545 goes; View menu 161-175; the Outline popover), editor.css, head.mjs:184-201, commands.mjs, inspector.mjs:204-244 (fillBlocks moves to outline.mjs), stage.mjs:247-263, canvas.mjs, editor-entry.js; browser_assets_test.go:58-59, fonts_browser_test.go:873-874,995-996 (they open the card's Add block).

Interfaces:

  • Produces: - mountStageFocus({ stageEl, select, canvas, isText: (type) => boolean }) → { refresh() }. refresh() (called after every stage install) gives each block that has no text editor tabindex="0", role="group" and an aria-label of its kind; focusin on such a block calls select(id); on a canvas slide it then moves focus to the canvas overlay, and Tab/Shift+Tab on the overlay go to the next or previous box in slide order. - mountOutline({ popover, getBlocks, select, labels }) → { fill(), open(), close() }; rows are button[data-select-block="<id>"]; choosing one calls select(id), closes, and focuses the box. - createCommands gains addBlock(kind: string) (commits addBlockOp, selects the new box); head.mjs's Insert rows call it. - Escape, restated: inside the card with a box selected → focus returns to that box, selection kept; on the box → deselect (the slide's options).
  • Consumes: homes, showInspector.
  • [ ] Step 1: Failing tests. stage-focus.test.mjs, outline.test.mjs: the behaviours above against the DOM stub. homes: the eleven data-add-block rows are removed and the eleven data-insert-block rows asserted at homeInsertMenu; slides-blocks-buttons → homeOutline. TestQuieterCardAtRest loses its Boxes exception. Browser: TestQuieterTabStops: on a flow slide holding heading, image, shape and table, and on a canvas slide, Tab from the last strip control visits every box in slide order, each visited box is the selection and the card shows its options; in a table Tab walks the cells before leaving. TestQuieterOutline: View → Outline lists the boxes by kind and first words and selects the chosen one; with no slide the row is disabled (Review Focus 3). TestQuieterInsert: each of the eleven Insert rows adds its kind with the card hidden. Rewrite TestQuieterKeyboardOnlyShape to reach the shape by Tab, and assert Esc in the card returns focus to the shape.
  • [ ] Step 2: Run — fails.
  • [ ] Step 3: Implement. Tab stops are added by the editor after install; the renderer is untouched. inspector.mjs no longer holds [data-select-block], [data-add-block] or the Boxes-list Escape.
  • [ ] Step 4: Run the task's tests, the two assets and fonts tests moved onto the Insert menu, and -run 'Focus|Marks|Selection' under -tags browser — pass.
  • [ ] Step 5: Rebuild the bundle; commit (Editor: boxes are tab stops; Outline and Insert replace the card's list).

Task Q6: On a phone, only in phone views

Files: editor.html (root; stage bar 383-391; slide phone field 526-533; block phone group 784-804), editor.css, editor-entry.js:603-614.

Interfaces:

  • Produces: applyView also sets root.dataset.view; CSS draws [data-group="phone"], the slide's rst-slide-phone field and [slides-phone-editing] only under [slides-editor]:is([data-view="phone"], [data-view="both"]). The server renders data-view="desktop".
  • [ ] Step 1: Failing tests. homes: the phone needles and rst-slide-phone → homePhoneOnly (in the card, inside an element the CSS rule above governs). Browser, TestQuieterPhoneOnly: in Desktop view none of the three is drawn, for a canvas slide and for a selected box; in Phone and in Both all apply; the line's text is phone.editing; switching view with a box selected updates the card without reselecting.
  • [ ] Step 2: Run — fails. Step 3: Implement. Step 4: Run with -run 'Phone|ViewSwitch' — pass.
  • [ ] Step 5: Rebuild the bundle; commit (Editor: phone settings show only in the phone views).

Task Q7: The strip

Files: editor.html:313-376, editor.css:506-640,1450-1496,1655-1690, fixtures/strip.mjs:91-127, head.mjs, editor-entry.js; editor_tidy_test.go:85-108, browser_editor_tidy_test.go:323 (the pinned-foot tests are replaced).

Interfaces:

  • Produces: li[slides-strip-new] as the last child of <ol slides-strip>, holding the New slide button and the layouts chevron; strip.mjs inserts new items before it; [slides-strip-label] is visually hidden text (its content unchanged), the number is drawn from the CSS counter in a gutter, and [slides-strip-link] carries title equal to the label, kept current by relabel(); contextmenu on an item opens its [slides-strip-menu].
  • [ ] Step 1: Failing tests. TestQuieterStripMarkup: no slides-strip-foot; the <ol> ends with li[slides-strip-new]; each link has a title. Browser, TestQuieterStrip: no label text is visible (its rect is clipped) and the link's accessible name is unchanged (compare with main's string for the sample deck); the current item has exactly one accent mark (no second ring or shadow in computed style); at 1280×720 at least six thumbnails are fully in view for a ten-slide deck; adding a slide puts it before the New slide row; right-click opens the item's menu; with 40 slides, scrolling the strip to its end shows the row. TestQuieterNarrow (second part): at 1000×800 the row follows the last thumbnail in the horizontal strip. TestQuieterEmptyDeck (last part): the row adds the first slide.
  • [ ] Step 2: Run — fails. Step 3: Implement; the ⋮ summary gets a translucent ground from a named value (Q9's block). Step 4: Run with -run 'Strip|NewSlide|Reorder' — pass (the strip's drag reorder and Alt+↑ still work).
  • [ ] Step 5: Rebuild the bundle; commit (Editor: a strip of pictures and numbers; New slide follows the last).

Task Q8: The notes

Files: editor.html:422-434, editor.css:760-905,1688-1742, fixtures/notes-card.mjs, notes-card.test.mjs, editor.go:79-98,484-485, en.toml; editor_tidy_test.go:155-216, browser_editor_tidy_test.go:175,2506.

Interfaces:

  • Produces: editorPage.NotesWords int (words in the first slide's notes, len(strings.Fields(Plain()))); countWords(fragment): number exported from notes-card.mjs; mountNotesCard({…, words: () => number}) replacing hasNotes; refresh() writes the tab's text from data-label or data-label-words ({n} replaced); the pane has aria-label (no heading element) and no estilo-card; HEAD_PX updated to what the CSS now draws.
  • [ ] Step 1: Failing tests. notes-card.test.mjs: countWords (empty, one word, marks and line breaks); refresh() text for 0 and 42 words; clampHeight with the new HEAD_PX. TestQuieterNotesMarkup: no slides-notes-heading, no data-has-notes, no icon inside [slides-notes-open]; the tab's server-rendered text for a slide with and without notes. Browser, TestQuieterNotes: in Desktop view the open card's left and right edges equal the slide's within 1px, with the card shown and hidden, at 1280×720 and 1920×1080; it has no box shadow; the grip is drawn on hover and on focus of the edge; closed, the tab's text follows typing and slide changes; the first paint with the closed cookie and the bundle blocked shows the tab with its words.
  • [ ] Step 2: Run — fails. Step 3: Implement; the card's width in Desktop view comes from the same expression that sizes the desktop frame. Step 4: Run with -run 'Notes|PageNeverScrolls|SlideFits' — pass.
  • [ ] Step 5: Rebuild the bundle; commit (Editor: quieter notes, and a tab that says how much is there).

Task Q9: Sizes and radii from the published set

Files: internal/slides/static/editor.css; quieter_test.go.

  • [ ] Step 1: Failing test. TestQuieterCSSUsesTokens: outside one block delimited by the comments /* slides: named values */ and /* end named values */, no font-size, font shorthand or border-*-radius declaration in editor.css contains a number with a unit; inside it every declaration is a custom property.
  • [ ] Step 2: Run — fails, listing each offending line.
  • [ ] Step 3: Implement. Map to --rst-fs-xs|sm|base|lg and --rst-radius|radius-sm|radius-pill where the published value is within 1px of today's; otherwise declare a named value once (--slides-radius-glyph: 2px, --slides-radius-phone: 28px, and the like). Take before and after screenshots of the editor at rest, a box selected, the strip, the notes and the dialog (to $TMPDIR, removed after), and list every visible difference in the commit body.
  • [ ] Step 4: make ci; the whole browser suite once — no new failure.
  • [ ] Step 5: Commit (Editor: one set of type sizes and radii).

Task Q10: Strings, dead code, the record

Files: en.toml, editor.go, editor.css, fixtures/*.mjs, quieter_test.go, AGENTS.md (only sentences this slice made untrue).

  • [ ] Step 1: Failing tests. TestQuieterStrings: every key in the approved strings table that the editor uses is in en.toml with Paul's English and in editorStrings; every key in editorStrings is read; the removed keys are gone. TestQuieterNoDeadSelectors: editor.css and fixtures/ contain none of slides-strip-foot, slides-blocks-list, slides-add-block, slides-notes-heading, slides-block-delete, slides-seg-desc, data-has-notes. The keyboard-shortcuts dialog lists the six new keys.
  • [ ] Step 2: Run — fails; fix; passes.
  • [ ] Step 3: Verify, once. ./.amadan/ci.d/10-gate; cd fixtures && node --test *.test.mjs; go test -tags browser ./internal/slidestest/, comparing its failures by name with the baseline. Paste the three summaries into the report.
  • [ ] Step 4: Screenshots at 1280×720 to ~/.cache/quieter-editor-shots/: nothing selected; a heading, an image and a canvas shape selected; the box's menu open; Position and size open; Outline open; Deck settings open; notes closed; phone view; dark; 1000×800; 320×700.
  • [ ] Step 5: Commit; report ready for the whole-branch review. Pushing, the discussion and the merge are Paul's to allow, each in turn.

---

Self-review

  • Spec coverage. §2 → Q3, Q7, Q8. §3.1 → Q3. §3.2, §3.3 → Q4. §3.4 → Q6. §4.1–4.3 → Q4. §4.4 → Q5. §5 → Q5. §6.1 → Q7. §6.2 → Q8. §7 → Q9 and the Global Constraint on estilo. §8 → Q2. §10's tests → Q1 (inventory), Q3, Q4, Q5, Q6, Q2, Q7, Q8, Q9; "the tidy's tests still pass" is each task's step 4 and Q10's step 3.
  • Calls this plan makes that the spec left to the builder (§11): the keys (Mod+], Mod+[, Mod+Shift+↑/↓, Shift+F10, Delete); the pictures four across; the menu as a manual popover clamped to the window; tab stops added by the editor after install; the notes tab counts words.
  • Order. Q4 leaves the Boxes list in the card so a shape can be reached by keyboard until Q5 adds tab stops and removes it; Q9 runs after every task that edits editor.css.
  • Spec questions still open with Paul (§12): the accent on shared controls, the New slide row not pinned, the view switch's place. The plan builds what the spec says for each.