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 |
There was a problem hiding this comment.
Changes requested: the fix restores the 10 px keyboard clearance spec:AST-099 FR9 sets for a field in a sheet, and the unit suite proves it, but two items block merge.
- Add the Chrome-on-Android emulator run with Gboard at this head (main against this branch, the Mobile keyboard story's last field), because
spec:AST-099makes simulator and emulator evidence a merge gate for keyboard work and the description lists that run as pending. - Reword
.changeset/sheet-field-clearance.md, because no other Core field keeps a keyboard clearance on main yet (layers keep 10 px) and the pull request's own Gap 13 records 10 to 20 px in Safari on iOS, so "keeps its focused field 10 px above ... the clearance every other field keeps" overstates the change; for example: "A fully expanded Tall BottomSheet now places its focused field 10 px above the on-screen keyboard, the clearance layers keep, instead of 48 px."
A non-blocking wording suggestion for the changed comment in useMobileKeyboard.ts is inline.
[Automated review]
|
/approve-spec 4e57985 |
4e57985 to
71db5ec
Compare
There was a problem hiding this comment.
Changes requested: the fix restores the 10 px keyboard clearance spec:AST-099 FR9 sets for a field in a sheet, the unit suite proves it, and the changeset now says exactly that, but one item still blocks merge.
- Add the Chrome-on-Android emulator run with Gboard at this head (main against this branch, the Mobile keyboard story's last field, 10 px clear with no page pan), because
spec:AST-099makes emulator evidence at the exact head a merge gate for keyboard work and the description still lists that run as pending.
Two non-blocking leftovers from the 48 px value:
- Miss:
packages/core/src/keyboard/README.mdstill says BottomSheet passes "its suggestion clearance asoffset"; the sheet now passes none and the hook'sFIELD_OFFSETapplies. - Miss: three comments in
BottomSheet.test.tsxkeep the old figures (248, 348, 148 and 164 px) beside expectations that now assert 210, 310 and 110 px; details are inline.
[Automated review]
71db5ec to
fc60bd0
Compare
There was a problem hiding this comment.
Approval waits on one owner decision, and one item still blocks merge. The fix restores the 10 px keyboard clearance spec:AST-099 FR9 sets for a field in a sheet, the unit suite proves it, and the earlier README and test-comment leftovers are fixed.
- Miss: the Tall body's scroll padding applies with no on-screen keyboard too, so moving it from 48 px to 10 px changes where a desktop Tab reveal lands (a field peeking 15 to 45 px above the body's end in Chromium, or 30 to 60 px in Firefox, was centred on main and now stops at the body's end), and since no current spec settles which, an engineering owner (the author may decide as one) needs to choose between the new result, main's result, or applying the padding only while an on-screen keyboard covers the sheet.
- Add the Chrome-on-Android emulator run with Gboard at this head (main against this branch, the Mobile keyboard story's last field, 10 px clear with no page pan), because
spec:AST-099makes emulator evidence at the exact head a merge gate for keyboard work and the description still lists that run as pending.
Non-blocking: useMobileKeyboard.ts line 424 still says "no suggestion clearance"; the clearance is now FR9's field clearance.
[Automated review]
|
/approve-spec fc60bd0 |
A fully expanded Tall sheet kept its focused field 48 px above the on-screen keyboard, from a constant no record names, where spec:AST-099 FR9 sets 10 px, the clearance layers keep. The sheet now passes no clearance of its own, so the keyboard module's FIELD_OFFSET applies. Its body's scroll padding takes the same value, and only while the keyboard covers the sheet, as UIKit's keyboard inset. With no keyboard, a field Tab moves to stops at the body's end, as in other scroll areas. The padding rides the inset's render, so it adds no layout. BottomSheet's keyboard tests move from 48 px to 10 px: the room, the reveal's scroll and the ride's distance each shrink by 38 px. The case for a field in the bottom band with no keyboard moves its field into the new 10 px band. A unit test and a Chromium spec check the padding with and without a keyboard.
There was a problem hiding this comment.
Changes requested: one evidence item still blocks merge. The fix restores the 10 px keyboard clearance spec:AST-099 FR9 sets for a field in a sheet, the unit suite proves it, and an engineering owner's /approve-spec for this head accepts the desktop Tab-reveal result and the record edits.
- Run the Chrome-on-Android emulator check (Gboard, the Mobile keyboard story's last field, main against this branch) at this exact head and state the results in the description, because the run described there is at an earlier commit and
spec:AST-099Platform support makes emulator evidence at the exact head a merge gate. - Miss: the same clause also asks for that run with animations removed and under a slow-device profile, besides animations at normal scale, which the earlier reviews did not name.
Non-blocking: useMobileKeyboard.ts line 424 still says "no suggestion clearance"; the clearance is now FR9's field clearance.
[Automated review]
The BottomSheet verification map names spec:AST-099 FR9's clearance for a fully expanded Tall sheet: its focused field rests 10 CSS px above an overlaid keyboard, in the unit suite. The end padding applies only while the keyboard covers the sheet, which a Chromium spec checks. AST-099's Gap 13 records Safari on iOS, where that field rests 10 to 20 CSS px above the keyboard. Safari reports the keyboard twice as it rises, and the sheet retargets its reveal at the second report from a stale scroll base.
fc60bd0 to
3c324d8
Compare
|
/approve-spec 3c324d8 |
There was a problem hiding this comment.
Changes requested: one evidence item still blocks merge. The fix restores the 10 px keyboard clearance spec:AST-099 FR9 sets for a field in a sheet, the unit suite and the new scroll-padding tests prove it, and the no-keyboard padding follows the option an engineering owner chose, with an /approve-spec for this head.
- Run the Chrome-on-Android emulator check (Gboard, the Mobile keyboard story's last field, main against this branch) at this exact head with animations at normal scale, with animations removed and under a slow-device profile, and state each result in the description, because
spec:AST-099Platform support makes that evidence a merge gate and the run described there is at an earlier commit whoseBottomSheetPanel.tsxdiffers from this head (the scroll padding is now gated on the keyboard inset).
Non-blocking: useMobileKeyboard.ts line 424 still says "no suggestion clearance"; two small notes on the new test helper and the record's verified_by list are inline.
[Automated review]
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because the branch is in a fork without the ci:run label, so a maintainer adds ci:run to run it.
The fix restores the 10 px keyboard clearance spec:AST-099 FR9 sets for a focused field in a fully expanded Tall sheet, the unit suite proves it (44 of the sheet's tests fail with the old panel), the no-keyboard padding follows the option an engineering owner approved for this head, and the description now carries the Android emulator run at this head with animations at normal scale and removed and under a 4x CPU slowdown. Two non-blocking leftovers, fine for the follow-up you mentioned:
useMobileKeyboard.ts:423-424still says "no suggestion clearance then"; the clearance there is now FR9's field clearance.scrollPaddingOfinBottomSheet.test.tsx(lines 361-367) sits underkeyboardInsetOf's comment.
[Automated review]
|
/approve-spec be6dca6 |
There was a problem hiding this comment.
Changes requested: one evidence item blocks merge. The clearance fix matches the on-screen keyboard spec's 10 px rule for a field in a sheet, and the record changes carry an engineering owner's approval for this head.
- The iOS Simulator and Android emulator results that the on-screen keyboard spec (AST-099 Platform support) makes a merge gate are from before the main merge, which changed
BottomSheetPanel.tsxanduseMobileKeyboard.ts, so they do not carry to this head; repeat the iOS Simulator home-screen take and the Android emulator takes (Gboard, normal speed, animations removed, slow-device profile) on this head and state each result in the description.
At this head the BottomSheet and keyboard unit suites pass, 44 of the 161 BottomSheet tests fail against the base panel, and in Chromium the focused field moves from 48.5 px to 10.5 px above a simulated keyboard with no page scroll. Three non-blocking follow-ups remain from earlier rounds: the stale "no suggestion clearance" comment in useMobileKeyboard.ts, the scrollPaddingOf test helper sitting under keyboardInsetOf's comment, and naming the new browser spec in BottomSheet's verified_by list.
Claims and files checked
Review mode: same-head; reason: none
Claims:
- Release note: a fully expanded Tall sheet's focused field rests 10 px above the keyboard instead of 48 px: verified (
BottomSheetPanel.tsx:976-983,useMobileKeyboard.ts:177, the unit suite, 10.5 px in Chromium); Safari on iOS lands 10 to 20 px, which the new gap records. - Release note: 10 px is the clearance layers keep: verified (the keyboard spec's field clearance rule).
- Release note: with no keyboard the body has no scroll padding: verified (
BottomSheetPanel.tsx:1312-1314; Chromium reportsauto). - The sheet used its own 48 px constant, which no record names: verified (base
BottomSheetPanel.tsx:107). - The sheet now reads the keyboard module's existing
FIELD_OFFSETand passes nooffset: verified (keyboardTarget.ts:48). - The padding takes that value only while the keyboard covers the sheet: verified (new unit test at
BottomSheet.test.tsx:3341; Chromium probe, 10px under a simulated keyboard). - No API or prop change: verified (surface comparison of Core and the themes lists no row).
- The verification map names the clearance and the keyboard-only padding, and a new gap records the Safari spread and its cause: verified (
BottomSheet.spec.md:455, Gap 20). - With no keyboard, a field in the body's bottom 10 px stays put: verified (its unit test passes).
- 43 keyboard tests move from 48 to 10 px, and 44 of 161 BottomSheet tests fail with the base panel: verified (red-first run: 44 failed, 117 passed).
- The head merges main cleanly and its own lines match the earlier head plus 44 lines in one test file: verified, plus the one-line gap renumber.
- Main's commits since the earlier merge base touch the panel (6), the hook (2) and the test file (5): verified.
- Desktop Tab before and after: verified in Chromium at this head for the 30 px peek (centred 274.9 px above the end on base, flush on head); the Firefox columns were not rerun.
- The Tab case reads the body after the reveal, with the field at the body's end: verified by reading the spec (poll, then ten still frames).
- Build, typecheck, lint and the full UI suite pass: partly verified (build, core and theme builds; BottomSheet and keyboard suites, 23 files and 762 tests); the full suite, typecheck and lint were not rerun.
- Size report and page first-load deltas: not re-measured; no optional feature or shared module grows.
- Device results (iOS Simulator, iPad, Android emulator) are from an earlier head and the set at this head is pending: true as stated; this is the blocking item.
Files:
.changeset/sheet-field-clearance.md: clear.docs/specs/AST-099-mobile-keyboard/spec.md: clear (Gap 20, owner-approved at this head).docs/specs/components/BottomSheet/BottomSheet.spec.md: clear (new row owner-approved at this head); non-blocking:verified_bydoes not list the new browser spec.packages/core/src/BottomSheet/BottomSheet.test.tsx: clear; non-blocking:scrollPaddingOfsits underkeyboardInsetOf's comment.packages/core/src/BottomSheet/BottomSheetPanel.tsx: clear; its device evidence is the blocking item.packages/core/src/BottomSheet/__tests__/BottomSheetScrollPadding.interaction.browser.spec.ts: clear.packages/core/src/keyboard/README.md: clear.packages/core/src/keyboard/useMobileKeyboard.ts: clear; non-blocking: the comment at line 432 still names a suggestion clearance.
|
/approve-spec 7552456 |
There was a problem hiding this comment.
Changes requested: one evidence item blocks merge. The fix restores the on-screen keyboard spec's 10 px clearance for a field in a fully expanded Tall sheet, the unit suite proves it, and an engineering owner approved the record changes at this head.
- The device and emulator runs that the on-screen keyboard spec makes a merge gate are not at this head: the Android emulator run is still pending, and the iPhone and iOS Simulator takes from the previous head do not carry across this head's comment edit at
packages/core/src/keyboard/useMobileKeyboard.ts:432, because the evidence-carry rule covers only test-only files, knowledge records and release notes, so please take those runs on the final head and state each result in the description.
Required CI has not run on this head yet, because the draft's heavy jobs are skipped.
Claims and files checked
Review mode: same-head; reason: none
- Changeset: a fully expanded Tall sheet's focused field rests 10 px above the keyboard instead of 48 px, and with no keyboard the body has no scroll padding: verified (
BottomSheetPanel.tsx:976-984,:1311-1314; unit test and Chromium probe). - The sheet drops its 48 px constant and reads the keyboard module's 10 px value for both the reveal and the body's padding: verified (
BottomSheetPanel.tsx:76,useMobileKeyboard.ts:177,keyboardTarget.ts:48). - The body's scroll padding applies only while the keyboard covers the sheet: verified (new unit test; Chromium shows no padding without a keyboard and 10 px under one).
- No API or prop change: verified (generated surface comparison, no rows).
- With main's panel, 44 of the sheet's 161 unit tests fail: verified.
- The head merges main with no conflicts, and its own lines match the earlier commit's plus 44 lines in one test file, two comments and one record line: verified.
- Since the previous head only two comments (one in a test file) and the record's test list changed: verified. That device runs carry across such a commit: false, because the hook comment is shipped source.
- The Android emulator run at this head is pending: confirmed, so that evidence is missing.
- Desktop Tab before and after: reproduced at this head in Chromium for the 30 px peek (centred on main, flush with the body's end here).
- Size +336/−112, split into source, tests and docs as stated: verified. Bundle-size deltas: not rechecked.
- Files:
.changeset/sheet-field-clearance.mdclear;docs/specs/AST-099-mobile-keyboard/spec.mdclear;docs/specs/components/BottomSheet/BottomSheet.spec.mdclear;packages/core/src/BottomSheet/BottomSheet.test.tsxclear;packages/core/src/BottomSheet/BottomSheetPanel.tsxclear;packages/core/src/BottomSheet/__tests__/BottomSheetScrollPadding.interaction.browser.spec.tsclear;packages/core/src/keyboard/README.mdclear;packages/core/src/keyboard/useMobileKeyboard.tsits line 432 edit ends the device-evidence carry (finding above).
| const obstructionTop = getObstructionTop(); | ||
| // Under a pixel of overhang is `innerHeight`'s precision, not a | ||
| // keyboard: no suggestion clearance then (overlapOf). | ||
| // keyboard: no field clearance then (overlapOf). |
There was a problem hiding this comment.
Blocking (evidence): this line is shipped source, so the iPhone and iOS Simulator takes from the previous head no longer count here; the evidence-carry rule covers only test-only files, knowledge records and release notes. Please take the iOS run and the Android emulator runs (Gboard, normal speed, animations removed, slow-device profile) on the final head and state each result in the description.
User impact
On a phone, a fully expanded Tall BottomSheet's field rests 48 px above the on-screen keyboard, so the sheet shows less content. FR9 sets 10 px, the clearance layers keep.
Problem and solution fit
The sheet passed its own 48 px constant, which no record names, to the keyboard hook and its body's scroll padding.
spec:AST-099FR9 gives a focused field one clearance, 10 CSS px, and the spec owners ruled that the Tall sheet follows it. The sheet now passes none of its own, so the keyboard module's value applies to both.Expected behavior and authority
spec:AST-099FR9: a focused field sits 10 CSS px clear of the keyboard's top edge. The spec owners ruled it covers the Tall sheet's overlay path. BottomSheet's verification map names that clearance and the keyboard-only end padding. AST-099's new Gap 20 records Safari on iOS (10 to 20 px) and its cause.spec:AST-017FR59 and DEC-25, deliberate consistency: with no keyboard, the body scrolls as other scroll areas do; Testing has desktop Tab before and after.Smallest restoration
FIELD_OFFSET.Evidence
Scope
Writing rubric results
R1 narration: none; present tense.
R2 research: none in the record.
R3 evidence: the row names methods and failures, not runs.
R4 rejected alternatives: none added.
R5 change references: none.
R6 open questions: none.
Number checked: #10474 renumbers (it and #11450 both added an AST-099 "Gap 13"; its gap is now Gap 20, and #11450 keeps Gap 13).
Merges after #9777 and #11450, and before #10462.
Testing
This head merges main f594a7e, with no conflicts. Its own lines match 3c324d8's (+290/−111), plus 44 lines in one test file, two comments and one record line.
BottomSheetPanel.tsx(6 commits),useMobileKeyboard.ts(2) andBottomSheet.test.tsx(5).BottomSheetScrollPadding.interaction.browser.spec.tsnow waits for Core's reveal. On main, Core moves a Tab-focused field into its scroller one task after the browser's own focus scroll.At this head, 7552456:
pnpm build;pnpm typecheckandpnpm linthave 0 errors; knowledge records pass; Storybook builds.pnpm review:pre: no findings.Red-first at 7552456, with
BottomSheetPanel.tsxas on main: 44 ofBottomSheet.test.tsx's 161 tests fail.The two iOS runs below are at be6dca6. Since be6dca6, this head changes two comments, one in a test file and one in
useMobileKeyboard.ts, and the record'sverified_by. The iOS takes re-run at the post-perf(core): SegmentedControl, Switch and BottomSheet load the touch animator after first paint #11450 head (spec:AST-094DEC-31: theuseMobileKeyboard.tscomment change voids them).Real iPhone 14 (iOS 26.2, 23C55), Safari, at be6dca6 and on main f594a7e, three takes each, interleaved. Each take read
version.jsonfirst.iOS Simulator (iPhone 11, iOS 26.1), the story added to the home screen and opened from it. It ran local production builds of be6dca6 and main f594a7e, with every frame logged.
Android emulator: pending, at the post-perf(core): SegmentedControl, Switch and BottomSheet load the touch animator after first paint #11450 head.
The device runs below are at 3c324d8, before the main merge.
iOS Simulator (iPhone 17 Pro, iOS 26.2) at 3c324d8, the Mobile keyboard story added to the home screen, every frame sampled.
scrollYstay 0 throughout.scrollBythe reveal makes. One comes at the keyboard's first report (visual viewport 392 px), and one at its second (409 px).Desktop Tab at 3c324d8, before and after, with a fine pointer and no keyboard at 402 × 714. Tab goes into the second-to-last field, whose top shows 15, 30, 45 or 60 px above the body's end:
Main's 48 px scroll padding brings the field to the centre when it peeks less than the padding. This branch has none without a keyboard, so the browser's default applies. Firefox centres a field that peeks 15 px either way.
At 3c324d8, one BottomSheet test fails with the padding at every state. It is "pads the body's end by the 10 px clearance only while the keyboard covers the sheet".
BottomSheetScrollPadding.interaction.browser.spec.tschecks in Chromium that a fine pointer's Tab lands that field at the body's end with no scroll padding. It also checks that a stand-in keyboard brings 10 px of padding (2 of 2 runs). Main fails it on 48 px, and on the padding at every state on 10 px.At 3c324d8:
pnpm api:reportwrites the same lines as on main alone. The touch-support, lazy-sheet and layer-toast bundle guards pass (19).iPad (A16) Simulator, iOS 26.2, home-screen web app, the Comment field in a fully expanded Tall sheet, at 3c324d8 and on main. With a hardware keyboard, iPadOS's shortcut bar covers the sheet's end, and the sheet treats it as a keyboard. This branch rests the field 10.2 px above the bar (2 of 2), with 10 px of end padding and an 81 px inset. Main rests it 48.2 px above, with 48 px of padding. With no keyboard, this branch has no padding and no inset. Under the software keyboard: 10.2 px against 48.2 px.
Android emulator (Android 16, Chrome 133 with Gboard, default
interactive-widget=resizes-visual), at 3c324d8. It reads the Mobile keyboard story's last field in a fully expanded Tall sheet, main against this branch.Public and internal API delta
Size: +336/−112 lines (f594a7e..7552456): source +14/−12, tests +304/−97, docs and changeset +18/−3. No new module.
The repo's size report (
node .github/scripts/analyze-pr.js --main-record, afterpnpm build) at main f594a7e and at 7552456:core/BottomSheet's import: 74,764 → 74,791 B gzip (+27).Each page's first-load gzip of its eager chunks is measured as
component-size.jsmeasures an import, main against 7552456. INV10's docs, form and menu pages change by 0 B, and its table page by +1 B. A page of BottomSheet, Button and Text changes by +16 B, and a twelve-component app page by +2 B. A chat page and a page of DropdownMenu and MoreMenu change by 0 B.Public: no export, prop or type changes in
@astryxdesign/core. One changed default: a fully expanded Tall sheet's focused field rests 10 px above the on-screen keyboard, not 48 px. With no keyboard, the sheet's body has no scroll padding.Internal:
BottomSheetPanelreadsFIELD_OFFSET(10 CSS px), an existing export ofkeyboard/keyboardTarget.ts, in place of its own 48 px constant. It no longer passesoffsettouseMobileKeyboard, whose default isFIELD_OFFSET. No new hook or export.