Repository navigation
feat(design-data): spec sheet Keyboard table lists the keys of the web bindings - #2226
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 8c3411b The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
🎨 Token Changes ReportTokens Changed (0)Original Branch: This comment was automatically generated by the token diff tool. 🤖 |
Contributor
🧩 Component Schema Changes ReportNo component schema changes detected.This comment was automatically generated by the component schema diff tool. 🤖 |
Contributor
Run report for 8c3411b4Total time: 14m 17s | Comparison time: 33m 11s | Estimated savings: 18m 54s (57.0% faster)
Expanded report
Changed files |
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.
Description
The spec sheet's Keyboard table listed the registry default keys for every pattern-level keyboard intent. It now follows the web key bindings (
behaviors/bindings/web.json).Rule (
sdk/plugins/spec-sheet/src/sections.rs,keyboard_rows):textbox), the table is authoritative: an intent is a row only when a binding gives it at least one key, and the Keys cell shows the binding's keys (activate=press-start/press-end,navigate-*=navigate-next/navigate-previous, every other intent under its own name). Keys keep the registry default order, then binding order, so a binding that agrees with the default reads the same.behaviors/bindingsfor the spec sheet. A graph with no bindings keeps the old defaults.Only the
accessibility--keyboardblock changes. 18 of 92 sheets change against current main (10 rows/keys and 5 note text only, from this PR, plus text-field, text-area and search-field from #2223's contracts):activateEnter, Space -> SpaceactivateEnter, Space -> Enterincrement-page,decrement-page(empty keys)incrementArrowUp, ArrowRight -> ArrowUp, PageUp;decrementArrowDown, ArrowLeft -> ArrowDown, PageDown;set-min-> Home;set-max-> Endincrement-page-> PageUp,decrement-page-> PageDown,set-min-> Home,set-max-> End (were empty)increment-page,decrement-page,set-min,set-max(empty keys)The text contracts of #2223 are now on main: text-field and text-area lose the
clearandsubmitrows (no Keyboard block), search-field showsclear= Escape andsubmit= Enter.Related Issue
Owner decision A747 c (bead hd0g.5.15). Follows the review findings on #2216 and #2223.
Motivation and Context
A table that lists
clear/submitwith empty keys, a color wheel with four empty rows, a checkbox that "activates" with Enter and a number-field with ArrowRight tells a reader something the web binding does not do.How Has This Been Tested?
keyboard_table_shows_the_keys_of_the_web_bindings: checkbox, search-field, text-field) that fails when the CLI stops loadingbehaviors/bindings.sdk/plugins/spec-sheet(12, 7 new, including key de-duplication, order and the Note text): button, checkbox, link, slider, number-field, color-wheel, color-area rows; textbox/searchbox with the real web bindings; press and navigation events with inline bindings; no bindings loaded; a binding mutation moves or drops the row. Mutation check: each of 6 reverts of the new logic fails a test (see report).cargo test --workspace --no-fail-fast: 2786 passed, 0 failed.cargo fmt --check,cargo clippy --workspace --all-targets -- -D warningsclean.spec-sheet --allbefore/after (92 sheets): with the Keyboard block removed the other 92 sheets are identical.render-compare --sample 10: 6349 cases byte-identical, 20 PNG identical, 0 spec-sheet rows lost or gained; it FAILs only on the 15 sheets' accessibility section above (expected).behavior test --all: 617 passed, 0 failed before and after.validate packages/design-data: counts identical before and after. Legacy output byte-identical (legacy-verifyanddiff -rq).budget.test.mjsnumbers cannot move (CI runs it).Screenshots (if appropriate):
None. Table-only change.
Types of changes
Checklist: