Repository navigation
Fix the reproduced findings of a blind-user UI sweep - #302
Conversation
Margin rows ride the shell carry; a growing reply keeps its Send in the list; a narrowing hides cards instead of removing their widgets; Done wears its address; one receipt per widget; untaken cards draw their ring; chrome words stay out of a drag; and one vocabulary for asks, sent, and the shortcuts reference. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01RV97Mw54Bq25sqsY8ieVWU
The margin press row reads the standing Button without throwing off one; a walk to a question the narrowing hid widens the list; receipts collapse per subject and unit before a claim is spent; the pins consume the page's own events; tests count the cards that show; one more notice says sent. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01RV97Mw54Bq25sqsY8ieVWU
A thread on a suggestion was quoted as the slots' text nodes run together; the module that names its kind (x-word) now names its words through lfSays. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01RV97Mw54Bq25sqsY8ieVWU
# Conflicts: # skills/leaf/assets/runtime/chrome-layout.js # skills/leaf/packages/default/widgets/lf-draft.js
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01RV97Mw54Bq25sqsY8ieVWU
# Conflicts: # skills/leaf/assets/runtime/living-margin.js
The branch was formatted with a bare npx prettier (3.7.4) rather than the pinned hook (3.9.6), and the regenerated registry page was never run through it, so the lint job rewrote five files. The gallery's guide sentence read "the all keyboard shortcuts"; it now names the control the way it names Map and All leaves, and the corpus is regenerated from it. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01CzfTZcM2daqTxU2X6Ep8Tu
leaf-agent
left a comment
There was a problem hiding this comment.
One finding. The rest reads well — hiding the card instead of deleting it is the right depth for the narrowing bug, and the invariant is written down in skills/leaf/CLAUDE.md where the next reader will meet it.
Focus is left on <body> when a narrowing hides the card the reader is standing in. lf-thread-hidden is dispatched inside the reconcile loop, above const standingIn = threadsBox.contains(focused()). reactions.js's new listener answers it with setReact(false); both reactFrom and the strip's trigger are inside the card the loop has just set hidden, so checkVisibility() is false for each and the disarm falls through to document.body.focus(). standingIn then reads false, and the landing immediately below it is skipped — the one whose own comment says a removed node "drops focus to body, which hands the next Space to the page behind the panel".
Measured on PANEL_PAGE, running the scenario test_removing_an_open_reply_list_disarms_its_keyboard_mode[filter] already sets up (open the agent reply's reaction list under "Waiting on you", then let a remote ok take the thread out of it) and reading document.activeElement after told(page):
document.activeElement |
|
|---|---|
e35abbba (base) |
div.lf-threads |
c2d75d44 |
body |
Reading standingIn before the loop restores it — tests/test_render_conversations.py and tests/test_render_reactions.py are green with just that move (119 passed, --run-nightly). The existing test asserts the disarm but not where the reader lands, so nothing here catches it.
Separately, worth sequencing against #301: that PR deletes skills/leaf/assets/runtime/chrome-style.js and moves the sheet to chrome.css, so the user-select: none rule added here needs re-placing in the new file whichever of the two lands second.
# Conflicts: # skills/leaf/CLAUDE.md # skills/leaf/assets/runtime/chrome-layout.js # skills/leaf/assets/runtime/chrome-style.js # skills/leaf/assets/runtime/notifications.js
Hiding a card dispatches lf-thread-hidden, and the reaction list's listener disarms by moving the focus out of the list. Read after the loop, that move said the reader had never stood in the list, so the landing on it was skipped and they were left on body — the next Space went to the page behind the panel. The disarm test now pins where the reader lands; with the read back after the loop its filter case fails. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01CzfTZcM2daqTxU2X6Ep8Tu
|
Confirmed at One observation, not a request. The two clauses answer two different removals, and the test's new read lands on the first for both of its cases. Closing the other half of that review, which the replies didn't cover: the #301 sequencing resolved itself. #301 merged first, |
The disarm test covers a reaction list moving the focus itself; this is the plain case the hidden-card clause exists for, with nothing in the card but the reply box. Without the clause the reader is left to the browser's drop to body a rendering step later. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01CzfTZcM2daqTxU2X6Ep8Tu
…apes, one wash per mark (#303) Second batch from the blind-user UI sweep (#302 landed the first). These were the calls the sweep deferred as design stances; each is now a fix in its owning path, with a pin that fails on the old file. - **Change presses say what they reached.** `revealTarget` (living-margin.js) reports through the banner's notice slot rather than the live region alone, so Enter on a Change Button whose target is already on screen no longer looks dead. - **A pointer-opened versions menu names its Escape.** `version.close` (version.js) is a `native: true` row that names the platform's press on the key line; a keyboard entry's return frame stands nearer and prints "back" first. dispatch.js's register note gains the case. - **One verb per press in the reference.** Head "↑↓ choose · ⏎ run"; rows "choose next", "choose previous", "run". - **The reaction strip's trigger reads "React…"**, and that word is its accessible name; the icon-only floating trigger keeps its label. - **An element mark wears the text mark's wash** under its hairline (chrome.css), as a gradient image so it tints the box's own paper instead of replacing it; a draft's box wears the draft wash (new `--mark-pending` token, shared with marks.css) and a reacted box the reaction wash. A more specific `background` shorthand drops the tint, so lf-options' cell paint says `background-color` and the limit is stated at the rule. - **Previews hand off like a delivered page.** `scripts/preview.py` ends preparation with `status waiting`, so the banner stops claiming "Writing the page" over a finished draft for a quarter of an hour; stamp notes read "Earlier draft", "Draft as authored", "Updated in the checkout" (the site: "As published") instead of filenames. - **Print no longer nests a gloss's parentheses inside the author's**: the design-decision fixture sets the phrase off with dashes, and the registry's lf-gloss description tells authors why. Left standing, each with its reason in the branch's log: the Ask face "?" (a bubble-with-? is illegible at the Button's 16px; hover says "Ask"), the rest hint (the banner's standing "select text to comment" teaches selection), the Escape ladder's per-rung words, and the banner's count formats. Pins in `tests/test_render_anchors.py` and `tests/test_render_navigation.py`, each bug-backed once. On the merged tree: everyday suite 872 passed; every browser file 1138 passed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01RV97Mw54Bq25sqsY8ieVWU > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
Four blind users and a driven tour of the shipped examples turned up the places Leaf's chrome was inconsistent or confusing. This lands every finding that reproduced, each fixed in the path that owns it and pinned with a test that was watched fail with the bug put back. The design calls the sweep raised (the open-ask Button's
?face beside the help key, the 1px element-mark outline, hint wording) are listed at the end and not decided here.The page holds still, and narrowing is the panel's view
chrome-layout.js'srepaintMovingShellnow lays the rows out on each carried frame and once more at rest, so they ride with the column.replies.jsreveals the held thread on eachinputwhile the textarea has focus, and does it instantly rather than smoothly, since a smooth reveal undershot a box still growing.thread-list.jshides the cards withhiddeninstead and dispatcheslf-thread-hidden; a reveal aimed into a hidden card widens the list;reconcile.js,landing.js,anchors.js,reactions.jsandleaf.jsread:not([hidden]). The invariant is stated at the hide loop, where Cut over the chrome stylesheet, the test ledger, and the runtime CLAUDE.md #301 now keeps the runtime's own rules.lf-thread-hidden, and the reaction list's disarm answers it by moving the focus itself, which read afterwards said the reader had never been in the list and left them on body. The disarm test pins that they land on the list, and a second test pins the plain case, where nothing but the reply box holds the focus.One word per meaning
projection.js,box.js,notifications.js, lf-board, lf-draft, lf-options, lf-options-addition and lf-diff.reference.js; the tray's Escape word says "asks" rather than "decisions"; the composer's Escape line says "close — draft kept" only when there is a draft to keep.Widgets
lfSays(), whichanchors.jsasks of anyx-word: moduleelement, so an aim label reads "courtyard → covered terrace" rather than the slots' text nodes run together. The registry note anddocs/registry.htmlare regenerated.user-select: noneinsidechrome.css's@scope, so a drag up out of the prose no longer picks the chrome's text up.Python
acknowledgments.pycollapses page and frozen-widget moves per target and unit and mints one receipt for the newest, so a question no longer shows two "✓ Sent" receipts.session-lifetime.mdsays so.Testing
uv run pytest tests: 872 passed on the head b191a91.--run-nightly(margin, conversations, options, navigation, reactions, semantic selection, projection, controls, drafts, widgets, anchors): 777 passed on the same head.Not decided here
The sweep's judgment calls, left for a separate change: the open-ask Button's
?face reads as help until it becomes a paper plane; a thread on a whole paragraph is a 1px outline the keyboard tester read as a lingering focus ring; theshint's wording and the rest hint; count formats in the banner.🤖 Generated with Claude Code
https://claude.ai/code/session_01CzfTZcM2daqTxU2X6Ep8Tu