Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report
Generated by PR Enrichment workflow | View current CI run |
df32eda to
9c79c03
Compare
9c79c03 to
db9aa9d
Compare
db9aa9d to
9fc73e7
Compare
|
/approve-spec 9fc73e7 |
There was a problem hiding this comment.
Changes requested. An engineering owner has approved the iOS keyboard ride's record changes at this head, so the direction is settled; what remains are fixes in the code, the record and the evidence.
keyboard/uikitKeyboardSchedule.tsis a new internal module thatutils/touchRuntimeModules.tsximports from outside the keyboard folder, and no current record names it: name it in a record with its usage, why it is needed and why existing modules are not enough, for an owner API decision.uikitKeyboardSchedule.tsre-implementssolveSpring(motion/spring.ts), copiesmayKeepKeyboardfromuseMobileKeyboard.ts:153-156and copiesisElementfromutils/nodeType.ts, so a fix to one copy misses the other surface: reuse the shared code, passing it in the waydeepActiveElementalready is.- AST-099 FR9's Docked containers clause still says docked containers in Safari on iOS follow the visual-viewport height, which contradicts the approved FR8 and
keyboardTarget.ts:698: amend FR9 to match. - The description says focus into a frame, custom element or open shadow root predicts no hide "as FR3 already says", but FR3 names none of these and covers only the sheet: reword it as an extension of FR3's condition.
- The Simulator results are stated at an earlier commit on the base pull request's earlier head, and the code and base have changed since, so they no longer count for this head: state a Simulator take at this head in the description.
Two smaller points: a Tall sheet already open when the touch runtime loads does not start riding until it re-attaches (useMobileKeyboard.ts:1065 leaves out hasTouchRuntime), and rideKeyboard.ts:39 cites a file that does not exist.
Claims and files checked
- Review mode: same-head; reason: none
- Claims:
- Core changeset: the composer and a Tall sheet ride UIKit's keyboard motion from Safari's report: verified (ChatLayout and BottomSheet iOS tests, red on the base).
- Core changeset: the composer goes down from the blur: verified (ChatLayout iOS blur test).
- Core changeset: the ride starts once touch support has loaded, one step before: partly; a sheet already attached keeps the one-step show (
useMobileKeyboard.ts:1065). - Core changeset: Chrome and Firefox for Android unchanged: verified for behavior (Chrome and Firefox cases pass); ChatLayout pages there now also load the touch runtime chunk.
- Core changeset: nothing travels under Reduce Motion: verified (cross-fade path unchanged; sheet reduced-motion case).
- CLI changeset: the guide describes the iOS ride and the scroll room stays until Safari's report: verified (sheet test keeps the inset through the ride).
- Profile selected by
-webkit-touch-callout, never the user agent: verified (uikitKeyboardSchedule.ts:71-77). - Show from the report, hide from the blur, confirmed by the report: verified (
keyboardUIKit.test.ts). - The curve is a critically damped spring cut at 383.3 ms: verified (
motion/uikit/springs.ts,motion/uikit/timing.ts). - The schedule loads with the touch runtime and its one value import is the spring table: verified (
keyboardTarget.ts, import test). - ChatLayout loads the touch runtime only under a coarse pointer: verified (
useChatKeyboard.ts:332-338, runtime test). - The dock, a Tall sheet and a docked container ride: verified in code; no iOS test covers a docked container.
- Frame, custom element and shadow-root focus predicts no hide as FR3 already says: false (FR3 names none of these).
- No public API change: verified (API surface comparison: no rows).
- The new tests fail on the base: verified in substance (6 failing tests and 3 suites that cannot load); the exact count was not reproduced.
- Without the riders' registration, 5 tests fail: not checked.
- Simulator results: stated at an earlier commit; they do not carry to this head.
- First-load size table: reported; not rebuilt.
- Files:
.changeset/browser-support-ios-keyboard-ride.md: clear.changeset/keyboard-ride-ios.md: partly broad (sheet already open)docs/architecture/react-component-runtime.md: clear (owner-approved)docs/specs/AST-099-mobile-keyboard/spec.md: FR9 contradicts FR8packages/cli/assets/docs/browser-support.doc.mjs: clearpackages/cli/test/__golden__/no-icon-set/docs-topics.json: clear (regenerated hash)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: stale doc comment at 201-203 (non-blocking)packages/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: stale file reference at 39 (non-blocking)packages/core/src/keyboard/uikitKeyboardSchedule.ts: unrecorded shared module; three copiespackages/core/src/keyboard/useMobileKeyboard.ts: sheet attachment key (non-blocking)packages/core/src/utils/touchRuntimeModules.tsx: imports the unrecorded module
9fc73e7 to
78baaf4
Compare
|
Thanks. Fixed in 78baaf4, with the inline points answered on their threads. The description now treats the frame and shadow-root rule as an extension of FR3's iOS blur rule. It states a Simulator take at this code. A Tall sheet already open when the touch runtime loads now re-attaches and rides. |
|
/approve-spec 78baaf4 |
There was a problem hiding this comment.
Changes requested: an engineering owner approved the iOS keyboard ride's record changes at this head and the code has no blocking finding, so one evidence fix in the description remains.
- No Simulator take is stated at this head: the stated takes ran at an earlier commit, and this head also changes
packages/core/src/keyboard/README.md, which AST-094 DEC-31's evidence-carry rule does not cover, so please state a take at this head (simulator, browser, head, animation scale and result) that covers every case of AST-099's FR8 Simulator row, including the blocked main thread and focus moving into a frame, a custom element and an open shadow root.
The earlier note about #11544 in the overlap list is withdrawn: its branch stacks on #11540 and carries those AST-099 and test changes. Smaller points, not blocking: AST-099 Gap 12 still says Firefox's sheet takes Safari on iOS's path, the guide's doc comment in keyboardLayoutGuide.ts still says only the VirtualKeyboard API rides it, and the keyboard README says the riders pass the deep active element. Any new commit needs a new /approve-spec on its head.
Claims and files checked
Review mode: same-head; reason: none
- Claims:
- Core release note: the composer and a Tall sheet's field ride UIKit's keyboard motion from Safari's report: verified (ChatLayout and sheet iOS tests, red on the base).
- Core release note: the composer goes down from the blur: verified (ChatLayout blur test).
- Core release note: the ride starts once touch support loads, with one step before: verified (runtime test; the sheet that opens before the load).
- Core release note: Chrome and Firefox for Android are unchanged: verified (their suites pass at the head).
- Core release note: nothing travels under Reduce Motion: verified (the animator's default cross-fade path is unchanged).
- CLI release note: the guide describes the iOS ride, and the scroll room stays until Safari's report: verified (sheet test keeps the room through the ride; the docs snapshot matches).
- A capability, never the user agent, selects the profile: verified (
uikitKeyboardSchedule.ts:44-52). - The show rides from the one report; the hide rides from the blur and the later report confirms it: verified (
keyboardUIKit.test.ts,keyboardModel.test.ts). - The curve is the measured, critically damped spring, cut at 383.3 ms: verified (
motion/uikit/springs.ts:466-470, whose damping is twice the square root of stiffness times mass;motion/uikit/timing.ts:173). - The schedule loads with the touch runtime, and its value imports are the spring table and the solver the animator already holds: verified (
touchRuntimeModules.tsx:18, import test,motion/animator.ts:194). - ChatLayout schedules the runtime only under a coarse pointer: verified (
useChatKeyboard.ts:332-335, runtime test). - The dock, a Tall sheet and a docked container ride: verified in code; no iOS test covers a docked container.
- Focus into a frame, a custom element or an open shadow root predicts no hide: verified for a frame and an open shadow root (tests); a custom element by code only.
- A Tall sheet already open when the runtime loads starts riding: verified (
useMobileKeyboard.ts:1054, sheet test). - In a page that cannot scroll, the ride inherits a short keyboard height: stated as a known limit; not checked.
- The mid-show second report stays open, with two pending tests: verified (two
it.todocases). - No public API, prop or CSS custom property changes: verified (no package export reaches the keyboard module).
- The new tests fail on the base: verified in substance (8 tests fail and 3 suites cannot load); the exact counts were not reproduced.
- The Simulator takes ran at an earlier commit, and this head adds only record and README text and one test: taken as stated, since that commit is not on the branch; the README change stops the take from carrying.
- Without the riders' registration 5 tests fail, and without the sheet's re-attach one fails: not checked.
- The schedule's one importer outside tests is the runtime module: verified (search).
- Build, typecheck, lint and knowledge checks pass: verified for the Core typecheck, lint of the changed files (no errors) and the knowledge check; the full build and full suites were not rerun.
- First-load size tables: reported; not rebuilt.
- Maintainers accept the chat page's first-load cost: partly; the owner approved the record sentence that ChatLayout loads the runtime, with no statement on the bytes.
- No open pull request adds DEC-12, and another takes DEC-7 to DEC-11: verified for the listed overlaps.
- The overlap list: verified for every line, #11544 through its stacked branch.
- Files:
.changeset/browser-support-ios-keyboard-ride.md: clear.changeset/keyboard-ride-ios.md: cleardocs/architecture/react-component-runtime.md: clear (owner-approved)docs/specs/AST-099-mobile-keyboard/spec.md: clear (owner-approved); FR8 Simulator row has no take at this head; Gap 12 stale (non-blocking)packages/cli/assets/docs/browser-support.doc.mjs: clearpackages/cli/test/__golden__/no-icon-set/docs-topics.json: clear (regenerated hash)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: stale input list at 278 (non-blocking)packages/core/src/keyboard/keyboardLayoutGuide.ts: stale doc comment at 200-202 and 211-213, a long sentence at 90-92 (non-blocking)packages/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: long comment line at 39 (non-blocking)packages/core/src/keyboard/uikitKeyboardSchedule.ts: clearpackages/core/src/keyboard/useMobileKeyboard.ts: clearpackages/core/src/utils/touchRuntimeModules.tsx: clear
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.
78baaf4 to
f7d7d0a
Compare
|
The review's smaller points are fixed in f7d7d0a. AST-099 Gap 12 now says Firefox's sheet follows the visual viewport's reports, since Firefox has no keyboard schedule. The guide's doc comment names UIKit's schedule beside the VirtualKeyboard API. |
|
/approve-spec f7d7d0a |
There was a problem hiding this comment.
Changes requested: the record's own merge gate has no evidence at this head. The code, the records and the docs check out, and an engineering owner has approved the record changes at this head.
spec:AST-099DEC-3 and the new FR8 Safari row make a Simulator take the merge gate, but the description states its takes at an earlier commit and says takes at this head are pending, and the row's "focus moving into a frame, a custom element or an open shadow root" case has no stated take at any head; please state in the description, in text, a take at this head that covers every case of the row (simulator, browser, head, animation scale and result).
Smaller points, none blocking: the new timelineTime helper in rideKeyboard.ts sits between rideKeyboard's JSDoc and the function; the layout guide's doc comment says focus into a frame, shadow host or custom element "predicts no hide, and the report decides", which holds only under the UIKit profile; no unit case drives a light-DOM custom element through the guide; and the description's overlap list names #11544 under AST-099, though #11544 changes the react-component-runtime record and touchRuntimeModules.tsx instead.
Claims and files checked
Review mode: same-head; reason: none
Claims
- Both changesets: the composer and a Tall sheet's field ride UIKit's keyboard motion, rising from the browser's report where they moved in one step, the composer going down from the blur, the ride starting once touch support has loaded, Android unchanged, nothing travelling under Reduce Motion — verified against the code and the unit cases.
- The spring is critically damped and cut at the keyboard notification's duration — verified against the measured table and the solver.
- A capability, not the user agent, selects the schedule — verified.
- The schedule ships only in the deferred touch runtime, with one importer outside tests, and takes its duration and focus checks from the riders — verified.
- ChatLayout loads the touch runtime after first paint only under a coarse pointer — verified by its unit cases.
- Focus into a frame or an open shadow root predicts no hide, including a blur that names no related target and a page that parks focus first — verified by tests; the light-DOM custom-element case is code only.
- A reported ride starts no later than the document timeline's time, while a predicted hide keeps its start — verified.
- A sheet already open when the runtime loads re-attaches and rides — verified.
- Red-first counts on the base branch — reproduced.
- No public API changes — verified by comparing the generated surfaces of both trees.
- Unit tests for the keyboard module, ChatLayout's keyboard hook, BottomSheet and the touch runtime pass — re-run: 377 pass, 2 pending.
- Build, typecheck, lint and knowledge checks pass — re-run at this head.
- DEC-12 is the next free decision number beside the open record change that takes DEC-7 to DEC-11 — verified.
- Overlap list — #11544 is listed under AST-099 but does not touch it (non-blocking).
- First-load gzip table — reported, not re-measured.
- Simulator takes at this head — stated as pending: the blocking gap above.
Files
- Both changesets; the browser-support docs topic and its golden snapshot; BottomSheet and ChatLayout docs — clear.
- The keyboard module: the layout guide, the model, the target and the new UIKit schedule — clear; the ride — one non-blocking doc placement note; the README — clear.
- ChatLayout's keyboard hook, BottomSheet's mobile-keyboard hook, the touch runtime's module list — clear.
- The six test files — clear, with the light-DOM custom-element gap noted.
- The on-screen keyboard record and the react-component-runtime record — owner-approved; the Simulator gate above.
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.
|
The smaller points are fixed in dd3a0fe. A unit case now drives focus into a custom element with no shadow root through the guide; it fails with |
|
/approve-spec dd3a0fe |
There was a problem hiding this comment.
Changes requested: the record's own merge gate still has no evidence at this head. An engineering owner has approved the record changes at this head, and the code and docs check out.
spec:AST-099(its Platform support and DEC-3) makes a Simulator take the merge gate, and the new FR8 Safari row lists its cases, but the description states its takes at an earlier commit and says takes at this head are pending, and the row's "focus moving into a frame, a custom element or an open shadow root" case has no stated take at any head; please state in the description, in text, a take at this head that covers every case of the row (simulator, browser, head, animation scale and result).
One smaller point, not blocking: the description's overlap list still names #11544 under AST-099, though #11544 changes the react-component-runtime record and touchRuntimeModules.tsx instead.
Claims and files checked
Review mode: same-head; reason: none
Claims
- Both release notes: the composer and a Tall sheet's field ride the keyboard's own iOS motion, rising from the browser's report where they moved in one step, the composer going down from the blur, the ride starting once touch support has loaded, Android unchanged, nothing travelling under Reduce Motion — verified against the code and the unit cases.
- The spring is critically damped and cut at the keyboard notification's duration — verified against the measured table (damping equals twice the square root of stiffness) and the solver.
- A capability, not the user agent, selects the schedule — verified.
- The schedule ships only in the deferred touch runtime, with one importer outside tests, takes its duration and focus checks from the riders, and imports values only from the spring table and the solver — verified.
- The chat layout loads the touch runtime after first paint only under a coarse pointer — verified by its unit cases.
- Focus into a frame, a custom element or an open shadow root predicts no hide, including a blur that names no related target and a page that parks focus first — verified by tests.
- The custom-element case fails without the field check's custom-element clause — verified at this head.
- A reported ride starts no later than the document timeline's time, while a predicted hide keeps its start — verified.
- A sheet already open when the runtime loads re-attaches and rides — verified.
- The second height mid-show is left open with two pending tests — verified; that report still lands in one frame.
- Red-first counts on the base branch — consistent: the new schedule module does not exist there, so the files that import it cannot load.
- No public API changes — verified.
- Unit tests for the keyboard module, the chat keyboard hook, the bottom sheet and the touch runtime pass — verified at this head.
- Full-suite, build, typecheck, lint and first-load size figures, and the maintainers' acceptance of the chat page's cost — reported, not re-run; the reference-page deltas the shared-module rule asks for are stated.
- The new decision takes the next free number beside the open record change that takes the five before it — verified on the open pull requests.
- Overlap list — #11544 is listed under the keyboard record but does not touch it (non-blocking).
- Simulator takes at this head — stated as pending: the blocking gap above.
Files
- Both release notes; the browser-support docs topic and its golden snapshot; the bottom sheet and chat layout docs — clear.
- The keyboard module: the layout guide, the model, the target, the ride and the new iOS schedule — clear; its README — clear.
- The chat keyboard hook, the bottom sheet's mobile-keyboard hook, the touch runtime's module list — clear.
- The six test files — clear.
- The on-screen keyboard record and the component runtime record — owner-approved; the Simulator gate above.
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.
|
/approve-spec 6193bcc |
There was a problem hiding this comment.
Changes requested: the keyboard record's merge gate still has no Simulator evidence at this head. An engineering owner has approved the record changes at this head, and the code checks out.
spec:AST-099(its Platform support and DEC-3, repeated in the FR8 Safari row and DEC-12) makes a Simulator take the merge gate, but the description states its takes at an earlier commit and says takes at this head are pending, and the row's case of focus moving into a frame, a custom element or an open shadow root has no stated take at any head; please state in the description, in text, a take at this head that covers every case of the row (simulator, browser, head, animation scale and result).
Not blocking: the description's overlap list leaves out #11846, #12179 and #12479, which change the keyboard record or the same keyboard files.
Claims and files checked
Review mode: same-head; reason: none
Claims
- Both release notes: in Safari on iOS the composer and a Tall sheet's field ride the keyboard's own motion, rising from the browser's report where they moved in one step, the composer going down from the blur, the ride starting once touch support has loaded, Android unchanged, nothing travelling under Reduce Motion — verified against the code and the unit cases.
- A capability, not the user agent, selects the schedule — verified.
- The show rides from the browser's one report and the hide from the blur, as a prediction the later report confirms — verified.
- The spring is critically damped and cut at the keyboard notification's duration — verified against the measured table and the solver.
- The schedule ships only in the deferred touch runtime, has one importer outside tests, takes its duration and focus checks from the riders, and imports values only from the spring table and the solver — verified.
- The chat layout loads the touch runtime after first paint only under a coarse pointer and adds no gesture — verified by its unit cases.
- The composer, a Tall sheet's content and a docked container ride the curve on the compositor — verified.
- Focus into a frame, a custom element or an open shadow root predicts no hide — verified by tests.
- A sheet already open when the runtime loads re-attaches and rides — verified.
- In a page that cannot scroll the keyboard height reads short, and the ride targets that height — stated as a known limitation; not checkable without a device.
- The record's existing iOS blur rule for the sheet keeps its text, the merge and release gates stand, and the second height mid-show is left open with two pending tests — verified.
- The new decision takes a number no open pull request uses — verified on the open pull requests that edit the keyboard record.
- No public API, prop or CSS custom property changes — verified by comparing the built package surfaces.
- Red-first counts on the base branch — consistent: the new schedule module does not exist there.
- Full-suite, build, typecheck, lint and first-load size figures, stated at an earlier commit — reported, not re-run; the reference-page deltas the shared-module rule asks for are stated.
- The maintainers accept the chat page's first-load cost — consistent with the engineering owner's approval of the runtime record's sentence that the chat layout loads the touch runtime.
- Overlap list — leaves out three open pull requests (non-blocking).
- Simulator takes at this head — stated as pending: the blocking gap above.
Files
- Both release notes; the browser-support docs topic and its golden snapshot; the bottom sheet and chat layout docs — clear.
- The keyboard module: the layout guide, the model, the target, the ride and the new iOS schedule — clear; its README — clear.
- The chat keyboard hook, the bottom sheet's mobile-keyboard hook, the touch runtime's module list — clear.
- The six test files — clear.
- The on-screen keyboard record and the component runtime record — owner-approved at this head; the Simulator gate above.
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.
|
/approve-spec b0b18a8 |
There was a problem hiding this comment.
Changes requested: the keyboard record's merge gate still has no Simulator evidence at this head. An engineering owner has approved the record changes at this head, and the code checks out in unit tests.
spec:AST-099(its Platform support and DEC-3, repeated in the FR8 Safari row and DEC-12) makes a Simulator take the merge gate, but the description states its takes at an earlier commit and says takes at this head are pending, while the commits since change the keyboard code that row exercises; please state in the description, in text, a take at this head that covers every case of the row, including focus into a frame, a custom element or an open shadow root and the sheet's reveal after a long task (simulator, browser, head, animation scale and result).
Not blocking: the description's overlap list still leaves out #11846, #12179 and #12479, which change the keyboard record or the same keyboard files.
Claims and files checked
Review mode: same-head; reason: none
Claims
- Both release notes: in Safari on iOS the composer and a Tall sheet's field ride the keyboard's own motion from the browser's report, the composer also going down from the blur, once touch support has loaded; Android unchanged; nothing travels under Reduce Motion — verified against the code and the unit cases.
- A capability, not the user agent, selects the schedule — verified.
- The show rides from the browser's one report and the hide from the blur, as a prediction the later report confirms — verified.
- The spring is critically damped and cut at the keyboard notification's duration — verified against the measured table and the solver.
- The schedule ships only in the deferred touch runtime, has one importer outside tests, takes its duration and focus checks from the riders, and imports values only from the spring table and the solver — verified.
- The chat layout loads the touch runtime after first paint only under a coarse pointer and adds no gesture — verified by its unit cases.
- The composer, a Tall sheet's content and a docked container ride the curve on the compositor — verified.
- Focus into a frame, a custom element or an open shadow root predicts no hide — verified by tests.
- A sheet already open when the runtime loads re-attaches and rides — verified.
- In a page that cannot scroll the keyboard height reads short, and the ride targets that height — stated as a known limitation; not checkable without a device.
- The record's existing iOS blur rule for the sheet keeps its text, the merge and release gates stand, and the second height mid-show is left open with two pending tests — verified.
- The new decision takes a number no open pull request uses — verified on the open pull requests that edit the keyboard record.
- No public API, prop or CSS custom property changes — verified by comparing the built package surfaces.
- Red first: against the base branch's source, 8 of the new tests fail and 3 test files cannot load — verified by running them.
- The fixes for focus into a frame, the reported ride's start and a custom element with no shadow root — verified by their cases.
- The sheet's reveal after a long task mid-ride keeps the body's scroll — verified red-first in unit tests (the body overscrolls to 442 px instead of 248 px without it); the device behavior it answers needs the Simulator take above.
- Full-suite, build, typecheck, lint, browser-spec and first-load size figures, stated at an earlier commit — reported, not re-run; the reference-page deltas the shared-module rule asks for are stated.
- The maintainers accept the chat page's first-load cost — consistent with the engineering owner's approval of the runtime record's sentence that the chat layout loads the touch runtime.
- Overlap list — leaves out three open pull requests (non-blocking).
- Simulator takes at this head — stated as pending: the blocking gap above.
Files
- Both release notes; the browser-support docs topic and its golden snapshot; the bottom sheet and chat layout docs — clear.
- The keyboard module: the layout guide, the model, the target, the ride and the new iOS schedule — clear; its README — clear.
- The bottom sheet's mobile-keyboard hook, including the rect-based ride offset — clear; the chat keyboard hook and the touch runtime's module list — clear.
- The six test files — clear.
- The on-screen keyboard record and the component runtime record — owner-approved at this head; the Simulator gate above.
|
The description now states a Simulator take at b0b18a8, this head, for every case of the FR8 Safari row. That includes focus into a frame, a custom element or an open shadow root, and the sheet's reveal after a long task. Its overlap list now names every open pull request that shares a file with this one, #11846, #12179 and #12479 included. |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. Because the branch lives in a fork, a maintainer adds the ci:run label so CI runs, and marking the pull request ready for review then starts it; it lands after #11450.
An engineering owner approved the keyboard and runtime record changes at this head, and the description now states a Simulator take at this head for every case of the record's iOS ride row.
Claims and files checked
Review mode: same-head; reason: none
Claims
- Both release notes: in Safari on iOS the composer and a Tall sheet's field ride the keyboard's own motion from the browser's report, the composer also going down from the blur, once touch support has loaded; Android unchanged; nothing travels under Reduce Motion — verified against the code and the unit cases.
- A capability, not the user agent, selects the schedule — verified.
- The show rides from the browser's one report, and the hide rides from the blur as a prediction that the later report confirms — verified.
- The spring is critically damped and cut at the keyboard notification's duration — verified against the measured table and the solver.
- The schedule ships only in the deferred touch runtime and has one importer outside tests. It takes its duration and focus checks from the riders, and imports values only from the spring table and the solver — verified.
- The chat layout loads the touch runtime after first paint only under a coarse pointer and adds no gesture — verified by its unit cases.
- The composer, a Tall sheet's content and a docked container ride the curve on the compositor — verified.
- Focus into a frame, a custom element or an open shadow root predicts no hide — verified by tests.
- A sheet already open when the runtime loads re-attaches and rides — verified.
- The sheet's reveal after a long task mid-ride keeps the body's scroll — verified red-first in unit tests.
- In a page that cannot scroll, the keyboard height reads short, and the ride targets that height — stated as a known limitation; not checkable without a device.
- The record's existing iOS blur rule for the sheet keeps its text. The merge and release gates stand. The second height mid-show stays open, with two pending tests — verified.
- The new decision takes a number no open pull request uses — verified on the open pull requests that edit the keyboard record.
- No public API, prop or CSS custom property changes — verified by comparing the built package surfaces.
- Red first: against the base branch's source, 8 of the new tests fail and 3 test files cannot load — verified by running them.
- The fixes for focus into a frame, the reported ride's start, a custom element with no shadow root and a shadow root's field — verified by their cases.
- Simulator takes at this head for every case of the iOS ride row, with simulator, browser, head, animation speed and pass counts — stated in text, as the record's merge gate asks.
- Reference-page first-load deltas against the base — verified: re-measured at +215 to +260 B gzip, against the stated 216 to 260 B.
- Full-suite, build, typecheck, lint, browser-spec and per-bundler size figures — reported, not re-run here.
- The maintainers accept the chat page's first-load cost — consistent with the engineering owner's approval of the runtime record's sentence that the chat layout loads the touch runtime.
- The overlap list names every open pull request that shares a file — verified for the three it earlier left out.
Files
- Both release notes, the browser-support docs topic and its golden snapshot, and the bottom sheet and chat layout docs — clear.
- The keyboard module (the layout guide, the model, the target, the ride and the new iOS schedule) and its README — clear.
- The bottom sheet's mobile-keyboard hook, including the rect-based ride offset, the chat keyboard hook and the touch runtime's module list — clear.
- The six test files — clear.
- The on-screen keyboard record and the component runtime record — owner-approved at this head.
Stacked on #11450, whose touch runtime carries the schedule. It retargets to
mainonce #11450 lands.User need
On an iPhone, Core's keyboard-aware surfaces move in one step while UIKit's keyboard slides. ChatLayout's composer jumps up at Safari's report, and drops only once the keyboard is gone. The product owner asked for a ride matched to UIKit's keyboard, for show and hide. That is as Chrome on Android already has with the default
virtualKeyboard.overlaysContent(off) (FR8); with overlaysContent on, Core's keyboard module is a separate known gap.Problem and solution fit
-webkit-touch-calloutsupport selects it, never the user agent.KEYBOARD_SPRING, critically damped, cut atkeyboardNotificationMs(383.3 ms).scheduleTouchRuntimeLoad; it adds no gesture. Under a fine pointer it never loads it.rideKeyboardplays it on the compositor. ChatLayout's dock, a Tall sheet's content and a docked container ride it.Current specification
This draft is the demo for the iOS ride in #12008. It carries its own record change, for the spec owner's decision:
spec:AST-099FR6 and FR8: Safari on iOS rides UIKit's keyboard motion (DEC-12, Decider: pending).Number checked: no open pull request adds AST-099 DEC-12; #12008 takes DEC-7 to DEC-11.
Public delta and caller burden
No public API, prop or CSS custom property changes. In Safari on iOS under a finger:
Chrome on Android and Firefox for Android are unchanged. Under Reduce Motion the surface cross-fades (
design:reduced-motionDR2).Design and alternatives
Rejected: a cubic-bézier stand-in, which drifts from the keyboard; landing at the report; reading the user agent.
Evidence
All numbers in this description come from test runs: the iOS Simulator, unit tests and bundler builds. None comes from production.
hidesField's custom-element clause.main: the sheet's low field sits under the keyboard for about 180 ms, then scrolls up.Writing rubric results
Scope
Components: keyboard module, ChatLayout, BottomSheet
Testing
At b0b18a8, on #11450 at ff55fb2:
pnpm build,pnpm typecheck,pnpm lint,pnpm check:knowledge,pnpm check:sync: pass. Changeset coverage: pass.vitest run --project ui --maxWorkers=32: 1,046 files; 25,964 tests pass and 2 are pending.vitest run --project node --maxWorkers=32: 1,587 of 1,588 files pass.theme-cut-shortfails the same way at ff55fb2, without this change.BottomSheetKeyboard.a11ypasses 27. WebKit runs in CI; the test box lacks its system libraries.-webkit-touch-callout, so those specs cover the Chrome path and the unchanged paths. The unit tests, with the capability stubbed, and the Simulator cover the UIKit ride.uikitKeyboardSchedule.tshas one importer outside tests:touchRuntimeModules.tsx, which gathers the touch runtime. A test holds its value imports to the spring table and the spring solver.spec:AST-094DEC-31).At dd3a0fe:
First-load JavaScript, gzip, at dd3a0fe against #11450 at ff55fb2, with Vite, Rolldown and webpack:
pnpm size:pagesadds 25–33 B gzip to the docs, form, menu and table pages. Against ff55fb2, this head adds 216–260 B there.ChatLayout page, minified bytes per changed module (Vite 8):
utils/touchRuntimekeyboard/keyboardLayoutGuidekeyboard/keyboardTargetmotion/animatorkeyboard/keyboardModelutils/flatTreemotion/roleskeyboard/rideKeyboardThe loader's schedule-and-load path (
touchRuntime) andanimatorFor, which the runtime's chunk reads from the first load, come with ChatLayout's trigger. The riders' focus check (mayKeepKeyboard) reads the deep active element. This pull request leaves the motion modules' source unchanged; their minified sizes shift slightly with the chunk they land in.Overlaps with open pull requests; whichever lands second merges by hand:
architecture:react-component-runtimetouchRuntimeModules.tsxuseMobileKeyboard.tskeyboardTarget.tsuseChatKeyboard.tsuseChatKeyboard.test.tsxBottomSheet.test.tsxBottomSheet.doc.mjsChatLayout.doc.mjsrideKeyboard.tsrideKeyboard.test.tsbrowser-support.doc.mjs