Skip to content

feat(TextInput, TextArea, NumberInput): fields stay above the keyboard - #9777

Merged
cixzhang merged 30 commits into
meta:mainfrom
vjeux:c09/keyboard-f1
Nov 17, 2026
Merged

cixzhang merged 30 commits into
meta:mainfrom
vjeux:c09/keyboard-f1

Conversation

@vjeux

@vjeux vjeux commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • in scrolling content, its scroller or the document scrolls it 10 px above the keyboard, and in Chrome a pan takes any rest;
  • in a bar docked at the bottom, even the app's, the bar rides the keyboard;
  • in an app's fixed container, a scroller in it, else the page or the pan;
  • in a fully expanded Tall BottomSheet, the sheet.

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-099 FR9, DEC-5, DEC-6; family:input-fields FR13. 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

  • The pan is the owners' scroll-range interim.
  • A docked bar rides the keyboard, putting back Chrome's centring reveal (DEC-6, Gap 11).
  • On open, the rise is the browser's smooth scroll, as Safari pauses page frames; Chrome moves the field at once (Gap 13).
  • On close, Safari and UIKit keep the page raised; the maintainers chose a smooth scroll back. On iOS it starts at the blur, as Safari reports 0.45 s later.

Evidence

iOS Simulator, sandbox page /sandbox/pages/mobile-keyboard-fields/, 3+ takes per build:

  • Open: on d619304, whose rise this head keeps, the page rises through 6 to 9 frames (frames); a0f647d landed it in one frame.
  • Close: d3e9cce slid the page back 0.3 s after the keyboard went. The design owner's iPhone recording shows the page sliding back down instead of riding the keyboard. Here it slides back beside the keyboard.

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

  • One capability is added.
  • Unrelated fixes, cleanup, and policy changes were removed or split.
  • Consumer docs, focused tests, and migration evidence ship with the feature.
  • Public text and artifacts contain no internal Meta context.

Testing

  • Node 24.22.1 from .nvmrc, after pnpm 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.
  • bfb1a32 then merges main be99721. Main's Text and Tooltip fix (fix(Text, Tooltip): on Android, the first tap on a button or link in truncated text opens its tooltip; a tap on a text field never does #11213) changes keyboardHeight.ts's imports, and the entry-error records (spec:AST-117, spec:AST-118) add two input-fields.md bullets. The merge keeps both sides.
  • a539222595 registers the keyboard store's shared key as version 2, as spec:AST-110 FR3 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 in touchQueries.ts also names the scroll back from the blur.
  • bfb9d29 merges main a4595ef, with no conflicts. This change's own lines are unchanged.
  • 2ed29e9 states the keyboard store's constraint in its version comment, in place of how its version came to change.
  • edced5f merges main 9b5ad42 into 2ed29e9, with no conflicts. This change's own lines are unchanged.
  • a99b97f merges main 36f68b0 into edced5f, with no conflicts. This change's own lines are unchanged.
  • babd93d merges main 1addd72 into a99b97f. The one conflict, the gap list in docs/families/input-fields.md, keeps this change's FR13 bullet and main's other bullets. This change's own lines are unchanged.
  • 929b3a5 merges main 4800d99 into babd93d, with no conflicts. This change's own lines are unchanged.
  • 5c3698c merges main 120629d into 929b3a5, with no conflicts. This change's own lines are unchanged.
  • c820a48 records Back in Firefox for Android as spec:AST-099 Gap 21, and names it wherever FR9's shortfalls are listed. It changes no code.
  • 584d8a3 says that Gap 21 shows more often on main. It changes no code.
  • 5a216db adds the changeset's caveat for Back in Firefox for Android on a slow device. Gap 21 now names FR9 and no longer names main. It changes no code.
  • c3e3df7 merges main ffd1c8e into 5a216db, with no conflicts. Main's 37 commits since 120629d touch none of this change's files, and this change's own lines are unchanged.
  • f1b8bf3 merges main be7f821 into c3e3df7, with no conflicts. Main's 5 new commits touch none of this change's files, and this change's own lines are unchanged.
  • At f1b8bf3: build, pnpm typecheck and CI=true pnpm lint report 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.mjs and theme-pictures-broken-words.test.mjs fail alone without this change too.
  • History: main since 36f68b0, the main under the device runs at a99b97f, changes three files this change edits. They are 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) and apps/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) and Field/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, and Icon/Icon.tsx (fix(Icon): preserve the nearest theme for icon resolution #11498) and Tooltip/useTooltip.tsx (fix(useTouchTrigger): sync its callback refs at commit #10892) from TextInput. Through @astryxdesign/core subpaths, the story imports BottomSheet/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) and NumberInput/index.ts (feat(NumberInput, Pagination): entryErrorBehavior on NumberInput #11492). The sandbox page imports NumberInput/index.ts too. A test imports utils/pressFeedback.ts (feat(core): swipe actions come from createSwipe on the shared drag path #8690). Shared motion and layer modules change as well, among them Layer/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) and motion/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-094 DEC-31). The device runs at 929b3a5 follow below.
  • At 929b3a5: build, pnpm typecheck 0 errors, CI=true pnpm lint 0 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:pre has no findings, and the merge into main is clean.
  • First-load JavaScript on architecture:component-import-boundaries INV10'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.
    • Docs 80,562 → 80,791 B (+229), menu 132,075 → 132,525 B (+450) and table 142,366 → 142,839 B (+473).
    • On those three pages the growth is in utils/inputStream.ts and keyboard/keyboardHeight.ts, two shared modules this change grows.
    • Form 82,962 → 108,931 B (+25,969). TextInput now loads its keyboard handling at first load: the motion module's animator, keyboardTarget.ts, useMobileKeyboard.ts and their helpers. Minified, the animator is 35,944 B, keyboardTarget.ts 11,158 B and useMobileKeyboard.ts 7,140 B of the 68,667 B its modules grow.
    • The keyboard handling is default behavior, so INV10's optional-feature budget does not apply (DEC-5). A shared module's growth is reported here, as INV10 asks.
  • Device runs at c3e3df7. The Android and Firefox takes read its version.json before each take. This head, f1b8bf3, adds only main be7f821's files, none of them keyboard code, so these runs carry.
    • Android 16 x86_64 emulator, Chrome 133 with Gboard. Each cell ran at normal speed, with a 4× CPU slowdown, and with animations removed:
      • Notes, mid-page: the page scrolls from 68.6 to 334.9 px, and Notes ends 9.8 px above the keyboard. Chrome adds no pan, and Back returns the page to 68.6.
      • The docked toolbar's Message field ends 11.7 px above the keyboard. The toolbar's bottom meets the keyboard's top, at 423.2 CSS px.
      • Core pans four fields into view, each 9.7 to 10.0 px clear. They sit at a short page's end, in a low scroll area, in a floating panel and in a set-height sheet.
    • The same emulator, Firefox for Android 159.0.1, coarse pointer forced through preferences, Notes, then Back with the keyboard up. Every take read a coarse pointer.
      • With no added load, Back returned the page to its place before the reveal in 14 of 14 takes. On the slow profile, it did so in 14 of 14.
      • A calibrated slow profile, matched to the frame times of the earlier slow takes, refused itself: this host could not reach that load. No calibrated take counts.
      • So tonight's takes did not reproduce Gap 21's 2 of 14.
    • Real iPhone 14, iOS 26.2 Safari, Title: three taps, each closed with Done, at c3e3df7 and at e6190c0 in the same session.
      • Each tap raises the field 304.3 px over 18 frames, about 285 ms. Each Done brings it back over 18 to 19 frames. Both heads agree within 12 ms.
    • iOS Simulator (iPhone 11, iOS 26.1), Title, 3 takes per case, at c3e3df7 and at main ffd1c8e with this pull request's story file:
      • A tap on the input: c3e3df7's reveal ends at scroll 169, and main's ends at 349, 180 pt further.
      • With the keyboard down, a tap on the field's padding ends at scroll 349 on both builds. That is Safari's own reveal of the programmatic focus, and it predates this change.
      • A tap on the padding at its spot with the keyboard up hit the padding in 6 of 6 takes. At c3e3df7 the page ends at scroll 169, and on main at 349.
      • The test tool sent Done first, but its blur landed about 0.4 s after the padding tap, on both builds. So these takes measure a padding tap with the keyboard still up. Done's blur followed, and the field refocused within 6 ms.
  • Device runs at 929b3a5, for spec:AST-099 FR9's Safari, Chrome and Firefox rows. The Android and iPhone takes load 929b3a5's preview, whose version.json reads 929b3a5.
    • Real iPhone 14, iOS 26.2 Safari, the Mobile keyboard story's Title: a field in the middle of a page that scrolls the document. A page script logs every drawn frame.
      • Tap: Title rises 152 px over 18 or 19 frames, 283 to 299 ms (6 of 6). Its largest one-frame step is 13 or 14 px in each take.
      • Focus, then Done: the page starts back 26 ms after Done. It rests at 310 ms where it was before the reveal (scroll 0.0, 3 of 3).
      • A page scroll while the keyboard shows is kept: scroll 152 becomes 253 to 256, and Done leaves it there (3 of 3).
      • The page cannot see when the keyboard's motion ends, and the phone's test driver could not tap again 80 to 150 ms after Done. The Simulator covers both.
    • iOS Simulator (iPhone 11, iOS 26.1), a local production build of 929b3a5, the same Title. A page log records every frame, beside a screen recording:
      • Tap: in the page log, Title rises 169 px over 18 frames, 284 ms (2 of 2). Its largest one-frame step is 15 px in one take and 23 px in the other. In the recording, it rests 62 to 80 ms before the keyboard stops (3 of 3).
      • A tap on the input 78 to 95 ms after Done (4 of 4) or 133 to 139 ms after (2 of 2) refocuses Title. It ends where a plain reveal puts it, its top at 413 pt, with the keyboard's top at 553 pt.
      • In the other 3 taps, 157 to 169 ms after Done, the finger landed on the field's padding, not its input. Title then ends at 233 pt, with scroll 349.
      • That end is Safari's own reveal, and it predates this change. A padding tap ends there on e6190c0 and on main f594a7e with this PR's story file, after Done or with the keyboard down.
    • iOS Simulator (iPhone 11, iOS 26.1), a local build of 5c3698c, the docked toolbar's Message field, at the keyboard's report and 700 ms later:
      • The bar's bottom rests flush on the keyboard's top, the visual viewport's bottom (403.0 CSS px), and the field's bottom 12.0 px above it.
      • On show, the bar jumps to that place before the keyboard's first frame. On a blur, it stays there until Safari's report, about 0.46 s later.
    • Android 16 emulator, Chrome 133 with Gboard, this pull request's stories. Normal speed and animations removed ran on an arm64 emulator, each beside e6190c0 with the same clearances:
      • Notes, mid-page: the page scrolls from 68.6 to 310.9 px, and Notes ends 9.8 px above the keyboard. Chrome adds no pan.
      • The field in an app's docked toolbar ends 11.7 px above the keyboard, and the toolbar's bottom meets the keyboard's top. Chrome adds no pan.
      • Core pans four fields into view, each ending 9.7 to 10.0 px clear. They sit at a short page's end, in a low scroll area, in a floating panel and in a fixed-height sheet.
      • Each pan lands in the frame of Chrome's keyboard report, with no browser focus scroll (16 of 16, both builds and profiles). These four ran twice at normal speed at each build, and the later set is reported. Two takes saw only Gboard's 48 px first report; their cells ran again.
      • Slow profile (4× CPU slowdown), on an x86_64 emulator, 929b3a5 only. Notes ends 9.8 px clear after the page scrolls from 68.6 to 334.9 px. The docked toolbar's field ends 11.7 px clear, and Chrome adds no pan in either. A first run was refused for an unmet input precondition: the visual viewport had not shrunk to 600 px or less at its check. The re-run kept both.
    • Firefox for Android 159 on the arm64 emulator, the Mobile keyboard story's Notes, at 929b3a5 and at e6190c0. Profiles: normal speed with animations on, animations removed, and slow.
      • Firefox carries the reveal in the visual viewport's offset, 299.9 px, which equals the reveal's computed distance. Notes ends 10.0 px above the keyboard.
      • Back returns the page to its place before the reveal: scroll 20, where Firefox's own focus scroll left it.
      • At normal speed with animations on, Back returns the page in 3 of 3 takes at 929b3a5 and 2 of 2 at e6190c0.
      • With animations removed or on the slow profile, Firefox kept the reveal as page scroll after Back in 2 of 14 takes here. At e6190c0 it did so in 2 of 13.
      • FR9 gap: in Firefox for Android on a slow device, Back with the keyboard up sometimes leaves the page where the reveal scrolled it (observed 2 of 14 in the Android emulator with a slow-device profile). Firefox's own reveal does the same with no Core reveal.
      • Firefox in the Android emulator reports a fine pointer by default; these runs force a coarse pointer through preferences, with taps arriving as touch.
      • Firefox for Android in the Android emulator, coarse pointer forced through preferences, with Core's own reveal logged in every take:
        • At 5c3698c with animations removed, Back put the page back in 14 of 14 takes.
        • On the slow profile, it did so in 12 of 14. In the other 2, Firefox's own reveal landed before Core's, and the page stayed raised.
        • On main 120629d, with this pull request's story file, Back left the page raised in every take where Firefox revealed the field. That was 14 of 14 with animations removed, and 4 of 14 on the slow profile. In the other 10 slow takes, nothing revealed the field.
  • The merges leave this pull request's own lines unchanged. Before the fixes, its +/- lines against main equal d9d89ea's against b6b0c68: 28 files, +3,517 −169.
  • Main since b6b0c68: b6b0c68...f27380a (198 commits, 1,421 files). It shares five files with this pull request: apps/sandbox/scripts/next-export-routes.json, docs/families/input-fields.md, keyboardHeight.ts, keyboardTarget.ts and useMobileKeyboard.ts. In the route list, the last merge keeps both new pages.
  • In those three keyboard files, main keeps each store under a registered shared key (spec:AST-110 FR3). A swizzled copy and the package then share one keyboard model. Only keyboardTarget.ts's imports conflicted, and the merge keeps both sides.
  • The first fix does the same for the scroll back's four stores, which main's shared-identity check flags after the merge. That check covers them.
  • The second fix starts the keyboard path at attach for a field that already has focus, as with hasAutoFocus. It restores spec:AST-099 FR9, "Every route by which a field gains focus (FR4) gets the same behavior". Each field's keyboard test gains a hasAutoFocus case, which fails before the fix.
  • The refactors change no behavior. The keyboard path reads Reduce Motion through reducedMotionFade, the policy's existing reader, which counts the setting and a theme that reduces motion. The scroll back moves into keyboardTarget.ts, its only caller. The input stream's two touch readers become one, getTouches.
  • Against d3e9cce, in Safari on iOS the scroll back now starts at the blur that closes the keyboard. Before, it waited for Safari's report that the keyboard has gone, which comes about 0.45 s later. It starts once focus settles on nothing that brings up a keyboard, with no finger on the screen. The report then moves nothing. A finger on the screen at the blur can be a tap that brings the keyboard back, so the report decides then. A field that gains focus during the slide stops the scroll back where the page is (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.
  • Nine unit cases cover it. The blur case starts the scroll back at the blur, and the report moves nothing more. The next-field and frame cases keep the page when focus moves on. The finger case leaves it to the report. The person case keeps a person's scroll, and the blur's Reduce Motion case waits for the report. Three cases focus the field again during the slide. The stop case stops the scroll back and raises the field from there. The touch-stopped case keeps the page where a touch stopped it. The report-after-focus case still scrolls back at a later report. The scroll back's page case now also lets the blur settle outside iOS, where nothing moves before the report.
  • The design owner's iPhone recording of d3e9cce, Safari on iOS 26 with Quantity's number pad, then Notes, read frame by frame at 60 fps. The page rises in the same frames as the keyboard. On close, the keyboard is gone 0.17 to 0.22 s after Done. The page starts back 0.42 to 0.50 s after Done and rests 0.28 s later.
  • iOS 26.2 Simulator, the sandbox page, a real tap on the field and then on the keyboard's Done. The video is read against the page's own log by a dot drawn at the tap. On d3e9cce (3 takes each of Title, Quantity and Notes), the keyboard is gone 87 to 141 ms after Done. Safari reports at 433 to 452 ms. The page starts back 288 to 335 ms after the keyboard is gone, and rests 523 to 591 ms after it. The same 9 takes ran on a build of c4d2130, whose code differs from c311399 only in a header comment and formatting. There the page starts back during the keyboard's slide, 60 to 91 ms before it is gone. It rests 135 to 170 ms after the keyboard is gone, and nothing moves at Safari's report (481 to 530 ms).
  • Notes and Quantity, 2 takes each: tapping the field again 80 or 150 ms after Done leaves the page in place, within 2 px. The field ends 9.6 to 10.6 px above the keyboard, and Safari sends no report that the keyboard has gone. At 80 ms the tap's finger is on the screen at the blur, so the report decides. At 150 ms the tap stops the scroll back before it moves.
  • A tap on the page's intro that blurs the field takes the same path (2 takes each of Title and Notes). The page goes back from that blur and rests where it was before the reveal.
  • Against main, a keyboard report waits only while a finger is down after a touch has begun since the last reveal. So the press that focused the field holds nothing, as when Gboard reports 48 px, then its full height, under a long press. The input stream counts touch starts and fingers on the screen for that (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-callout test as before, in condition form. The previous check passes the same tests under the same stub, and no Android browser supports that property.
  • Android emulator, an independent set at 3603adb, before e6190c0's last two main merges, in Chrome with Gboard and Firefox for Android. The same set was booked at e6190c0. For the field in the middle of the page, normal speed, slow and animations removed pass in both (6 cells), as at c311399 and d3e9cce. Chrome's other cases pass there too, in all three profiles (15 cells, on this pull request's Storybook stories, which the sandbox page lacks). Of the 21 cells, 20 read the same numbers as at d9d89ea. On the slow profile, the docked toolbar's field sits 11.7 px above the keyboard, against 11.9 px there. A field at a short page's end or in a scroll area under the keyboard ends 9.9 px clear. One in a floating panel or a sheet of a set height ends 9.7 px clear. Chrome adds no pan after Core places it. The docked toolbar rides the keyboard, with no pan. The field in the middle of the page ends about 10 px clear. Back returns the page to its place before the reveal (6 of 6). At d3e9cce the same set measured the reveal at 9.9 px clear in Firefox and 9.6 px in Chrome. There a drag while Firefox's toolbar hides made no Core scroll call until the finger lifted (3 of 3). Gboard stays up, and Back keeps the drag's scroll. A long press that focuses a field is not reproducible there, since a long press does not open Gboard. The unit tests cover the keyboard's first report during that press.
  • Real iPhone 14 (iOS 26.2 Safari) and Pixel 8 (Chrome 156), the sandbox fields page, Notes and Quantity: no difference between a99b97f and e6190c0. That is the head approved on Nov 11. Both heads were interleaved, two takes each plus a Reduce Motion or Remove animations take, with version.json read on each phone.
    • iPhone, Notes: the page rides up so Notes ends at 427 pt, about 10 pt above Safari's address bar. The keyboard's top is at 553 pt. Done brings Notes back to 666 pt, 13 pt above its 679 pt start, at both heads.
    • iPhone, Quantity (a number field): its top rides up from 606 to 401 pt, so it ends at 427 pt. Done brings it back to exactly 606 pt. Reduce Motion gives the same end positions at both heads.
    • Pixel, Notes: the page scrolls 295 CSS px, and Notes' top moves from 668.8 to 373.5 as the viewport goes from 760 to 464. Notes ends 10.1 px above the keyboard, and Back returns the scroll to 0.
    • Pixel, Quantity: the page scrolls 166 px, and its top moves from 596 to 429.5. It ends 10.1 px above the keyboard, and Back returns the scroll to 0.
    • Pixel timing: the page settles in the same frame as the keyboard's resize, about 120 to 160 ms after the tap, at both heads. Back animates the return in about 350 to 460 ms at both heads; with animations removed it takes one frame.
  • Earlier heads: an independent emulator set at e6280ea passed Firefox's close. Plain Back returned the page to its place before the reveal (4 of 4, normal speed and slow). A finger drag's scroll was kept (4 of 4). In that drag the reveal re-applied itself with small scrolls as Firefox's toolbar hid; this head reveals nothing until the finger is up.
  • Red-first, each arm a commit on an earlier head in the fork:
  • At a539222: build, pnpm typecheck 0 errors, CI=true pnpm lint 0 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:pre has no findings, and the merge into main is clean.
  • At bfb1a32: build, pnpm typecheck 0 errors, CI=true pnpm lint 0 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).
  • At d4a7d3b: CI=true pnpm lint 0 errors, Prettier, and pnpm review:pre (one finding, the size limit). At dab4832, which differs only by the JSDoc example's fence: pnpm build, then pnpm 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).
  • At the merge a0bdb12, before the third refactor: the whole Chromium interaction suite (1,564, 52 skipped) and motion's seven WebKit specs (144, 10 skipped) pass.
  • A modal BottomSheet shorter than 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).
  • iOS Simulator (iOS 26.2, iPhone 17 Pro, Safari), the sandbox page, on builds of main (6718d7e) and of d619304, alternating builds over 3 rounds. The takes are real taps on Quantity, Notes and Title, then the keyboard's Done. Quantity runs again with a slow one-finger drag of the page while the keyboard shows.
    • Open, read from the screen recording at 60 fps. The page's position comes from an unfocused field's label and box, and the keyboard's top from the screen's right margin. Takes whose recording drops no more than 70 ms around the keyboard's first frame count. On d619304 the page rises through 6 to 9 frames, starting within 50 ms of the keyboard's first frame. It settles 50 to 117 ms after the keyboard settles. No frame carries more than 27 % of the move (Quantity 3 takes, Notes 1). On main, Safari's own reveal moves through 6 to 10 frames, starting 0 to 100 ms before the keyboard's first frame. It settles by the time the keyboard does (8 takes). On a0f647d, an earlier round shows Quantity's 198 px landing in one frame and Notes' 346 of 354 px in one (frames). The page's own frames pause for 0.2 to 1.1 s after the focus on every build. So a rise set from script each frame could not run then.
    • Close, from the page's own per-frame numbers: on d619304, Quantity, Title and Notes are revealed (document scroll 198, 149 and 355). At the hide report, 498 to 561 ms after Done, the page smooth-scrolls back, never rising. It settles 814 to 895 ms after Done. It ends at 0, 0 and 7 px: 7 is Safari's own scroll at the focus, before the reveal (9 of 9). After the drag, the page stays where the drag left it (285, 281 and 285; 3 of 3).
    • Main: Safari's own reveal scrolls 379, 316 and 493 px. After Done the page stays at 379, 316 and 469 (9 of 9), and at 466 after the drag (3 of 3).
    • A plain HTML form with no script of its own: 411, 354 and 514; after Done, 411, 354 and 501 (9 of 9).
    • Two earlier builds of the scroll back, measured and dropped. One scrolled back from the blur. Safari carried each scroll as a visual-viewport offset until the hide report, so the page came back only 2 to 21 px. One set the scroll each frame after the report: Safari applied it a frame late, and the page jumped back by up to 20 px. So the scroll back waits for the report and uses the browser's smooth scroll.
    • This head changes neither path in Safari or Chrome. Its wait for Firefox's fold starts only when the document reads where it was before the reveal. Its touch flag only holds while a finger is down. The unit set replays Safari's close: its own 7 px scroll at the focus, the rise and Done, then again after a drag. It replays Chrome's close too, and finds the same decision at the report, with no wait.
  • No keyboard open, on builds of main 6718d7e and of d619304, the sandbox page: desktop Chromium (1280 × 800, mouse) and the iOS 26.2 Simulator. Each field's drawn box, read from the page, is unchanged (largest change 0 px over 3 fields, page unscrolled) (captures and offsets). The new sandbox page is the only fixture change; no story's framing moves.
  • Chromium, on de4c4f0, whose pan this head keeps, with a real visual viewport, pinch-zoomed through the DevTools protocol so it can pan. A window.scrollBy call on a page with no range leaves visualViewport.offsetTop at 0. The fixed-probe pan to 100, then 250, reads 100, then 250, with the document unscrolled, before the call returns.
  • Chromium on de4c4f0, whose reveal this head keeps in Chromium, with the interaction specs' stand-in keyboard (336 px on 412 × 783). It reads every frame for 30 frames after the report. The field sits 10.0 px above the keyboard from the report on, with one pan and no second move. This holds at a short page's end, at a scroll area's end and in a low scroll area. It holds in a floating panel and in a sheet of a set height too. The docked Title is unchanged (10.2 px, no pan). On 8d0cde8 each stayed under the stand-in keyboard, left to Chrome's own pan of the keyboard's whole height.
  • Android (Chrome 133 and Gboard, emulator) per-frame data from 8d0cde8, with Remove animations and Message in the docked toolbar. Gboard reports 735.2 first. After the bar lands, Chrome scrolls the document from 154.3 to 498.3 and pans 48, and both persist after the real 447.2 report. 498.3 is the scroll that centres Message's document position in the 735.2 viewport (154.3 + 711.5 − 367.6 = 498.2); 48 is all the room that keyboard leaves. The ride's unit cases replay that sequence.
  • Android emulator (Android 16, Gboard), on de4c4f0's code, whose reveal this head keeps: Chrome passes every take.
    • Chrome 133 ran at normal speed, 4× CPU and with animations removed. Firefox for Android 159 ran at normal speed, slow and with animations removed.
    • The scroll back and the rise are new since then. The independent emulator set below took both at d619304.
    • With animations removed and Message focused in the docked toolbar, Chrome's document scrolls at 502 and 522 ms show in no painted frame. There scrollY stays 154.3, the offset stays 0, and the bar sits on the keyboard's top at 1023 ms.
    • A short page's last field ends 9.9 px clear (36.2 before), and the page field and docked toolbar pass in both browsers.
    • In Firefox for Android the pan moves nothing where the page has no scroll range, as before this change. The low scroll area's field ends 142.5 px under the keyboard, the floating panel's 122 px, and the sheet's 111 px. At normal speed the sheet's field ends 2.5 px under it, after Firefox's own 108.5 px pan.
    • Gap 11 records these cases; the scroll range is their fix. Firefox's short page was not recorded.
  • Android emulator (Android 16, Gboard, 420 dpi): an independent emulator set at d619304, the head before the wait for Firefox's fold and the drag fix.
    • It ran Chrome 133 and Firefox for Android 159 at normal speed, 4× or slow, and with animations removed, on the sandbox page.
    • The open passes in all 6 cells: one frame, 9.6 px clear in Chrome and 10.0 px in Firefox, with no frame between.
    • Chrome's close returns the page to its place before the reveal, 3 of 3. It also keeps a person's scroll, 3 of 3 (120 → 195 and 120 → 242).
    • Firefox's close stayed at 76.4 in 2 of 4 takes. At normal speed a drag's scroll was lost once (50.7 → 0 before the hide report).
  • Firefox for Android at normal speed on d619304, every scroll call logged. With the keyboard up, the only Core calls were the reveal's scrollBy and 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.
  • iOS Simulator (iOS 26.2, iPhone 17 Pro, Safari), from the page's own per-frame numbers (the keyboard's top is the visual viewport's height):
    • On a build of de4c4f0, whose end positions this head keeps (10 takes). The rise changes only the path to them.
      • At the end of a full-height scroll area (3 takes), the field is claimed and ends 10.0 px clear in every settled frame. That follows the document's 311 px scroll past the page's end. On a build of 8d0cde8's code (3 takes), Safari's own reveal left it 36.0 px clear.
      • At a short page's end and in a low scroll area, both builds end the field 10.0 and 9.6 px clear. In a floating panel and in a sheet of a set height, they end it 10.0 and 10.0 px clear. So Safari takes no pan.
      • Title ends 9.6 px clear after a 173 px scroll, with the toolbar resting under the keyboard. With Message focused (2 takes), the toolbar's container bottom meets the keyboard's top with no page scroll. It is back at rest after the blur.
    • On a build of 8d0cde8's code (19 takes, none discarded), Title's bottom goes from 540.4 to 367.4 against a keyboard top of 377. The computed reveal is 173.4, carried out as a 173.3 px visual-viewport offset. Quantity (numeric keypad, keyboard top 404): 9.6 px clear after 222 px (computed 222.4). Notes, from a page scrolled to 200: 9.6 px clear after 178 (computed 178.4). The floating and own-translate toolbars 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/core and not exported from the package. No new module or hook. spec:AST-099 Current-state impact names each new export.

  • utils/inputStream.ts gains 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: getDownPresses misses a finger in a native pan, and a touch listener of its own would add a page-wide listener.
  • keyboard/keyboardHeight.ts gains isFingerOnScreen(win) and panVisualViewportTo(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: getTouches lacks the keyboard's hide reset, and no export pans the visual viewport.
  • keyboard/keyboardTarget.ts gains FIELD_CLEARANCE_AT_REPORT (4 CSS px), moved from useMobileKeyboard.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.
  • Changed: watchRevealPan's options and watchPans gain documentScrollIsReveal (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.
  • The scroll back's four stores sit under the shared keys keyboard/keyboard-target/scroll-back-* (version 1), so a swizzled copy and the package share them (spec:AST-110 FR3).

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.

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.
@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 17, 2026 12:17pm UTC

Request Review

@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Nov 3, 2026
@astracat-bot

astracat-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 17, 2026, 12:17 PM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 3, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · f1b8bf3

Storybook · Sandbox · built from this PR's head

Modified components

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.

Component · story Before After Diff
BottomSheet · Text Only (neutral, dark) · inheritance unknown: not found in the 8 newest reports of other pull requests before frame after frame diff frame
BottomSheet · Text Only (neutral, light) · inheritance unknown: not found in the 8 newest reports of other pull requests before frame after frame diff frame

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

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 reveal in keyboardTarget.ts only 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 onClick on TextInput never runs for that tap, which family:input-fields FR10 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]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 height docs still say the browser's reveal is left in place there.
  • On touch screens the tap that focuses a field cancels its touchend and swallows the click, so a caller's onClick on TextInput, TextArea or NumberInput never runs for that tap, which input-fields FR10 does not allow.
  • The field's reveal in keyboardTarget.ts re-implements the sheet's scrollControlIntoSafeArea without 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]

@vjeux vjeux changed the title feat(TextInput, TextArea, NumberInput): the focused field stays above the on-screen keyboard feat(TextInput, TextArea, NumberInput): fields stay above the keyboard Nov 6, 2026
@github-actions github-actions Bot removed needs:design-review Affects visuals — Design should review needs:spec-owner-review Current knowledge records await owner approval labels Nov 6, 2026

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-runtime INV11 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, where main lets 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]

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 7, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) where main leaves 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]

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 in keyboardTarget.ts:1463-1497 follows 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 in keyboardTarget.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 (isInsideKeyboardTarget in placementOf).
  • 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 main leave this change's own lines unchanged — verified.
  • Description: main changed files this change edits or imports, so earlier device runs do not carry — verified (NumberInput.tsx changed).
  • 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.ts store key; keyboardHeight.test.ts).
  • Description: a field focused as it mounts starts its session at attach — verified (keyboardTarget.ts:1193; the hasAutoFocus tests).
  • 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 :550 and :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.tsx files — 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 :468 fails and the row at :466 lacks 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.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 in keyboardTarget.ts:1463-1497 follows 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 in keyboardTarget.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 (isInsideKeyboardTarget in placementOf).
  • 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 main has 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.ts store key; keyboardHeight.test.ts).
  • Description: a field focused as it mounts starts its session at attach — verified (keyboardTarget.ts:1193; the hasAutoFocus tests).
  • 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 :550 and :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.tsx files — 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 :468 fails and the row at :466 lacks 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.

Automated review (maintainer link)

@vjeux

vjeux commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

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.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's spec decision for this revision, and two required changes remain.

  • Spec decision: this revision adds spec:AST-099 Gap 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 at docs/specs/AST-099-mobile-keyboard/spec.md:471 fails in 2 of 14 such takes), and no approval covers this revision's spec:AST-099 and family:input-fields text, 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-spec with 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 into keyboardTarget.ts, which spec:AST-094 DEC-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) and family:input-fields FR13'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 in keyboardTarget.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 (isInsideKeyboardTarget in placementOf).
  • 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 main changes 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.ts store key; keyboardHeight.test.ts).
  • Description: a field focused as it mounts starts its session at attach — verified (keepFieldAboveKeyboard; the hasAutoFocus tests).
  • 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 :550 and :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.tsx files — 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 :469 lacks a Safari take; :359-361 and Gap 2 leave out Gap 21 (required changes); non-blocking wording at :368-369.
  • docs/families/input-fields.md — awaits the spec decision; :464-467 leaves 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.

Automated review (maintainer link)

@vjeux

vjeux commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

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.

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 584d8a3

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-099 Gap 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 in keyboardTarget.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 (isInsideKeyboardTarget in placementOf).
  • 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; the hasAutoFocus tests).
  • 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.tsx files — 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 and apps/sandbox/scripts/next-export-routes.json — clear.

Automated review (maintainer link)

@vjeux

vjeux commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

Fixed in the description: it now says the records commit updates two rows.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-099 and family:input-fields text, 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-spec with 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 in keyboardTarget.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 (isInsideKeyboardTarget in placementOf).
  • 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; the hasAutoFocus tests).
  • 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.tsx files — 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 and apps/sandbox/scripts/next-export-routes.json — clear.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec c3e3df7

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 in keyboardTarget.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 (isInsideKeyboardTarget in placementOf).
  • 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 main with 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; the hasAutoFocus tests).
  • 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.tsx files — 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 and apps/sandbox/scripts/next-export-routes.json — clear.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec f1b8bf3

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 in keyboardTarget.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 (isInsideKeyboardTarget in placementOf).
  • 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 main with 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; the hasAutoFocus tests).
  • 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.tsx files — 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 and apps/sandbox/scripts/next-export-routes.json — clear.

Automated review (maintainer link)

This branch was successfully deployed

1 active deployment
Preview — f1b8bf36 Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants