Repository navigation
feat(TextInput, TextArea, NumberInput): fields stay above the keyboard - #9777
Conversation
Each passes its input to `useMobileKeyboard` from its own render, with no prop and no Effect of its own. On focus the field decides where it is: inside a keyboard target such as a Tall BottomSheet it moves nothing; in an app's bar docked at the viewport's bottom, the bar rides the keyboard, its bottom on the keyboard's top; in scrolling content, its nearest scroller, the document included, scrolls it 10 px above the keyboard in the keyboard's report. In a fixed container the app positions itself, a scroller around the field reveals it, and with none the browser's own reveal stays. Its first tap and focus moves into it arrive without the browser's reveal where the module places the field, so the page never pans there. A scroll area does not gain the range it lacks at its end yet. Where a field's scroll area cannot place it, the document reveals it, in the page and in a fixed container where the document's scroll moves the container, as in Safari while its keyboard shows; elsewhere Core scrolls the document back. Where the document cannot scroll far enough, as at a short page's end in Chrome, a pan of the visual viewport takes the rest in the same frame (`panVisualViewportTo`): a probe fixed in the layout viewport is scrolled into view, as the reveal-pan watch puts a pan back. The watch takes Core's own pan as the new rest. Firefox for Android does not pan for the probe. A page with nothing to scroll keeps the browser's own reveal. On Chrome's show, a docked bar first sets its field 4 px above the keyboard's top at once, as the Tall sheet does, and only the rest rides, so Chrome's own pan finds the field clear. Every viewport report now feeds the ride's reveal-pan watch, so a pan Chrome still makes is put back, and a pan made at one keyboard height goes back at the next. Under Remove animations, Gboard first reports a keyboard 48 px tall, and Chrome may then reveal the bar's field itself: it scrolls the page behind the bar, then pans. In Chrome, the ride's watch scrolls the document back as well, when the scroll and the pan centre the field as Chrome's reveal does; the app's own scroll to another element stays. On iOS, a reveal that places the field rises on the browser's smooth scroll from the keyboard's first report, which comes as the keyboard starts to slide, so the field rises beside it (`risesSmoothly`, which reads Core's iOS WebKit check, `isIosWebKit`). The scroll back records where the rise is headed, and a rise still on its way when the keyboard changes height carries on from its target. Under Reduce Motion, in a theme that reduces motion for everyone, and in Chrome, which checks the field in the resize's own commit, the reveal moves at once. The rise and the scroll back ask the motion module's new `reducesMotion`, beside `reducedMotionFade`, which now uses it, so a theme that reduces motion for everyone counts as the setting for both. A scroll area's reveal goes through its own `scrollBy` with an explicit behavior where it has one, so a smooth `scroll-behavior` on the area cannot slow an instant reveal, as the Tall sheet's reveal already does. When the keyboard closes, each scroller a reveal moved scrolls back to where it was (keyboardScrollBack.ts), on the browser's smooth scroll. Safari on iOS reports the keyboard gone about half a second after the blur that closes it, once it is down. There the scroll back starts at that blur, once the focus change settles on nothing that brings up a keyboard with no finger on the screen, and slides down beside the keyboard; the report only confirms it. A finger then can be a tap that brings the keyboard back, so the report decides, as elsewhere and under Reduce Motion, where the scroll lands at once. Safari applies a scripted scroll a frame late, so a scroll set each frame jitters. A scroller the person scrolled meanwhile keeps their scroll. A field that gains focus during the slide stops the scroll back where the page is (`stopKeyboardScrollBack`), and its reveal goes on from there as Core's own scroll. A sandbox page puts three fields in the middle of a page that scrolls the document. Each field's `.keyboard.test.tsx` drives the keyboard module's test double. Mobile keyboard stories on TextInput place the fields low in the page, a TextInput in a toolbar fixed at the bottom (docked, floating above the edge, or with its own `translate`), a last field at the end of a short page and of a scroll area, a scroll area low on the page, a scroll area in a floating panel and in a full-viewport panel, and a field in a sheet of a set height. Firefox for Android can carry the reveal's document scroll as a visual-viewport offset, show the document where it was before the reveal at the keyboard's hide report, and turn the offset back into a document scroll only after it. The scroll back then waits up to a second for the first document scroll: one that lands where Core left the document is the browser's own, and the scroll back follows it. A touch, a keyboard that comes back, the field's page going, or the wait's end puts nothing back. The reveal-pan watch's touch flag now holds through a report that comes while a finger is on the screen. In Firefox the toolbar hides in a drag, which changes the measured keyboard height mid-drag; the watch then took the drag's own pan for the browser's and put it back. The input stream now counts the fingers on the screen from touch events (`isTouchOnScreen`), only while `touchend` and `touchcancel` are heard. A native pan keeps a finger there, though its `pointercancel` drops the press from `getDownPresses`, so that record cannot serve. The watch's shared touch subscription hears those two types, and a report reads the count. After the show's first reveal, a keyboard report reveals nothing while a press that started after the last reveal is down. In Firefox the toolbar hides in a drag, and the reveal re-applied itself with small scrolls under the person's finger. The report's height is kept, so the field stays where the person put it, and a later report with the finger up reveals it as before. The press that focused the field holds nothing: a long press focuses with the finger still down, and Gboard can report a 48 px keyboard first, then its full height. The input stream also counts the touches that start (`getTouchStartCount`), and each reveal notes that count. The keyboard module reads the finger count through `isFingerOnScreen`: a finger down at the keyboard's last hide counts no more until a touch starts, since a touch whose target leaves the page ends at a node the window never hears. The count includes a stylus, whose drag moves the page as a finger does. Nine unit tests cover the scroll back from the blur on iOS: it starts at the blur and the report moves nothing more; focus that moves on to another field or into a frame keeps the page; a finger on the screen at the blur leaves it to the report; a person's scroll stands; Reduce Motion waits for the report; a field focused again during the slide stops the scroll back and rises from where the page is, or stays where a touch stopped it with nothing left to raise; and the next close goes back to the first place, at a blur or at a report. Six unit tests cover the scroll back: the page's smooth scroll at the report (nothing before it), Reduce Motion, a theme that reduces motion, a person's scroll kept, a scroll area after Back, and a focus move to another field. Firefox-shaped cases carry the reveal as an offset and close the keyboard before the fold: the scroll back follows the fold, a touch-drag control keeps the page, only the first document scroll counts, and each way the wait ends leaves no scroll listener. Safari's and Chrome's close sequences still decide at the report, with no wait. A Firefox-shaped drag grows the viewport twice with the finger down and finds no put-back; after the finger is up, a browser pan is put back. Another drags the page with the toolbar hiding twice and finds no reveal scroll until the finger is up. A long press focuses the field while Gboard grows from 48 to 290 px, and the field is revealed at 290; the next show's first reveal runs again under the same press, and a press that starts after the reveal holds the next report until it lifts. After the keyboard goes with no finger down, a long press that brings it back is revealed with that press still down. Another holds a report while the long press's finger stays down after a second finger tapped and lifted. Another misses a touch's end, as when its target leaves the page, and finds a browser pan put back once the keyboard has hidden and shown again. The input stream's tests count fingers through a second finger, a cancel and a native pan's `pointercancel`, count nothing while a touch end could go unheard, and count the touches that start. Six cover the rise on iOS: its smooth scroll, Reduce Motion, a theme that reduces motion, the scroll back after a rise drawn later, a rise carried on at a new height, and no second reveal while a scroll area's rise is drawn. Their CSS.supports stub answers both of Safari's forms, a property and value or a condition. Another drives a scroll area with a smooth `scroll-behavior` and finds its own `scrollBy` called at once. Two in the motion module cover `reducesMotion`: the setting, and a theme that reduces motion for everyone.
|
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 | 🔴 75.2 kB (+2.1 kB) · 7.8 kB CSS (0) | — | ✗ · ✓ · — |
| BottomSheetSwitcher | 18.8 kB (+140 B) · 3.4 kB CSS (0) | — | ✗ · ✓ · — |
| NumberInput · Storybook | 🔴 104.0 kB (+25.5 kB) · 12.2 kB CSS (0) | 1,476 (+2) | ✓ · ✓ · ✓ |
147 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| TextArea · Storybook | 🔴 92.6 kB (+25.5 kB) · 9.4 kB CSS (0) | 496 (+2) | ✓ · ✓ · ✓ |
| TextInput · Storybook | 🔴 98.9 kB (+25.3 kB) · 12.0 kB CSS (0) | 418 (+2) | ✓ · ✓ · — |
| lab/EmojiPicker | 🔴 118.7 kB (+25.3 kB) · 751 B CSS (0) | — | — · — · — |
| lab/TransferList | 🔴 136.3 kB (+23.1 kB) · 1.2 kB CSS (0) | — | — · — · — |
| lab/TransferListSelector | 🔴 145.2 kB (+23.1 kB) · 1.4 kB CSS (0) | — | — · — · — |
| Pagination | 🔴 147.5 kB (+22.3 kB) · 19.1 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditorToolbar | 🔴 309.1 kB (+8.1 kB) · 454 B CSS (0) | — | — · — · — |
| lab/ChatReactionBar | 🔴 123.8 kB (+8.0 kB) · 1.1 kB CSS (0) | — | — · — · — |
| lab/ChatEmojiPicker | 🔴 122.6 kB (+8.0 kB) · 773 B CSS (0) | — | — · — · — |
| lab/CommentComposer | 🔴 180.4 kB (+5.4 kB) · 1.9 kB CSS (0) | — | — · — · — |
| lab/CommentThread | 🔴 369.6 kB (+4.7 kB) · 2.4 kB CSS (0) | — | — · — · — |
| lab/Comments | 🔴 376.5 kB (+4.6 kB) · 2.5 kB CSS (0) | — | — · — · — |
| charts/Chart | 🔴 241.8 kB (+2.1 kB) · 516 B CSS (0) | — | — · — · — |
| charts/ChartTooltip | 🔴 218.5 kB (+2.1 kB) · 451 B CSS (0) | — | — · — · — |
| DateTimeInput | 226.4 kB (+2.0 kB) · 19.8 kB CSS (0) | — | — · — · — |
| TimeInput | 177.8 kB (+2.0 kB) · 17.0 kB CSS (0) | — | — · — · — |
| DateInput | 202.9 kB (+2.0 kB) · 18.0 kB CSS (0) | — | — · — · — |
| PowerSearch | 310.2 kB (+1.9 kB) · 25.6 kB CSS (0) | — | — · — · — |
| lab/TourStep | 94.9 kB (+607 B) · 691 B CSS (0) | — | — · — · — |
| ChatLayout | 89.8 kB (+600 B) · 11.4 kB CSS (0) | — | — · — · — |
| DateRangeInput | 100.7 kB (+530 B) · 13.3 kB CSS (0) | — | — · — · — |
| MoreMenu | 109.0 kB (+516 B) · 18.9 kB CSS (0) | — | — · — · — |
| TableCell | 104.5 kB (+515 B) · 19.2 kB CSS (0) | — | — · — · — |
| Carousel | 76.2 kB (+510 B) · 11.7 kB CSS (0) | — | — · — · — |
| Tokenizer | 105.8 kB (+508 B) · 20.4 kB CSS (0) | — | — · — · — |
| TableHeaderCell | 104.2 kB (+501 B) · 19.0 kB CSS (0) | — | — · — · — |
| MultiSelector | 103.1 kB (+497 B) · 17.8 kB CSS (0) | — | — · — · — |
| Drawer | 54.8 kB (+496 B) · 8.5 kB CSS (0) | — | — · — · — |
| lab/Schedule | 116.0 kB (+495 B) · 3.9 kB CSS (0) | — | — · — · — |
| ContextMenu | 103.3 kB (+493 B) · 18.8 kB CSS (0) | — | — · — · — |
| Table | 121.5 kB (+483 B) · 19.7 kB CSS (0) | — | — · — · — |
| Popover | 100.1 kB (+482 B) · 15.2 kB CSS (0) | — | — · — · — |
| ContextMenuItem | 35.9 kB (+479 B) · 7.1 kB CSS (0) | — | — · — · — |
| DropdownMenu | 108.7 kB (+476 B) · 18.9 kB CSS (0) | — | — · — · — |
| charts/ChartLegend | 48.0 kB (+474 B) · 224 B CSS (0) | — | — · — · — |
| Selector | 114.7 kB (+459 B) · 18.7 kB CSS (0) | — | — · — · — |
| Markdown | 204.8 kB (+457 B) · 22.0 kB CSS (0) | — | — · — · — |
| CommandPalette | 78.5 kB (+452 B) · 12.8 kB CSS (0) | — | — · — · — |
| ChatComposerTokenElement | 83.4 kB (+261 B) · 12.1 kB CSS (0) | — | — · — · — |
| ChatComposerInput | 83.4 kB (+260 B) · 12.1 kB CSS (0) | — | — · — · — |
| ChatComposer | 85.7 kB (+232 B) · 12.9 kB CSS (0) | — | — · — · — |
| AlertDialog | 129.9 kB (+228 B) · 15.5 kB CSS (0) | — | — · — · — |
| Slider | 114.9 kB (+227 B) · 8.9 kB CSS (0) | — | — · — · — |
| FileInput | 75.2 kB (+221 B) · 11.7 kB CSS (0) | — | — · — · — |
| CheckboxListItem | 80.3 kB (+219 B) · 12.1 kB CSS (0) | — | — · — · — |
| DropdownMenuSubMenu | 78.9 kB (+216 B) · 10.5 kB CSS (0) | — | — · — · — |
| TabMenu | 80.0 kB (+215 B) · 11.9 kB CSS (0) | — | — · — · — |
| ToggleButton | 93.3 kB (+214 B) · 10.9 kB CSS (0) | — | — · — · — |
| lab/DiffViewer | 94.2 kB (+214 B) · 2.1 kB CSS (0) | — | — · — · — |
| lab/CommentPin | 60.7 kB (+213 B) · 1.2 kB CSS (0) | — | — · — · — |
| Timer | 15.2 kB (+212 B) · 6.1 kB CSS (0) | — | — · — · — |
| RadioListItem | 76.5 kB (+211 B) · 10.7 kB CSS (0) | — | — · — · — |
| Toolbar | 47.5 kB (+209 B) · 8.2 kB CSS (0) | — | — · — · — |
| HoverCard | 30.6 kB (+208 B) · 4.5 kB CSS (0) | — | — · — · — |
| CheckboxList | 73.5 kB (+207 B) · 7.8 kB CSS (0) | — | — · — · — |
| InfoTip | 50.8 kB (+206 B) · 5.4 kB CSS (0) | — | — · — · — |
| SideNavHeading | 83.7 kB (+206 B) · 12.1 kB CSS (0) | — | — · — · — |
| Thumbnail | 70.6 kB (+206 B) · 12.4 kB CSS (0) | — | — · — · — |
| lab/ListInput | 95.0 kB (+206 B) · 922 B CSS (0) | — | — · — · — |
| BaseTypeahead | 79.5 kB (+205 B) · 11.7 kB CSS (0) | — | — · — · — |
| Lightbox | 147.5 kB (+205 B) · 12.0 kB CSS (0) | — | — · — · — |
| TopNavHeading | 83.2 kB (+204 B) · 12.0 kB CSS (0) | — | — · — · — |
| lab/DialogHeroHeader | 90.1 kB (+204 B) · 372 B CSS (0) | — | — · — · — |
| SideNavItem | 78.1 kB (+202 B) · 11.9 kB CSS (0) | — | — · — · — |
| Typeahead | 89.1 kB (+202 B) · 13.5 kB CSS (0) | — | — · — · — |
| lab/TabBarMoreList | 102.3 kB (+202 B) · 1.8 kB CSS (0) | — | — · — · — |
| richtext/RichTextView | 283.7 kB (+201 B) · 2.3 kB CSS (0) | — | — · — · — |
| CommandPaletteInput | 33.3 kB (+199 B) · 7.6 kB CSS (0) | — | — · — · — |
| Spinner | 26.0 kB (+199 B) · 6.3 kB CSS (0) | — | — · — · — |
| TopNav | 79.2 kB (+199 B) · 11.8 kB CSS (0) | — | — · — · — |
| Heading | 13.7 kB (+198 B) · 5.5 kB CSS (0) | — | — · — · — |
| Tooltip | 32.4 kB (+198 B) · 4.5 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditor | 307.0 kB (+198 B) · 2.6 kB CSS (0) | — | — · — · — |
| ChatMessageList | 29.5 kB (+196 B) · 7.1 kB CSS (0) | — | — · — · — |
| Text | 13.1 kB (+196 B) · 5.5 kB CSS (0) | — | — · — · — |
| ComplexSelector | 78.7 kB (+195 B) · 12.7 kB CSS (0) | — | — · — · — |
| DrawerHeader | 69.2 kB (+195 B) · 13.8 kB CSS (0) | — | — · — · — |
| ListItem | 79.5 kB (+195 B) · 12.1 kB CSS (0) | — | — · — · — |
| SideNav | 122.4 kB (+195 B) · 12.2 kB CSS (0) | — | — · — · — |
| AvatarGroup | 49.0 kB (+194 B) · 5.8 kB CSS (0) | — | — · — · — |
| AvatarGroupOverflow | 52.3 kB (+194 B) · 5.7 kB CSS (0) | — | — · — · — |
| MobileNav | 77.4 kB (+194 B) · 11.4 kB CSS (0) | — | — · — · — |
| Switch | 109.4 kB (+194 B) · 10.0 kB CSS (0) | — | — · — · — |
| Timestamp | 30.7 kB (+194 B) · 11.1 kB CSS (0) | — | — · — · — |
| ChatToolCalls | 33.8 kB (+193 B) · 8.5 kB CSS (0) | — | — · — · — |
| CheckboxInput | 69.4 kB (+193 B) · 10.2 kB CSS (0) | — | — · — · — |
| TabList | 47.6 kB (+193 B) · 6.5 kB CSS (0) | — | — · — · — |
| TopNavMegaMenu | 77.4 kB (+193 B) · 12.7 kB CSS (0) | — | — · — · — |
| ChatLayoutScrollButton | 66.7 kB (+192 B) · 11.0 kB CSS (0) | — | — · — · — |
| StatusDot | 34.1 kB (+192 B) · 5.4 kB CSS (0) | — | — · — · — |
| lab/LineClamp | 15.6 kB (+192 B) · 168 B CSS (0) | — | — · — · — |
| DialogHeader | 69.0 kB (+191 B) · 12.4 kB CSS (0) | — | — · — · — |
| TopNavMenu | 82.7 kB (+191 B) · 12.0 kB CSS (0) | — | — · — · — |
| lab/SelectableCardGroup | 69.2 kB (+191 B) · 162 B CSS (0) | — | — · — · — |
| Button | 66.1 kB (+190 B) · 10.8 kB CSS (0) | — | — · — · — |
| Toast | 105.2 kB (+190 B) · 11.1 kB CSS (0) | — | — · — · — |
| IconButton | 66.2 kB (+188 B) · 10.8 kB CSS (0) | — | — · — · — |
| FieldLabel | 55.7 kB (+187 B) · 5.8 kB CSS (0) | — | — · — · — |
| Link | 56.8 kB (+187 B) · 7.1 kB CSS (0) | — | — · — · — |
| MobileNavToggle | 66.4 kB (+187 B) · 10.8 kB CSS (0) | — | — · — · — |
| TableSelectionToolbar | 76.5 kB (+187 B) · 14.1 kB CSS (0) | — | — · — · — |
| Avatar | 46.2 kB (+186 B) · 5.7 kB CSS (0) | — | — · — · — |
| BreadcrumbItem | 97.9 kB (+186 B) · 13.3 kB CSS (0) | — | — · — · — |
| ChatDictationButton | 66.7 kB (+186 B) · 10.9 kB CSS (0) | — | — · — · — |
| ChatSendButton | 66.5 kB (+185 B) · 10.8 kB CSS (0) | — | — · — · — |
| AppShell | 98.7 kB (+184 B) · 14.4 kB CSS (0) | — | — · — · — |
| SegmentedControl | 102.5 kB (+183 B) · 6.9 kB CSS (0) | — | — · — · — |
| SideNavCollapseButton | 67.0 kB (+183 B) · 10.8 kB CSS (0) | — | — · — · — |
| Stepper | 67.8 kB (+178 B) · 10.9 kB CSS (0) | — | — · — · — |
| Field | 59.8 kB (+177 B) · 7.3 kB CSS (0) | — | — · — · — |
| Banner | 68.1 kB (+175 B) · 11.3 kB CSS (0) | — | — · — · — |
| Calendar | 77.2 kB (+175 B) · 11.4 kB CSS (0) | — | — · — · — |
| RadioList | 61.1 kB (+173 B) · 7.4 kB CSS (0) | — | — · — · — |
| InputGroup | 61.4 kB (+172 B) · 7.9 kB CSS (0) | — | — · — · — |
| DropdownMenuItem | 28.0 kB (+169 B) · 6.9 kB CSS (0) | — | — · — · — |
| CodeBlock | 81.6 kB (+166 B) · 12.2 kB CSS (0) | — | — · — · — |
| DropdownMenuCheckboxItem | 28.8 kB (+160 B) · 7.3 kB CSS (0) | — | — · — · — |
| Item | 20.6 kB (+158 B) · 6.2 kB CSS (0) | — | — · — · — |
| lab/TabBar | 83.7 kB (+158 B) · 1.8 kB CSS (0) | — | — · — · — |
| lab/NavigationStack | 85.1 kB (+156 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/NavigationScreen | 85.1 kB (+155 B) · 1.5 kB CSS (0) | — | — · — · — |
| DropdownMenuRadioItem | 28.8 kB (+154 B) · 7.3 kB CSS (0) | — | — · — · — |
| lab/ChatVirtualizer | 57.4 kB (+154 B) · 223 B CSS (0) | — | — · — · — |
| TreeList | 46.4 kB (+151 B) · 5.9 kB CSS (0) | — | — · — · — |
| CommandPaletteItem | 13.6 kB (+150 B) · 3.6 kB CSS (0) | — | — · — · — |
| Token | 29.7 kB (+148 B) · 4.9 kB CSS (0) | — | — · — · — |
| Outline | 25.4 kB (+146 B) · 4.1 kB CSS (0) | — | — · — · — |
| SelectableCard | 18.9 kB (+145 B) · 7.6 kB CSS (0) | — | — · — · — |
| ToggleButtonGroup | 41.6 kB (+145 B) · 3.7 kB CSS (0) | — | — · — · — |
| SegmentedControlItem | 19.0 kB (+142 B) · 4.3 kB CSS (0) | — | — · — · — |
| SelectorOption | 24.2 kB (+141 B) · 6.7 kB CSS (0) | — | — · — · — |
| Step | 31.8 kB (+141 B) · 5.6 kB CSS (0) | — | — · — · — |
| ButtonGroup | 44.3 kB (+140 B) · 3.7 kB CSS (0) | — | — · — · — |
| TopNavItem | 14.6 kB (+140 B) · 4.0 kB CSS (0) | — | — · — · — |
| Collapsible | 29.2 kB (+139 B) · 4.5 kB CSS (0) | — | — · — · — |
| ClickableCard | 18.7 kB (+137 B) · 7.4 kB CSS (0) | — | — · — · — |
| TopNavMegaMenuItem | 15.3 kB (+137 B) · 4.2 kB CSS (0) | — | — · — · — |
| Dialog | 25.7 kB (+136 B) · 7.0 kB CSS (0) | — | — · — · — |
| lab/PageControl | 78.3 kB (+133 B) · 709 B CSS (0) | — | — · — · — |
| Tab | 15.0 kB (+132 B) · 4.2 kB CSS (0) | — | — · — · — |
| NavHeadingMenu | 18.7 kB (+127 B) · 3.5 kB CSS (0) | — | — · — · — |
| TopNavMegaMenuFeaturedCard | 8.4 kB (+17 B) · 3.6 kB CSS (0) | — | — · — · — |
| LayoutPanel | 22.1 kB (+4 B) · 5.0 kB CSS (0) | — | — · — · — |
| ResizeHandle | 22.3 kB (+3 B) · 4.3 kB CSS (0) | — | — · — · — |
| Overlay | 23.5 kB (0) · 3.9 kB CSS (0) | — | — · — · — |
| ProgressBar | 12.0 kB (0) · 6.4 kB CSS (0) | — | — · — · — |
| lab/TabBarItem | 3.9 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
Visual changes: 2 snapshots in 1 component
A change is a question for the reviewer, not a failure.
Inheritance checked against the 8 newest reports of other pull requests.
Package size: @astryxdesign/core 7.65 MB packed (+14.3 kB); no new dependencies.
Touched components checked; for the full suites, add ci:run-visual for Visual, ci:run-rtl for RTL.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
This pull request needs an engineering owner's spec decision before it can be approved, and it also needs code changes.
Approval waits on an engineering owner to provide or identify the governing spec for TextInput, TextArea and NumberInput keeping themselves above the on-screen keyboard: AST-099 FR9 and input-fields FR13 exist only in open #9750, and the docked-bar ride is an exception to AST-099 FR3. The same owner decides on this head's FR8 exception and DEC-5, including which decision keeps the number DEC-5. An engineering owner records that by commenting /approve-spec <full head SHA>, and the author may do so as an engineering owner.
Required changes:
- A field claims the browser's own reveal but stays hidden when it is above the view, reached by a hardware keyboard's Tab, or low in a Dialog or Hug BottomSheet, because
revealinkeyboardTarget.tsonly lifts a field covered from below, through one scroller. - The field path re-implements the sheet's reveal without its upper-edge branch and reads the coarse-pointer gate once at attach, so the two paths have already drifted; share one reveal routine and key the field's attachment on the same touch state.
- On touch screens, the tap that focuses a field cancels the touch and swallows the click, so a caller's
onClickon TextInput never runs for that tap, whichfamily:input-fieldsFR10 does not allow. - The changeset says the fields keep themselves above the keyboard, that focus never pans the page and that nothing changes under a mouse; the tests do not show this and the cases above contradict it, so fix the code or narrow the wording.
- AST-099 DEC-3 requires simulator and emulator evidence for the three fields before merge, and none is attached yet.
- At 8,101 authored lines the diff includes the unlanded #8559 and #9776; land them first so this pull request carries only its own 277 lines.
[Automated review]
de729f6 to
a7bb9ee
Compare
There was a problem hiding this comment.
This pull request needs an engineering owner's spec decision before it can be approved, and it also needs code changes.
Approval waits on an engineering owner to provide or identify the governing spec for TextInput, TextArea and NumberInput keeping themselves above the on-screen keyboard: AST-099 FR9 and input-fields FR13 exist only in open #9750, and moving an app's fixed bottom bar is an exception to AST-099 FR3. The same decision covers this head's AST-099 FR8 exception and DEC-5, including which record keeps the number DEC-5, since #9750 uses it for a different decision. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.
Required changes:
- A field now refuses the browser's own reveal but only scrolls itself up when the keyboard covers it from below, so a field focused above the view, reached by a hardware keyboard's Tab, or low in a Dialog or a Hug or Capped BottomSheet stays hidden, and the BottomSheet
heightdocs still say the browser's reveal is left in place there. - On touch screens the tap that focuses a field cancels its
touchendand swallows the click, so a caller'sonClickon TextInput, TextArea or NumberInput never runs for that tap, which input-fields FR10 does not allow. - The field's
revealinkeyboardTarget.tsre-implements the sheet'sscrollControlIntoSafeAreawithout its upper-edge branch; share one reveal routine so the two paths cannot drift. - The changeset and title say the fields keep themselves above the keyboard and that focus never pans the page, which the tests do not show and the cases above contradict; fix the code or narrow the wording.
- AST-099 DEC-3 requires simulator and emulator evidence for the three fields before merge, and none is attached yet.
- At 8,400 authored lines the diff carries the unlanded #8559 and #9776; land them first so this pull request carries only its own 277 lines.
[Automated review]
a7bb9ee to
fc8992b
Compare
There was a problem hiding this comment.
Changes requested. The direction is settled: spec:AST-099 FR9 and DEC-5 and family:input-fields FR13 are now current, so no spec approval is needed here, and the page reveal and the docked-bar ride behave as FR9 describes.
- A field near the end of its scroller, such as a short form's last field, stays under the keyboard: the field path claims the focus but cannot add the missing scroll range that AST-099 FR9 and
architecture:react-component-runtimeINV11 require, so with a stand-in 300 px keyboard in Chromium the last field of a page that scrolls 84 px stays 264 px covered, wheremainlets the browser reveal it. - AST-099 DEC-3's iOS Simulator and Android emulator evidence is still missing, and AST-099 Gaps 1, 2 and 11, and
BottomSheet.doc.mjs's "the browser's own focus reveal is left in place" for these fields in a Hug or Capped sheet whose body scrolls, stop being true with this change, so those edits should land with the evidence. - The changeset says a field in the page or a scrolling area "is scrolled into place 10 px above the keyboard as it opens", which the first point shows is not true near a scroller's end, so fix that case or narrow the wording.
Non-blocking: the comment // The on-screen keyboard never covers the focused field. in each field restates the hook's name and can go. CI has not run on this head yet.
[Automated review]
fc8992b to
71619c3
Compare
There was a problem hiding this comment.
This pull request needs an engineering owner's spec decision before it can be approved, and it also needs code changes.
Approval waits on an engineering owner to approve or change the spec:AST-099 text this head adds: the FR9 sentence that a document scroll carried out as a visual-viewport offset is the reveal and not a pan, the new Firefox and Chrome FR9 verification rows, and the docked-toolbar exception on the Safari and Chrome row. 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.
Required changes:
- A TextInput, TextArea or NumberInput in a scroll area whose top sits below the keyboard's top is claimed by
canBringUp(keyboardTarget.ts:824-834) but its scroller cannot lift it, so it stays under the keyboard (117 px with a stand-in 300 px keyboard) wheremainleaves the browser's own reveal to show it. - AST-099 DEC-3 makes Android emulator evidence at the exact head a merge gate, and it is still pending, including for a short page's last field and the docked toolbar's placement at Chrome's first report.
- The changeset says every page field is scrolled 10 px above the keyboard and that a scroll area which can bring the field to its top does the same, but a page with nothing to scroll keeps the browser's reveal and the first point disproves the second.
The earlier findings on the scroll area's end, the end-of-page stories, the focusing tap's click and pointer changes are fixed at this head.
[Automated review]
There was a problem hiding this comment.
Changes requested: two required changes remain.
The device and emulator runs now in the description pass Safari's rise and close rows, Chrome's row in all three profiles and Firefox's reveal row, and the spec:AST-099 and family:input-fields text stays owner-approved for this revision.
- Required change: in Firefox for Android with animations removed or on a slow profile, Back left the page raised in 2 of 14 takes, against the approved FR9 close sentence and its Firefox Back row (
docs/specs/AST-099-mobile-keyboard/spec.md:468), so please make the scroll back follow Firefox's fold in those profiles (the wait inkeyboardTarget.ts:1463-1497follows only a first document scroll within one second) or have an engineering owner record the case as an AST-099 gap and narrow the changeset's close sentence. - Required change: the Safari runs cover only Title in the middle of the page, so the FR9 row's "TextInput in a fixed Toolbar" cell (
spec.md:466) has no Safari result on this revision; please focus Message in the Mobile keyboard story's docked toolbar in the iOS Simulator or on a device and state where the field and the bar's bottom end against the keyboard's top.
Claims and files checked
Review mode: same-head; reason: none
- Changeset: the three fields keep themselves above the keyboard with nothing to turn on — verified (
TextInput.tsx:390,TextArea.tsx:472,NumberInput.tsx:757; each field's keyboard test). - Changeset: a page field is scrolled 10 px above the keyboard, rising on iOS and at once under Reduce Motion, and a page with nothing to scroll keeps the browser's reveal — verified (
risesSmoothly,placementOf; the iOS cases inkeyboardTarget.test.ts; the stated iPhone and Simulator rise). - Changeset: on close the page or scroll area goes back unless the person scrolled it, sliding on iOS — false in one case: in Firefox for Android, Back left the page raised in 2 of 14 slow or no-animation takes (required change); it also leaves out the Reduce Motion case (non-blocking).
- Changeset: a scroll area reveals the field when it can, otherwise the page does — verified (
revealWithKeyboard; the field tests). - Changeset: a bar fixed at the bottom rides the keyboard, even one the app owns — verified in code and in the stated Chrome runs (
rideWithKeyboard; the ride tests); no Safari run of it is stated for this revision (required change). - Changeset: a fully expanded Tall BottomSheet keeps its own path — verified (
isInsideKeyboardTargetinplacementOf). - Changeset: in a fixed container the app positions, a scroller brings the field up when it can, otherwise the page or the browser's reveal does — verified (
revealWithin,canBringUp). - Changeset: in Firefox for Android a field can stay under the keyboard where the page cannot scroll further — matches the record's Gap 11.
- Changeset: nothing changes under a mouse or a trackpad — verified (
followsKeyboard; the mouse tests). - Description: no prop, option or export changes — verified (the API surface comparison shows no change for Core, the build package or the themes).
- Description: the follow-up pull request contains this revision — verified (ancestry check).
- Description: the latest merges of
mainleave this change's own lines unchanged — verified. - Description:
mainchanged files this change edits or imports, so earlier device runs do not carry — verified (NumberInput.tsxchanged). - Description: first-load gzip on the four reference pages — reported as the record asks; the module set agrees; the byte counts were not rebuilt.
- Description: the keyboard store's shared key moves to version 2 — verified (
keyboardHeight.tsstore key;keyboardHeight.test.ts). - Description: a field focused as it mounts starts its session at attach — verified (
keyboardTarget.ts:1193; thehasAutoFocustests). - Description: a keyboard report during a touch that began after the reveal moves nothing — verified (
isLaterPressDown; the touch-hold tests). - Description: in Safari on iOS the scroll back starts at the blur, and a field focused during the slide stops it — verified (
watchKeyboardGo,stopKeyboardScrollBack; the blur tests; the stated iPhone close starts 26 ms after Done). - Description: typecheck, lint and unit suites pass — verified for Core's typecheck, lint of the changed files and the keyboard, field, sheet, chat and input-stream suites; the interaction specs and the whole build were not checked.
- Description: the author's red-first arms — not checked (they live outside this repository).
- Description: Safari rise and close runs on this revision (iPhone and Simulator) — stated; they meet the record's Safari rise and close rows.
- Description: Chrome with Gboard on this revision, in all three profiles, with four Core pans — stated; they meet the record's Chrome row.
- Description: Firefox for Android on this revision — the reveal row passes; the Back row fails in 2 of 14 slow or no-animation takes (required change).
packages/core/src/keyboard/keyboardTarget.ts— the Firefox fold wait at:1442-1497(required change); non-blocking notes at:550and:606.packages/core/src/keyboard/keyboardHeight.ts,useMobileKeyboard.ts,README.md,__tests__/keyboardTestDouble.ts— clear.packages/core/src/keyboard/keyboardTarget.test.ts,keyboardTarget.guide.test.ts,keyboardHeight.test.ts— clear.packages/core/src/utils/inputStream.ts,inputStream.test.ts,touchQueries.ts— clear.packages/core/src/TextInput/TextInput.tsx,TextArea/TextArea.tsx,NumberInput/NumberInput.tsx— clear.- The three
*.keyboard.test.tsxfiles — header note (non-blocking); tests clear. packages/core/src/BottomSheet/BottomSheet.doc.mjs— clear.docs/specs/AST-099-mobile-keyboard/spec.md— owner-approved; the row at:468fails and the row at:466lacks a Safari run; non-blocking wording at:368-369.docs/families/input-fields.md— owner-approved; clear..changeset/inputs-stay-above-keyboard.md— the close sentence claims more than Firefox delivers (required change); non-blocking wording at line 5.apps/storybook/stories/TextInput.stories.tsx, the sandbox page and its route entry — clear.
There was a problem hiding this comment.
Changes requested: three required changes remain.
The spec:AST-099 and family:input-fields text is unchanged and owner-approved for this revision, and the device and emulator runs in the description carry here, since the latest merge of main changes only the generated sandbox route list among this change's files.
- Required change: in Firefox for Android with animations removed or on a slow profile, Back left the page raised in 2 of 14 takes, against the approved FR9 close sentence and its Firefox Back row (
docs/specs/AST-099-mobile-keyboard/spec.md:468), so please make the scroll back follow Firefox's fold in those profiles (the wait inkeyboardTarget.ts:1463-1497follows only a first document scroll within one second) or have an engineering owner record the case as an AST-099 gap and narrow the changeset's close sentence. - Required change: the Safari runs cover only Title in the middle of the page, so the FR9 row's "TextInput in a fixed Toolbar" cell (
spec.md:466) has no Safari result on this code; please focus Message in the Mobile keyboard story's docked toolbar in the iOS Simulator or on a device and state where the field and the bar's bottom end against the keyboard's top. - Required change: the description says #10462 contains this head, but #10462's head contains only this pull request's previous head, so please merge this head into #10462 or drop that claim and the
Stack:line.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (1): "Whatever the scope, these are computed over the whole pull request" (incremental re-review counting) — checked: the recipe change and this review's mode, no finding.
- Changeset: the three fields keep themselves above the keyboard with nothing to turn on — verified (
TextInput.tsx:390,TextArea.tsx:472,NumberInput.tsx:757; each field's keyboard test). - Changeset: a page field is scrolled 10 px above the keyboard, rising on iOS and at once under Reduce Motion, and a page with nothing to scroll keeps the browser's reveal — verified (
risesSmoothly,placementOf; the iOS cases inkeyboardTarget.test.ts; the stated iPhone and Simulator rise; Chromium stand-in keyboard frames). - Changeset: on close the page or scroll area goes back unless the person scrolled it, sliding on iOS — false in one case: in Firefox for Android, Back left the page raised in 2 of 14 slow or no-animation takes (required change); it also leaves out the Reduce Motion case (non-blocking).
- Changeset: a scroll area reveals the field when it can, otherwise the page does — verified (
revealWithKeyboard; the field tests). - Changeset: a bar fixed at the bottom rides the keyboard, even one the app owns — verified in code, in the stated Chrome runs and in Chromium frames (
rideWithKeyboard; the ride tests); no Safari run of it is stated for this code (required change). - Changeset: a fully expanded Tall BottomSheet keeps its own path — verified (
isInsideKeyboardTargetinplacementOf). - Changeset: in a fixed container the app positions, a scroller brings the field up when it can, otherwise the page or the browser's reveal does — verified (
revealWithin,canBringUp). - Changeset: in Firefox for Android a field can stay under the keyboard where the page cannot scroll further — matches the record's Gap 11.
- Changeset: nothing changes under a mouse or a trackpad — verified (
followsKeyboard; the mouse tests). - Description: the follow-up pull request contains this revision — false (required change).
- Description: the latest merge of
mainhas no conflicts and leaves this change's own lines unchanged — verified (the merged tree equals an automatic merge; the patch is unchanged). - Description: no prop, option or export changes — verified (source review of every export, data attribute, event and default; an earlier build comparison of this same patch found no surface change).
- Description: device runs on the previous revision for Safari, Chrome and Firefox — stated; they carry to this revision, pending CI's node tests for the regenerated route list.
- Description: first-load gzip on the four reference pages — reported as the record asks; the byte counts were not rebuilt.
- Description: the keyboard store's shared key moves to version 2 — verified (
keyboardHeight.tsstore key;keyboardHeight.test.ts). - Description: a field focused as it mounts starts its session at attach — verified (
keyboardTarget.ts:1193; thehasAutoFocustests). - Description: a keyboard report during a touch that began after the reveal moves nothing — verified (
isLaterPressDown; the touch-hold tests). - Description: in Safari on iOS the scroll back starts at the blur, and a field focused during the slide stops it — verified (
watchKeyboardGo,stopKeyboardScrollBack; the blur tests). - Description: typecheck and the keyboard-area unit suites pass — verified (Core typecheck; 39 test files, 1,539 tests); the interaction specs and the whole build were not rerun.
- Description: the author's red-first arms — not checked (they live outside this repository).
packages/core/src/keyboard/keyboardTarget.ts— the Firefox fold wait at:1434-1497(required change); non-blocking notes at:550and:606.packages/core/src/keyboard/keyboardHeight.ts,useMobileKeyboard.ts,README.md,__tests__/keyboardTestDouble.ts— clear.packages/core/src/keyboard/keyboardTarget.test.ts,keyboardTarget.guide.test.ts,keyboardHeight.test.ts— clear.packages/core/src/utils/inputStream.ts,inputStream.test.ts,touchQueries.ts— clear.packages/core/src/TextInput/TextInput.tsx,TextArea/TextArea.tsx,NumberInput/NumberInput.tsx— clear.- The three
*.keyboard.test.tsxfiles — header note (non-blocking); tests clear. packages/core/src/BottomSheet/BottomSheet.doc.mjs— clear.docs/specs/AST-099-mobile-keyboard/spec.md— owner-approved; the row at:468fails and the row at:466lacks a Safari run; non-blocking wording at:368-369.docs/families/input-fields.md— owner-approved; clear..changeset/inputs-stay-above-keyboard.md— the close sentence claims more than Firefox delivers (required change); non-blocking wording at line 5.apps/storybook/stories/TextInput.stories.tsx, the sandbox page and its route entry — clear.
|
Thanks. The description no longer claims a stack with #10462. Gap 21 records Firefox's Back, and the Safari docked-toolbar take is in the description. |
There was a problem hiding this comment.
Approval waits on an engineering owner's spec decision for this revision, and two required changes remain.
- Spec decision: this revision adds
spec:AST-099Gap 21, which accepts that Back in Firefox for Android with animations removed or on a slow device can leave the page raised (the FR9 Back row atdocs/specs/AST-099-mobile-keyboard/spec.md:471fails in 2 of 14 such takes), and no approval covers this revision'sspec:AST-099andfamily:input-fieldstext, including Core's own visual-viewport pan that CURRENT FR9 rules out ("The page is never panned or translated"), so an engineering owner records the decision by commenting/approve-specwith this revision's full SHA, and the author may do so as an engineering owner. - Required change: the FR9 row's Safari cell for "a TextInput in a fixed Toolbar" (
spec.md:469) still has no take on this code, because the description's Safari take of the docked toolbar ran on a much earlier revision, before later keyboard code changes such as the attach-time session, the single touch reader and the scroll back's move intokeyboardTarget.ts, whichspec:AST-094DEC-31 does not carry across; please focus Message in the Mobile keyboard story's docked toolbar in the iOS Simulator or on a device and state where the field and the bar's bottom end against the keyboard's top. - Required change: Gap 21 is another FR9 shortfall of the same three fields, but
spec.md:359-361, Gap 2 (spec.md:370-374) andfamily:input-fieldsFR13's status line (docs/families/input-fields.md:464-467) still say they meet FR9 apart from Gaps 11 and 19, so please name Gap 21 in all three places, as was done for Gap 19.
The description no longer claims a stack, so that earlier request is resolved, and the changeset now says what Back does in slow Firefox for Android. The keyboard, field and input-stream tests and Core's typecheck pass on this revision. The earlier non-blocking notes stay open in their threads.
Claims and files checked
Review mode: full; reason: spec-record
- Changeset: the three fields keep themselves above the keyboard with nothing to turn on — verified (
TextInput.tsx:390,TextArea.tsx:472,NumberInput.tsx:757; each field's keyboard test). - Changeset: a page field is scrolled 10 px above the keyboard, rising on iOS and at once under Reduce Motion, and a page with nothing to scroll keeps the browser's reveal — verified (
risesSmoothly,placementOf; the iOS cases inkeyboardTarget.test.ts; Chromium stand-in keyboard frames). - Changeset: on close the page or scroll area goes back unless the person scrolled it, sliding on iOS — verified, with the non-blocking omission of the Reduce Motion case (changeset line 5).
- Changeset: in Firefox for Android, with animations removed or on a slow device, Back can leave the page where the reveal left it — matches the description's 2 of 14 takes and the new Gap 21, which awaits the spec decision.
- Changeset: a scroll area reveals the field when it can, otherwise the page does — verified (
revealWithKeyboard; the field tests). - Changeset: a bar fixed at the bottom rides the keyboard, even one the app owns — verified in code, in the stated Chrome runs and in Chromium frames (
rideWithKeyboard; the ride tests); no Safari take on this code (required change). - Changeset: a fully expanded Tall BottomSheet keeps its own path — verified (
isInsideKeyboardTargetinplacementOf). - Changeset: in a fixed container the app positions, a scroller brings the field up when it can, otherwise the page or the browser's reveal does — verified (
revealWithin,canBringUp). - Changeset: in Firefox for Android a field can stay under the keyboard where the page cannot scroll further — matches the record's Gap 11.
- Changeset: nothing changes under a mouse or a trackpad — verified (
followsKeyboard; the mouse tests). - Description: no prop, option or export changes — verified (the API surface report shows no change for Core, the build package or the seven themes).
- Description: no stack is claimed any more — verified (the description has no stack line).
- Description: device runs for Safari, Chrome and Firefox at an earlier revision — stated; they carry here, since the later merge of
mainchanges only the generated sandbox route list among this change's files (pending CI's node tests) and this revision's own commit touches only a record and the release note. - Description: a Safari take of the docked toolbar — stated, but on a revision the evidence-carry rule does not reach (required change).
- Description: Firefox kept the reveal after Back in 2 of 14 slow or no-animation takes — stated; Gap 21 records it.
- Description: first-load gzip on the four reference pages — reported as the record asks; the byte counts were not rebuilt.
- Description: the keyboard store's shared key moves to version 2 — verified (
keyboardHeight.tsstore key;keyboardHeight.test.ts). - Description: a field focused as it mounts starts its session at attach — verified (
keepFieldAboveKeyboard; thehasAutoFocustests). - Description: a keyboard report during a touch that began after the reveal moves nothing — verified (
isLaterPressDown; the touch-hold tests). - Description: in Safari on iOS the scroll back starts at the blur, and a field focused during the slide stops it — verified (
watchKeyboardGo,stopKeyboardScrollBack; the blur tests). - Description: typecheck and the keyboard-area unit suites pass — verified at this revision (Core typecheck; 39 test files, 1,539 tests); the interaction specs and the whole build were not rerun.
- Description: the author's red-first arms — not checked (they live outside this repository).
packages/core/src/keyboard/keyboardTarget.ts— non-blocking notes at:550and:606.packages/core/src/keyboard/keyboardHeight.ts,useMobileKeyboard.ts,README.md,__tests__/keyboardTestDouble.ts— clear.packages/core/src/keyboard/keyboardTarget.test.ts,keyboardTarget.guide.test.ts,keyboardHeight.test.ts— clear.packages/core/src/utils/inputStream.ts,inputStream.test.ts,touchQueries.ts— clear.packages/core/src/TextInput/TextInput.tsx,TextArea/TextArea.tsx,NumberInput/NumberInput.tsx— clear.- The three
*.keyboard.test.tsxfiles — header note (non-blocking); tests clear. packages/core/src/BottomSheet/BottomSheet.doc.mjs— clear.docs/specs/AST-099-mobile-keyboard/spec.md— awaits the spec decision; the row at:469lacks a Safari take;:359-361and Gap 2 leave out Gap 21 (required changes); non-blocking wording at:368-369.docs/families/input-fields.md— awaits the spec decision;:464-467leaves out Gap 21 (required change)..changeset/inputs-stay-above-keyboard.md— clear apart from the non-blocking Reduce Motion omission.apps/storybook/stories/TextInput.stories.tsx, the sandbox page and its route entry — clear.
Main shows it too.
|
The description's Safari take of the docked toolbar ran on a build of 5c3698c, this code. The bar's bottom rests flush on the keyboard's top, with the field 12 CSS px above. |
|
/approve-spec 584d8a3 |
There was a problem hiding this comment.
Changes requested: one text fix remains. An engineering owner has approved this revision's spec text, and the device and emulator runs carry to it.
- The changeset says that when the keyboard closes the page or scroll area goes back to where it was, but this revision's
spec:AST-099Gap 21 and the description's runs say Back in Firefox for Android on a slow device can leave the page raised, so please add one sentence for that case to.changeset/inputs-stay-above-keyboard.md.
The description's count of rewritten verification rows is now correct. The earlier non-blocking notes stay open in their threads.
Claims and files checked
Review mode: same-head; reason: none
- Changeset: the three fields keep themselves above the keyboard with nothing to turn on — verified (
TextInput.tsx:390,TextArea.tsx:472,NumberInput.tsx:757; each field's keyboard test). - Changeset: a page field is scrolled 10 px above the keyboard, rising on iOS and at once under Reduce Motion, and a page with nothing to scroll keeps the browser's reveal — verified (
risesSmoothly,placementOf; the iOS cases inkeyboardTarget.test.ts; Chromium stand-in keyboard frames). - Changeset: on close the page or scroll area goes back unless the person scrolled it, sliding on iOS — false for Back in slow Firefox for Android (Gap 21; required change).
- Changeset: a scroll area reveals the field when it can, otherwise the page does — verified (
revealWithKeyboard; the field tests). - Changeset: a bar fixed at the bottom rides the keyboard, even one the app owns — verified (
rideWithKeyboard; the ride tests; Chromium frames; the stated Safari and Chrome runs). - Changeset: a fully expanded Tall BottomSheet keeps its own path — verified (
isInsideKeyboardTargetinplacementOf). - Changeset: in a fixed container the app positions, a scroller brings the field up when it can, otherwise the page or the browser's reveal does — verified (
revealWithin,canBringUp). - Changeset: in Firefox for Android a field can stay under the keyboard where the page cannot scroll further — matches Gap 11.
- Changeset: nothing changes under a mouse or a trackpad — verified (the touch query gate in
useMobileKeyboard.ts; the mouse tests). - Description: no prop, option or export changes — verified (the API surface report lists no row for Core, the build package or the seven themes).
- Description: the new internal exports and the store keys — verified (
getTouches,isFingerOnScreen,panVisualViewportTo,FIELD_CLEARANCE_AT_REPORT,documentScrollIsReveal; the store moves to version 2 with a coexistence test). - Description: the records commit adds the FR9 sentences, Gap 13 and five rows, and updates Gaps 1, 10 and 11, two rows and FR13 — verified (two rows rewritten, five added).
- Description: the two latest commits change only records, and the merge before them leaves this change's lines unchanged — verified (the history).
- Description: device runs in Safari, Chrome and Firefox, and the Safari take of the docked toolbar — stated; they carry here, since the later merge changes only the generated sandbox route list among this change's files and the later commits touch only records.
- Description: Firefox kept the reveal after Back in 2 of 14 slow takes — stated; Gap 21 records it.
- Description: a field focused as it mounts starts its session at attach — verified (
keepFieldAboveKeyboard; thehasAutoFocustests). - Description: a report during a touch that began after the reveal moves nothing — verified (
isLaterPressDown; the touch-hold tests). - Description: in Safari on iOS the scroll back starts at the blur, and a field focused during the slide stops it — verified (
watchKeyboardGo,stopKeyboardScrollBack; the blur tests). - Description: first-load gzip on the four reference pages — reported as the record asks; not rebuilt.
- Description: the red-first arms — not checked (they live outside this repository).
.changeset/inputs-stay-above-keyboard.md— required change; non-blocking Reduce Motion note.docs/specs/AST-099-mobile-keyboard/spec.md— non-blocking notes on Gap 21's wording and the Gap 1 sequencing sentence.docs/families/input-fields.md— clear.packages/core/src/keyboard/keyboardTarget.ts— non-blocking notes on the pan's landing check and one per-report read.packages/core/src/keyboard/keyboardHeight.ts,useMobileKeyboard.ts,README.md,__tests__/keyboardTestDouble.ts— clear.packages/core/src/utils/inputStream.ts,touchQueries.ts— clear.packages/core/src/TextInput/TextInput.tsx,TextArea/TextArea.tsx,NumberInput/NumberInput.tsx— clear.- The three
*.keyboard.test.tsxfiles — non-blocking: their headers describe the older scroll-area behavior. keyboardTarget.test.ts,keyboardTarget.guide.test.ts,keyboardHeight.test.ts,utils/inputStream.test.ts— clear.packages/core/src/BottomSheet/BottomSheet.doc.mjs— clear.apps/storybook/stories/TextInput.stories.tsx, the sandbox page andapps/sandbox/scripts/next-export-routes.json— clear.
|
Fixed in the description: it now says the records commit updates two rows. |
Gap 21 names FR9 and no longer names main.
There was a problem hiding this comment.
Approval waits on an engineering owner's spec decision for this revision; no required change remains.
- Spec decision: no approval covers this revision's
spec:AST-099andfamily:input-fieldstext, which now rewords Gap 21 and keeps the FR9 rise, touch-hold, offset, close and iOS-blur sentences, the new verification rows and Core's own visual-viewport pan that CURRENT FR9 rules out ("The page is never panned or translated for a field Core reveals or moves"), so an engineering owner records the decision by commenting/approve-specwith this revision's full SHA, and the author may do so as an engineering owner.
The changeset now says what Back does in Firefox for Android on a slow device, which resolves the earlier required change, and Gap 21 names FR9. The keyboard, field, BottomSheet, Chat and input-stream tests pass on this revision, and the earlier non-blocking notes stay open in their threads. The Stack line does not hold at these heads (#12216's head does not contain the heads below it), so this pull request is reviewed on its own.
Claims and files checked
Review mode: full; reason: spec-record
- Changeset: the three fields keep themselves above the keyboard with nothing to turn on — verified (
TextInput.tsx:390,TextArea.tsx:472,NumberInput.tsx:757; each field's keyboard test). - Changeset: a page field is scrolled 10 px above the keyboard, rising on iOS and at once under Reduce Motion, and a page with nothing to scroll keeps the browser's reveal — verified (
risesSmoothly,placementOf; the iOS cases inkeyboardTarget.test.ts; Chromium stand-in keyboard frames). - Changeset: on close the page or scroll area goes back unless the person scrolled it, sliding on iOS — verified, with the non-blocking omission of the Reduce Motion case (changeset line 5).
- Changeset: in Firefox for Android on a slow device, Back can leave the page where the reveal scrolled it — matches Gap 21 and the description's 2 of 14 slow takes.
- Changeset: a scroll area reveals the field when it can, otherwise the page does — verified (
revealWithKeyboard; the field tests). - Changeset: a bar fixed at the bottom rides the keyboard, even one the app owns — verified (
rideWithKeyboard; the ride tests; Chromium frames; the stated Safari and Chrome runs). - Changeset: a fully expanded Tall BottomSheet keeps its own path — verified (
isInsideKeyboardTargetinplacementOf). - Changeset: in a fixed container the app positions, a scroller brings the field up when it can, otherwise the page or the browser's reveal does — verified (
revealWithin,canBringUp). - Changeset: in Firefox for Android a field can stay under the keyboard where the page cannot scroll further — matches Gap 11.
- Changeset: nothing changes under a mouse or a trackpad — verified (the touch query gate in
useMobileKeyboard.ts; the mouse tests). - Description: no prop, option or export changes — verified (the API surface report lists no row for Core, the build package or the seven themes).
- Description: the new internal exports and the store keys — verified (
getTouches,isFingerOnScreen,panVisualViewportTo,FIELD_CLEARANCE_AT_REPORT,documentScrollIsReveal; the store moves to version 2 with a coexistence test). - Description: the latest commit adds the changeset caveat, makes Gap 21 name FR9 and drop its mention of main, and changes no code — verified (the history).
- Description: the records commit adds the FR9 sentences, Gap 13 and five rows, and updates Gaps 1, 10 and 11, two rows and FR13 — verified.
- Description: device runs in Safari, Chrome and Firefox, and the Safari take of the docked toolbar — stated; they carry here, since the later merge changes only the generated sandbox route list among this change's files and the later commits touch only records and the changeset.
- Description: a field focused as it mounts starts its session at attach — verified (
keepFieldAboveKeyboard; thehasAutoFocustests). - Description: a report during a touch that began after the reveal moves nothing — verified (
isLaterPressDown; the touch-hold tests). - Description: in Safari on iOS the scroll back starts at the blur, and a field focused during the slide stops it — verified (
watchKeyboardGo,stopKeyboardScrollBack; the blur tests). - Description: first-load gzip on the four reference pages — reported as the record asks; not rebuilt.
- Description: the red-first arms — not checked (they live outside this repository).
.changeset/inputs-stay-above-keyboard.md— non-blocking Reduce Motion note.docs/specs/AST-099-mobile-keyboard/spec.md— awaits the spec decision; non-blocking note on the Gap 1 sequencing sentence.docs/families/input-fields.md— awaits the spec decision.packages/core/src/keyboard/keyboardTarget.ts— non-blocking notes on the pan's landing check and one per-report read.packages/core/src/keyboard/keyboardHeight.ts,useMobileKeyboard.ts,README.md,__tests__/keyboardTestDouble.ts— clear.packages/core/src/utils/inputStream.ts,touchQueries.ts— clear.packages/core/src/TextInput/TextInput.tsx,TextArea/TextArea.tsx,NumberInput/NumberInput.tsx— clear.- The three
*.keyboard.test.tsxfiles — non-blocking: their headers describe the older scroll-area behavior. keyboardTarget.test.ts,keyboardTarget.guide.test.ts,keyboardHeight.test.ts,utils/inputStream.test.ts— clear.packages/core/src/BottomSheet/BottomSheet.doc.mjs— clear.apps/storybook/stories/TextInput.stories.tsx, the sandbox page andapps/sandbox/scripts/next-export-routes.json— clear.
|
/approve-spec c3e3df7 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because its required jobs skip while the pull request is a draft; they run once it is marked ready for review.
An engineering owner's /approve-spec for this revision settles the spec:AST-099 and family:input-fields text, including Core's own visual-viewport pan and Gaps 11, 19 and 21. This revision only merges main, which touches none of this change's files, so the device and emulator runs in the description still apply, and the sandbox route list's carry needs test-node to pass once CI runs. The keyboard, field, BottomSheet, Chat and input-stream tests pass on this revision, and the earlier non-blocking notes stay open in their threads.
Claims and files checked
Review mode: carry-forward; reason: none
- Changeset: the three fields keep themselves above the keyboard with nothing to turn on — verified (
TextInput.tsx:390,TextArea.tsx:472,NumberInput.tsx:757; each field's keyboard test). - Changeset: a page field is scrolled 10 px above the keyboard, rising on iOS and at once under Reduce Motion, and a page with nothing to scroll keeps the browser's reveal — verified (
risesSmoothly,placementOf; the iOS cases inkeyboardTarget.test.ts; Chromium stand-in keyboard frames). - Changeset: on close the page or scroll area goes back unless the person scrolled it, sliding on iOS — verified, with the non-blocking omission of the Reduce Motion case (changeset line 5).
- Changeset: in Firefox for Android on a slow device, Back can leave the page where the reveal scrolled it — matches Gap 21 and the description's 2 of 14 slow takes.
- Changeset: a scroll area reveals the field when it can, otherwise the page does — verified (
revealWithKeyboard; the field tests). - Changeset: a bar fixed at the bottom rides the keyboard, even one the app owns — verified (
rideWithKeyboard; the ride tests; Chromium frames; the stated Safari and Chrome runs). - Changeset: a fully expanded Tall BottomSheet keeps its own path — verified (
isInsideKeyboardTargetinplacementOf). - Changeset: in a fixed container the app positions, a scroller brings the field up when it can, otherwise the page or the browser's reveal does — verified (
revealWithin,canBringUp). - Changeset: in Firefox for Android a field can stay under the keyboard where the page cannot scroll further — matches Gap 11.
- Changeset: nothing changes under a mouse or a trackpad — verified (the touch query gate in
useMobileKeyboard.ts; the mouse tests). - Description: no prop, option or export changes — verified (the API surface report lists no row for Core, the build package or the seven themes).
- Description: the new internal exports and the store keys — verified (
getTouches,isFingerOnScreen,panVisualViewportTo,FIELD_CLEARANCE_AT_REPORT,documentScrollIsReveal; the store moves to version 2 with a coexistence test). - Description: the commit before the merge adds the changeset caveat, makes Gap 21 name FR9 and drop its mention of main, and changes no code — verified (the history).
- Description: the latest commit merges
mainwith no conflicts; main's 37 new commits touch none of this change's files, and this change's own lines are unchanged — verified (the pull request's diff is byte-identical to the previous revision's, and the merge shares no file with it). - Description: at this revision, build, typecheck and lint report 0 errors and the UI project passes — partly verified: the keyboard, field, BottomSheet, Chat and input-stream tests pass here (65 files, 2,039 tests); build, typecheck, lint and the full suite were not rerun, and CI runs them once the pull request is ready.
- Description: the node suite's failing files fail only under load or on main as well — not checked.
- Description: the Stack line — it does not hold at these heads (the top pull request's head contains none of the heads below it), so this pull request is reviewed on its own.
- Description: the records commit adds the FR9 sentences, Gap 13 and five rows, and updates Gaps 1, 10 and 11, two rows and FR13 — verified.
- Description: device runs in Safari, Chrome and Firefox, and the Safari take of the docked toolbar — stated; they carry here, since one later merge changes only the generated sandbox route list among this change's files, the latest merge changes none of them, and the other later commits touch only records and the changeset.
- Description: a field focused as it mounts starts its session at attach — verified (
keepFieldAboveKeyboard; thehasAutoFocustests). - Description: a report during a touch that began after the reveal moves nothing — verified (
isLaterPressDown; the touch-hold tests). - Description: in Safari on iOS the scroll back starts at the blur, and a field focused during the slide stops it — verified (
watchKeyboardGo,stopKeyboardScrollBack; the blur tests). - Description: first-load gzip on the four reference pages — reported as the record asks; not rebuilt.
- Description: the red-first arms — not checked (they live outside this repository).
.changeset/inputs-stay-above-keyboard.md— non-blocking Reduce Motion note.docs/specs/AST-099-mobile-keyboard/spec.md— owner-approved at this revision; non-blocking note on the Gap 1 sequencing sentence.docs/families/input-fields.md— owner-approved at this revision.packages/core/src/keyboard/keyboardTarget.ts— non-blocking notes on the pan's landing check and one per-report read.packages/core/src/keyboard/keyboardHeight.ts,useMobileKeyboard.ts,README.md,__tests__/keyboardTestDouble.ts— clear.packages/core/src/utils/inputStream.ts,touchQueries.ts— clear.packages/core/src/TextInput/TextInput.tsx,TextArea/TextArea.tsx,NumberInput/NumberInput.tsx— clear.- The three
*.keyboard.test.tsxfiles — non-blocking: their headers describe the older scroll-area behavior. keyboardTarget.test.ts,keyboardTarget.guide.test.ts,keyboardHeight.test.ts,utils/inputStream.test.ts— clear.packages/core/src/BottomSheet/BottomSheet.doc.mjs— clear.apps/storybook/stories/TextInput.stories.tsx, the sandbox page andapps/sandbox/scripts/next-export-routes.json— clear.
|
/approve-spec f1b8bf3 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because its required jobs skip while the pull request is a draft; they run once it is marked ready for review.
This revision only merges main, which touches none of this change's files, so the engineering owner's approval of the spec:AST-099 and family:input-fields text still holds (the spec-owner-approval check passes here) and the description's device and emulator runs still apply; the sandbox route list's carry needs test-node to pass once CI runs. The keyboard, field, BottomSheet, Chat and input-stream tests pass on this revision, and the earlier non-blocking notes stay open in their threads.
Claims and files checked
Review mode: carry-forward; reason: none
- Changeset: the three fields keep themselves above the keyboard with nothing to turn on — verified (
TextInput.tsx:390,TextArea.tsx:472,NumberInput.tsx:757; each field's keyboard test). - Changeset: a page field is scrolled 10 px above the keyboard, rising on iOS and at once under Reduce Motion, and a page with nothing to scroll keeps the browser's reveal — verified (
risesSmoothly,placementOf; the iOS cases inkeyboardTarget.test.ts). - Changeset: on close the page or scroll area goes back unless the person scrolled it, sliding on iOS — verified, with the non-blocking omission of the Reduce Motion case (changeset line 5).
- Changeset: in Firefox for Android on a slow device, Back can sometimes leave the page where the reveal scrolled it — matches Gap 21 and the description's slow takes.
- Changeset: a scroll area reveals the field when it can, otherwise the page does — verified (
revealWithKeyboard; the field tests). - Changeset: a bar fixed at the bottom rides the keyboard, even one the app owns — verified (
rideWithKeyboard; the ride tests). - Changeset: a fully expanded Tall BottomSheet keeps its own path — verified (
isInsideKeyboardTargetinplacementOf). - Changeset: in a fixed container the app positions, a scroller brings the field up when it can, otherwise the page or the browser's reveal does — verified (
revealWithin,canBringUp). - Changeset: in Firefox for Android a field can stay under the keyboard where the page cannot scroll further — matches Gap 11.
- Changeset: nothing changes under a mouse or a trackpad — verified (the touch query gate in
useMobileKeyboard.ts:193; the mouse tests). - Description: no prop, option or export changes — verified (no API row for Core, the build package or the seven themes).
- Description: the new internal exports and the shared store keys — verified (
getTouches,isFingerOnScreen,panVisualViewportTo,FIELD_CLEARANCE_AT_REPORT,documentScrollIsReveal; the keyboard store at version 2 with a coexistence test; the scroll back's four stores under shared keys). - Description: no new module or hook — verified (the only added files are three keyboard tests and the sandbox page).
- Description: the latest commit merges
mainwith no conflicts; main's five new commits touch none of this change's files, and this change's own lines are unchanged — verified (the pull request's diff is byte-identical to the previous revision's, and the merge shares no file with it). - Description: at this revision, build, typecheck and lint report 0 errors, knowledge records and changesets pass, and the UI project and the keyboard interaction tests pass — partly verified: the keyboard, field, BottomSheet, Chat and input-stream tests pass here (65 files, 2,039 tests); the rest was not rerun, and CI runs it once the pull request is ready.
- Description: three node-suite files fail in the full run, two of them without this change too — not checked.
- Description: device runs on the previous revision in Chrome and Firefox for Android, on a real iPhone and in the iOS Simulator — stated; they carry, since the merge after them touches none of this change's files; their heading still calls that revision "this head".
- Description: earlier device runs, including the Safari take of the docked toolbar — stated; they carried to the previous revision and carry here.
- Description: the Stack line — it does not hold at these heads (the top pull request's head does not contain this head), so this pull request is reviewed on its own.
- Description: the records commit adds the FR9 sentences, Gap 13 and five rows, and updates Gaps 1, 10 and 11, two rows and FR13 — verified.
- Description: a field focused as it mounts starts its session at attach — verified (
keepFieldAboveKeyboard; thehasAutoFocustests). - Description: a report during a touch that began after the reveal moves nothing — verified (
isLaterPressDown; the touch-hold tests). - Description: in Safari on iOS the scroll back starts at the blur, and a field focused during the slide stops it — verified (
watchKeyboardGo,stopKeyboardScrollBack; the blur tests). - Description: first-load gzip on the four reference pages — reported as the record asks; not rebuilt.
- Description: the red-first arms — not checked (they live outside this repository).
.changeset/inputs-stay-above-keyboard.md— non-blocking Reduce Motion note.docs/specs/AST-099-mobile-keyboard/spec.md— owner-approved at this revision; non-blocking note on the Gap 1 sequencing sentence.docs/families/input-fields.md— owner-approved at this revision.packages/core/src/keyboard/keyboardTarget.ts— non-blocking notes on the pan's landing check and one per-report read.packages/core/src/keyboard/keyboardHeight.ts,useMobileKeyboard.ts,README.md,__tests__/keyboardTestDouble.ts— clear.packages/core/src/utils/inputStream.ts,touchQueries.ts— clear.packages/core/src/TextInput/TextInput.tsx,TextArea/TextArea.tsx,NumberInput/NumberInput.tsx— clear.- The three
*.keyboard.test.tsxfiles — non-blocking: their headers describe the older scroll-area behavior. keyboardTarget.test.ts,keyboardTarget.guide.test.ts,keyboardHeight.test.ts,utils/inputStream.test.ts— clear.packages/core/src/BottomSheet/BottomSheet.doc.mjs— clear.apps/storybook/stories/TextInput.stories.tsx, the sandbox page andapps/sandbox/scripts/next-export-routes.json— clear.






Stack: #9777 → #8080 → #11859
Builds on #8559, #9776 and #8176. This PR's change: vjeux/astryx@b6b0c68...d9d89ea
User need
On a phone, a low field should rise above the opening keyboard and come back when it closes.
Problem and solution fit
Each field decides where it is:
On iOS the reveal rises with the keyboard and slides back beside it from the blur that closes it, unless the person scrolled. Reduced motion makes both instant. A report moves nothing while a later touch is down. A mouse attaches nothing.
Current specification
spec:AST-099FR9, DEC-5, DEC-6;family:input-fieldsFR13. The records commit adds FR9's viewport-offset, open, close and touch sentences, Gap 13 and five rows. It meets Gap 2 and updates Gaps 1, 10 and 11, two rows and FR13.Public delta and caller burden
No prop, option or export.
[feat]changeset.Design and alternatives
Evidence
iOS Simulator, sandbox page
/sandbox/pages/mobile-keyboard-fields/, 3+ takes per build:Fields end 10 px above the keyboard (frames). With no keyboard, nothing moves (captures). Android: Chrome and Firefox pass at 3603adb, an earlier head; Firefox cannot pan a page with no range (Gap 11). A physical iPhone gates release.
Scope
Testing
.nvmrc, afterpnpm install --frozen-lockfile, at d4a7d3b. It merges main d25d532 into 3603adb, adds the first fix, merges main ebb9dde, then adds the second fix. Two refactors and two record commits follow, then a merge of main f27380a, a third record commit, a third refactor and its record commit. The record commits name the keyboard module's new cross-module exports and add FR9's Gap 19. They also name Gap 19 where the fields meet FR9, and name the one touch reader. 3603adb merged main e09956b into d9d89ea.keyboardHeight.ts's imports, and the entry-error records (spec:AST-117,spec:AST-118) add twoinput-fields.mdbullets. The merge keeps both sides.spec:AST-110FR3 requires. The hide's touch count changes the store's shape. A two-copy case puts an earlier copy's listening store under version 1. The package keeps its own store and reads its own height. On version 1 it reads the other copy's 300 px. The comment intouchQueries.tsalso names the scroll back from the blur.docs/families/input-fields.md, keeps this change's FR13 bullet and main's other bullets. This change's own lines are unchanged.spec:AST-099Gap 21, and names it wherever FR9's shortfalls are listed. It changes no code.pnpm typecheckandCI=true pnpm lintreport 0 errors, and knowledge records and changesets pass. The UI project passes 26,061 tests, and 135 Chromium interaction tests for the keyboard and press pass. In the node suite, three files fail in the full run, and one of them passes alone.theme-cut-short.test.mjsandtheme-pictures-broken-words.test.mjsfail alone without this change too.docs/families/input-fields.md(fix(TimeInput, DateTimeInput): keep rejected time entries and show why #11413, fix(DateInput, DateTimeInput): a value passed at the revealing commit keeps the rejected date entry #11470, feat(DateInput, DateTimeInput, TimeInput, FormLayout): entryErrorBehavior and a form default #11485, feat(NumberInput, Pagination): entryErrorBehavior on NumberInput #11492),NumberInput/NumberInput.tsx(fix(DateInput, DateTimeInput): a value passed at the revealing commit keeps the rejected date entry #11470, feat(NumberInput, Pagination): entryErrorBehavior on NumberInput #11492) andapps/sandbox/scripts/next-export-routes.json(docs(useOutlineFromDOM): add hook docs and an article example block #11234, docs(useSyntaxTheme): add hook docs and a keyword color example block #11236, docs(useChatDictation): add hook docs and a voice input example block #11237, feat(core): swipe actions come from createSwipe on the shared drag path #8690). It also changes direct imports:Field/useEntryErrorReport.ts(fix(TimeInput, DateTimeInput): keep rejected time entries and show why #11413) andField/useValueReplacesEntry.ts(fix(TimeInput, DateTimeInput): keep rejected time entries and show why #11413, fix(DateInput, DateTimeInput): a value passed at the revealing commit keeps the rejected date entry #11470) from NumberInput, andIcon/Icon.tsx(fix(Icon): preserve the nearest theme for icon resolution #11498) andTooltip/useTooltip.tsx(fix(useTouchTrigger): sync its callback refs at commit #10892) from TextInput. Through@astryxdesign/coresubpaths, the story importsBottomSheet/BottomSheet.tsx(fix(BottomSheet): a flick's close clears the scrim along the same spring #11400, refactor(layer): a closing BottomSheet takes the shared input hold #11447),Button/Button.tsx(fix(core): no press scale on a trigger whose own layer is open #11062, fix(Button, Popover, Dialog): keep an edge in forced-colors mode #7677) andNumberInput/index.ts(feat(NumberInput, Pagination): entryErrorBehavior on NumberInput #11492). The sandbox page importsNumberInput/index.tstoo. A test importsutils/pressFeedback.ts(feat(core): swipe actions come from createSwipe on the shared drag path #8690). Shared motion and layer modules change as well, among themLayer/inputHold.ts(refactor(layer): a closing BottomSheet takes the shared input hold #11447, feat(AlertDialog): touch motion on the theme's timing #8373),motion/themeTiming.ts(feat(AlertDialog): touch motion on the theme's timing #8373) andmotion/uikit/swipeActions.ts(feat(core): swipe actions come from createSwipe on the shared drag path #8690). So the a99b97f runs do not carry, and every cell re-takes (spec:AST-094DEC-31). The device runs at 929b3a5 follow below.pnpm typecheck0 errors,CI=true pnpm lint0 errors, knowledge records, and the shared-identity and touch-bundle checks pass (23/23). Keyboard, Layer, BottomSheet, Text, Tooltip, field, Chat, motion, gestures, click-guard, resize-observer, layout-viewport, input-stream and press-feedback units: 5,193. Eight interaction specs pass in Chromium (73) and in WebKit's CI container (58, 15 skipped).pnpm review:prehas no findings, and the merge into main is clean.architecture:component-import-boundariesINV10's four reference pages, gzip, base 4800d99 against 929b3a5. Each page is a production bundle of the built packages that imports exactly its components. It is built with the size report's esbuild options, and only its eager chunks count.utils/inputStream.tsandkeyboard/keyboardHeight.ts, two shared modules this change grows.keyboardTarget.ts,useMobileKeyboard.tsand their helpers. Minified, the animator is 35,944 B,keyboardTarget.ts11,158 B anduseMobileKeyboard.ts7,140 B of the 68,667 B its modules grow.version.jsonbefore each take. This head, f1b8bf3, adds only main be7f821's files, none of them keyboard code, so these runs carry.spec:AST-099FR9's Safari, Chrome and Firefox rows. The Android and iPhone takes load 929b3a5's preview, whoseversion.jsonreads 929b3a5.apps/sandbox/scripts/next-export-routes.json,docs/families/input-fields.md,keyboardHeight.ts,keyboardTarget.tsanduseMobileKeyboard.ts. In the route list, the last merge keeps both new pages.spec:AST-110FR3). A swizzled copy and the package then share one keyboard model. OnlykeyboardTarget.ts's imports conflicted, and the merge keeps both sides.hasAutoFocus. It restoresspec:AST-099FR9, "Every route by which a field gains focus (FR4) gets the same behavior". Each field's keyboard test gains ahasAutoFocuscase, which fails before the fix.reducedMotionFade, the policy's existing reader, which counts the setting and a theme that reduces motion. The scroll back moves intokeyboardTarget.ts, its only caller. The input stream's two touch readers become one,getTouches.stopKeyboardScrollBack), and its reveal goes on from there. Reduce Motion, other browsers and a person's scroll keep the report's timing. FR9's close sentence and Safari's close row say so.getTouches). A finger down at the keyboard's last hide counts no more until a touch starts (isFingerOnScreen). A touch whose target leaves the page ends where the window never hears it. FR9 states the hold. The rise on iOS reads Core's iOS WebKit check (isIosWebKit). Its query is the same-webkit-touch-callouttest as before, in condition form. The previous check passes the same tests under the same stub, and no Android browser supports that property.version.jsonread on each phone.42172bab3c93c456d63af78f99b2a8892d4a545b, d9d89ea's tests with three files from elsewhere: 42 cases fail.keyboardTarget.tsis as at an earlier head of this pull request (5e7a0c7), merged with main.keyboardHeight.tsis as on main, andkeyboardScrollBack.tsas at a0f647d.scrollBy.64ab9367edd19e4baea35f5762a03b058224d776,keyboardTarget.tsandkeyboardScrollBack.tsas at 933a93e. These fail: the scroll back under a theme that reduces motion, the scroll area's ownscrollBy, and the fold case with its five listener cases. The three touch-hold cases fail too, and four of the blur's: the scroll back at the blur and the three refocus cases.eb8c1f54de0ae2e5c36c20cb51edfb06b4261e11, the same two files as at a0f647d, the head before the rise. The rise's four fail, with the fifteen above. They are its smooth scroll, the scroll back after a rise drawn later, and a rise carried on at a new height. The fourth is no second reveal while a scroll area's rise is drawn.9f0c56c7ab847430e7d7c7a94cdccaf1b1ddcc7f,keyboardScrollBack.tsas at d619304, before the wait for Firefox's fold: 88 cases fail, the fold case and its five listener cases among them. That file also has nostopKeyboardScrollBackforkeyboardTarget.tsto call.8c54e6c35579b5cf41117a9d52f3871edf1b1ca0,keyboardHeight.tsas at d619304,inputStream.tsas on main, and no touch check before a report's reveal. The drag case, the three touch-hold cases, the two touch-subscription cases, both stream counts and nine of the blur's cases fail. The blur reads the finger count that main's stream lacks.932d2da45df0a69950f0bb4afe0b9a6f3c31a984, no wait: the fold case and its five listener cases fail.45a62011ebaad086f1f9d7b781d7d235b1efb826,214c7e2cab40da70cea76c7cddd33a87b143ffafand1cc12b033120ee1b89eaf88dc1ee6e73e967dca8, a wait that a touch, a new keyboard or the time does not end: that listener case fails. The cap's arm also fails the first-scroll case.679f19faf8bfa65ce95bb1102f252a32374863c0, a wait the field's page going does not end: that case fails, and 13 later ones, as the wait outlives its page.b8fcff3570e336c363fc3b12cba5a39cbbab5b82, any later scroll counted: the first-scroll case fails.d9f9cfa01e8349ebc75b47d1986fa1fc1661409e, a scroll area's scroll counted: the fold case fails.f44c6d16322905435e092de03db5b99b57bc305b, a report clearing the touch flag as before: the drag case fails.75ce78c145f59a71c797dc886138b86676e1e75a, a report revealing while a finger is down: the three touch-hold cases fail. The touch-hold cases are toolbar-in-a-drag, long-press and older-finger.269e087deb3ed20ad9af7aabb4ebeced95f1ee2f, no first reveal under a touch: the long-press case fails.bee6914407784c390ab39c6545a488892b69bbd4, a hold for any finger down, and93b6d88565f21118688e9890b9f2478146d269c0, no count noted at a reveal: the same case fails.fe3a13eb0ca6b6cac9f09ea5a74dc01185581b64, touch starts never counted: the three touch-hold cases, the drag case and the start count fail.8acd68a62cf30f0736d56fbf3201f3e5879d83e9, a finger never counted off the screen: those four cases and both counts fail.fcca5fba047bec52563bee772d1bea176efbaf59, fingers counted while a touch end could go unheard: both counts fail.a937f6a439fbcd75b80d153db723fc6eeb0834be, a count kept after the last end subscriber left: the finger count fails.1226545cc561a78289fb021d63e1551fa9c76c63, the watch not hearing touch ends: the two touch-subscription cases fail, with the three touch-hold cases and the drag case.266d4917a426b0b44641dd348f8aa183604a4b14, no note at the keyboard's hide, and913b5e2ed7532b52bbea04ba39cd5d816d96accc, the watch reading the stream's raw count: the missed-touch-end case fails.767f658fbc8e8a3314938d712b1f5626ef7575df, the rise never smooth: the rise's four fail, with the stop case.fc119d38022e40aca7d7986d74fe216b79c1a7b8, the scroll back recording where the scroller is rather than where the rise is headed: the two rise scroll-back cases fail.c463e8090538a4a9807626841c6ecd1b2472971c, a second reveal starting from where the scroller is: the carried-on case fails.d17e5a8a115d20fba93e0813b1c1c181cce20957, a rise in flight not counted as placing the field: the scroll-area case fails, as the document scrolls too.79575f5ff568c3bd02afde46ce803dc1a2912534, the rise ignoring reduced motion: its Reduce Motion and theme cases fail.reducesMotion:02384a353f0619dbabd6f3e82a2a114f29784112, the theme's mark ignored: the motion module's theme case, the scroll back's and the rise's fail. Armd6c2abe3f0638f05b348a83e9423b45b7ea2dc6f, the setting ignored: the motion module's setting case and its two fade cases fail. So do the scroll back's, the blur's and the rise's Reduce Motion cases.63803f46a41c4a104d563c136480f1f8de9d2d91, a scroll area's instant reveal written throughscrollTop: the scroll area's ownscrollBycase fails.2b36865990c3cf872dd3df08e072a688448ae441, without theuseMobileKeyboardline in each field: the 15 touch cases of the three.keyboard.test.tsxfiles fail; the 3 mouse cases pass.d93c181721a1f22cff52d636e177abb35b17e13b, Core's own pan not recognised: "keeps its own pan when the browser applies it after the call" fails.e518c139bfef195297118280b883f1824fad5c63, no put-back at a new height: the case for a pan left at the last height fails.086ebaa1240ce3f3392f7745f87927253067ba36, the ride's document-scroll option off: the Chrome-reveal case fails.193360f57016b413c618d59be35f069a27fdf244, no centring check: the cases for an app's scroll (alone, and after Chrome's reveal) and for a pan short of Chrome's fail. Arm66a05ac24e7ef1d8637c7859caf5096f9accd623(no scroll half) fails both app-scroll cases, anddb71eb33f24076d9e6b52cdd78f8c73af4cc33d7(no pan half) the short-pan case. Arma067ee5be377bf2e25a85be800bce6e6dd4c28d0, the check made on every viewport event, fails the app-scroll case, which counts the field's box reads after the first.4b623054e4058b059a25ef317af0e51e779d3099, without the reset inputBack: the Chrome-reveal case fails, as the app's later scroll in the same report is scrolled back.646b6c3751c2d62fd5325608ad8843774cad23e3,noteKeyboardScrollrecording nothing: the scroll back's page, Reduce Motion, theme and scroll-area cases fail, with the rise's two scroll-back cases. So do the fold case and its five listener cases, the long-press case, both close replays and six of the blur's cases.c334036970753855cb920a3bafb64146433b9a9e, a scroller someone else moved scrolled back too: "keeps a scroll the person made while the keyboard showed, and puts nothing back" fails. So do the fold, touch-control and first-scroll cases, the five listener cases, both close replays and the blur's person case.caae3422a159e77dc3788e2a0a1efdfbf556d18d, the scroll back always at once: the page, scroll-area, fold and rise scroll-back cases and both close replays fail. So do the finger case and the report after a refocus.7aa1126188d0fe475d3757684e39c0533e277837, always smooth: the Reduce Motion and theme cases fail, with the blur's Reduce Motion case.83332fa4ba52ffd6c007a95914788b2b1638d58c, no scroll back at the blur: the blur case and the three refocus cases fail.ae4cda21103f6ab81220614d4b63df52bb810e40, the blur's scroll back in every browser: the page case outside iOS fails.ba3a7b80a8854db2a97a1e7cfffe4625935ad7f1, the scroll back wherever focus lands: the next-field and frame cases fail;fc1f80c2a4a0ec70e94b311761db8c93d54328f5fails the next-field case, andfee2b304968af39efb1f8d675a14be76cdb49ab4the frame case.38061baac3bf0eac3914a0faa7ccc1e3359ca7a5, the scroll back with a finger on the screen: the finger case fails.247f225f8e901c53363724c5bf90c3c301089496, the blur ignoring reduced motion: its Reduce Motion case fails.0f4a45220371ef6f65b8210b54ba186dd5d199f5, the blur scrolling back a page the person moved: its person case fails.9f8698eae742f8c84e71d1eb4dba4ef4053ff051, the report scrolling back again: the blur case fails.9bc5e2af72117f0420da57a28b57693ea3562548, no stop at the focus: the stop case and the report-after-focus case fail.4c78376e2cc5eb41470e9094af33b6ada2634d5b, a stop with no scroll to where the page is: the same two fail.58671c92eb13e70f9979ed5af18debb736a1ab7c, a stop that leaves Core's target at the first place: those two and the touch-stopped case fail.63576180d55ec501cb026415b45704086bc3f4f7, a stop for any scroll, going back or not: those two and the focus-move case fail.pnpm typecheck0 errors,CI=true pnpm lint0 errors, knowledge records, and the shared-identity and touch-bundle checks pass (18/18). Keyboard, Layer, BottomSheet, Text, Tooltip, field and Chat units: 2,761. Eight interaction specs pass in Chromium (73) and in WebKit's CI container (58, 15 skipped). They are BottomSheet's keyboard inset, the search field, field focus timing, the input hold, capped lists and three Chat specs.pnpm review:prehas no findings, and the merge into main is clean.pnpm typecheck0 errors,CI=true pnpm lint0 errors, knowledge records and the shared-identity check pass. Keyboard, Layer, BottomSheet, Text, Tooltip, field and Chat units: 2,754. The six keyboard-adjacent field specs pass in Chromium (70) and in WebKit's CI container at one worker (55, 15 skipped).CI=true pnpm lint0 errors, Prettier, andpnpm review:pre(one finding, the size limit). At dab4832, which differs only by the JSDoc example's fence:pnpm build, thenpnpm typecheck: 0 errors. Knowledge records and the shared-identity check pass. The whole UI project: 993 files, 24,431 tests. The three fields' accessibility specs pass in Chromium (49). Six keyboard-adjacent field specs pass in Chromium (70) and in WebKit's CI container at one worker (55, 15 skipped).tall, in Chromium with an Android keyboard stand-in. Main ebb9dde and 60ed7c7 both leave the autofocused field 272 px under the keyboard. Core leaves it to the browser's own reveal (FR9 Gap 19).window.scrollBycall on a page with no range leavesvisualViewport.offsetTopat 0. The fixed-probe pan to 100, then 250, reads 100, then 250, with the document unscrolled, before the call returns.scrollByand two pan put-backs during a drag. Each came when the toolbar hid (visual viewport 523 → 530 → 553.5), with the finger still down. This head leaves that pan to the person. At Back, the hide report came 603 ms after it, with a page scroll of 0 and an offset of 76.4. Firefox then turned the offset into a document scroll of 76.4: the fold this head now follows. A drag's scroll (200.6) was kept after Back (463.9), and the loss to 0 did not recur.translatetoolbars are not moved (layout tops 658 to 657.7 and 666 to 665.7). Safari's own reveal shows their field 28.3 and 20.3 px clear. Their frames are left out because Safari draws its own UI over the page there. A scroll area in a full-viewport panel scrolls its field 9.6 px clear (133 px), with no page scroll and no visual-viewport offset. Without the hook (main), Safari's own reveal shows the floating panel's field 168 px clear and the sheet's 177 px clear.Public and internal API delta
Size: +3,587/−168 lines (4800d99..929b3a5): source +1,304/−111, tests +2,124/−13, docs and changeset +159/−44.
App-level size, on the sandbox app's whole build against main f27380a: +9,391 B minified (+3,106 B gzip) of library code. The new test page adds 1,048 B. The keyboard code moves from BottomSheet's chunk into a chunk any field loads: useMobileKeyboard +7,504 B, BottomSheet −7,199 B. The keyboardTarget chunk grows by 5,493 B, and each field's chunk by 63 B.
Public: no export, prop or type changes in
@astryxdesign/core. One changed default behavior: on a phone or tablet, TextInput, TextArea and NumberInput keep themselves above the on-screen keyboard, with nothing to turn on. Example:<TextInput label="Title" value={title} onChange={setTitle} />now rises with the keyboard. Why: a field the keyboard covers cannot be seen while the person types.Internal, inside
packages/coreand not exported from the package. No new module or hook.spec:AST-099Current-state impact names each new export.utils/inputStream.tsgains one reader,getTouches(view), which returns the fingers on the screen and how many touches started. Example:if (getTouches(win).fingers === 0) scrollBack();. Why: the close waits while a finger is down, and a report counts only touches since the last reveal. Existing exports considered:getDownPressesmisses a finger in a native pan, and a touch listener of its own would add a page-wide listener.keyboard/keyboardHeight.tsgainsisFingerOnScreen(win)andpanVisualViewportTo(win, top). Example:panVisualViewportTo(win, win.visualViewport.offsetTop + 120). Why: a keyboard report waits while a finger is down, and the pan places a field the document cannot scroll to. Existing exports considered:getToucheslacks the keyboard's hide reset, and no export pans the visual viewport.keyboard/keyboardTarget.tsgainsFIELD_CLEARANCE_AT_REPORT(4 CSS px), moved fromuseMobileKeyboard.ts. Example:obstructionTop - FIELD_CLEARANCE_AT_REPORT. Why: a field's reveal and BottomSheet's hook set the same clearance at Chrome's first report, so one value serves both.watchRevealPan's options andwatchPansgaindocumentScrollIsReveal(default false). Example:watchPans(win, owns, true). Why: Chrome on Android reveals a fixed field partly by a document scroll, which the put-back must undo.keyboard/keyboard-target/scroll-back-*(version 1), so a swizzled copy and the package share them (spec:AST-110FR3).Writing rubric results
R1 narration: none; present tense.
R2 research: none in the record.
R3 evidence: rows name methods and failures, not runs.
R4 rejected alternatives: none added.
R5 change references: none.
R6 open questions: none.
R7 project status: none. Gap 19 states what the system does today.
Number checked: #9777 lands its rise gap as Gap 13; #11450 merges after it, moves that gap to Gap 18 (reserved) and takes Gap 13.