Skip to content

Show Done's digit in a multiple-choice Question's badge column - #2434

Merged
max-sixty merged 2 commits into
mainfrom
multi-choice-done-hint
Oct 11, 2026
Merged

max-sixty merged 2 commits into
mainfrom
multi-choice-done-hint

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

A multiple-choice Question showed digits on its options and its add field but none on Done. Done's 4 still worked and stayed in aria-keyshortcuts, but a user reading the keys saw no way to finish the Question. #2064 had banned shortcut badges inside native buttons and dropped Done's badge instead of moving it.

The ban guarded a real failure: an in-flow badge filled on focus resized its button between pointer down and up, and the click was lost. The same commit made every lent badge an absolutely positioned lf-binding-seat, which already prevents that for any holder, so the button-ancestry ban was a second, coarser guard for the same guarantee. This removes the ban and its two tests; the draft test that holds button edges still under a raw press stays.

Done's badge is back inside its button, as an option's is inside the option, so a press on it is a press on Done. It sits in the column the other digits use: inline-end on cards, inline-start on rows. Tests that asserted a badge-less Done now assert its digit, that showing it moves no button edge, and that clicking it presses Done.

The test job's one failure, test_chrome_contracts.py::test_a_traffic_wait_stops_when_repaints_outlive_its_deadline, is not from this change: it fails the same way on the unrelated reduce-suite-cost and fix/ci-38159211604-sample-release runs, and this change touches neither that test nor the traffic helper it exercises.

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

max-sixty and others added 2 commits October 11, 2026 14:01
#2064 moved shortcut badges out of native buttons and dropped Done's
badge rather than moving it, so a multiple-choice Question showed
digits on its options and add field but none on Done. Its `4` still
worked and stayed in aria-keyshortcuts, but a user reading the keys saw
no way to finish the Question.

The ban guarded a real failure: an in-flow face filled on focus
resized its button between pointer down and up, losing the click. The
same commit made every lent face an absolutely positioned
`lf-binding-seat`, which already prevents that for any holder, so the
button-ancestry ban was a second, coarser guard for one guarantee. It
is removed, with its two tests; the draft test that holds button edges
still under a raw press stays.

Done's face is back inside its button, as an option's is inside the
option, so a press on it is a press on Done. It stands in the column
the other digits use: inline-end on cards, inline-start on rows. Tests
that asserted a hint-less Done now assert its digit, that wearing it
moves no button edge, and that clicking it presses Done.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit d4d5a9a into main Oct 11, 2026
6 of 8 checks passed
@max-sixty
max-sixty deleted the multi-choice-done-hint branch October 11, 2026 22:22
max-sixty added a commit that referenced this pull request Oct 12, 2026
A widget's command can declare `contextKeys`, keys that press its
control from elsewhere such as its Question, and leave out
`bindingBadge`, so the key works with nothing on the page showing it.
That is how a multiple-choice Question's Done lost its digit (fixed in
#2434) without any check noticing.

`leaf package check --render` gains a `shows-context-keys` widget
quality check. It reads the command declarations in each worked example
and names a command with context keys and no `bindingBadge`, as advice
for the widget's author; it puts nothing on the page. A worked example
shows one state, and Done appears only in a multiple-choice one, so the
corpus sweep in `test_render_gate.py` runs the same reading over every
example page. Before #2434 that sweep failed on Done in
`ideas-to-implement` and `ship-review`.

lf-draft was the one bundled widget the check named: Edit, Save and
Cancel declared Ask digits (1, 1 and 2) with no badge. They now declare
no context keys. Tab reaches the buttons, Save keeps Mod+Enter and Close
keeps Escape, so a user standing on a draft's Ask no longer edits, saves
or cancels it with a digit. The digit test now asserts a digit is not a
command there and that Tab, Enter and Mod+Enter answer the Ask.
`test_numbered_ask_routes_follow_replaced_controls` is deleted: the
draft was its only widget, and with no digits it has no route to follow.

`check-api.js` exports `commandDeclarationsWithin` and `commandRoutes`
for the probe; `packages.md` and `module-authoring.md` describe the
check.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[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