oficina / slides Public

Editor: a box's text taking focus selects it; marks act on the card's box

Tab into a box's text (or focus it any other way) left the card on the
slide's options, or on another box's: only a click selected. The format
bar's focus hook now names the box the text is in (a table cell's is the
table) and the entry selects it (final review, finding 3).

The marks kept acting on the text the caret was last in: type in A,
choose heading B from the Boxes list, and Bold changed A while the card
showed B. The bar now acts only when the text it holds is what the card
shows, the box or the notes, and is disabled otherwise (finding 2).

TestTidyMarksActOnTheCardsBox and TestTidyFocusSelectsTheBox hold it.
TestTidyCardFollowsSelection waits for the link prompt's close task,
which gives the caret back to the heading and now selects it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 69d48f0fd52c3c49a67e17e6c3b1412171e43d46 parent 33f7149
6 files changed, +220 −27
  • fixtures/editor-entry.js +20 −4
  • fixtures/format-bar.mjs +48 −8
  • fixtures/format-bar.test.mjs +21 −1
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/{editor.f1987b1749dfacd9.js => editor.1d17938a8290aca3.js} +13 −13
  • internal/slidestest/browser_editor_tidy_test.go +117 −0
fixtures/editor-entry.js

Loading diff…

fixtures/format-bar.mjs

Loading diff…

fixtures/format-bar.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/{editor.f1987b1749dfacd9.js => editor.1d17938a8290aca3.js}

Loading diff…

internal/slidestest/browser_editor_tidy_test.go

Loading diff…