Skip to content

Fix the reproduced findings of a blind-user UI sweep - #302

Merged
max-sixty merged 10 commits into
mainfrom
ux-landing
Sep 5, 2026
Merged

max-sixty merged 10 commits into
mainfrom
ux-landing

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 5, 2026 •

Copy link
Copy Markdown
Owner

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

  • Closing the Threads panel left the margin's Buttons standing over the prose. The body's width change laid the rows out on the carry's first frame, against a column a few pixels into its move, and nothing asked again once it arrived. chrome-layout.js's repaintMovingShell now lays the rows out on each carried frame and once more at rest, so they ride with the column.
  • A reply box growing under the keyboard pushed its Send out of the list. replies.js reveals the held thread on each input while the textarea has focus, and does it instantly rather than smoothly, since a smooth reveal undershot a box still growing.
  • "Waiting on you" removed the other cards from the DOM, so the Asks count, the "N comments" notes, and every link to a hidden thread followed the panel's narrowing. thread-list.js hides the cards with hidden instead and dispatches lf-thread-hidden; a reveal aimed into a hidden card widens the list; reconcile.js, landing.js, anchors.js, reactions.js and leaf.js read :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.
  • Where the reader stands is read before that loop: hiding a card dispatches 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

  • Every "— recorded" and "Message recorded" notice now says "sent", the word the receipt already uses, across projection.js, box.js, notifications.js, lf-board, lf-draft, lf-options, lf-options-addition and lf-diff.
  • The shortcuts reference is "All keyboard shortcuts" in its aria-label, its REFERENCE row and 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.
  • The versions menu's diff press reads "Δ changes" instead of a bare "Δ"; the Asks button's title states the count and what a press does; "Waiting on you" carries a sentence for each of its three states.
  • A thread's margin card is headed the way the panel heads it: the target's heading if it has one, else the passage the thread quotes, else the item's title. A card headed "aside · The fallback cookie…" over a comment on the aside's last sentence was a third name for one thread.

Widgets

  • lf-options: Done's key chip sits in its own address column inside the group's frame rather than as a stray digit at the frame's edge, and a single-pick card draws its empty ring at rest, so a pressable card looks pressable before hover.
  • lf-tabs: the activate row is offered only from an unselected tab.
  • lf-suggestion names its own words through lfSays(), which anchors.js asks of any x-word: module element, so an aim label reads "courtyard → covered terrace" rather than the slots' text nodes run together. The registry note and docs/registry.html are regenerated.
  • The living margin's press row says what the focused Button does, read off its record.
  • Banner, keyline and panel head are user-select: none inside chrome.css's @scope, so a drag up out of the prose no longer picks the chrome's text up.

Python

  • acknowledgments.py collapses 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.md says so.

Testing

  • uv run pytest tests: 872 passed on the head b191a91.
  • The touched browser files with --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; the s hint's wording and the rest hint; count formats in the banner.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

https://claude.ai/code/session_01CzfTZcM2daqTxU2X6Ep8Tu

max-sixty and others added 7 commits September 5, 2026 00:38
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
# 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 leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

max-sixty and others added 2 commits September 5, 2026 09:19
# 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
@leaf-agent

Copy link
Copy Markdown
Collaborator

Confirmed at b191a91c, and the fix reaches past the hoist I suggested. Reading standingIn above the loop is the half I found; the .lf-thread[hidden] clause beside it is the half I missed, and it is the one that makes the hoist safe rather than merely correct: a kept-but-hidden card is still in threadsBox, so contains(focused()) reads true and, without that clause, the landing would be skipped for a reader whose focus the browser is about to drop to body anyway.

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. reactions.js disarms only when a reaction list is armed on the hidden node, and that disarm is what puts focus on body — so both fold and filter arrive at the check with contains(focused()) already false. Hiding a card the reader stands in with no list armed is the path the second clause exists for, and nothing exercises it. Well below the bar for this PR, given the clause is the conservative direction.

Closing the other half of that review, which the replies didn't cover: the #301 sequencing resolved itself. #301 merged first, cde9b05e brought it into this branch, and the user-select: none rule is in the new file at chrome.css:1157, inside the @scope (.lf-chrome) block opening at line 721 — scoped as the description says, with nothing stranded in the deleted chrome-style.js. Nothing outstanding from my side; lint and test are green on this head.

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
@max-sixty
max-sixty merged commit 8780e43 into main Sep 5, 2026
6 checks passed
@max-sixty
max-sixty deleted the ux-landing branch September 5, 2026 16:41
max-sixty added a commit that referenced this pull request Sep 5, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants