Repository navigation
Show Done's digit in a multiple-choice Question's badge column - #2434
Merged
Merged
Conversation
#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]>
leaf-agent
approved these changes
Oct 11, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A multiple-choice Question showed digits on its options and its add field but none on Done. Done's
4still worked and stayed inaria-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
testjob'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 unrelatedreduce-suite-costandfix/ci-38159211604-sample-releaseruns, and this change touches neither that test nor the traffic helper it exercises.