Repository navigation
feat(core): the keyboard module's docked ride, the scroller's reveal and the tap route - #9776
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| BottomSheet | 🔴 63.0 kB (+3.6 kB) · 7.5 kB CSS (0) | — | ✓ · ✓ · — |
| DateTimeInput | 🔴 199.5 kB (+3.3 kB) · 18.1 kB CSS (0) | — | — · — · — |
| DateInput | 🔴 177.0 kB (+3.3 kB) · 16.4 kB CSS (0) | — | — · — · — |
117 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| TimeInput | 🔴 153.8 kB (+3.2 kB) · 15.5 kB CSS (0) | — | — · — · — |
| PowerSearch | 🔴 275.2 kB (+3.0 kB) · 23.1 kB CSS (0) | — | — · — · — |
| DropdownMenu | 87.4 kB (+1.1 kB) · 16.7 kB CSS (0) | — | — · — · — |
| MoreMenu | 87.7 kB (+1.1 kB) · 16.7 kB CSS (0) | — | — · — · — |
| Tokenizer | 85.9 kB (+1.1 kB) · 18.1 kB CSS (0) | — | — · — · — |
| Popover | 79.7 kB (+1.0 kB) · 13.4 kB CSS (0) | — | — · — · — |
| Carousel | 60.7 kB (+1.0 kB) · 10.3 kB CSS (0) | — | — · — · — |
| DateRangeInput | 86.8 kB (+969 B) · 12.1 kB CSS (0) | — | — · — · — |
| Selector | 93.9 kB (+679 B) · 16.9 kB CSS (0) | — | — · — · — |
| ContextMenu | 91.2 kB (+677 B) · 16.6 kB CSS (0) | — | — · — · — |
| Table | 100.6 kB (+653 B) · 17.3 kB CSS (0) | — | — · — · — |
| Pagination | 104.0 kB (+646 B) · 17.3 kB CSS (0) | — | — · — · — |
| TableHeaderCell | 92.0 kB (+636 B) · 16.8 kB CSS (0) | — | — · — · — |
| TableCell | 92.4 kB (+622 B) · 17.0 kB CSS (0) | — | — · — · — |
| Markdown | 163.0 kB (+594 B) · 19.5 kB CSS (0) | — | — · — · — |
| MultiSelector | 89.3 kB (+576 B) · 16.3 kB CSS (0) | — | — · — · — |
| Switch | 96.6 kB (+180 B) · 9.8 kB CSS (0) | — | — · — · — |
| Stepper | 53.6 kB (+132 B) · 9.5 kB CSS (0) | — | — · — · — |
| CodeBlock | 66.6 kB (+131 B) · 10.6 kB CSS (0) | — | — · — · — |
| BaseTypeahead | 62.2 kB (+130 B) · 10.3 kB CSS (0) | — | — · — · — |
| SideNavItem | 61.9 kB (+130 B) · 10.4 kB CSS (0) | — | — · — · — |
| TopNav | 63.6 kB (+129 B) · 10.2 kB CSS (0) | — | — · — · — |
| ChatDictationButton | 52.4 kB (+128 B) · 9.4 kB CSS (0) | — | — · — · — |
| ChatSendButton | 52.3 kB (+128 B) · 9.3 kB CSS (0) | — | — · — · — |
| HoverCard | 24.6 kB (+127 B) · 4.3 kB CSS (0) | — | — · — · — |
| IconButton | 51.9 kB (+126 B) · 9.3 kB CSS (0) | — | — · — · — |
| Toast | 89.5 kB (+126 B) · 9.6 kB CSS (0) | — | — · — · — |
| Calendar | 62.9 kB (+125 B) · 9.9 kB CSS (0) | — | — · — · — |
| Link | 48.9 kB (+125 B) · 6.9 kB CSS (0) | — | — · — · — |
| TableSelectionToolbar | 61.4 kB (+125 B) · 12.4 kB CSS (0) | — | — · — · — |
| Banner | 54.0 kB (+124 B) · 9.8 kB CSS (0) | — | — · — · — |
| DrawerHeader | 54.9 kB (+123 B) · 12.2 kB CSS (0) | — | — · — · — |
| ChatLayout | 55.2 kB (+122 B) · 9.8 kB CSS (0) | — | — · — · — |
| FileInput | 64.4 kB (+122 B) · 10.6 kB CSS (0) | — | — · — · — |
| ToggleButton | 52.8 kB (+122 B) · 9.4 kB CSS (0) | — | — · — · — |
| ChatLayoutScrollButton | 52.4 kB (+121 B) · 9.5 kB CSS (0) | — | — · — · — |
| DialogHeader | 54.7 kB (+121 B) · 10.8 kB CSS (0) | — | — · — · — |
| MobileNav | 62.0 kB (+121 B) · 9.9 kB CSS (0) | — | — · — · — |
| MobileNavToggle | 52.2 kB (+121 B) · 9.3 kB CSS (0) | — | — · — · — |
| Lightbox | 103.2 kB (+120 B) · 9.8 kB CSS (0) | — | — · — · — |
| RadioListItem | 62.9 kB (+120 B) · 9.8 kB CSS (0) | — | — · — · — |
| Avatar | 39.7 kB (+119 B) · 5.5 kB CSS (0) | — | — · — · — |
| Button | 51.9 kB (+119 B) · 9.3 kB CSS (0) | — | — · — · — |
| DropdownMenuSubMenu | 64.8 kB (+119 B) · 9.4 kB CSS (0) | — | — · — · — |
| Field | 50.7 kB (+119 B) · 7.2 kB CSS (0) | — | — · — · — |
| SideNavCollapseButton | 52.7 kB (+119 B) · 9.4 kB CSS (0) | — | — · — · — |
| CheckboxList | 54.4 kB (+118 B) · 7.9 kB CSS (0) | — | — · — · — |
| AlertDialog | 96.1 kB (+117 B) · 13.7 kB CSS (0) | — | — · — · — |
| RadioList | 52.0 kB (+117 B) · 7.2 kB CSS (0) | — | — · — · — |
| TopNavMegaMenu | 61.2 kB (+117 B) · 11.2 kB CSS (0) | — | — · — · — |
| InfoTip | 43.5 kB (+116 B) · 5.3 kB CSS (0) | — | — · — · — |
| Toolbar | 39.7 kB (+116 B) · 7.9 kB CSS (0) | — | — · — · — |
| StatusDot | 27.7 kB (+115 B) · 5.3 kB CSS (0) | — | — · — · — |
| InputGroup | 52.3 kB (+114 B) · 7.8 kB CSS (0) | — | — · — · — |
| SideNavHeading | 67.0 kB (+113 B) · 10.6 kB CSS (0) | — | — · — · — |
| TextInput | 63.0 kB (+113 B) · 10.8 kB CSS (0) | — | — · — · — |
| Thumbnail | 56.2 kB (+113 B) · 10.9 kB CSS (0) | — | — · — · — |
| TopNavHeading | 66.4 kB (+113 B) · 10.4 kB CSS (0) | — | — · — · — |
| FieldLabel | 47.3 kB (+112 B) · 5.6 kB CSS (0) | — | — · — · — |
| Tooltip | 26.0 kB (+112 B) · 4.3 kB CSS (0) | — | — · — · — |
| TextArea | 58.1 kB (+110 B) · 9.2 kB CSS (0) | — | — · — · — |
| SideNav | 81.6 kB (+109 B) · 10.7 kB CSS (0) | — | — · — · — |
| ChatComposerInput | 66.5 kB (+108 B) · 10.6 kB CSS (0) | — | — · — · — |
| ChatComposerTokenElement | 66.5 kB (+108 B) · 10.6 kB CSS (0) | — | — · — · — |
| Typeahead | 74.6 kB (+107 B) · 12.1 kB CSS (0) | — | — · — · — |
| ComplexSelector | 66.0 kB (+106 B) · 11.3 kB CSS (0) | — | — · — · — |
| TabList | 40.4 kB (+105 B) · 6.4 kB CSS (0) | — | — · — · — |
| AppShell | 81.8 kB (+104 B) · 12.8 kB CSS (0) | — | — · — · — |
| BreadcrumbItem | 76.1 kB (+104 B) · 11.5 kB CSS (0) | — | — · — · — |
| TabMenu | 63.3 kB (+104 B) · 10.4 kB CSS (0) | — | — · — · — |
| TopNavMenu | 66.1 kB (+100 B) · 10.5 kB CSS (0) | — | — · — · — |
| ChatComposer | 68.5 kB (+97 B) · 11.2 kB CSS (0) | — | — · — · — |
| AvatarGroup | 42.4 kB (+95 B) · 5.6 kB CSS (0) | — | — · — · — |
| SegmentedControl | 89.7 kB (+95 B) · 6.8 kB CSS (0) | — | — · — · — |
| AvatarGroupOverflow | 44.6 kB (+92 B) · 5.5 kB CSS (0) | — | — · — · — |
| CheckboxInput | 60.0 kB (+88 B) · 9.1 kB CSS (0) | — | — · — · — |
| Slider | 101.9 kB (+88 B) · 8.7 kB CSS (0) | — | — · — · — |
| NumberInput | 67.0 kB (+78 B) · 11.1 kB CSS (0) | — | — · — · — |
| ListItem | 65.0 kB (+40 B) · 10.9 kB CSS (0) | — | — · — · — |
| CheckboxListItem | 66.0 kB (+7 B) · 10.9 kB CSS (0) | — | — · — · — |
| Outline · Storybook | 23.7 kB (+2 B) · 4.1 kB CSS (0) | 1,194 (−17) | ✓ · ✓ · ✓ |
| ProgressBar | 11.5 kB (+1 B) · 6.2 kB CSS (0) | — | — · — · — |
| BottomSheetSwitcher | 17.5 kB (0) · 3.4 kB CSS (0) | — | ✓ · ✓ · — |
| ButtonGroup | 40.1 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| ChatMessageList | 23.9 kB (0) · 6.9 kB CSS (0) | — | — · — · — |
| ChatToolCalls | 27.8 kB (0) · 8.3 kB CSS (0) | — | — · — · — |
| NavHeadingMenu | 15.6 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| Spinner | 20.5 kB (0) · 6.1 kB CSS (0) | — | — · — · — |
| Text | 7.6 kB (0) · 5.3 kB CSS (0) | — | — · — · — |
| Timer | 9.7 kB (0) · 5.9 kB CSS (0) | — | — · — · — |
| CommandPalette | 59.7 kB (−1 B) · 12.4 kB CSS (0) | — | — · — · — |
| CommandPaletteInput | 27.9 kB (−1 B) · 7.5 kB CSS (0) | — | — · — · — |
| Heading | 8.2 kB (−1 B) · 5.3 kB CSS (0) | — | — · — · — |
| Timestamp | 23.2 kB (−1 B) · 9.6 kB CSS (0) | — | — · — · — |
| charts/Chart | 180.4 kB (new) · 494 B CSS (new) | — | — · — · — |
| charts/ChartLegend | 35.8 kB (new) · 224 B CSS (new) | — | — · — · — |
| charts/ChartTooltip | 157.8 kB (new) · 423 B CSS (new) | — | — · — · — |
| lab/ChatEmojiPicker | 97.7 kB (new) · 773 B CSS (new) | — | — · — · — |
| lab/ChatReactionBar | 98.9 kB (new) · 1.1 kB CSS (new) | — | — · — · — |
| lab/CommentComposer | 139.0 kB (new) · 1.9 kB CSS (new) | — | — · — · — |
| lab/CommentPin | 52.8 kB (new) · 1.2 kB CSS (new) | — | — · — · — |
| lab/Comments | 307.7 kB (new) · 2.5 kB CSS (new) | — | — · — · — |
| lab/CommentThread | 302.5 kB (new) · 2.4 kB CSS (new) | — | — · — · — |
| lab/DiffViewer | 78.3 kB (new) · 2.1 kB CSS (new) | — | — · — · — |
| lab/EmojiPicker | 81.5 kB (new) · 751 B CSS (new) | — | — · — · — |
| lab/ListInput | 96.4 kB (new) · 1.6 kB CSS (new) | — | — · — · — |
| lab/NavigationScreen | 78.4 kB (new) · 1.5 kB CSS (new) | — | — · — · — |
| lab/NavigationStack | 78.4 kB (new) · 1.5 kB CSS (new) | — | — · — · — |
| lab/PageControl | 71.7 kB (new) · 709 B CSS (new) | — | — · — · — |
| lab/Schedule | 99.9 kB (new) · 3.9 kB CSS (new) | — | — · — · — |
| lab/SelectableCardGroup | 59.9 kB (new) · 162 B CSS (new) | — | — · — · — |
| lab/TourStep | 86.0 kB (new) · 590 B CSS (new) | — | — · — · — |
| lab/TransferList | 91.2 kB (new) · 1.7 kB CSS (new) | — | — · — · — |
| lab/TransferListSelector | 98.2 kB (new) · 1.9 kB CSS (new) | — | — · — · — |
| richtext/RichTextEditor | 291.1 kB (new) · 2.6 kB CSS (new) | — | — · — · — |
| richtext/RichTextEditorToolbar | 245.0 kB (new) · 454 B CSS (new) | — | — · — · — |
| richtext/RichTextView | 271.3 kB (new) · 2.3 kB CSS (new) | — | — · — · — |
Package size: measured; main has no measurement of the merge base to compare yet.
API changes: cli +14 · ~5 · −0 (against the merge base's committed report)
Committed API report behind this build: cli 19 rows, core 24 rows; run pnpm api:report.
19 API changes (advisory)
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| + | cli |
./api · Types · type SearchResultEntry |
deprecated?: ComponentDeprecation | undefined |
import type {SearchResultEntry} from '@astryxdesign/cli/api'; const x: SearchResultEntry = {deprecated: …} |
| + | cli |
./authoring · Types · interface ComponentDeprecation |
interface ComponentDeprecation |
import type {ComponentDeprecation} from '@astryxdesign/cli/authoring' |
| + | cli |
./authoring · Types · interface ComponentIconSlotDoc |
interface ComponentIconSlotDoc |
import type {ComponentIconSlotDoc} from '@astryxdesign/cli/authoring' |
| + | cli |
./authoring · Types · interface ComponentIconSlotStateDoc |
interface ComponentIconSlotStateDoc |
import type {ComponentIconSlotStateDoc} from '@astryxdesign/cli/authoring' |
| + | cli |
./authoring · Types · interface MultiComponentDoc |
deprecated?: ComponentDeprecation |
import type {MultiComponentDoc} from '@astryxdesign/cli/authoring'; const x: MultiComponentDoc = {deprecated: …} |
| + | cli |
./authoring · Types · interface SingleComponentDoc |
deprecated?: ComponentDeprecation |
import type {SingleComponentDoc} from '@astryxdesign/cli/authoring'; const x: SingleComponentDoc = {deprecated: …} |
| + | cli |
./doc · Types · interface ComponentBaseDoc |
deprecated?: ComponentDeprecation |
import type {ComponentBaseDoc} from '@astryxdesign/cli/doc'; const x: ComponentBaseDoc = {deprecated: …} |
| + | cli |
./doc · Types · interface SubComponentDoc |
deprecated?: ComponentDeprecation |
import type {SubComponentDoc} from '@astryxdesign/cli/doc'; const x: SubComponentDoc = {deprecated: …} |
| + | cli |
./doc · Also exported from an earlier entry point · ComponentDeprecation |
ComponentDeprecation (./authoring) |
import {ComponentDeprecation} from '@astryxdesign/cli/doc' |
| + | cli |
./doc · Also exported from an earlier entry point · ComponentIconSlotDoc |
ComponentIconSlotDoc (./authoring) |
import {ComponentIconSlotDoc} from '@astryxdesign/cli/doc' |
| + | cli |
./doc · Also exported from an earlier entry point · ComponentIconSlotStateDoc |
ComponentIconSlotStateDoc (./authoring) |
import {ComponentIconSlotStateDoc} from '@astryxdesign/cli/doc' |
| + | cli |
./template · Also exported from an earlier entry point · ComponentDeprecation |
ComponentDeprecation (./authoring) |
import {ComponentDeprecation} from '@astryxdesign/cli/template' |
| + | cli |
./template · Also exported from an earlier entry point · ComponentIconSlotDoc |
ComponentIconSlotDoc (./authoring) |
import {ComponentIconSlotDoc} from '@astryxdesign/cli/template' |
| + | cli |
./template · Also exported from an earlier entry point · ComponentIconSlotStateDoc |
ComponentIconSlotStateDoc (./authoring) |
import {ComponentIconSlotStateDoc} from '@astryxdesign/cli/template' |
| ~ | cli |
./api · Functions · function search |
function search: (query: string, options?: { cwd?: string | undefined; type?: "template" | "component" | "hook" | "theme" | "doc" | undefined; limit?: number | undefined }) => Promise<SearchResponse> → function search: (query: string, options?: { cwd?: string | undefined; type?: "template" | "component" | "doc" | "theme" | "hook" | undefined; limit?: number | undefined }) => Promise<SearchResponse> |
import {search} from '@astryxdesign/cli/api'; search(…) |
| ~ | cli |
./authoring · Types · interface MultiComponentDoc |
theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[] } → theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[]; componentIcons?: ComponentIconSlotDoc[] } |
import type {MultiComponentDoc} from '@astryxdesign/cli/authoring'; const x: MultiComponentDoc = {theming: …} |
| ~ | cli |
./authoring · Types · interface SingleComponentDoc |
theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[] } → theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[]; componentIcons?: ComponentIconSlotDoc[] } |
import type {SingleComponentDoc} from '@astryxdesign/cli/authoring'; const x: SingleComponentDoc = {theming: …} |
| ~ | cli |
./doc · Types · interface ComponentBaseDoc |
theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[] } → theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[]; componentIcons?: ComponentIconSlotDoc[] } |
import type {ComponentBaseDoc} from '@astryxdesign/cli/doc'; const x: ComponentBaseDoc = {theming: …} |
| ~ | cli |
./doc · Types · interface SubComponentDoc |
theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[] } → theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[]; componentIcons?: ComponentIconSlotDoc[] } |
import type {SubComponentDoc} from '@astryxdesign/cli/doc'; const x: SubComponentDoc = {theming: …} |
Touched components checked; add ci:run-visual, ci:run-a11y or ci:run-rtl to run the full suites.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the on-screen keyboard spec (spec:AST-099) for this head, and on the fixes below.
Spec decision needed. This head adds DEC-5 and an FR8 exception to AST-099, and the docked ride and the page-content reveal rely on FR9 and DEC-5 from #9750, which is not on main (its DEC-5 is also a different decision from this head's). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; otherwise this pull request waits for #8559 and #9750 to land, with one DEC-5 renumbered.
Blocking findings:
followKeyboard(target, {move: 'reveal'})claims focus moves withpreventScrollbut reveals only on a viewport report, so Next or Tab with the keyboard up leaves the next field under the keyboard (keyboardTarget.ts:249-275, against AST-099 FR4).keepFieldAboveKeyboardrefuses the browser's reveal and has no fallback when its scroller cannot scroll far enough, so the field stays covered or the browser pans the page (keyboardTarget.ts:180-202,:386-397).- A
'ride'target lifts on every keyboard report even when focus is outside it, so a docked bar covers the page field placed 17 px above the keyboard (keyboardTarget.ts:157-176). caretRangeAtandplaceTextControlCaret(keyboardHeight.ts:695-735) copycaretAtinutils/selectionLock.ts:322-355, anddrawnOffsetOfcopiesrideOffset(useMobileKeyboard.ts:251-258); share one of each.- The description and
keyboard/README.md:67cite AST-099 FR9, which the record does not contain at this head, and the title promises "any field" while no field adopts the module yet; reword both. - The target attachment's key omits the touch query (
useMobileKeyboard.ts:209), so docking a mouse never drops the tap route and focus claim. - AST-099's merge gate, simulator and emulator evidence (DEC-3), is not met for the BottomSheet ride this head carries.
- At 7,824 authored lines, 6,275 of them from #8559, please land #8559 first so this pull request is its own 1,557 lines.
[Automated review]
|
Thanks. Each point, at 3ca29c4:
|
There was a problem hiding this comment.
Changes requested. You chose to land #8559 and #9750 first and restack; these items block this head or remain for the restacked one:
- This head carries all of #8559 (8,123 authored lines in all, 6,303 of them #8559's commit), so it needs that restack before review can approve it.
- #8559's
spec:AST-099DEC-5 and its FR8 exception have no engineering-owner approval, and the docked ride and the page-content reveal rest on FR9, which exists only in #9750. - AST-099 makes emulator evidence with Gboard the merge gate, and this head carries #8559's Chrome ride and Android focus takeover without it.
- When focus moves between two fields in one docked bar, detaching the first field's path runs its final stop and sets the bar back to 0 while the second field is focused and the keyboard is up (
keyboardTarget.ts:480-491). - A
field.focus()with nothing focused raises no blur and no touch, so the field path never claims it and the browser's reveal runs (keyboardTarget.ts:446-449), against "the page never pans". .changeset/keyboard-targets-docked-ride.mdsays the module keeps a field above the keyboard "wherever it sits", but a field no scroller can bring up stays covered.
The reveal, ride, pointer, citation and duplicated-helper issues raised earlier are fixed at this head, and the keyboard and BottomSheet suites pass.
[Automated review]
|
/approve-spec 1260250 |
There was a problem hiding this comment.
Changes requested: one blocking issue remains in the new field path. The spec side is settled: FR9 and DEC-5 are on main, and this head's AST-099 edits carry an engineering owner's /approve-spec.
- Newly live check:
nearestScrollerfalls back to the document even when it has nothing to scroll (packages/core/src/keyboard/keyboardTarget.ts:95), soplacementOfclaims every page field's focus and first tap withpreventScroll(:806-808,:846-855) and the field stays under the keyboard whilewatchPansputs back the browser's own pan, against AST-099 Gap 11 ("an element that has nothing to scroll does not count as a scroller (the field keeps the browser's own reveal)"); count the document only when it has scroll range, letplacementOfreturn null otherwise, and add a test for a page without range.
The earlier issues (the shared docked bar dropping on detach, the unclaimed script focus, the changeset wording) are fixed at this head, the size is covered by the behavior-module declaration, and the keyboard and BottomSheet suites pass.
[Automated review]
|
/approve-spec 73ca152 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
The keyboard targets now leave a page with nothing to scroll to the browser's own reveal, which resolves the last blocking issue, and the spec:AST-099 edits carry an engineering owner's approval for this head.
Next:
- Mark the pull request ready for review; its branch is in a fork, so a maintainer adds the
ci:runlabel so CI runs. - This branch carries #8559's commit, so it lands together with or after #8559.
Non-blocking:
// Nothing to move.inkeyboardTarget.tsnarrates an empty branch; invert the condition instead.nearestScrollerandscrollerWithinrepeat Outline's private scroller walk inuseScrollSpy.ts; one shared helper could serve all three.
[Automated review]
There was a problem hiding this comment.
Changes requested: three items block merge. The spec:AST-099 edits (FR3's Tall-sheet hide-ride sentence, its verification row and Gap 12) are owner-approved for this head, and the field targets match FR9, DEC-5 and INV11.
- Miss: in Safari on iOS (and Firefox for Android, which takes the same path), moving focus from a Tall sheet's field into a web component's input or a frame starts the hide ride (
packages/core/src/keyboard/useMobileKeyboard.ts:534-540) while the inner field keeps the keyboard up, so the content drops 248 px under the keyboard and stays there; share the guide'shidesFieldcheck (frames, open shadow hosts, custom elements) with this gate and withonReveal, and add a shadow-host and a frame case. - Attach the Android emulator runs that AST-099's platform support requires at the final head (Chrome and Firefox for Android, each with animations at normal scale and removed and on a slow-device profile), because the runs in the description come from an earlier head.
- Newly live check:
place()inpackages/core/src/keyboard/keyboardTarget.tswrites the container's translate and then reads the field's and scroller's boxes (:678-688), whicharchitecture:react-component-runtimeINV18 rules out in a keyboard-report path; compute the reveal before the write, offset by the container's move.
The size is not a blocker under the behavior-module exemption, and CI has not run on this draft head.
[Automated review]
In iOS Safari and Firefox for Android, focus moving from a Tall sheet's field into a frame, an open shadow host or a custom element no longer starts the hide ride. A field inside one can keep the keyboard up where the page cannot see it, so the content stayed drawn under the keyboard until it closed. Focus moving into one mid-ride rides the content back up, as a field does. The gate shares the guide's hidesField. A docked container that turns too tall reads every box before it moves. The scroller's reveal measures the field where the move leaves it, and the scroll is written before the translate.
|
/approve-spec 2a3b205 |
There was a problem hiding this comment.
Changes requested: two items block merge.
The spec:AST-099 edits carry an engineering owner's approval for this head, and the frame, shadow-host and read-order fixes hold up, each with a test that fails before the fix. CI has not run on this draft head yet.
- Miss:
revealWithKeyboardinpackages/core/src/keyboard/keyboardTarget.ts(lines 553-558) reveals the focused field at every visual-viewport report, scroll events included, so once fields adopt it each pan of the visual viewport re-measures the field and scrolls a field the person moved out of view straight back; reveal only when the keyboard's height changes (and on focus), as AST-099 FR9 asks. - Attach Chrome on Android (Gboard) and Firefox for Android emulator runs of a blur in a fully expanded Tall sheet with the keyboard up, at the final head, with animations at normal scale and removed plus a slow-device profile, as AST-099's platform support requires before merge; the takes in the description come from an earlier head.
[Automated review]
| // Whether focus on `target` may keep the keyboard up. A control that brings | ||
| // one up does, and so can a frame, an open shadow host or a custom element, | ||
| // through its own field. | ||
| function mayKeepKeyboard(target: Element | null): boolean { |
There was a problem hiding this comment.
Non-blocking: hidesField counts every open shadow host, so focus moving to a plain button inside one (a web-component button, say) starts no ride either. On iOS the content then holds until the keyboard's report and glides down only after it, not from the blur as FR3 says. An open root's shadowRoot.activeElement names what holds focus; resolving it before bringsUpKeyboard would keep the conservative rule only for frames, closed roots and custom elements with no open root.
There was a problem hiding this comment.
Kept conservative here; the shadowRoot.activeElement refinement follows in its own PR.
It read the content's drawn place at the test's real clock, and its glide started whenever a slow run handled the report. The clock now holds still through the report, and both samples read fixed times after it.
|
/approve-spec 9058a60 |
There was a problem hiding this comment.
Changes requested: two items still block merge.
The spec:AST-099 edits carry an engineering owner's approval for this head, and the new commit's held clock makes the iOS glide test sample the same curve however slowly it runs. CI has not run on this draft head yet.
- Miss:
revealWithKeyboardinpackages/core/src/keyboard/keyboardTarget.ts(lines 553-558) still reveals the focused field at every visual-viewport report, scroll events included, so once fields adopt it each pan of the visual viewport re-measures the field and scrolls a field the person moved out of view straight back; reveal only when the keyboard's height changes (and on focus), as AST-099 FR9 asks. - Attach Chrome on Android (Gboard) and Firefox for Android emulator runs of a blur in a fully expanded Tall sheet with the keyboard up, at the final head, with animations at normal scale and removed plus a slow-device profile, as AST-099's platform support requires before merge; the takes in the description come from an earlier head.
[Automated review]
The reveal by a field's scroller came at every visual-viewport report, scrolls, pans and zooms included, so a field the person scrolled away came straight back. It now comes when the keyboard's height changes by more than a pixel, and still when focus moves; the put-back of a browser's own pan is kept.
|
/approve-spec 4c2f20b |
There was a problem hiding this comment.
Changes requested: one item still blocks merge. The spec:AST-099 edits (FR3's Safari on iOS hide ride, its verification row and Gap 12) carry an engineering owner's approval of this head, and the code matches the record.
- Attach Chrome on Android (Gboard) and Firefox for Android emulator runs at this exact head of a blur in a fully expanded Tall sheet with the keyboard up, with animations at normal scale and removed plus a slow-device profile, as AST-099's platform support requires before merge; the runs in the description were taken on an earlier head, before the Firefox ride gate changed and
mainwas merged in.
Non-blocking: rideWithKeyboard re-places its container at every visual-viewport report, a pan included (keyboardTarget.ts:743-748), so if a keyboard report means a change of the keyboard's size, gate it on the height as the field reveal now does. CI has not run on this draft head yet.
[Automated review]
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. It starts once the pull request leaves draft and a maintainer adds the ci:run label, since the head branch is in a fork.
The spec:AST-099 edits (FR3's Safari on iOS hide ride, its verification row and Gaps 1, 11 and 12) carry an engineering owner's approval of this head, the code matches the record, and the description now has the Chrome (Gboard) and Firefox for Android emulator takes at this head that the record's platform support asks for.
Non-blocking, for the next push: the tap route's TAP_SLOP_PX (keyboardHeight.ts:545) repeats the measured UIKIT_PRESS.slop, and keyboardTarget.ts:123, :187 and :257 still carry comments that restate the names below them.
[Automated review]
|
|
||
| // A touch that moves this far is the browser's to scroll, not a tap on a | ||
| // field. Safari claims a touch for scrolling past 10 px. | ||
| const TAP_SLOP_PX = 10; |
There was a problem hiding this comment.
Non-blocking: UIKIT_PRESS.slop (motion/uikit/gestures.ts:236) already holds this measured travel (Safari's last cancelable touchmove at 10 px), and GestureHost, PressTracker and useActionGroupTracking read it. Importing it here keeps the tap route in step if the slop is remeasured.
There was a problem hiding this comment.
The tap route will read the shared press slop (PRESS_SLOP_PX, which a test holds equal to UIKIT_PRESS.slop), and the three comments that restate names go, in the follow-up with the open-shadow refinement, so this head keeps its device evidence. The description now has the Android emulator takes at 7ddc9c2: Chrome with Gboard and Firefox for Android, each at normal speed, with animations removed and slow, with no bounce in 11 of 11.
|
/approve-spec 7ddc9c2 |
There was a problem hiding this comment.
Changes requested for one evidence item: the code matches spec:AST-099, an engineering owner has approved the record edits for this revision, and CI passes.
- Regression: merging
mainmoved this pull request to a new revision, so the Chrome (Gboard) and Firefox for Android emulator takes in the description, which ran before that merge, no longer meetspec:AST-099's platform support, which gates merge on Android emulator evidence at the exact head under review (animations at normal scale and removed, plus a slow-device profile); please re-run those takes on this revision and update the description.
Non-blocking, carried from the last review: TAP_SLOP_PX (keyboardHeight.ts:545) repeats UIKIT_PRESS.slop, and the comments at keyboardTarget.ts:123, :187 and :257 restate the names below them.
[Automated review]
There was a problem hiding this comment.
Approved. The code matches spec:AST-099, an engineering owner has approved the record edits for this revision, CI passes, and the description now carries the Chrome (Gboard) and Firefox for Android emulator takes at this revision that the spec's platform support requires.
Non-blocking, for the follow-up you mention: TAP_SLOP_PX (keyboardHeight.ts:545) repeats UIKIT_PRESS.slop, hidesField treats every open shadow host as keeping the keyboard up (useMobileKeyboard.ts:146), and the comments at keyboardTarget.ts:123, :187 and :257 restate the names below them.
[Automated review]
Review this PR's change: vjeux/astryx@f8640a4...7ddc9c2
Behavior module: keyboard
User need
On a phone, a focused field must stay above the on-screen keyboard, in the page or a bottom bar; today only a fully expanded Tall BottomSheet does.
Problem and solution fit
Safari pans the page to reveal a field, a bottom bar's field stays covered, and iOS Safari's Tall sheet jumps after the keyboard closes. The module gains:
translate), a scroller around the field reveals it; with none, the browser's reveal stays.onClickonce.Current specification
spec:AST-099FR9, DEC-5, FR3, FR4 and FR8;architecture:react-component-runtimeINV11. Updates AST-099's FR3 and Gaps 1, 11 and 12.Public delta and caller burden
Internal, except a fix for a Tall BottomSheet's keyboard close (changeset); fields adopt the rest in #9777.
Design and alternatives
distanceIntoBand.Evidence
Unit tests drive a stand-in visual viewport; iOS Simulator and Firefox for Android logs are under Testing.
Known limits
Scope
Testing
keyboardTarget.test.ts(44 cases) drives the targets through a stand-in visual viewport: the reveal on both edges by the nearest scroller only, in the report's own event, and only when the keyboard's height changes by more than a pixel, so a pan, a scroll or a zoom leaves a field the person scrolled away, with nothing else moved when it cannot scroll far enough; a page with nothing to scroll left to the browser's own reveal; a field in a full-viewport container revealed by its scroller there, and left to the browser with none; a docked container taller than the room above the keyboard kept in place while its scroller reveals the field, every box read before a container that turns too tall moves back, and the field revealed from where that move leaves it, and with no scroller lifted only as far as its field needs, with the guards for an app's move and an outside field kept; the next field revealed on a focus move with no new report; an app's docked bar moved by the part the keyboard covers, and back once it hides; a bar the app already moves with the keyboard, from a listener that runs before or after the module's, left alone; a bar the app lifts part of the way with its own transform moved by the rest, its transform kept; a bar with the app's own CSS transition or animation running on its position left alone, while the ride's own animation, the transition a bar'stransition: allruns on the ride's translate, an app's script animation, and an app fade do not count; only that bar ever carries a translate, and only while its layout stays docked; a second field in the same bar keeps the bar up; a fixed bar floating above the bottom edge, and a bar the app centres with its owntranslate, left exactly as they are, while a field in either with a scroller around it is revealed by that scroller; a Core host's own sticky element rides; the stand-down inside a target; the synthetic touch click on the field and an ancestor; a pan the browser makes after an unclaimedfocus()put back; nothing under a mouse.BottomSheet.test.tsx, a Tall sheet in iOS Safari (no keyboard geometry API, a coarse pointer): after a blur the content's drawn top, sampled every 16 ms over 0.5 s, moves down in steps under 40 px to where the earlier scroll draws it while the room and scroll stay, and the keyboard's report then moves nothing drawn and clears the translate; under Reduce Motion it dips out and back in at its resting place, never between; under a fine pointer nothing rides; focus moving from the field to a select, whose picker iOS puts where the keyboard was, starts no ride, and neither does focus moving into an open shadow host or a frame, whose own field can keep the keyboard up; a field focused mid-slide rides it back up, and so does focus moving into a shadow host or a frame then; a report while the field keeps focus glides the content from where it was drawn.Chrome on Android with a busy page (
BottomSheet.test.tsx,keyboardChromium.test.ts): Chrome's reports of a blur's hide reach the page 603 and 1119 ms after it, long after Gboard's 167 ms slide. The content stays drawn where the slide leaves it; the report of the keyboard partway down moves nothing; the report of the keyboard gone drops room, scroll and translate in one commit, with nothing drawn moving. In the guide, late reports and the check after the slide turn nothing back, and neither does a hand-off to a select, whose picker Chrome opens over the page. Guards: a field focused again mid-hide rides the content back up; focus moved into a frame or an open shadow host still lets the viewport decide (the content rides back up after the check); after Back, the keyboard brought back by the still-focused field rides up. Red-first arm c2dc0f3 (these tests over 4d1daec's source, not for landing): 4 of them fail there, and they pass here.keyboardTarget.guide.test.ts: a ride stopped by a blur lands on the hide's slide, with no set that cuts it.useMobileKeyboard.target.test.tsx: the tap route drops under a mouse and returns for a finger.keyboardHeight.test.ts: the tap route hands Safari's late mouse events to the shared click guard, which a new press, its click or its 400 ms window ends.revealBand.test.ts: 5 cases.scrollingAncestor.test.ts: the shared walk thatnearestScroller, the fixed-container reveal and Outline's scroll spy now call: the nearest block-axis scroller, and the bound.Red-first: each of these cases failed before its fix: the covered-part lift, the bar the app already moves from a listener that runs after the module's, the bar the app lifts part of the way, the floating bar, the bar with its own
translate, the bar the app is moving itself, the bar undertransition: all, the script-animated bar, the full-viewport container's scroller, the full-height drawer with and without a scroller, its guards, the page with nothing to scroll, the nearest-scroller-only reveal, the iOS sheet's blur ride, Reduce Motion dip and focus-kept glide (before its fix the content stays 248 px off, then jumps), the field-to-select case (before its fix the content rode down under the picker), the scroller reveal in a floating bar and in a bar with its owntranslate(before, the browser's reveal stayed), and the iOS shadow-host and frame cases and the too-tall read order (arm 83b55c6 runs these tests over 8b9fa9a's source, not for landing: all 5 fail there), and the same-height report case (arm 27b2791, over 9058a60's source). The listener-before case, the own-ride-animation case, the no-scroller full-viewport case, the iOS mid-slide refocus and the fine-pointer case are regression guards; they passed before too.vitest run packages/core/src/keyboard packages/core/src/BottomSheet: 21 files, 627 tests pass (the keyboard module's 121).iOS Simulator (iPhone 17 Pro, iOS 26.2, Safari), the Tall sheet story, a field focused, then the keyboard dismissed; a per-frame page log of where the content is drawn (its translate less the body's scroll). On main 42ccd7c, feat(core): one keyboard module; a Tall BottomSheet reads it and rides Gboard #8559 and an earlier head of this pull request, the content holds still while the keyboard hides, then jumps 170 px in one frame at iOS's report, 472–527 ms after the blur. With this pull request's ride (later heads add only the select gate): Done −170 → 0 px over 19 frames from 57 to 441 ms, every step down, and 0.23 px in the report's frame; after scrolling 260 px first, −474 → −260 (the earlier scroll), 0.47 px at the report; a drag on the sheet with the keyboard up, −170 → 0 over 20 frames, 0.14 px at the report.
iOS Simulator (iPhone 17 Pro, iOS 26.2, Safari), taps on the Tall sheet right after a drag of its handle, with the story built from 30cd9af's source (the later heads change nothing that this check exercises), from 28dfc7b and from main 9e559e9. Each take drags the sheet 44 pt by its handle, taps Title 100 ms after the lift (inside the click guard's 400 ms), taps again 250 ms later (on the same spot, or 141 pt to its left), drags again (the keyboard goes down) and taps Title 100 ms after that lift. Real touches come from one HID stream, and the page logs every pointer, touch, mouse, click and focus event in its capture phase. Three takes per build and variant:
No drag makes a click. On every build alike, a second tap that starts while iOS brings up the keyboard for the field just focused never reaches the page: no pointerdown or touchstart. Frames from one take on 30cd9af, with the finger as a dot and Safari's address text masked: the drag, the tap right after it, the keyboard up with no dot for the second tap, the field focused, the second drag and the tap after it.
(device capture removed: it showed browser chrome)
Android 16 emulator (Pixel 1080×2400, Gboard), at this head: a blur in a fully expanded Tall sheet with the keyboard up, measuring how far the field rises again once it has started down. No bounce in any of the 11 takes. Chrome 133: 0 px at normal speed (2), with animations removed (2), and at 4× CPU slowdown with Chrome's late report of the keyboard still up after the blur (1); at 4d1daec that late report sent the field back up 47–62 px. Firefox for Android 159.0.1 (Mozilla's release build, a coarse primary pointer): 0 px at normal speed (2), with animations removed (2), and on a slow profile, one busy loop in the emulator (2). Firefox reports the hide once, at its end, and the field moves its 23 px down in one step (Gap 12); read 6 s after that report and after a frame paints, the field ends at 440 px, its resting place, in every take. A field focused again mid-hide is still to be recorded.
Reachability of this head's last product change, the reveal's height check:
revealWithKeyboardis called only atkeyboardTarget.ts:521(infollowKeyboard,:490) and:874(inkeepFieldAboveKeyboard,:839). Those two are called only atuseMobileKeyboard.ts:233–234, afterif (!isEnabled || reservesInset || !isTouch) returnat:229. The one caller ofuseMobileKeyboard,BottomSheetPanel.tsx:840, passesinset: true(:842), so the Tall sheet never reaches it.Full local gates with main 0081c11 merged in (b2a51e4), node 24.22.1 from
.nvmrc, afterpnpm install --frozen-lockfile: the keyboard, BottomSheet, Outline, utils, hooks and gestures units (173 files, 3,663 tests); strict ESLint over the whole repo (CI=true pnpm lint, 0 errors); the full build, then typecheck (0 errors); knowledge records, export sync, changesets and their coverage, the i18n catalog and runtime checks, CLI API types, token docs and Lab readiness pass;pnpm api:reportshows only main's own lines; the UI tests for the changed set (428 files, 13,089 tests), the node tests (1 file, 4 tests) and the CLI golden reads (13) pass; Storybook builds; in Chromium the BottomSheet keyboard, scroll-end and drag a11y specs (33), the keyboard-inset interaction spec (9) and Outline's spec (1) pass. On top of it: comment splits, the shared overflow values' import, the frame and read-order fixes, the reveal's height check, and a test-only commit: the iOS glide case holds its clock through the report, so a slow run reads the same curve (with 6 busy loops pinned to the test's 2 cores, the old sampling fails 8 of 8 runs and this one passes 10 of 10). At 4c2f20b, Prettier, strict ESLint,CI=true pnpm lint(0 errors), the keyboard, BottomSheet, utils and Outline units (82 files, 1,822 tests), the core typecheck andpnpm review:pre(no findings) pass. This head merges main f8640a4 on top, with this pull request's own lines unchanged, and its CI passes in full.Writing rubric results
R1 narration: none; FR3's sentence names Safari on iOS, and Gaps 1, 11 and 12 state what the keyboard module does and what is still missing, in the present tense.
R2 research: none in the record.
R3 evidence: Gaps 1, 11 and 12 cite the module's source path, not a pull request; FR3's case is a row in its verification table.
R4 rejected alternatives: none added.
R5 change references: none.
R6 open questions: none.