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 |
9bcc941 to
79f61b0
Compare
There was a problem hiding this comment.
Approval waits on an owner decision: no current spec covers ChatLayout's new keyboardDismissMode prop or its default-on 'interactive' dismissal. An engineering owner needs to provide or identify the governing spec, meaning whether ChatLayout ships the prop and which default it uses, and record it by commenting /approve-spec <full head SHA> on this pull request; the author can do this if they are an engineering owner. Independently of that decision, these changes are needed:
- The diff includes four open predecessor pull requests (#8045, #8067, #8074, #8176), about 27,000 authored lines, so please land them through their own reviews and rebase this branch down to its ChatLayout commit.
'onDrag'blurs the composer even when no software keyboard is shown, unlike'interactive', so please gate it on the keyboard being up and add a test.- The new draft
spec:AST-094needs its own owner ruling in the pull request that introduces it, and its FR7 citesspec:AST-090, which is not in the repository.
[Automated review]
79f61b0 to
187dadb
Compare
There was a problem hiding this comment.
Approval waits on an owner decision: no current spec covers ChatLayout's new keyboardDismissMode prop or its default-on 'interactive' dismissal. An engineering owner needs to provide or identify the governing spec, meaning whether ChatLayout ships the prop and which default it uses, and record it by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner. Independently of that decision, these changes are needed:
- The diff includes four open predecessor pull requests (#8045, #8067, #8074, #8176), about 27,000 authored lines, so please land them through their own reviews and rebase this branch down to its ChatLayout commit.
'onDrag'blurs the composer even when no software keyboard is shown, unlike'interactive', so please gate it on the keyboard being up and add a test for that case.- The new draft
spec:AST-094needs its own owner ruling in the pull request that introduces it, and its FR7 citesspec:AST-090, which is not in the repository. docsZhinChatLayout.doc.mjshas nokeyboardDismissModeentry and does not mention the new default.
[Automated review]
187dadb to
edc7843
Compare
There was a problem hiding this comment.
Approval waits on an owner decision: no current spec covers ChatLayout's new keyboardDismissMode prop or its default-on 'interactive' dismissal. An engineering owner needs to provide or identify the governing spec, meaning whether ChatLayout ships the prop and which default it uses, and record it by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner. Independently of that decision, these changes are needed:
- The diff includes six open predecessor pull requests (#8045, #8067, #8074, #8176, #8258, #8287), about 29,800 authored lines, so please land them through their own reviews and rebase this branch down to its ChatLayout commit.
'onDrag'blurs the composer even when no software keyboard is shown, unlike'interactive', so please gate it on the keyboard being up and add a test for that case.- The draft
spec:AST-094needs its own owner ruling in the pull request that introduces it: its FR7 citesspec:AST-090, which is not in the repository, and its FR4 rules out the theme-tunable touch motion that #8258 adds. docsZhinChatLayout.doc.mjshas nokeyboardDismissModeentry and does not mention the new default.
[Automated review]
|
Posted by Cindy's agent on her behalf. Parts of this PR re-implement behavior that already exists, or is being specified, as a shared part of core. Converging keeps one implementation per behavior:
This is about where the behavior lives, not about the PR's intent. |
|
Agreed: one implementation.
|
edc7843 to
cd49b1b
Compare
Gap 21 names FR9 and no longer names main.
|
/approve-spec b7fbaef |
There was a problem hiding this comment.
Changes requested: the drag-to-dismiss and every record edit this head carries are approved by an engineering owner and the code reads correctly, but device and emulator results for this head are missing, and the description still describes a ChatLayout-only change.
spec:AST-094Platform support (with DEC-27 and DEC-31) needs a real-iPhone side-by-side and Chrome with Gboard in the Android emulator (normal animation scale, animations removed, slow-device profile) for a build of this exact head, because merges since the last takes changemotion/resolveMotion.tsandkeyboard/keyboardHeight.ts, which the bounce and the drag dismissal import directly, and the Android takes ran on a physical phone.- With #9777, #8080 and #11859 carried, their behavior needs its platform results at this head too: Safari on iOS in the Simulator and Firefox for Android and Chrome with Gboard in the emulator for the field reveal and its scroll back (
spec:AST-099Platform support and its FR9 rows), Safari on iOS in the Simulator for #9983's whole-keyboard height during Safari's pan (FR2), and iOS and Android results for DropdownMenu's touch grow (spec:AST-094FR31). - The first-load report that
architecture:component-import-boundariesINV10 asks for was measured before the merge, and the form and menu reference pages now load the grown keyboard module (through TextInput) and DropdownMenu's grow on the animator, so it needs base-against-head numbers per page for this head. - The description's Scope checklist still says one capability is added and unrelated changes were removed or split, and its Current specification lists three records, while this head also ships the field reveal, the menu touch grow and the pick's touchend cancel with three more release notes and five more record edits; update those sections, or take the merge out.
Non-blocking: the Stack line here (#9777 → #8080 → #11859 → #8217 ← #9983) matches neither #9983's line nor the one in #9777, #8080 and #11859, so it declares no stack and this pull request was reviewed on its own; DEC-1's composer-drag sentence could say "on a phone or a tablet" as FR10 does, and the Chinese description does not mention drag-to-dismiss yet.
Claims and files checked
Review mode: same-head; reason: none
- Release note, ChatLayout drag-to-dismiss (dismissal as the finger reaches the composer, one bounce never faster than the finger with the scroll-to-bottom button, the Gboard slide adding to it, nothing moving under Reduce Motion, the composer drag except after a long press, the phone-or-tablet page hold, inner scrollers and pinch kept, mouse unchanged, focus rest, no caller control) — verified in code and unit cases (
transcriptDismiss.ts:156-183,composerBounce.ts,useChatKeyboard.ts); not shown on iOS or Android at this head. - Release note, whole keyboard height during Safari's pan — verified in code and unit cases (
utils/layoutViewport.ts,keyboard/keyboardHeight.ts). - Release notes for fields above the keyboard, the menu touch grow and the pick's touchend cancel — accurate to the code (
keyboard/keyboardTarget.ts,DropdownMenu.tsx,utils/clickGuard.ts). - Description: no new prop or type — verified (the built surface lists no change); the follow code is gone — verified; a test keeps the keyboard module gesture-free — verified.
- Description: the latest merge keeps both sides in three keyboard files (store version 5, the band reading the keyboard-viewport height, the layout-viewport import kept) — verified (
keyboardHeight.ts:136-137,keyboardTarget.ts:20,:401). - Description: this change's own lines equal the previous head's apart from those resolutions and the shared-store test — verified (the same 28 files, identical apart from those three).
- Description: Scope checklist (one capability; unrelated changes removed or split) — false (finding above).
- Description: first-load numbers on the reference pages — measured before the merge, so stale for this head (finding above).
- Description: build, type check, lint and test runs at this head — consistent with this review's build and unit runs; CI is skipped on the draft.
- Description: device runs on a real iPhone and a physical Pixel 8 at earlier heads, later runs pending — accurate as stated; none carries to this head (finding above).
- Files, ChatLayout's change:
ChatLayout.tsx,transcriptDismiss.ts,composerBounce.ts,useChatKeyboard.ts,rideKeyboard.ts,nativeScroll.ts,ChatLayout.doc.mjs, its release note, the touch-support check and its tests — clear apart from the evidence findings and the two non-blocking notes. - Files, #9983's lines:
layoutViewport.ts,keyboardHeight.ts,useLayerKeyboardClearance.ts,useMobileKeyboard.ts, the keyboard README, its release note, its record line and tests — clear apart from the evidence finding. - Files, carried by the merge: TextInput, TextArea, NumberInput, DropdownMenu, Popover's surface motion,
useMenuPress.ts,clickGuard.ts,inputStream.ts,touchQueries.ts,settledBox.ts,keyboardTarget.ts, the sheet doc, three release notes, stories, sandbox pages, the sheet bundle check and tests — no code defect; evidence and description findings above. - Files, records: the eight changed records — owner-approved at this head; one non-blocking wording note on DEC-1.
|
Thanks. This head merges the stack below it (#9777 → #8080 → #11859), and #9983 sits under it too, so one Stack line can't match both chains. The description now lists what the stack brings. Those pull requests' own results stay on them. This one owes proof that its keyboard-top change regresses none of them, and the description lists those takes, pending at this head. The Scope checklist covers this pull request's own change; the stack's changes are reviewed in their own pull requests. |
|
/approve-spec 4bbfd49 |
There was a problem hiding this comment.
Changes requested: the drag-to-dismiss and every record edit this head carries are approved by an engineering owner and the code reads correctly, but the iPhone, Simulator and emulator results this head still needs are listed as pending in the description.
spec:AST-094Platform support and DEC-31 need a real-iPhone side-by-side for the drag dismissal at this head against the head the owner passed, because the earlier iPhone takes do not carry across the merges since then.- With #9777, #8080 and #11859 carried, their behavior needs its platform results at this head too: Safari on iOS in the Simulator for #9983's whole-keyboard height during Safari's pan (
spec:AST-099FR2), Chrome with Gboard and Firefox for Android in the emulator for the field reveal and its scroll back (spec:AST-099FR9 rows), and iOS and Android takes for DropdownMenu's touch grow (spec:AST-094FR31), which DEC-31 cannot carry from #8080 because this head adds its own keyboard and layer lines.
The Chrome-with-Gboard emulator run for the drag dismissal carries to this head, and the first-load report covers the reference pages. Non-blocking: the Scope checklist could say it covers this pull request's own increment; the Stack line matches neither #9983's line nor the one in #9777, #8080 and #11859, so it declares no stack; DEC-1's composer-drag sentence could say "on a phone or a tablet" as FR10 does; and the Chinese description does not mention drag-to-dismiss yet.
Claims and files checked
Review mode: same-head; reason: none
- The code is unchanged since the previous review of this same head; the description, approvals, labels, status checks and the other pull requests' Stack lines were read again — verified.
- Release note, ChatLayout drag-to-dismiss (dismissal as the finger reaches the composer, one bounce never faster than the finger with the scroll-to-bottom button, the Gboard slide adding to it, nothing moving under Reduce Motion, the composer drag except after a long press, the phone-or-tablet page hold, inner scrollers and pinch kept, mouse unchanged, focus rest, no caller control) — verified in code and unit cases (
transcriptDismiss.ts,composerBounce.ts,useChatKeyboard.ts); shown in the Android emulator, not yet on an iPhone at this head. - Release note, whole keyboard height during Safari's pan — verified in code and unit cases (
utils/layoutViewport.ts,keyboard/keyboardHeight.ts); Simulator take pending. - Release notes for fields above the keyboard, the menu touch grow and the pick's touchend cancel — accurate to the code (
keyboard/keyboardTarget.ts,DropdownMenu.tsx,utils/clickGuard.ts). - Description: no new prop or type — verified (the built surface lists no change); the follow code is gone — verified; a test keeps the keyboard module gesture-free — verified.
- Description: the latest merge has no conflicts and leaves this change's own lines unchanged — verified (identical diff against each merge base).
- Description: the emulator runs for the drag dismissal at the previous head carry here — verified (the merge changes none of this pull request's files, their direct imports or shared motion and layer modules).
- Description: first-load numbers per reference page against main — reported as the import-boundaries record asks; not rebuilt here.
- Description: build, typecheck, lint and test results at this head, with three node-suite files failing (two said to fail on main too) — not rerun here, since the heavy CI jobs have not run on the draft; the two named files are CLI theme-editor tests this pull request does not change.
- Description: Scope checklist (one capability; unrelated changes removed or split) — accurate only for this pull request's own increment (non-blocking note).
- Description: iPhone, Simulator and emulator takes pending at this head — accurate as stated (findings above).
- Files, ChatLayout's change:
ChatLayout.tsx,transcriptDismiss.ts,composerBounce.ts,useChatKeyboard.ts,rideKeyboard.ts,nativeScroll.ts,ChatLayout.doc.mjs, its release note, the touch-support check and its tests — clear apart from the evidence findings and two non-blocking notes. - Files, #9983's lines:
layoutViewport.ts,keyboardHeight.ts,useLayerKeyboardClearance.ts,useMobileKeyboard.ts, the keyboard README, its release note, its record line and tests — clear apart from the evidence finding. - Files, carried by the merge: TextInput, TextArea, NumberInput, DropdownMenu, Popover's surface motion,
useMenuPress.ts,clickGuard.ts,inputStream.ts,touchQueries.ts,settledBox.ts,keyboardTarget.ts, the sheet doc, three release notes, stories, sandbox pages, the sheet bundle check and tests — no code defect; evidence finding above. - Files, records: the eight changed records — owner-approved at this head; one non-blocking wording note on DEC-1.
|
Thanks. DropdownMenu's touch grow is now on this head's pending list, in Safari on an iPhone and in the Android emulator. Its layer imports |
Stack: #9777 → #8080 → #11859 → #8217 ← #9983.
Merge group: #9983, #8217
Review only this PR's change: vjeux/astryx@86c74e8...1fd9e0e, vjeux/astryx@6fd4c28...680bf29, vjeux/astryx@cc668a0...8a7df57 and vjeux/astryx@1fbb4e4...909aa6e. Merges of #9983 and main sit between.
User need
In iOS Messages, dragging the conversation to the field, or swiping down on the input bar, puts the keyboard away. ChatLayout kept it up.
Problem and solution fit
A watcher pan on the root lets the transcript scroll. With a software keyboard up, the field blurs when a touch or pen drag reaches the composer's top. Under a coarse primary pointer, focus rests on the composer region, as after Done. The dock bounces once on
springs.keyboard, from the finger's speed, at most the composer's bottom padding, unless motion is reduced. Gboard's slide adds to the bounce.A drag down from the composer blurs it too, unless a long press began it. Under a coarse primary pointer, while the keyboard is up, the page hold cancels one-finger drags that start on the composer. Its own scrollers, a pinch and a zoomed page stay the browser's.
Current specification
component:ChatLayoutFR10 and DEC-1 are rewritten. DEC-1 records the owners' Nov 5 decisions: the crossing dismissal, its bounce and the composer-start drag.spec:AST-094FR36 and FR37 name ChatLayout's two keyboard dismissals as exceptions, and FR19 lists the composer's hold.component:ChatLayoutFR10 ends a drag dismissal under a coarse primary pointer as Done does (spec:AST-099FR4, FR5). A test keeps the keyboard module gesture-free.Public delta and caller burden
No new prop or type. The follow code goes.
Design and alternatives
touch-actionblocks pinch-zoom.translate.Evidence
iOS 26.2 Simulator, "Full AI Chat":
Scope
Writing rubric results
component:ChatLayout: R4, DEC-1's two one-line rejections; others none.spec:AST-094FR19, FR36, FR37, FR43 and current-state lines andspec:AST-099paths and current-state line: R1–R7 none.Testing
Behavior module: ChatLayout transcript dismissal (transcriptDismiss.ts)
ChatLayout's import, bytes (core build, esbuild, minified, React and StyleX external), both on main 3bd058c:
The table predates the keyboard ride. Since then, ChatLayout loads the animator again through its keyboard hook, and the bounce plays on the dock's motion engine.
transcriptDismiss.test.ts32/32,ChatLayoutTranscriptDismiss.test.tsx24/24,composerBounce.test.ts5/5,rideKeyboard.test.ts6/6,dragAxes2/2. The theme-mark case fails on 9d66f5f's source, and two strip cases on d19cf69's. Two cases cover a node made in another window; each fails withinstanceofin place ofisNodeorisElement.isNodeTargetis gone) and its Storybook build. 3a38f3b passes both.CI=true pnpm lint(0 errors),check:knowledgeandpnpm review:pre(0 findings) pass. 372c4ee differs from ce77c4f only in that browser spec, a test's types and some record and changeset wording. At 7ded256: Core tsc, and Chat and keyboard units 704.useGestureRecognizer.check:knowledgepasses there.spec:AST-099's line naminggetKeyboardViewportHeight, andcheck:knowledgepasses there.translate. It starts before the blur, sorideKeyboard's newadditiveoption adds Gboard's slide to it. FR10, its verification row and the changeset scope the region's focus and the page hold to a coarse pointer.check:knowledge, lint and the Chat units pass there.spec:AST-094's path list, keeps main'scontextRequest.tsbeside this change'snativeScroll.ts. Its own lines equal 909aa6e's. Build, Core tsc,CI=true pnpm lint(0 errors),check:knowledge, Storybook andpnpm review:pre(0 findings) pass there. Chat, keyboard, gestures, BottomSheet and motion units: 3,250. The Chat interaction specs and BottomSheet's keyboard inset pass in Chromium (43/43) and in WebKit (29, 14 skipped). Chat accessibility specs: 46/46.pnpm typecheck0 errors,CI=true pnpm lint0 errors,check:knowledge, and the shared-identity and touch-bundle checks pass (18/18). Chat, keyboard, gestures, motion, Layer, BottomSheet, Text and Tooltip units: 4,339. Nine interaction specs pass in Chromium (86) and in WebKit's CI container (70, 16 skipped). They are the four Chat specs, BottomSheet's keyboard inset, the search field, field focus timing, the input hold and capped lists.pnpm review:prehas no findings, and the merge into main is clean.spec:AST-094's verification table, takes main's table (test(Item): the swipe's busy proof judges a held release by its curve #11735 re-pads it) with this change's FR18–FR22 row edit. Its own lines equal aef80a0's, apart from that row's padding.bandOfreads the keyboard's top throughgetKeyboardViewportHeight, as this change's other keyboard-top readers do.keyboardTarget.tskeeps itslayoutViewportHeightimport, which feat(TextInput, TextArea, NumberInput): fields stay above the keyboard #9777's scroll range and pan room read.pnpm typecheckandCI=true pnpm lintreport 0 errors, and knowledge records and changesets pass. The UI project passes 26,167 tests, and 164 Chromium interaction tests for the keyboard, press, Chat and BottomSheet pass. In the node suite, three files fail in the full run, and one of them passes alone.theme-cut-short.test.mjsandtheme-pictures-broken-words.test.mjsfail alone without this change too.pnpm typecheck0 errors,CI=true pnpm lint0 errors, knowledge records, and the shared-identity and touch-bundle checks pass (23/23). Chat, gestures, keyboard, motion, Layer, BottomSheet, Text, Tooltip, field, click-guard, resize-observer, layout-viewport, input-stream and press-feedback units: 5,191. Nine interaction specs pass in Chromium (86) and in WebKit's CI container (70, 16 skipped).pnpm review:prehas no findings, and the merge into main is clean.architecture:component-import-boundariesINV10's four reference pages, a BottomSheet page and a ChatLayout page. Each page is a production bundle of the built packages that imports exactly its components, built with Vite 8. Only its eager chunks count.docs/specs/AST-094-touch-presentations/spec.md(spec(AST-094): DEC-31 keeps device evidence across a merge that only regenerates generated files #11580, spec(AST-094): DEC-31 states the owner's test-only and records-only carry #11602, spec(AST-094): DEC-31 names .changeset release notes beside knowledge records #11692, feat(core): swipe actions come from createSwipe on the shared drag path #8690) andscripts/touch-support-bundle.test.mjs(feat(core): swipe actions come from createSwipe on the shared drag path #8690). It also changesmotion/resolveMotion.ts(fix(BottomSheet): a flick's close clears the scrim along the same spring #11400), whichChat/composerBounce.tsand its test import directly. Shared motion and layer modules change as well, among themLayer/inputHold.ts(refactor(layer): a closing BottomSheet takes the shared input hold #11447, feat(AlertDialog): touch motion on the theme's timing #8373),motion/themeTiming.ts(feat(AlertDialog): touch motion on the theme's timing #8373) andmotion/uikit/swipeActions.ts(feat(core): swipe actions come from createSwipe on the shared drag path #8690). So the 4967e41 runs do not carry, and every cell re-takes (spec:AST-094DEC-31). Device runs at 6ff59fd: pending.component:ChatLayoutFR10 at b7fbaef, against main ffd1c8e: Android 16 x86_64 emulator, Chrome 133 with Gboard, "Full AI Chat". Each of four cells ran at normal speed, with a 4× CPU slowdown and with animations removed, and all 12 were kept:spec:AST-099FR9 cells CH-1 to CH-6 in Chrome 133 with Gboard, on the Android 16 emulator: 36 of 36 kept. They ran at normal speed, with a 4× CPU slowdown and with animations removed. This head matches 975f954 to 0.00 px, except one field bottom at 0.10 px. CH-2's clearance lags 2 frames against 3 at normal speed, and 4 against 3 with animations removed.spec:AST-099FR2) matches too: the visual viewport reads 403 px in every frame of its first 2 s up.spec:AST-094FR31) in the Android emulator: 6 of 6 kept, with the same result on every check. Its layer importsuseLayerKeyboardClearance, which this change edits.version.jsonread on every take:version.jsonread on the phone.100vhtocalc(100dvh - 32px).useChatKeyboard.tscommits the keyboard's height to the message area's end padding (spec:AST-099FR3). This change's edits there add the dock's bounce and leave that commit as it is. A hide takes that padding away, and 955564d has no such padding.version.jsonread before every take. Five of five cells kept and none failed in each profile.