Repository navigation
Conversation
The keyboard layout guide reads UIKit's keyboard schedule where WebKit on iOS runs. Core's surfaces ride UIKit's measured keyboard spring: the show from Safari's one report, the hide from the blur. Records: AST-099 FR6, FR8, DEC-12.
The timeline helper moves above rideKeyboard's doc comment, and the start rule's comment gives each topic its own sentence. The guide's comment names the profile each focus rule belongs to. A unit case drives focus into a custom element with no shadow root through the guide.
A field in a shadow root or a custom element blurs with its host as the focusout target. The guide judged that blur by the host, which brings up no keyboard, so Done in such a field rode only at Safari's later report. Under UIKit's rules the host's blur now waits as a field's does, and the element that focus settles on decides.
WebKit can keep a composited element's rects from its last style resolution while its computed translate follows the ride. A reveal that ran late in the slide, as after a long task, then judged the field below its resting place and scrolled the body further. The sheet now reads the ride's offset from the content box's own rect, against its layout place, so it moves with the field's rect.
Safari on iOS reports the keyboard's show a little after the keys start, and its inset counts the accessory bar, which rides on the keys from their first frame. A surface moved over its own travel along UIKit's spring floated ahead of the keyboard when it rested above the keyboard's start. In Safari on iOS each surface now rides the inset's edge: it moves only while the edge is at it. The show rides a critically damped spring at 8 pi per second, cut and normalised at 330 ms. It never trails UIKit's keyboard spring, and from 30 to 97% of the rise it leads it by 3 to 18 ms. The hide keeps UIKit's spring from the blur. Chrome on Android is unchanged, and under Reduce Motion nothing travels.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec ce8fa9f |
There was a problem hiding this comment.
Changes requested. The edge ride and the leading spring hold up in the unit tests, and an engineering owner approved the record edits for this head, but the shipped docs and release notes misdescribe the ride and the merge evidence for this head is missing.
BottomSheet.doc.mjs(theheightprop) andChatLayout.doc.mjs(its description, dense description and Chinese description) say the rise rides UIKit's own keyboard motion, or that iOS moves only once the keyboard is reported, while this head rises on Core's own ω = 8π spring and waits for the keyboard's top, as the browser-support guide already says.- The
keyboard-ride-iosandbrowser-support-ios-keyboard-ridechangesets say the surfaces ride UIKit's own keyboard motion, andkeyboard-ride-ios-edgeannounces a fix for a float no release had, since nothing rode in Safari on iOS on this pull request's base; one core and one CLI changeset that describe the ride as it ships would fix both. - The description states no iOS Simulator result for this head, which the keyboard spec makes the merge gate, so please add as text, per surface (ChatLayout's composer and a Tall sheet's field), the Simulator, iOS and Safari versions, this head, the animation speed, and the show and blur-hide results.
- The description has no
## Writing rubric resultssection for the two record edits, which the knowledge-record contract asks for before review.
No public API changes. Once #12044 lands on the base, this pull request reviews as its own commit.
Claims and files checked
Review mode: same-head; reason: none
Claims:
- Core fix changeset: surfaces wait for the keyboard's top, then rise: verified (
rideKeyboard.ts:29-40, the sheet's 52 px wait case). - Core fix changeset: before, a surface resting above the keyboard's start floated ahead of it: false against this pull request's base, where nothing rode in Safari on iOS.
- Core fix changeset: the rise uses a slightly quicker spring and the hide keeps UIKit's motion: verified (
uikitKeyboardSchedule.ts). - Core changesets: Chrome on Android and Firefox for Android are unchanged, and Reduce Motion moves nothing: verified (Chrome, Firefox and Reduce Motion tests).
- Core feature changeset: surfaces ride UIKit's own keyboard motion: false for the rise.
- Core feature changeset: they moved in one step before, the composer now goes down from the blur, and the ride starts after the touch runtime loads: verified.
- CLI changeset (edge): the guide says surfaces wait for the keyboard's top and rise a touch ahead of UIKit's motion: verified (
browser-support.doc.mjs:159). - CLI changeset (ride): the guide says surfaces ride UIKit's keyboard motion: false for the rise; the scroll room and load timing parts are verified.
- Description: the show spring never trails UIKit's and leads it by 3 to 18 ms from 30 to 97% of the rise: verified (recomputed 3.0 to 17.7 ms; per-millisecond unit case).
- Description: the edge mapping lives in one function, so no rider changes its call: verified.
- Description: the ride still plays precomputed keyframes with linear easing on the compositor: verified (animator unchanged).
- Description: WebKit accelerates a points-based linear() easing only with threaded animations on: not checked (engine behavior).
- Description: Reduce Motion is unchanged, only Safari on iOS rides the edge, and the hide keeps UIKit's spring from the blur: verified.
- Description: the changed tests fail on the previous head and the listed mutations fail cases: not rerun.
- Description: the changed tests pass, including the new Gboard own-travel case: verified (16 affected test files, 386 pass, 2 todo).
- Description: build, typecheck, lint, knowledge and sync checks, suite totals and browser specs pass: not rerun.
- Description: the reference pages add 6 to 10 B gzip against the previous head: consistent (whole diff +225 to +266 B).
- Description: device films are pending: no Simulator result is stated (finding).
Files:
.changeset/browser-support-ios-keyboard-edge.md: clear.changeset/browser-support-ios-keyboard-ride.md: finding (changesets).changeset/keyboard-ride-ios-edge.md: finding (changesets).changeset/keyboard-ride-ios.md: finding (changesets)docs/architecture/react-component-runtime.md: clear (owner-approved)docs/specs/AST-099-mobile-keyboard/spec.md: clear (owner-approved); note: drop "as before" in the new decisionpackages/cli/assets/docs/browser-support.doc.mjs: clearpackages/cli/test/__golden__/no-icon-set/docs-topics.json: clear (regenerated digest)packages/core/src/BottomSheet/BottomSheet.doc.mjs: finding (docs)packages/core/src/BottomSheet/BottomSheet.test.tsx: clearpackages/core/src/Chat/ChatLayout.doc.mjs: finding (docs)packages/core/src/Chat/useChatKeyboard.runtime.test.tsx: clearpackages/core/src/Chat/useChatKeyboard.test.tsx: clearpackages/core/src/Chat/useChatKeyboard.ts: clearpackages/core/src/keyboard/README.md: clearpackages/core/src/keyboard/keyboardLayoutGuide.ts: clearpackages/core/src/keyboard/keyboardModel.test.ts: clearpackages/core/src/keyboard/keyboardModel.ts: clearpackages/core/src/keyboard/keyboardTarget.ts: clearpackages/core/src/keyboard/keyboardUIKit.test.ts: clearpackages/core/src/keyboard/rideKeyboard.test.ts: clearpackages/core/src/keyboard/rideKeyboard.ts: clearpackages/core/src/keyboard/uikitKeyboardSchedule.ts: clearpackages/core/src/keyboard/useMobileKeyboard.ts: clearpackages/core/src/utils/touchRuntimeModules.tsx: clear
The component docs and the iOS ride's release notes said the rise rides UIKit's own keyboard motion. It rides Core's leading spring on the inset's edge: a surface waits until the keyboard's top reaches it. BottomSheet's height prop and ChatLayout's descriptions, the Chinese one included, say so. The iOS ride's two changesets describe the ride as it ships, so the edge ride's own changesets go. DEC-12 states its fallback without history.
Safari can date the event that reports the keyboard up to 15 ms after the frame that dispatches it. A ride starts no later than that frame, so a long task right after it cannot hold the ride. But the ride's curve then ran from the frame, ahead of Safari's report, and a surface rose before the keyboard reached it. The ride now holds the element still until the report's own time, and its curve runs from there.
There was a problem hiding this comment.
Changes requested: the newest commit's report-time hold holds up and is tested, but the record edits still have no engineering-owner approval at this head, the new keyboard schedule module still has no approved record, and the merge evidence for this head is missing.
- Regression:
keyboard/uikitKeyboardSchedule.tsis imported from outside its folder byutils/touchRuntimeModules.tsx, and no approved record names it while no approval covers this head's runtime paragraph that names it, so the module needs an owner's API decision. - The description states no iOS Simulator result for this head, which the keyboard spec makes the merge gate, so please add as text, for ChatLayout's composer and for a Tall sheet's field, the Simulator, iOS and Safari versions, this head, the animation speed, and the show and blur-hide results.
Approval also waits on an engineering owner's decision on the keyboard spec's new Safari on iOS decision (DEC-12) and its FR6, FR8 and docked-container edits, which change the current rule that a docked container in Safari on iOS follows the visual-viewport height. An engineering owner records that decision by commenting /approve-spec followed by this head's full commit SHA, which also settles the module finding, and the author may do so as an engineering owner. No public API changes.
Claims and files checked
Review mode: incremental; reason: none
Claims:
- Core changeset: before, the composer and a Tall sheet's field moved up in one step at Safari's report: verified (the base's layout guide has no iOS profile).
- Core changeset: each now waits until the keyboard's top reaches it, then rises on a spring a touch quicker than UIKit's: verified (
rideKeyboard.ts:29-40,uikitKeyboardSchedule.ts:53-54). - Core changeset: the composer now goes down with the keyboard from the blur, as the sheet already did: verified (the ChatLayout blur case).
- Core changeset: the ride starts once the touch support loads, and before that surfaces move in one step: verified (the runtime-load cases).
- Core changeset: Chrome on Android and Firefox for Android are unchanged, and nothing travels under Reduce Motion: verified (the Chrome, Firefox and Reduce Motion cases pass).
- CLI changeset: the browser-support guide describes the wait, the quicker rise, the scroll room and the load timing: verified (
browser-support.doc.mjs:159). - Description: each surface rides the inset's edge with no accessory-bar height subtracted: verified (
rideKeyboard.ts:29-40). - Description: the show spring never trails UIKit's and leads it by 3 to 18 ms from 30 to 97% of the rise: verified (recomputed 3.0 to 17.7 ms; the per-millisecond unit case).
- Description: the mapping lives in
rideKeyboard, so no rider changes: verified. - Description: a report dated after its frame holds the ride still until the report's time: verified (
rideKeyboard.ts:104-109,:131-132; the new case). - Description: the ride plays precomputed linear keyframes on the compositor: verified (the animator is unchanged); WebKit's acceleration of a points-based
linear()easing: not checked (engine behavior). - Description: Reduce Motion is unchanged: verified.
- Description: Safari reports the keys late and its inset counts the accessory bar: not checked (engine behavior).
- Description: the hide keeps UIKit's spring from the blur, and only Safari on iOS rides the edge: verified (
followsEdgeis set only on the iOS curves). - Description: the record edits are proposed and pending owner review: verified; no approval covers this head yet.
- Description: the new case fails on the previous head's
rideKeyboard.tsand passes here: verified (1 of 12 cases fails there; all pass here). - Description: the changed tests fail on the parent pull request's sources, and the listed mutants fail cases: not rerun.
- Description: the changed tests pass, including the own-travel case on Gboard's slide: verified (16 affected test files: 387 pass, 2 todo).
- Description: the docs and changesets describe the ride as it ships: verified.
- Description: build, typecheck, lint, the full suites and the browser specs pass: not rerun; Core and the seven themes build, and the knowledge and sync checks pass.
- Description: the reference pages add 6 to 9 B gzip against the parent pull request and nothing against the previous head: not rerun against those heads; against this pull request's base they add 226 to 266 B.
- Description: no new public API or default, and no internal context in public text: verified (empty API delta; no residue in added lines); the Safari ride itself is disclosed, not hidden.
- Description: writing-rubric results R1 to R7: verified against the added record lines.
- Description: the Simulator take at this head is pending: confirmed (finding above).
Files:
.changeset/browser-support-ios-keyboard-ride.md: clear.changeset/keyboard-ride-ios.md: cleardocs/architecture/react-component-runtime.md: names the new module; needs an owner's approval at this headdocs/specs/AST-099-mobile-keyboard/spec.md: proposed decision and edits; need an owner's approval at this headpackages/cli/assets/docs/browser-support.doc.mjs: clearpackages/cli/test/__golden__/no-icon-set/docs-topics.json: clear (regenerated digest)packages/core/src/BottomSheet/BottomSheet.doc.mjs: clearpackages/core/src/BottomSheet/BottomSheet.test.tsx: clearpackages/core/src/Chat/ChatLayout.doc.mjs: clearpackages/core/src/Chat/useChatKeyboard.runtime.test.tsx: clearpackages/core/src/Chat/useChatKeyboard.test.tsx: clearpackages/core/src/Chat/useChatKeyboard.ts: clearpackages/core/src/keyboard/README.md: non-blocking note (lines 317-319)packages/core/src/keyboard/keyboardLayoutGuide.ts: clearpackages/core/src/keyboard/keyboardModel.test.ts: clearpackages/core/src/keyboard/keyboardModel.ts: clearpackages/core/src/keyboard/keyboardTarget.ts: clearpackages/core/src/keyboard/keyboardUIKit.test.ts: clearpackages/core/src/keyboard/rideKeyboard.test.ts: clearpackages/core/src/keyboard/rideKeyboard.ts: clearpackages/core/src/keyboard/uikitKeyboardSchedule.ts: finding (no record names the module)packages/core/src/keyboard/useMobileKeyboard.ts: clearpackages/core/src/utils/touchRuntimeModules.tsx: finding (imports the module from outside its folder)
This brings in main at 59fd415 through the base branch's head, fa845eb, which merged it. Five files are resolved by hand: - AST-099's gap list: main's, with this branch's Gap 12 wording. - BottomSheet's height description: main's reveal sentence, with this branch's sentence on the ride in Safari on iOS. - The keyboard README's file table: this branch's table, with main's text for the keyboardTarget.ts row. - keyboardTarget.ts: the imports of both sides. - The runtime record's touch-runtime paragraph: the base's sentence on the fields' reveal, then this branch's sentences on ChatLayout and Safari on iOS's keyboard schedule.
In Safari on iOS the sheet's content rides Core's leading spring up and UIKit's keyboard spring down, as the README's earlier section says.
|
/approve-spec bec2256 |
There was a problem hiding this comment.
Changes requested: an engineering owner has now approved the record edits for this head, which also settles the keyboard-schedule module, but one docked-bar defect and the merge evidence remain.
- Miss: under Safari on iOS's new keyboard profile,
rideWithKeyboardinkeyboardTarget.tstakes Chrome's report clearance and pan put-back, so a Core field in an app's own fixed bottom bar jumps about 294 of 300 px at Safari's report instead of riding the keyboard as the approved DEC-12 and the runtime record's keyboard rule require; gate both on the Chrome profile, as the sheet already does, and add a Safari docked-bar test. - Please state the iOS Simulator result for this head in the description as text (Simulator, iOS and Safari versions, this head, animation speed, and the show and blur-hide result for ChatLayout's composer and a Tall sheet), which the keyboard spec makes the merge gate.
No public API changes.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- Core changeset: the composer and a Tall sheet's field now ride the keyboard in Safari on iOS: verified for those two surfaces (the iOS cases in the sheet and ChatLayout tests).
- Core changeset: before, they moved up in one step at Safari's report: verified (the base has no iOS keyboard profile).
- Core changeset: each waits for the keyboard's top, then rises on a spring a touch quicker than UIKit's: verified (
rideKeyboard.tsedge mapping,uikitKeyboardSchedule.tsshow spring). - Core changeset: the composer now goes down from the blur, as the sheet already did: verified (ChatLayout's blur case).
- Core changeset: the ride starts once the touch support loads; before that, one step: verified (the runtime-load cases).
- Core changeset: Chrome on Android and Firefox for Android are unchanged, and nothing travels under Reduce Motion: verified (Chrome, Firefox and Reduce Motion cases pass).
- CLI changeset: the browser-support guide describes the wait, the quicker rise, the scroll room and the load timing: verified (
browser-support.doc.mjs). - Description: each surface rides the inset's edge with no accessory-bar height subtracted: verified for the composer and the sheet; an app's docked bar does not (finding above).
- Description: the show spring never trails UIKit's and leads it by 3 to 18 ms from 30 to 97% of the rise: verified (recomputed; the per-millisecond unit case passes).
- Description: the mapping lives in
rideKeyboard, so no rider changes for it: verified. - Description: a report dated after its frame holds the ride still until the report's time: verified (
rideKeyboard.tsand its new case). - Description: the ride plays precomputed linear keyframes on the compositor: verified (the animator is unchanged); WebKit's acceleration of points-based easing: not checked (engine behavior).
- Description: Safari reports the keys late and its inset counts the accessory bar: not checked (engine behavior).
- Description: the hide keeps UIKit's spring from the blur, and only Safari on iOS rides the edge: verified.
- Description: the record edits are proposed and pending owner review: an engineering owner has since approved them for this head.
- Description: the changed tests fail on the parent pull request's sources, and the listed mutants fail cases: not rerun.
- Description: the own-travel case on Gboard's slide passes: verified.
- Description: the docs and changesets describe the ride as it ships: verified.
- Description: build, typecheck, lint, the full suites and the browser specs pass: not rerun; Core and the seven themes build, the affected suites pass, and the knowledge and sync checks pass.
- Description: the reference pages add 287 to 304 B gzip: verified (290 to 303 B measured base against head).
- Description: no new public API or default, and no internal context in public text: verified.
- Description: writing-rubric results R1 to R7: verified against the added record lines.
- Description: the Simulator take at this head is pending: confirmed (finding above).
Files:
.changeset/browser-support-ios-keyboard-ride.md: clear.changeset/keyboard-ride-ios.md: cleardocs/architecture/react-component-runtime.md: clear (owner-approved at this head)docs/specs/AST-099-mobile-keyboard/spec.md: clear (owner-approved at this head)packages/cli/assets/docs/browser-support.doc.mjs: clearpackages/cli/test/__golden__/no-icon-set/docs-topics.json: clear (regenerated digest)packages/core/src/BottomSheet/BottomSheet.doc.mjs: clearpackages/core/src/BottomSheet/BottomSheet.test.tsx: clearpackages/core/src/Chat/ChatLayout.doc.mjs: clearpackages/core/src/Chat/useChatKeyboard.runtime.test.tsx: clearpackages/core/src/Chat/useChatKeyboard.test.tsx: clearpackages/core/src/Chat/useChatKeyboard.ts: clearpackages/core/src/keyboard/README.md: clearpackages/core/src/keyboard/keyboardLayoutGuide.ts: clearpackages/core/src/keyboard/keyboardModel.test.ts: clearpackages/core/src/keyboard/keyboardModel.ts: clearpackages/core/src/keyboard/keyboardTarget.ts: finding (docked-bar ride under Safari's profile)packages/core/src/keyboard/keyboardUIKit.test.ts: clearpackages/core/src/keyboard/rideKeyboard.test.ts: clearpackages/core/src/keyboard/rideKeyboard.ts: clearpackages/core/src/keyboard/uikitKeyboardSchedule.ts: clearpackages/core/src/keyboard/useMobileKeyboard.ts: clearpackages/core/src/utils/touchRuntimeModules.tsx: clear
Safari on iOS's keyboard profile took two of Chrome's paths in the docked-bar ride: the field set just above the keyboard at the show's report, and a document scroll read as the browser's reveal. So a Core field in an app's own fixed bar jumped at Safari's report. Both paths are now Chrome's only, as in the sheet's ride.
|
/approve-spec 81da9d7 |
There was a problem hiding this comment.
Changes requested: the record edits are owner-approved at this head and the docked-bar fix holds, but the stated Simulator hides miss the new FR8 Safari row, and this head has no Simulator result yet.
- Miss: the description's Simulator take reports hides leaving up to 73 ms (2–3 drawn frames) behind the bar in 14 of 36 takes, which the new FR8 Safari verification row in
spec:AST-099counts as a failure ("falls more than a frame behind the keyboard"), so please retime the hide so every take stays within a frame, or have an engineering owner amend that row and DEC-12 to allow the trail and approve the new head. - Please state the Simulator take at this head in the description (device, iOS and Safari versions, animation speed, and the result for ChatLayout's composer, a Tall sheet and an app's docked bar), because
spec:AST-099DEC-3 and DEC-12 make Simulator evidence a merge gate and the latest commit's change tokeyboardTarget.tskeeps the earlier take from carrying over (spec:AST-094DEC-31).
The two new Safari docked-bar cases fail on the previous revision's keyboardTarget.ts and pass here, and the affected keyboard, sheet, chat and layer suites pass.
Claims and files checked
Review mode: same-head; reason: none
- Changed rules (0): none.
- Claims, verified: the show rides a critically damped 8π s⁻¹ spring cut and normalised at 330 ms that never trails UIKit's spring and leads it by 3–18 ms from 30 to 97% of the rise (
uikitKeyboardSchedule.ts:53-59,keyboardUIKit.test.ts). - Claims, verified: each surface rides the inset's edge and rests once the edge has fallen its travel, with the mapping in
rideKeyboard(rideKeyboard.ts:29-40). - Claims, verified: an app's docked bar rides the whole show in Safari, and Chrome's report clearance and reveal put-back stay Chrome's (
keyboardTarget.ts:960-1031); the two new cases fail on the previous revision's file and all 9 pass here. - Claims, verified: a report dated after its frame holds the ride still until its time (
rideKeyboard.ts:104-109); the ride plays precomputed linear keyframes (motion/animator.ts:2118); the hide keeps UIKit's spring from the blur; only Safari rides the edge; Reduce Motion is unchanged. - Claims, false: the expected behavior that a surface rides within a frame of the keyboard does not hold for hides in the stated Simulator take (up to 73 ms behind in 14 of 36 takes; the first finding above).
- Claims, true as stated: Simulator results are given for an earlier revision, and this revision's spot check is pending (the second finding above).
- Claims, verified: both changesets: before, the composer and the sheet's field moved in one step at Safari's report; now they wait for the keyboard's top and rise on a slightly quicker spring, the composer comes down from the blur, the ride starts once touch support loads, and Chrome and Firefox are unchanged.
- Claims, verified: build-time checks pass (Core typecheck, lint on the changed files, knowledge and sync checks), and the first-load growth of 286–303 B gzip on the four reference pages matches an earlier measurement.
- Files, clear:
keyboardTarget.ts,uikitKeyboardSchedule.ts,keyboardLayoutGuide.ts,keyboardModel.ts,rideKeyboard.ts,useMobileKeyboard.ts,useChatKeyboard.ts,touchRuntimeModules.tsx. - Files, clear:
keyboardTarget.guide.test.ts,keyboardUIKit.test.ts,keyboardModel.test.ts,rideKeyboard.test.ts,BottomSheet.test.tsx,useChatKeyboard.test.tsx,useChatKeyboard.runtime.test.tsx. - Files, clear: the React component runtime record, the keyboard README, both changesets, the browser-support guide, the BottomSheet and ChatLayout docs, and the CLI docs golden; the mobile-keyboard spec is clear apart from its FR8 Safari row, which the first finding measures the hide against.
The layout guide reads Safari on iOS's keyboard schedule only once a keyboard rider registers it. ChatLayout, a Tall sheet and a host's docked target do. A TextInput, TextArea or NumberInput in an app's docked bar did not. So on a page with no other rider, the bar moved at Safari's report and waited for its hide report. The field now registers the schedule too. The changesets and the browser-support guide name the docked bar.
A Tall sheet's reveal read a field resting on the band's edge a rounding error below it, from the ride's offset in the content's rect, and scrolled the body by that error. A distance within a pixel is the rects' rounding, as in a field's own reveal, so now nothing moves.
|
/approve-spec 1dfd1b1 |
There was a problem hiding this comment.
Changes requested: the record edits are owner-approved at this head, and the docked-bar registration and sheet-reveal fix hold up in tests, but the stated Simulator hides still miss the one-frame limit, and no Simulator result is stated for this head.
- The description's Simulator take reports hides leaving up to 73 ms (2–3 drawn frames) behind the keyboard in 14 of 36 takes, which the new FR8 Safari verification row in
spec:AST-099counts as a failure ("falls more than a frame behind the keyboard"), so please retime the hide so every take stays within a frame, or have an engineering owner amend that row and DEC-12 to allow the trail and approve the new head. - Please state the Simulator take at this head in the description (device, iOS and Safari versions, animation speed, and the show and blur-hide result against the keyboard for ChatLayout's composer, a Tall sheet and an app's docked bar with a TextInput), because
spec:AST-099DEC-3 and DEC-12 make Simulator evidence a merge gate and the last two commits' changes tokeyboardTarget.tsanduseMobileKeyboard.tskeep the earlier takes from carrying over (spec:AST-094DEC-31).
The code is unchanged since the last review, and the description and the spec approval for this head leave both points open.
Claims and files checked
Review mode: same-head; reason: none
- Changed rules (0): none.
- Claims, verified: each surface rides the inset's edge, holding still until the edge reaches it and resting once it has fallen its travel (
rideKeyboard.tsedge mapping). - Claims, verified: the show rides a critically damped 8π s⁻¹ spring cut and normalised at 330 ms that never trails UIKit's spring and leads it by 3–18 ms from 30 to 97% of the rise (
uikitKeyboardSchedule.ts,keyboardUIKit.test.ts). - Claims, verified: an app's docked bar with a Core field rides too, and Chrome's report clearance and reveal put-back stay Chrome's (
keyboardTarget.ts, the Chrome-profile gating in the ride). - Claims, verified: a sheet's reveal skips sub-pixel distances, and the pinned case fails on the previous commit's file; a ride dated before its report holds still until the report; Reduce Motion is unchanged; only Safari on iOS rides the edge; the hide keeps UIKit's spring from the blur.
- Claims, false: the expected behavior that a surface rides within a frame of the keyboard does not hold for hides in the stated Simulator take (the first finding above).
- Claims, true as stated: Simulator results are given for earlier revisions, and the docked-bar take names no revision (the second finding above).
- Claims, verified: both changesets and the browser-support guide: the composer, a Tall sheet's field and a docked bar's field wait for the keyboard's top and rise on a slightly quicker spring; before, they moved in one step at Safari's report; the composer and the docked bar come down from the blur.
- Claims, verified: Core's typecheck, lint on the changed files, and the keyboard, sheet, chat, text-field and layer suites pass; no public API changes. Not re-run: the full test projects, browser interaction and accessibility specs, page-size measurement and mutants.
- Files, clear:
uikitKeyboardSchedule.ts,keyboardLayoutGuide.ts,keyboardModel.ts,rideKeyboard.ts,keyboardTarget.ts,useMobileKeyboard.ts,useChatKeyboard.ts,touchRuntimeModules.tsx, their tests,TextInput.keyboard.test.tsx,BottomSheet.test.tsx, the React component runtime record, the keyboard README, the BottomSheet and ChatLayout docs, the browser-support guide, both changesets and the CLI docs golden. - Files, finding: the mobile-keyboard spec is clear apart from its FR8 Safari row, which the first finding measures the hide against.
This brings in the base branch's head, 7f30a61, which merges main at 38ea127. Two files are resolved by hand: - AST-099's browser-evidence line: this branch's "and FR8" for the iOS claims, with main's wording that admits a real Pixel as Android evidence. Its verification table: main's rows, which main now formats, with this branch's row for Safari on iOS. - The runtime record's touch-runtime paragraph: this branch's sentences on ChatLayout and Safari on iOS's keyboard schedule, with the base's sentences on a chunk that fails to load and on the touch parts a page loads.
|
/approve-spec 57952f1 |
There was a problem hiding this comment.
Changes requested: an engineering owner approved the record edits at this head, but the stated hides still miss the one-frame limit and no Simulator result is stated for this head.
- The description's takes put hides 0–2 drawn frames (Simulator) and 0–3 page frames (iPhone 14) behind the keyboard, which the FR8 Safari verification row in
spec:AST-099counts as a failure ("falls more than a frame behind the keyboard") and which contradicts the description's "within a frame" claim, so please retime the hide so every take stays within a frame, or have the row and DEC-12 amended to state the allowed trail and approved for the new head. - Please state the Simulator take at this head in the description (device, iOS and Safari versions, animation speed, and the show and blur-hide result against the keyboard for ChatLayout's composer, a Tall sheet and an app's docked bar with a TextInput), because
spec:AST-099DEC-3 makes Simulator evidence a merge gate and this head's merge changesuseMobileKeyboard.ts, so the earlier takes do not carry over underspec:AST-094DEC-31.
The docked-bar registration, the report-time hold and the sheet's sub-pixel reveal fix hold up in tests, and an approved record now names the schedule module.
Claims and files checked
Review mode: same-head; reason: none
- Claims, verified: each surface rides the inset's edge, holding still until the edge reaches it and resting once it has fallen its travel (the edge mapping in
rideKeyboard.tsand its tests). - Claims, verified: the show rides a critically damped 8π s⁻¹ spring cut and normalised at 330 ms that never trails UIKit's keyboard spring and leads it by 3–18 ms from 30 to 97% of the rise (
uikitKeyboardSchedule.ts,keyboardUIKit.test.ts). - Claims, verified: an app's docked bar with a Core field rides too, and the two Safari docked-bar cases fail without the field's schedule registration (
keyboardTarget.ts,TextInput.keyboard.test.tsx). - Claims, verified: a sheet's reveal skips sub-pixel distances, and the pinned sheet case fails with that tolerance reverted; a ride dated before its report holds still until the report; Reduce Motion is unchanged; only Safari on iOS rides the edge, and Chrome's report clearance and pan watch stay Chrome's; the hide keeps UIKit's spring from the blur.
- Claims, false: the expected behavior that a surface rides within a frame of the keyboard does not hold for hides in the stated takes (the first point above).
- Claims, true as stated: the Simulator and iPhone results are given for the previous head (the second point above).
- Claims, verified: both changesets and the browser-support guide (the composer, a Tall sheet's field and a docked bar's field wait for the keyboard's top and rise on a slightly quicker spring; before, they moved in one step at Safari's report; the composer and the docked bar come down from the blur; the ride starts once the touch support loads).
- Claims, verified: no public API changes; Core's typecheck, lint on the changed files and the keyboard, sheet, chat, text-field and layer suites pass at this head. Not re-run: the full test projects, the browser interaction and accessibility specs, the page-size measurement and the mutants.
- Files, clear:
uikitKeyboardSchedule.ts,keyboardLayoutGuide.ts,keyboardModel.ts,rideKeyboard.ts,keyboardTarget.ts,useMobileKeyboard.ts,useChatKeyboard.ts,touchRuntimeModules.tsx, their tests,TextInput.keyboard.test.tsx,BottomSheet.test.tsx, the React component runtime record, the keyboard README, the BottomSheet and ChatLayout docs, the browser-support guide, both changesets and the CLI docs golden. - Files, finding: the mobile-keyboard spec is clear apart from its FR8 Safari row, which the first point measures the hides against.
| | FR2–FR5 | Release gate: a physical iPhone in a top-level document (DEC-3) | iPhone Safari with the toolbar expanded and collapsed; iPhone home-screen app; the phone's refresh rate | The page lurches, the field ends under the keyboard, or the surface does not follow the keyboard | | ||
| | FR3–FR4 | ChatLayout's keyboard tests in jsdom and its interaction proofs in Chromium and WebKit | the fixed and the sticky dock with the keyboard shown and hidden; the message area's end padding; a transcript at its newest message; a page pinch-zoomed with the keyboard up; focus by tap, Tab, `focus()` and Done, under a finger and under a mouse | The dock left under the keyboard or lifted with none; the newest message unable to scroll above the composer; a transcript at its newest message left behind; the page panned to the composer's text under a finger; focus left in the text after Done, or the composer group focusable outside Done's park | | ||
| | FR8 | ChatLayout's interaction proofs in Chromium with Chrome's keyboard report | the dock riding Gboard's slide up from the report and down from the blur; reduced motion on | The dock lagging Gboard's slide, laying out or painting per frame, or jumping at the hand-back; the dock travelling under reduced motion instead of DR2's cross-fade | | ||
| | FR8 | Safari on iOS in the Simulator, every drawn frame read; release gate: a physical iPhone (DEC-3) | ChatLayout's composer and a Tall sheet: keyboard shown, and hidden by a blur; a main thread blocked from the frame after Safari's report; reduced motion on; focus moving into a frame, a custom element or an open shadow root | A surface jumps at Safari's report, falls more than a frame behind the keyboard, or waits for the hide report instead of riding from the blur. Timing runs from Safari's report, so a ride that starts after its frame fails. A field inside a frame rides its hide from the report (FR7). | |
There was a problem hiding this comment.
The description's takes put hides 0–2 drawn frames (Simulator) and 0–3 page frames (iPhone 14) behind the keyboard, and an earlier take had hides up to 73 ms (2–3 drawn frames) behind the bar in 14 of 36 takes. This row counts a surface that "falls more than a frame behind the keyboard" as a failure, and DEC-12 makes the bar's top the edge each surface rides. Either the hide is retimed so every take stays within a frame, or this row and DEC-12 state the allowed trail and an engineering owner approves the new head.
Stacked on #12044.
User impact
With #12044, ChatLayout's composer and a Tall BottomSheet's field ride Safari on iOS's keyboard from its report. A surface above the keyboard's start moves at once and floats ahead of it. Safari reports the keys late; its inset counts the accessory bar.
Problem and solution fit
Expected behavior and authority
spec:AST-099FR8: a surface rides within a frame of the keyboard, never under it. No script runs per frame; layout commits once at rest.Record edits:
spec:AST-099DEC-12 names both springs and the edge ride; FR8 and two summaries say "the keyboard".architecture:react-component-runtimelists what the keyboard schedule holds.Smallest restoration
Evidence
Scope
Components: keyboard module, ChatLayout, BottomSheet
Testing
At 57952f1, which merges #11450's head 7f30a61 (with main at 38ea127), on #12044 at b0b18a8:
pnpm build,pnpm typecheck,pnpm lint(0 errors),pnpm check:knowledge,pnpm check:sync, changesets,check:repoand the comment-provenance baseline check: pass. Changeset coverage names core and the CLI. CI's Prettier check of the changed files lists none.vitest run --project ui --maxWorkers=8: 1,141 files; 27,429 tests pass and 2 are pending.vitest run --project node --maxWorkers=8: 1,927 files pass and 14 are skipped; 30,248 tests pass and 3 fail as expected. The theme-edit picture tests need a Chrome onPATH, as CI runners have one.keyboardModel.ts,uikitKeyboardSchedule.tsandrideKeyboard.ts, 12 of the 243 cases in the five changed test files fail. At this head 241 pass and 2 are todo.rideKeyboard.ts, the new case for a ride that starts before the report fails. It passes here.keyboardTarget.ts, the two new Safari docked-bar cases fail. All 9 docked-bar cases pass here.keyboardTarget.ts, the two new TextInput cases fail: the bar jumps at the report and holds after the blur. They use the real modules, with only Safari's-webkit-touch-calloutstubbed.useMobileKeyboard.tsreverted at this head, the pinned sheet case (f = 231.0146499375) fails: the reveal scrolls the body to 248.00000000000006. All 168 sheet cases pass here. This fixes feat(keyboard): ride UIKit's keyboard motion in Safari on iOS #12044's code.pnpm size:pagesagainst 7f30a61: docs, form, menu and table add 269–329 B gzip, feat(keyboard): ride UIKit's keyboard motion in Safari on iOS #12044's ride included. The module graphs are unchanged.experimental-isolation.test.mjspasses unchanged.Writing rubric results
Rejected:line.