Skip to content

fix(DateInput, DateTimeInput): the sheet calendar's toggle and day tap under a finger - #8206

Draft
vjeux wants to merge 94 commits into
meta:mainfrom
vjeux:uikit/c22-calendar-motion
Draft

vjeux wants to merge 94 commits into
meta:mainfrom
vjeux:uikit/c22-calendar-motion

Conversation

@vjeux

@vjeux vjeux commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Batch: B4 · DateInput and DateTimeInput calendar toggle and selection

Stack: #8200 → #8206

Depends on #8200. Review only this pull request's change: https://github.com/vjeux/astryx/compare/dba8c0a400f8e02e6ed86cf324b0d4c44beacbad..83955c47e2e4a6c71895a3cef23046ae0bf01a6c

User impact

On a phone or tablet, DateInput's month/year toggle fades linearly with a 180° flip, and DateTimeInput's swaps at once. Now in both, the wheels fade over the calendar on --duration-medium-min, and the calendar stays drawn beneath them. The chevron points along the reading direction and turns a quarter. A finger's tap selects a day at once. A fine primary pointer keeps the current toggle.

Visual authority

spec:AST-094 FR45 reads: "In a component whose main interaction is a tap". There, a tap-started motion with a measured duration "plays the theme duration token whose value in the Storybook theme (neutral) is nearest that measurement". It takes "the easing for its kind (entrance, exit or move)". And "an in-place toggle cross-fade is not an exit". The toggle plays --duration-medium-min (225 ms in neutral; UIKit's 250 ms stays the reference), arriving on --ease-entrance, leaving on --ease-exit; the chevron turns on --ease-move. The day-tap rule is a specs decision (FR9).

For the owner: component:DateInput FR26 records the chevron's direction, quarter turn, Reduce Motion dip and FR45 timing. FR9 records the day-tap rule. FR27 records the tap shield, the focus hand-off, the internal useMonthYearToggle hook and one look for both fields (Specs decision, Nov 11 2026). component:DateTimeInput FR17 follows FR26 and FR27 and records Done's focus hand-off. All need /approve-spec at this head.

Commit 7, the tab-stop fix, changes the month pane in #8200's MonthScroller.tsx and turns DateTimeInput FR17's test green.

State matrix

  • Both sheets, opening and closing, on a coarse primary pointer.
  • RTL: the chevron is mirrored, ending down.
  • Reduced Motion: on a coarse primary pointer, a 200 ms cross-fade and a chevron dip (playReducedMotionDip) whose turn lands mid-dip. On a fine one, at once.
  • Size (the repository's size report, gzip, at this head against fix(DateInput, DateTimeInput): the sheet's calendar pages like UIDatePicker #8200's head): DateInput's import +1,792 B, CSS +269 B; DateTimeInput's +1,916 B, CSS +365 B.
  • Batch size: 3,992 added lines, 2,752 of them in test files; the toggle, the selection and their proofs are one intent.

Writing rubric results

Scope: component:DateInput FR9, FR26 and FR27, component:DateTimeInput FR17 and their verification rows. R1 narration, R2 research, R4 rejected alternatives, R5 change references, R6 open questions: none. R3 evidence: test names only.

Scope

  • Appearance is the primary intent.
  • Behavior, API, interaction model, and unrelated layout changes were removed or split.
  • The evidence shows the changed pixels actively running, not only source or computed styles.
  • Public text and artifacts contain no internal Meta context.

Testing

This head, 83955c4, merges #8200's head dba8c0a into 233a7c8. That head merges main be7f821. Git merged every file with no conflict. Main's 42 commits touch none of this pull request's files, and this pull request's own lines are unchanged. They change Tooltip, Button, theme/useTheme and Text/TruncationTooltip, which the fields' code reaches 3 to 5 import steps away. None is a direct import of the fields' code. This pull request's story imports the theme entry, which re-exports main's changed theme/Theme and theme/useTheme. Nothing changes under Layer, motion or the shared press and touch utilities. This pull request's own diff against #8200's head keeps its size, +3,992/−170.

  • At 83955c4: pnpm typecheck 0, after pnpm build as CI runs it. pnpm check:knowledge 0. Changeset coverage passes. pnpm review:pre 0 findings. The unit tests ran for DateInput, DateTimeInput, TimeInput, FormLayout, BottomSheet, Layer, Popover, Tooltip, DropdownMenu, Field and Text. They also ran for gestures, utils, motion, drag-to-snap-points, usePager and useDragToSnapPoints: 279 files, 7,462 passed. Every DateInput and Calendar interaction spec, against Storybook built at this head, at one worker: Chromium 84 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 77 passed, 11 skipped. The DateInput and Calendar accessibility contracts: 111 passed.

Below it, 233a7c8 merges #8200's head ed2b57f into eaf8ef6. That head merges main 120629d. Git merged every file with no conflict. Among this pull request's own files, main's changes touch only the sandbox's route list, and both sides' lines stay. Main's changes reach both fields' code at run time, such as Layer/useLayer and Layer/gestureCounter (#11938) and Layer/outsidePress (#11851). Main also changes theme modules, which this pull request's story imports directly, and Layout modules, which its sandbox page imports directly. This pull request's own diff against #8200's head keeps its size, +3,992/−170.

  • At 233a7c8: pnpm typecheck 0, after pnpm build as CI runs it. pnpm check:knowledge 0. Changeset coverage passes. pnpm review:pre 0 findings. The unit tests ran for DateInput, DateTimeInput, TimeInput, FormLayout, BottomSheet, Layer, Popover, Tooltip, DropdownMenu, Field and Text. They also ran for gestures, utils, motion, drag-to-snap-points, usePager and useDragToSnapPoints: 278 files, 7,460 passed. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 84 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 77 passed, 11 skipped. The DateInput and Calendar accessibility contracts: 111 passed.

Below that, eaf8ef6 merges main a79b454 into 6a723a0. Git merged every file with no conflict. Main changed one file this pull request edits, the sandbox's route list, and both sides' lines stay. Main's changes reach both fields' code at run time, such as Layer/useLayer and Popover/usePopover (#11905). Main also changes theme/Theme and theme/defineTheme, which this pull request's story imports directly. #8200's pull request then stayed at 21f1b75. So the review link compared that head with 7857ed8, #8200's head merged with the same main. This pull request's own diff against that commit kept its size, +3,992/−170.

  • At eaf8ef6: pnpm typecheck 0, after pnpm build as CI runs it. pnpm check:knowledge 0. Changeset coverage passes. pnpm review:pre 0 findings. The unit tests ran for DateInput, DateTimeInput, TimeInput, FormLayout, BottomSheet, Layer, Popover, Tooltip, DropdownMenu, Field and Text. They also ran for gestures, utils, motion, drag-to-snap-points, usePager and useDragToSnapPoints: 278 files, 7,457 passed. The interaction specs and the accessibility contracts have not run at that head.

Below eaf8ef6, 6a723a0 merges #8200's head 21f1b75 into 4d6feab. That head adds one line to DateInput's record, in its Ownership boundary, and no code. Git merged it with no conflict, so the app code is 4d6feab's.

  • At 6a723a0: pnpm check:knowledge 0. Changeset coverage passes. pnpm review:pre 0 findings. The code is 4d6feab's, where the tests below ran.

Below 6a723a0, 4d6feab merges #8200's head ba40c16 into 6cc3074. That head merges main 4800d99. Git merged every file with no conflict, and main's changes touch no file this pull request edits. Some of them change modules both fields' code reaches at run time, such as Layer/inputHold and motion/themeTiming (#8373).

  • At 4d6feab: pnpm typecheck 0, after pnpm build as CI runs it. pnpm check:knowledge 0. Changeset coverage passes. pnpm review:pre 0 findings. The DateInput, DateTimeInput, TimeInput, FormLayout, BottomSheet, Layer, Popover, Field, Text, gestures, utils, motion, drag-to-snap-points, usePager and useDragToSnapPoints unit tests: 258 files, 6,939 passed. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 84 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 77 passed, 11 skipped. The DateInput and Calendar accessibility contracts: 111 passed.

Below 4d6feab, 6cc3074 merges #8200's head 6ef7af1 into 6f3726b. That head merges main 1addd72. Main's #11485 changes both fields' own files and both records, and #8690 adds sandbox pages beside this pull request's toggle page. Git merged every file with no conflict. In DateTimeInput's record, #11485 changed the entry error behavior API row and FR15's rows, beside this pull request's FR17. It also dropped the Current-state bullet "Entry error behavior (FR15)". Main also changes shared modules both fields' code reaches at run time, such as Layer/inputHold, BottomSheet and utils/pressFeedback.

  • At 6cc3074: pnpm typecheck 0, after pnpm build as CI runs it. pnpm check:knowledge 0. Changeset coverage passes. pnpm review:pre 0 findings. The DateInput, DateTimeInput, TimeInput, FormLayout, BottomSheet, Layer, Popover, Field, Text, gestures, utils, motion, drag-to-snap-points, usePager and useDragToSnapPoints unit tests: 258 files, 6,932 passed. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 84 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 77 passed, 11 skipped. The DateInput and Calendar accessibility contracts: 111 passed.

Below 6cc3074, 6f3726b merges #8200's head a9eebc3 into ac0c618. That head merges main 685728b, whose #11413 edits DateTimeInput's record, which this pull request edits. It changes FR15's and FR16's requirement text and FR16's verification row, and drops the Current-state bullet "Rejected entries (FR16)". Git stopped on that record, at the FR15 and FR16 rows beside this pull request's FR17. The resolution keeps both sides' rows, with no renumbering. #11413 also changes utils/timeFormat, which TouchDateTimeField calls, and DateTimeInput/DateTimeInput.

  • At 6f3726b: pnpm typecheck 0, after pnpm build as CI runs it. pnpm check:knowledge 0. Changeset coverage passes. pnpm review:pre 0 findings. The DateInput, DateTimeInput, TimeInput, Layer, Popover, Field, Text, gestures, utils, motion and usePager unit tests: 234 files, 6,123 passed. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 80 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 73 passed, 11 skipped. The DateInput and Calendar accessibility contracts: 111 passed.

Below 6f3726b, ac0c618 merges #8200's head 1f369ba into 021666c. That head merges main 7245e6a, whose #11470 edits both records this pull request edits. It adds a sentence to DateInput FR25 and test names to DateInput FR25's and DateTimeInput FR16's verification rows. Git stopped on both records. In DateInput's, it stopped at FR25's requirement and verification rows, beside this pull request's FR26 and FR27. In DateTimeInput's, it stopped at FR16's verification row, beside FR17. The resolution keeps both sides' rows, with no renumbering.

  • At ac0c618: pnpm typecheck 0, after pnpm build as CI runs it. pnpm check:knowledge 0. Changeset coverage passes. pnpm review:pre 0 findings. The DateInput, DateTimeInput, TimeInput, Layer, Popover, Field, Text, gestures, utils, motion and usePager unit tests: 234 files, 6,051 passed. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 80 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 73 passed, 11 skipped. The DateInput and Calendar accessibility contracts: 111 passed.

Below ac0c618, 021666c merges #8200's head 519a346 into c4108e3. That head merges main 36f68b0, with five changes to modules both fields' code reaches at run time. Main's #9810 adds observeResizeAfterLayout to utils/sharedResizeObserver, which MonthPager imports, and changes Text/useTruncation. Main's #10873 keeps the bottom sheet's snap points and its reentry in state. Main's #11258 changes Layer/useLayer, Popover/usePopover, utils/clickGuard, utils/touchEndMark and the layer's gesture counter, and #11337 changes Layer/useLayer again. Main's #11415 moves DateInput's entry-error report into a shared Field/useEntryErrorReport, which useTypedDate now calls. Git merged every file with no conflict, and main's changes touch no file this pull request edits.

  • At 021666c: pnpm typecheck 0, after pnpm build as CI runs it. pnpm check:knowledge 0. Changeset coverage passes. pnpm review:pre 0 findings. The DateInput, DateTimeInput, TimeInput, Layer, Popover, Field, Text, gestures, utils, motion and usePager unit tests: 233 files, 6,033 passed. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 80 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 73 passed, 11 skipped. The DateInput and Calendar accessibility contracts: 111 passed.

Below 021666c, c4108e3 adds one commit to d5fb57e, in answer to the stack review. Its parent, d5fb57e, merges #8200's head 1135ab2, which changes only #8200's changeset, into 1cb4cfb. c4108e3 itself changes only the toggle's changeset. So the app code is 1cb4cfb's. The toggle follows the device's coarse primary pointer, and the changeset now says so. A stylus on a tablet gets the new toggle, and a finger on a touchscreen laptop, in a bottom sheet, keeps the old one. The changeset also says the warm-up draws the hidden wheels at opacity 0, where it said that it lays them out.

  • At c4108e3: pnpm check:changesets 0. pnpm check:knowledge 0. Changeset coverage passes; pnpm review:pre 0 findings. The code is 1cb4cfb's, where the tests below ran.

Below the merge, 1cb4cfb merges #8200's head 5ce7733 into 3c68869. #8200's head merges main dd702d0, then names a PR2 evidence gap again in DateInput's record. In main, #11407 changes both fields' own files. Git stopped on both records. In each, #11407 changed a requirement's text and filled its verification row. They are DateInput FR25, beside this pull request's FR26 and FR27, and DateTimeInput FR16, beside FR17. In DateInput's record, #11407 also changed the FR5 row and the AR1, AR3 and AR5 row. It listed its new browser spec and dropped a Current-state bullet. In DateTimeInput's, it changed the FR8 row and the FR11 and AR5 row, listed the same spec and narrowed a Current-state bullet. Git merged those lines. The resolution keeps both sides' rows, with no renumbering.

  • At 1cb4cfb: pnpm typecheck 0, after pnpm build as CI runs it. pnpm check:knowledge 0. Changeset coverage passes. pnpm review:pre 0 findings. The DateInput, DateTimeInput, TimeInput, Layer, Field, gestures, motion and usePager unit tests: 153 files, 4,306 passed. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 80 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 73 passed, 11 skipped. The DateInput and Calendar accessibility contracts: 111 passed.

Below 1cb4cfb, 3c68869 merges #8200's head a77a252 into 4667c2e. That head merges main 9b5ad42. Git merged every file with no conflict. Main's 200e53a added a case to DateTimeInputTouch.test.tsx, which this pull request also edits, and both sides' cases stay. Main also changes modules both fields import, such as Field/InputClearButton (#11406), which they render.

  • At 3c68869: pnpm typecheck 0, after pnpm build as CI runs it. Changeset coverage passes. pnpm review:pre 0 findings. The DateInput, DateTimeInput, TimeInput, Layer, Field, gestures, motion and usePager unit tests: 153 files, 4,280 passed. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 74 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 69 passed, 9 skipped.

Below 3c68869, 4667c2e adds one commit to a10a345, in answer to the stack review. A second title tap mid-fade turns the cross-fade around. useMonthYearToggle took the fade as running only while the toggle state differed from the settled one. So the turnaround ended it at once. The shield dropped while the reversed fade still ran, and the actions outside the shield went live. An arrow or a day beneath the fading wheels, or Done while the wheels faded back in, took a tap. The hook now records the turnaround and keeps the fade running until the reversed transition ends. No panel's inert changes with the turnaround. The header's and footer's actions in both fields also wait for the fade's end. DateInput FR27's verification row names the new cases.

Red first, at a10a345: two new useMonthYearToggle cases fail, with no shield after the turnaround. Three new browser cases fail in Chromium, with the sheet's fades stretched to 2 s. The arrow takes a tap during the reversed fade in both fields, and Done takes one during a reopen mid-close. At 4667c2e all pass.

  • At 4667c2e: pnpm typecheck 0, after pnpm build as CI runs it. pnpm lint:strict, check:repo included, 0 errors, and no warning in this pull request's files. pnpm check:knowledge 0. Changeset coverage passes. pnpm review:pre 0 findings. The DateInput, DateTimeInput, Layer, motion and usePager unit tests: 95 files, 2,979 passed. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 74 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 69 passed, 9 skipped. The DateInput and Calendar accessibility contracts: 111 passed.

Below 4667c2e, a10a345 adds one commit to 69b7510. At 69b7510, the busy-fade case failed once in Chromium ("blockMainThread: no animation started"), since it armed the block after the tap. That case, "the wheels keep fading in every frame through a blocked main thread", blocks the page once the wheels' fade has run 32 ms. The fade lasts 225 ms. On a loaded host, the round trip from the test can take longer, and then the fade ends before the page watches for it. The commit a10a345 arms the block before the tap, as the wheel's busy case does. The block and its bounds are unchanged. Red first: with 400 ms between the tap and the block, the old order fails with "no animation started", and the new order passes. The wheels' fade is a CSS transition, so #9261's animator change does not drive it.

  • At a10a345: pnpm typecheck 0; Changeset coverage passes; pnpm review:pre 0 findings. The unit tests ran at 69b7510 (below), since a10a345 changes only a browser test. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 71 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 66 passed, 9 skipped.

Below a10a345, 69b7510 merges #8200's head eb91aaf into f637515. That head merges main badd698, with #9261's change to the animator. Git merged every file with no conflict, and main's changes touch no file this pull request edits.

  • At 69b7510: pnpm typecheck 0, after pnpm build as CI runs it. Changeset coverage passes; the DateInput, DateTimeInput, Layer, motion and usePager unit tests: 95 files, 2,977 passed. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 70 passed and 4 skipped. One failed: the busy case above, for the cause above. WebKit through webkit-container.mjs with CI's four CPUs: 66 passed, 9 skipped.

Below 69b7510, f637515 merges #8200's head 3e1b78d into 869c8e5. That head merges main 1dbbc73, with #10912's change to Layer/useLayer. Git stopped on DateInput's and DateTimeInput's records: main's #11321 took DateInput FR25 and DateTimeInput FR16. So this pull request's rules renumber again (see "Changed for #11310 and #11321"), with their text unchanged.

  • At f637515: pnpm typecheck 0, after pnpm build as CI runs it. Changeset coverage passes. pnpm review:pre 0 findings. The DateInput, DateTimeInput and Layer unit tests: 56 files, 1,779 passed. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 71 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 66 passed, 9 skipped.

Below f637515, 869c8e5 adds four commits to 537e28f, in answer to the stack review.

Below 869c8e5, 537e28f adds two commits to e5a99eb. 4d24ab0 restores the hidden wheels' warm-up, which 1eba81b dropped. Since then the title tap's commit also flips the wheels' visibility. It is inherited, so the commit restyles every row, and the fade's first frames come late. On an Android phone the opening fade's first painted frame was 49–58 % blended, against 14–15 % at 8ddf2ae. useMonthYearToggle warms the wheels again. Once the open sheet settles and the main thread is idle, both fields show them at opacity 0. They stay inert and hidden from assistive technology. The title tap then starts only their opacity fade. The changeset's warm-up line is back.

Red first, at e5a99eb, in Chromium and WebKit: the restored browser case fails for both fields. The wheels stay visibility: hidden after the sheet settles. With that check skipped, the title tap starts opacity and visibility transitions on them, not opacity alone. The three new useMonthYearToggle cases fail there too. At 537e28f all pass.

537e28f fixes how one toggle test times its frames. Its first Chromium run at 4d24ab0 failed, under load from parallel builds on the host. In "a second tap mid-fade turns the fade around from where it is", one step of the fall dropped 0.067 against its 0.048 bound. The test reads each frame's opacity, which the fade samples at the frame's time. But it timed each step with performance.now() in the frame's callback. A busy main thread runs a callback late, which shortens the next step. The log now takes the frame's own time; the bound is unchanged. Red first: the main thread is kept busy for 120 ms before the clock read, on every sixth frame. The old clock then fails (0.066), and the frame clock passes. The warm-up changes only the hidden wheels' visibility, not the fade this test measures.

  • At 537e28f: pnpm typecheck 0, after pnpm build as CI runs it. pnpm lint:strict, check:repo included, 0 errors, and no warning in this pull request's files. Changeset coverage passes; pnpm review:pre 0 findings. The whole vitest ui project at 4d24ab0, since 537e28f changes only a browser test: 998 files, 24,664 tests passed. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 71 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 66 passed, 9 skipped. The DateInput and Calendar accessibility contracts: 111 passed.

Below 537e28f, e5a99eb merges #8200's new head 438eb48, which merges main f980d1c with #10592's usePager change. Main's #11311 re-padded the tables in DateInput's and DateTimeInput's records. So the merge ignores whitespace-only changes, and Prettier re-aligns the tables. This pull request's rows stay: DateInput FR9, FR24 and FR25, and DateTimeInput FR15. motion/MEASUREMENTS.md and the sandbox's export routes merged with both sides' lines.

  • At e5a99eb: pnpm typecheck 0, after pnpm build as CI runs it. pnpm lint:strict, check:repo included, 0 errors, and no warning in this pull request's files. Changeset coverage passes. pnpm review:pre 0 findings. The whole vitest ui project: 998 files, 24,661 tests passed. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 69 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 64 passed, 9 skipped. The DateInput and Calendar accessibility contracts: 111 passed.

Below e5a99eb, 65a8bb1 merges #8200's head f34d87f, which merges main 4245f38 (through d9d7b10). Git merged every file with no conflict. The sandbox's page list and export routes keep main's two new pages and this pull request's page, and motion/MEASUREMENTS.md keeps both sides' lines. Main also changed the gesture code under both sheets: a tap that wobbles at a scroll edge (#10829) and the menu press (#8078). Its Popover fix (#11177) changes hooks/focusableSelector.ts, whose selector useMonthYearToggle imports.

  • At 65a8bb1: pnpm typecheck 0, after pnpm build as CI runs it. pnpm lint:strict, check:repo included, 0 errors, and no warning in this pull request's files. Changeset coverage passes. pnpm review:pre 0 findings. The whole vitest ui project: 993 files, 24,478 tests passed. Every DateInput and Calendar interaction spec, against Storybook built at that head, at one worker: Chromium 69 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 64 passed, 9 skipped. The DateInput and Calendar accessibility contracts: 111 passed.
  • At 0e1ac4d, below 65a8bb1, the whole ui project had one failure. A MultiSelector case ran past its 30 s deadline, at 32.1 s, at a load average near 70. This pull request doesn't touch MultiSelector; at 65a8bb1 the case took 7.2 s.

Below these merges, 6c86a5a moves one import in TouchDateField.tsx up with the other imports, above the module's first statement. No behavior changes.

Below 6c86a5a, 6113b9d merges #8200's earlier head f26df1b, which merges main f27380a, rewrites six comments and names MonthScroller.tsx's exports in DateInput's record. Git stopped on two files. In DateTimeInput's record, FR14 and its verification row take main's looping minute wheel (#10953), and FR15 keeps this pull request's rows. The motion/uikit/datePicker.ts header keeps this pull request's calendar sentence and #8200's shorter sentences. Every other file merged with no conflict.

Below the merge, af33cf0 follows a specs decision (Nov 11 2026): DateTimeInput keeps its calendar drawn under the wheels, as DateInput does. It gives DateTimeInput's wheels surface an opaque layer in the sheet's color, with its own stacking context. Under a finger its calendar no longer fades or hides, and aria-hidden and inert keep it out of reach. With a mouse it still hides when the wheels show. a277007 splits four comment sentences that ran past 25 words. 0295280 states the one look in DateInput FR25 and updates two verification rows, docs only.

Red first: the new case "the wheels fade in on an opaque plate, and the calendar stays drawn beneath them" runs on both fields. Against Storybook built at 6404e3d, DateInput passed and DateTimeInput failed: its calendar ran an opacity fade from 1 to 0. Against Storybook built at 5ae3400, whose tree 0295280 keeps, both passed, in Chromium and in WebKit.

6404e3d applied the review of new internal modules. 6300c56 merges #8200's head e0fc1d6, which keeps the month pane and its grid focus in MonthScroller.tsx. This pull request's edits to MonthPane.tsx move there unchanged. 1eba81b folds useFadeInert and useChevronDip into one hook, useMonthYearToggle. It drops useWheelsWarmUp: in WebKit, the wheels' early layout made no measurable difference. 4d24ab0 restores it, as above. It writes the chevron's quarter turn as a literal, and a test holds it to the UIKit table. 6404e3d names the hook in DateInput FR25, docs only.

  • At 6c86a5a: eslint on TouchDateField.tsx 0 warnings; pnpm typecheck 0; the DateInput and DateTimeInput unit tests: 25 files, 1,080 tests passed.
  • At 6113b9d: pnpm check:repo 0, knowledge and changesets included; Changeset coverage passes; pnpm review:pre 0 findings. The whole vitest ui project, 992 files, 24,419 tests passed.
  • With the same code, before fix(DateInput, DateTimeInput): the sheet's calendar pages like UIDatePicker #8200's docs-only record line: pnpm typecheck 0; pnpm lint:strict 0 errors, and no warning in this pull request's files.
  • Every DateInput and Calendar interaction spec, against Storybook built from that code, at one worker: Chromium 69 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 64 passed, 9 skipped.
  • The DateInput and Calendar accessibility contracts: 111 passed.
  • At 0295280's tree, before the merge: the whole ui project, 24,244 passed; Chromium 69 passed, 4 skipped; WebKit 64 passed, 9 skipped.
  • At 6404e3d, the same browser runs: Chromium 67 passed, 4 skipped; WebKit 62 passed, 9 skipped; accessibility 111 passed.

The head before, 184de63, merges #8200's head b5a487a into 8ddf2ae, so the two form a stack. No file changes: the tree stays 8ddf2ae's.

8ddf2ae merges main ebb9dde into 947120e with no conflict. That main carries #11135, which removes an extra commit a focus move inside the sheet's scroll area cost. Without it, this pull request's two focus hand-off cases fail. Then a sandbox page puts both sheets on a page the document scrolls, for the phone check.

  • At 8ddf2ae, whose tree 184de63 keeps: check:knowledge 0; check:changesets 0; pnpm -F @astryxdesign/core typecheck 0; pnpm lint:strict 0 errors.
  • The DateInput, DateTimeInput and Calendar unit tests: 1,359 passed. The sandbox's route manifest test passes, 6 of 6.
  • Every DateInput, Calendar and motion interaction spec, at one worker: Chromium 223 passed, 4 skipped. WebKit through webkit-container.mjs with CI's four CPUs: 208 passed, 19 skipped. They ran against Storybook built at 305e50b, whose tree differs from 8ddf2ae only in the sandbox page.
  • The DateInput and Calendar accessibility contracts: 111 passed.
  • The sandbox build exports /pages/month-year-toggle/. In Chromium as an iPhone 13, the document scrolls. Each sheet's month title opens and closes its month and year wheels.

947120e merges main 18af3dc into dc2e1fc, then drops the month track's data attribute, as #8200's head b5a487a does. Git merged every file with no conflict. The merge makes #8200's one hand edit in MonthScroller.interaction.browser.spec.ts, and that file ends up the same in both heads.

dc2e1fc replays a03bf99's 15 commits onto #8200's head 7ea993f, which merges main 3918a54 into #8200. Two commits change only in their context. Main's #10400 sits next to the first commit's TouchDateField import, and next to the seventh commit's new line in the month pane. That line keeps #10400's null-today guard. Its diff against #8200's head equals the earlier head's own diff, line for line.

  • At dc2e1fc: check:knowledge 0; check:changesets 0; pnpm -F @astryxdesign/core typecheck 0; CI=true pnpm lint 0 errors. Prettier clean over the stack's files. The DateInput, DateTimeInput, Calendar, motion, TimeInput, utils, hooks and SnapPaging unit tests: 4,691 passed. MonthYearWheels, MonthPager, MonthYearToggle, MonthScroller, MonthScrollerSteps and fix(DateInput, DateTimeInput): the sheet's calendar waits for today, so hydration matches #10400's CalendarTodayHydration against Storybook built at dc2e1fc: Chromium 48 passed, 2 skipped; WebKit (--cpus=4, LP_NUM_THREADS=4) 47 passed, 3 skipped.

a03bf99 restacks the earlier head e4c6e2b's 15 commits onto #8200's restack 6f62fc8, on main ed2fd36 after #8209's squash 9d55076. It drops the three merges (b1fb87b, a712d60, 74c78b7). Each of their resolutions now sits in the commit that first changes the code it resolves (see "Changed for #10231" below). Its diff against #8200's head equals the earlier head's own diff, line for line.

  • At a03bf99: check:knowledge 0; check:changesets 0; pnpm -F @astryxdesign/core typecheck 0; CI=true pnpm lint 0 errors. Prettier clean over the stack's files. The DateInput, DateTimeInput, Calendar, motion, TimeInput, utils and hooks unit tests: 4,652 passed. MonthYearWheels, MonthPager, MonthYearToggle, MonthScroller and MonthScrollerSteps against Storybook built at that head: Chromium 44 passed, 2 skipped; WebKit (--cpus=4, LP_NUM_THREADS=4) 43 passed, 3 skipped.

The earlier head e4c6e2b merged #8200's merge with main 24d845b into the head before it, d84ec6e, then added one test commit and the changeset commit.

The pre-merge head d84ec6e sits on #8200's head c6b74ea. It holds the earlier head 664ed1a's twelve commits, rebased past #9643/#9842 (see "Changed by the rebase onto #9643/#9842" below). Two merges with main follow, then one changeset commit. The merges have one hand edit: DateTimeInputTouch.test.tsx keeps this pull request's testing-library import beside main's getOnlyButton import.

  • The pre-merge changeset commit narrowed one line: the wheels' warm-up lays them out once the sheet settles. The later changeset commit dc2e1fc ends it "so a toggle after that does not lay them out": DateInput's panel also flips pointer-events with the toggle. It no longer says the fade shows from near its start; see "The fade on iOS" below.

  • At d84ec6e's merge, b1fb87b (the same tree as a712d60): pnpm -F @astryxdesign/core typecheck 0; CI=true pnpm lint 0 errors. Prettier clean over the stack's files. The DateInput and DateTimeInput unit tests: 1,024 passed. At d84ec6e: check:changesets 0.

  • Measured on d84ec6e's preview: Chromium, a touch pointer, a tap on the title, the neutral theme at its default tempo. Every toggle transition runs 225 ms. Start to end is 217.5–217.7 ms in DateInput and 221.2–221.3 ms in DateTimeInput.

  • MonthYearWheels, MonthPager, MonthYearToggle, MonthScroller and MonthScrollerSteps against Storybook built at de6c245, this product code on main e657e2e: Chromium 44 passed, 2 skipped. WebKit (--cpus=4, LP_NUM_THREADS=4): 43 passed, 3 skipped.

  • The FR45 timing, useFadeInert's red-first case and the toggle spec's waits are as in their commits. So are the per-pointer day-tap rule and the focus hand-off's two red-first tests. The rebase changed none of them.

Public and internal API delta

Public: none. No package export, public prop, type or default changes, and no new data-* attribute.

Internal: one new module, and two changes.

  • useMonthYearToggle, a new hook in packages/core/src/DateInput/, used by both touch sheets: const {isCalendarInert, isWheelsInert, isFading, isWheelsWarm, titleRef, toggle} = useMonthYearToggle({isWheelOpen, setIsWheelOpen, isTouch, isSheetOpen, calendarRef, wheelsRef});. Why: both sheets swap inert when the cross-fade ends, hand focus to the incoming panel and dip the chevron under Reduce Motion. Both warm the hidden wheels once the sheet settles. The title and Done call one toggle. Existing modules considered, and why they don't fit: useFocusTrap keeps Tab in one region, useEntryAnimation animates mounts, useSettledOpen settles hydration, and motion/reducedMotion.ts has no React. None swaps inert between two mounted panels. In WebKit at 6404e3d, deferring the swap brings the first frame after a title tap 3–6× sooner. First frame: 34 ms (DateInput) and 21 ms (DateTimeInput), against 97 ms and 131 ms when inert flips with the toggle. The longest frame gap in the fade's first 300 ms grows: DateInput 93/111 ms against 75/51 ms (open/close), DateTimeInput 155 ms against 123 ms (open). DateTimeInput's figures predate af33cf0, which gave its wheels the opaque plate.
  • MonthPane (in MonthScroller.tsx) takes a new optional prop, hasSelectionFade (default false): <MonthPane {...paneProps} hasSelectionFade />. Why: the mouse calendar keeps its selection fade, and a finger's tap selects at once, as in UIDatePicker.
  • The datePicker table (motion/uikit/datePicker.ts) gains calendar.selection.tapAnimates and calendar.monthYearToggle: datePicker.calendar.monthYearToggle.fadeMs // 250. Why: it records UIKit's measured tap and toggle, and tests hold the styles to it.
  • Folded back: useChevronDip; useWheelsWarmUp, now a private function in useMonthYearToggle.ts; and monthYearToggle.stylex.ts, whose one constant is now the literal turn.
  • Recorded: component:DateInput FR27 names useMonthYearToggle.

Size: +3,992/−170 lines (dba8c0a..83955c4); product code (packages/core/src, no tests) +1,114/−135. The sizes below were measured at this head against #8200's head. At component level, against #8200's head (the repository's size report, gzip of the JavaScript each import loads eagerly): DateInput +1,792 B, DateTimeInput +1,916 B. Their CSS grows +269 B and +365 B. Published package, against #8200's head (the repository's package-size report): @astryxdesign/core download +18.3 kB (+0.2%), unpacked +70.7 kB, 4 more files. The other 10 packages are unchanged. The sandbox page stays in the sandbox app and ships in no package.

Before and after

real-device iOS: the run on an iPhone passed at d84ec6e. 8ddf2ae merges main's change to Layer/useLayer, a shared layer module, so that run does not carry (DEC-31). The run on an iPhone at 8ddf2ae, on the sandbox page /pages/month-year-toggle/, passed. Later heads change the toggle's code, so side-by-sides against 8ddf2ae followed, on the same page. At 6c86a5a it showed no major difference in the open and close, and no visible hitch on the iPhone. In it, DateTimeInput's toggle differs on purpose: its calendar now stays drawn under the wheels, as in DateInput. 65a8bb1 merged main's changes to the gesture code under the sheets, and to the focusable selector the toggle imports. So the side-by-side ran again at 65a8bb1, against 8ddf2ae, on an iPhone and an Android phone. It showed no major difference in DateInput's sheet or under Reduce Motion. DateTimeInput's sheet differed only by its intended one-layer cross-fade. e5a99eb merged #10592, whose usePager change reaches the calendar's MonthPager. On an Android phone, its side-by-side found DateInput's opening fade starting about half done. 537e28f restored the warm-up, and its side-by-side against 8ddf2ae, on an iPhone and an Android phone, found no major difference. On the Android phone, DateInput's opening fade's first painted frame was 27 % blended at both heads. 869c8e5 changed the toggle's code, so the side-by-side ran again there, against 8ddf2ae, on an iPhone and an Android phone. It found no major difference. DateInput's sheet matched at both heads, with Reduce Motion on and off. DateTimeInput's toggle now fades as DateInput's does, its intended one-layer cross-fade. Next, f637515 merged main's change to Layer/useLayer, a shared layer module, so that run did not carry. So the side-by-side ran again at f637515, against 8ddf2ae, on an iPhone and an Android phone. It found no major difference, the same result as at 869c8e5. DateInput's sheet matched at both heads. DateTimeInput's toggle fades as DateInput's does, its intended one-layer cross-fade. 69b7510 merged main's animator change, which both fields reach through usePager, their wheels and the bottom sheet, so that run did not carry. Later heads change the toggle's code and merge main again. So the side-by-side ran again at 1cb4cfb, whose app code c4108e3 kept (bundles byte-identical). It ran against 8ddf2ae, on an iPhone and an Android phone, in both fields. It found one exact difference, and it is this pull request's fix. On the Android phone, a tap came about 70 ms after a quick double tap on the title, inside the reversed fade. At 8ddf2ae it reached the days, the arrows and Save, and at 1cb4cfb it reached nothing. With animations removed, nothing landed at 1cb4cfb in either field. At 8ddf2ae, the taps landed in DateTimeInput, and in DateInput the double tap left the month/year view open. The iPhone cannot land a second press that soon, so that tap ran on the Android phone only. Everything else matched at both heads. One title tap on the Android phone was dropped at 1cb4cfb, in DateTimeInput's first take, and did not repeat in 2 reruns. Later heads merged main's changes to utils/sharedResizeObserver, which MonthPager imports, to utils/timeFormat, which TouchDateTimeField imports, and to Layer/useLayer, a shared layer module. They also merged #11485's changes to DateInput.tsx and DateTimeInput.tsx, which this pull request's sandbox page imports directly. Main's #11679 also changed theme/defineTheme, which this pull request's story imports directly. So that run did not carry, and the side-by-side ran again at 4d6feab, whose app code 6a723a0 kept. It ran against 8ddf2ae, on an iPhone and an Android phone, in both fields. It found one difference, and it is this pull request's fix. On the Android phone in normal motion, a third tap came just after a quick double tap on the title. During the reversed fade, every head tap reached the shield: day 20, Save and Next in Date of birth, and Save in Meeting time. At 8ddf2ae, the same taps in Date of birth reached the day, Save or Next. The shield lifts a frame after the fade ends. In that frame, four more head taps pressed and clicked on the shield. In three others, the press began on the shield and the click after the lift reached Next. Two were in normal motion and one with animations removed. After the lift, taps landed at both builds. On the iPhone, both builds matched. Android: the Android emulator set DEC-27 asks for (normal, Remove animations, 4× CPU) passed at e4c6e2b (below). The Android emulator set ran at 4d6feab, whose app code 6a723a0 kept, in Chrome 133 with Gboard on Android 16. Its 6 cells passed at each setting, 18 of 18: normal, 4× CPU and Remove animations. They prove the toggle (DateInput FR26, DateTimeInput FR17), the day tap (DateInput FR9) and #8200's pager claims. One Remove-animations take was refused for a 266.7 ms frame stall, over the 250 ms that timing cells allow. A rerun of all 6 cells passed. Then 233a7c8 merged main's change to Layer/useLayer, a shared layer module, so neither run carried (DEC-31). At 233a7c8, the side-by-side ran again against 8ddf2ae, in both fields' sheets, on an iPhone 14 (Safari on iOS 26.2) and the Android emulator. It compared the title tap that swaps the calendar and the month/year wheels. On the iPhone, the wheels faded in over about 160 ms at both builds. With Reduce Motion on, the drawn frames show the same cross-dissolve at both builds. With the wheels up, the DateInput sheet's stills matched to the pixel. The DateTimeInput sheet's differed by at most 4 of 255 in a color value, under a 2% tolerance. On the emulator, the title-tap cell passed at both builds, in normal motion and with animations removed, with the same title and wheel states. At 8ddf2ae, one normal-motion take ran below the frame-rate floor, and its rerun passed. With the wheels up, 233a7c8 keeps DateTimeInput's calendar drawn under the opaque wheels, where 8ddf2ae hid it (af33cf0). It stays aria-hidden and inert, as in the DateInput sheet. In Chromium and WebKit, nothing in it took focus, a point on a day hit the wheels, and axe's aria-hidden-focus rule passed. The Android emulator set ran at 233a7c8, in Chrome 133 with Gboard on Android 16. Its 6 cells passed in normal motion and with animations removed, 12 of 12. In each setting, one take of the main cell was refused for a 400 ms frame stall, and its rerun passed. Slow-device profile: not passed at 233a7c8. Under 4× CPU, the title-tap and day-tap cells passed. The other 4 cells were refused twice each, for a frame stall of 0.7 to 1.2 s as the sheet opens. AST-094 DEC-27's slow-device cell is therefore missing for this head. The same cells at 8ddf2ae stall the same way on this emulator. These runs carry to this head, 83955c4, per the owners' DEC-31 check. The owners accepted this partial slow-device set for this head.

Android, at e4c6e2b (the Android emulator set DEC-27 asks for). Chrome 133 with Gboard on the Android 16 emulator ran against that head's own deployment (its version.json checked), on the core-dateinput--bottom-sheet-calendar story. The Japanese case is on calendar-system-presentations. Each claim ran at normal speed, at 4× CPU and with the system's Remove animations on.

This pull request's own change is the day tap under a finger. A tap on 18 moved the value from October 15 to October 18, 2026 with exactly one trusted click and no second change. That held in 6 of 6 takes (two at each setting), and the sheet opened on the first tap in every take.

Claim normal 4× CPU Remove animations
A slow drag of 1/3 of the width springs back, with no page pass 4/4 pass 3/3 pass 2/2
› pages one month per tap pass 4/4 pass 3/3 pass 2/2
A slow drag past half pages one month back pass 4/4 pass 3/3 pass 2/2
A fast flick (150 ms or less, released at 0.8 px/ms or more) pages one month back pass 2/2 — pass 1/1
A mostly-down drag moves only the sheet: the month stays, the sheet stays open pass 4/4 pass 3/3 pass 2/2
Japanese calendar: each swipe pages one month pass 2/2 — —
The day tap selects that day, with at most one click and one change pass 2/2 pass 2/2 pass 2/2

A take counts only when its gesture is valid. The 1/3 drag takes 400 ms or more. The flick is one 80 ms swipe (150 ms or less from down to up, 60 ms or less from the last move to up). An interleaved flick-back comparison against #8200's head feca481, on the same story and emulator, shows the same threshold on both heads. The month pages when a flick is released at about 0.8 px/ms or more, from the last two pointer moves. The month stays below about 0.6 px/ms, or when the swipe reaches the page with 0–1 moves. On #8200, 6 of 6 at 0.77 px/ms or more paged. On #8206, 7 of 7 at 0.95 px/ms or more paged. So the flick row counts only flicks released at 0.8 px/ms or more; one earlier miss on e4c6e2b, at 0.78 px/ms, sits at that threshold.

At d84ec6e, before the merge with main 24d845b, on the iOS 26.2 Simulator (iPhone 17 Pro, Mobile Safari), against main ddedd4c. A red ring marks the finger:

Path main this PR
DateInput title tap and back
DateTimeInput title tap and back
A finger's day tap

Recorded on the iOS 26.2 simulator and the Android emulator at an earlier head, with UIKit's 0.25 s ease-in-ease-out. This head plays the theme's tokens below.

Path before this PR
Title tap and back
RTL
Reduce Motion
DateTimeInput title tap and back

The fade on iOS. Mobile Safari clocks a transition from the style change. So once the hidden wheels are laid out, after the sheet settles, the toggle's commit flips no inherited property on the panels. Their inert swaps when the fade ends, aria-hidden and focus move with the toggle, and a shield takes touches meanwhile. The toggle's commit still holds the main thread for about 45 ms on the iOS Simulator, as on main. BottomSheetPanel reads window.innerHeight in the commit, which forces a layout. So the fade's first frame shows it partly done. The figures below come from an earlier head that also laid the hidden wheels out early. Share of the change shown in the first frame, on the Simulator at low load, 3 takes each, against main:

Toggle main this PR
DateInput, to the wheels 47–54 % (linear fade) 54–82 %
DateInput, back 27–77 % 16–43 %
DateTimeInput, to the wheels 100 % (swaps at once) 56–64 %
DateTimeInput, back 100 % 39–42 %
First frame after the tap 39–48 ms 37–52 ms

The toggle's timing on Android. Chrome 133 with Gboard on the Android 16 emulator ran 6c86a5a's preview, on the sandbox page month-year-toggle, with the host's load at 3–5. It compares 6c86a5a, which defers the inert swap, with 184de63, which also laid the hidden wheels out early. 4d24ab0 lays them out early again. The pull request has no switch for either, so this is not a with/without comparison. Times run from the tap's pointerdown, two takes each. The longest task runs between the tap and the fade's end; 184de63's probe recorded none.

Profile, sheet, tap 184de63: first wheel frame / fade end 6c86a5a: first wheel frame / fade end 6c86a5a: longest task Worst frame gap: 184de63 → 6c86a5a
normal, DateInput, open 57–68 / 244–268 ms 46–68 / 241–250 ms none 110–135 → 94–111 ms
normal, DateInput, close 61–66 / 306–331 ms 44–49 / 288–303 ms none 99–114 → 74–75 ms
normal, DateTimeInput, open 22–45 / 222–286 ms 29 / 231–238 ms none 82–94 → 69–86 ms
normal, DateTimeInput, close 30–42 / 254–289 ms 27–31 / 250–262 ms none 76–101 → 43–44 ms
4× CPU, DateInput, open 178–233 / 403–589 ms 173–183 / 362–368 ms 126–134 ms 113–342 → 128–142 ms
4× CPU, DateInput, close 118–209 / 345–668 ms 95–99 / 369–384 ms 63–70 ms 102–265 → 91–120 ms
4× CPU, DateTimeInput, open 110–114 / 325–333 ms 56–68 / 233–248 ms none 100–170 → 54–98 ms
4× CPU, DateTimeInput, close 90–124 / 351–372 ms 35–39 / 279–285 ms up to 57 ms 94–105 → 57–107 ms

With two takes each, 6c86a5a's range is wholly lower than 184de63's in 11 of 24 compared cells, and overlaps it in the other 13. None is higher. Wholly lower: every cell of normal DateInput close and of 4× DateTimeInput open. Also 4× DateTimeInput close's first frame and fade end, and 4× DateInput open's fade end. Also 4× DateInput close's first frame, and normal DateTimeInput close's worst gap.

Focus. The toggle's own handler decides the focus hand-off (useMonthYearToggle's toggle), so focus inside the outgoing panel moves in the toggle's commit. No Effect decides it afterwards. Done hands it to the shown month's tab stop, retrying each frame until the calendar can take focus.

Changed for #11310 and #11321

Main's #11310 took DateInput FR24 and DateTimeInput FR15 for the fields' entry error behavior. Then #11321 took DateInput FR25 and DateTimeInput FR16 for their rejected entries. This pull request's records renumber again, with their text unchanged. The chevron is FR26, and the tap shield and focus hand-off FR27. DateTimeInput FR17 cites FR26 and FR27.

Changed for #10231

Main's #10231 took DateInput FR22 for the touch sheet's month arrows and gave them a focus hand-off at the range end. This pull request's records renumbered again, with their text unchanged. The chevron became FR24 and the tap shield and focus hand-off FR25 (#8209's wheel rule is FR23). DateTimeInput FR15 cited FR24 and FR25.

In TouchDateField, the hand-off runs through what the toggle keeps. The memoized month arrows take #10231's refs and its focus-handing step. The month grid's callback, still read through a ref, runs #10231's hand-off on a settled month. The title button takes #10231's ref and this pull request's chevron ref through useMergedRefs. Two tests check the hand-off after a toggle; each fails if the toggle re-renders what it keeps or if the hand-off is lost.

Changed by the rebase onto #9643/#9842

Main took DateInput FR20 and FR21 and DateTimeInput FR11–FR13 (#9643/#9842), so this pull request's records renumber, with their text unchanged. The memoized month/year wheels also take main's monthModel and keptDay.

Rule Was After
DateInput: the title chevron FR21 FR24
DateInput: the toggle's tap shield and focus hand-off FR22 FR25
DateTimeInput: the chevron and Done's focus hand-off FR12 FR15

@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

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

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

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 24, 2026
@astracat-bot

astracat-bot Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟡 Reviewed (for maintainers only) Nov 17, 2026, 1:39 PM UTC

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current CI run concluded skipped. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval waits on an engineering owner's decision. The calendar toggle's timing moves from the theme's motion tokens to UIKit constants under draft AST-094 (FR1, FR4), which would narrow the current theme-tokens architecture (INV3) for touch presentations, and the reading-direction chevron that turns down has no governing spec yet. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request once the records say what is approved; the author may do so as an engineering owner. Whatever is decided, these need changing:

  • Land the stacked predecessors first, so this pull request's compare holds its own 371-line commit instead of 36,310 lines.
  • Make the lint check pass: ESLint runs out of memory on this head but passes on main.
  • Add real-browser evidence for DateTimeInput's new cross-fade and chevron turn and for the RTL chevron (AST-013 FR10), since the browser spec covers only the DateInput story in LTR.
  • Tag .changeset/calendar-toggle-uidatepicker-timing.md [feat] rather than [fix] and name the old chevron, because it changes visual direction (AST-017 FR3).

[Automated review]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval waits on an engineering owner's decision: the calendar toggle's timing moves from the theme's motion tokens to UIKit constants under draft AST-094 (FR1, FR4), which would narrow the current theme-tokens architecture (INV3) for touch presentations, and the reading-direction chevron that turns down has no governing spec yet. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request once the records say what is approved; the author may do so as an engineering owner. Whatever is decided, these still need changing:

  • Land the stacked predecessors first, so this pull request's compare holds its own 371-line commit instead of 36,158 lines.
  • Tag .changeset/calendar-toggle-uidatepicker-timing.md [feat] rather than [fix] and name the old chevron, because it changes visual direction (AST-017 FR3).
  • AST-094 FR7 cites AST-090, which only #8003 proposes, so land that first or qualify the sentence.

[Automated review]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval waits on an engineering owner's decision: the calendar toggle's timing moves from the theme's motion tokens to UIKit constants under draft AST-094 (FR1, FR4), which would narrow the current theme-tokens architecture (INV3) for touch presentations, while the reading-direction chevron and keeping the full 250 ms fade and 90° turn under Reduce Motion (draft FR8) have no governing spec yet. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request once the records say what is approved; the author may do so as an engineering owner. Whatever is decided, these still need changing:

  • Land the stacked predecessors first, so this pull request's compare holds its own 671-line commit instead of 36,863 lines.
  • Tag .changeset/calendar-toggle-uidatepicker-timing.md [feat] rather than [fix] and name the old chevron and the old 0.01 s Reduce Motion timing, because it changes visual direction (AST-017 FR3).
  • AST-094 FR7 cites AST-090, which only #8003 proposes, so land that first or qualify the sentence.

[Automated review]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval waits on an engineering owner's decision: the calendar toggle's timing moves from the theme's motion tokens to UIKit constants under draft AST-094 (FR1, FR4), which would narrow the current theme-tokens architecture (INV3) for touch presentations, while the reading-direction chevron and keeping the full 250 ms fade and 90° turn under Reduce Motion (draft FR8) have no governing spec yet. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request once the records say what is approved; the author may do so as an engineering owner. Whatever is decided, these still need changing:

  • Land the stacked predecessors first, so this pull request's compare holds its own 1,001 lines instead of 37,193.
  • Attach an iOS simulator recording of the CSS fade jumping after a busy commit, or keep the fades as CSS transitions, because moving them into an Effect needs that Mobile Safari evidence (component-style-authoring INV2, AST-013 FR10).
  • Tag .changeset/calendar-toggle-uidatepicker-timing.md [feat] rather than [fix] and name the old chevron and the old 0.01 s Reduce Motion timing (AST-017 FR3).
  • AST-094 FR7 cites AST-090, which only #8003 proposes, so land that first or qualify the sentence.

[Automated review]

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested on both pull requests in this stack: their record changes are approved at each exact head and the code matches them, but the device and emulator evidence at these heads is missing. A pull request lands only when it and every pull request below it are approved.

#8200: changes requested

  • The Android emulator set that spec:AST-094 Platform support and DEC-27 require (Chrome with Gboard, animations at normal scale and removed, and the slow-device profile) is pending at this revision, and DEC-31 cannot carry an earlier set because this merge of main edits DateInput.spec.md, a file this pull request changes: run it on the revision that will merge and state each result in the description.
  • Regression: the real-phone side-by-side against the owner's passed revision does not carry to this revision, for the same reason and because earlier merges changed the resize observer MonthPager imports and the shared layer module: run it on the revision that will merge and state the result in the description.

#8206: changes requested

  • The Android emulator set (normal animation scale, animations removed, slow-device profile) is stated as pending at this head, and earlier runs do not carry past this merge, which edits both date records this pull request changes: run it on the head that will merge and state each result in the description.
  • The iPhone side-by-side against the head the owner passed is stated as pending at this head for the same reason: take it on the same iPhone and state its result in the description.

Whole stack

Passes: the Stack line is in order, the changesets, records and code agree on the coarse-pointer gate, and no public API changes.

  • main has since rewritten DateTimeInput's FR15 and FR16 rows next to this stack's FR17, so the stack needs a merge with main that resolves that record; take the device and emulator runs after that merge, or they will not carry to the head that lands.
Claims and files checked
  • Toggle changeset: the new toggle follows a coarse primary pointer, and a mouse or trackpad primary pointer keeps today's toggle: verified (every toggle style keys on the coarse-pointer media query; the hook swaps inert with the toggle without one).
  • Toggle changeset: the medium-min duration with entrance and exit curves, where DateInput faded linearly and DateTimeInput swapped at once: verified (both fields' styles at base and head).
  • Toggle changeset: the wheels fade over a calendar that stays drawn, the header's arrows and Reset and the footer's buttons take no tap during the fade, and a second title tap turns it around: verified (the actions' inert gating, the turnaround state and their unit cases; a touch-pointer probe shows the calendar visible and hidden from assistive technology under the wheels).
  • Toggle changeset: the hidden wheels are drawn at opacity 0 once the sheet settles: verified (the warm-up runs only under a coarse pointer and shows the wheels at opacity 0, still inert).
  • Toggle changeset: the chevron's reading-direction rest, quarter turn and move curve, and the old flip and still chevron: verified (styles and computed transforms at base and head, in both directions).
  • Toggle changeset: a finger's tapped day selects at once, and a mouse or pen pick keeps the fade: verified (each press's pointer type decides the fade).
  • Toggle changeset: the focus hand-off with any pointer, Done landing on the shown month's day in DateTimeInput: verified (the hand-off picks the tab stop inside the panel's box).
  • Toggle changeset: Reduce Motion cross-fades in 200 ms with a chevron dip on a coarse pointer and changes at once otherwise: verified (styles and the dip).
  • Pager changeset: the pager on a coarse primary pointer and the native scroller otherwise; PageUp/PageDown by a month, Shift by a year, with any pointer; the paging, title, arrow, 10 px split, trackpad and Reduce Motion lines: verified (the grid choice by the touch query; the shared grid key handler; the pager's release, title and split code and their unit cases).
  • Descriptions: this head merges the lower pull request's head, which merges main with a change to both date records, kept beside this stack's rows with no renumbering: verified.
  • Descriptions: no public API change and no new data attribute; the new internal hook's signature; the month grid's new optional prop defaulting to off; the stated line counts: verified.
  • Descriptions: unit, check and browser results at these heads: the date fields' unit suites pass at this head; typecheck, lint and the browser specs were not re-run; the bundle-size figures were not re-measured.
  • Descriptions: the iPhone side-by-side and the Android emulator set at these heads: pending as stated (blocking).
  • Files (#8206): the new toggle hook and its tests, both touch fields, the month grid, both records, the toggle changeset, the sandbox page, its list and routes, the DateTimeInput story, the measurements, the UIKit table and the toggle browser spec: clear apart from the findings above, with one repeated style comment noted.
  • Files (#8200): the pager, its stories, the month grid, the gesture hook and its tests, both touch fields, the touch module, the DateInput record, the pager changeset, the measurements, the UIKit table and the pager, scroller and calendar tests: clear apart from the evidence findings, with its own review's comment notes.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 6f3726b

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested on both pull requests in this stack: their record changes are approved at each current revision and the code matches them, but the device and emulator evidence at these revisions is missing. A pull request lands only when it and every pull request below it are approved.

#8200: changes requested

  • The Android emulator set that spec:AST-094 Platform support and DEC-27 require (Chrome with Gboard, animations at normal scale and removed, and the slow-device profile) is pending at this revision, and DEC-31 cannot carry an earlier set because the merged main changes utils/timeFormat and utils/sharedResizeObserver, which TouchDateTimeField.tsx and MonthPager.tsx import directly: run it on the revision that will merge and state each result in the description.
  • The real-phone side-by-side against the revision the owner passed does not carry to this revision for the same reason: run it on the revision that will merge and state the result in the description.

#8206: changes requested

  • The Android emulator set (normal animation scale, animations removed, slow-device profile) is pending at this revision, and earlier runs do not carry past the merges of main, which edit DateInput.spec.md and DateTimeInput.spec.md, records this pull request changes: run it on the revision that will merge and state each result in the description.
  • The iPhone side-by-side against the revision the owner passed is pending for the same reason: take it on the same iPhone and state its result in the description.

Whole stack

Passes: the Stack line is in order, the top merges cleanly into main, no public API changes, and the changesets, records and code agree on the coarse-pointer gate.

One optional cleanup: the same two-sentence comment repeats above four style blocks in TouchDateField.tsx (and twice in TouchDateTimeField.tsx); one copy beside TOGGLE_DURATION keeps the reason.

Claims and files checked
  • Toggle changeset: the new toggle follows a coarse primary pointer, and a mouse or trackpad keeps today's toggle: verified (every new style keys on the coarse-pointer media query; with a mouse the hook swaps inert with the toggle).
  • Toggle changeset: the medium-min duration token with the entrance and exit curves, replacing DateInput's quick linear fade and DateTimeInput's instant swap: verified (styles at both revisions; a touch-pointer probe reads 225 ms against 125 ms and 0 ms).
  • Toggle changeset: the wheels fade over a calendar that stays drawn, in both sheets: verified (the calendar hides only without a coarse pointer; the wheels carry an opaque plate; the probe finds the calendar visible, hidden from assistive technology and inert under the wheels).
  • Toggle changeset: the header's arrows and Reset and the footer's buttons take no tap during the fade, and a second title tap turns it around: verified (the actions' inert gating, the shield over both surfaces, which takes a tap 60 ms into the fade in the probe, and the turnaround unit cases).
  • Toggle changeset: the hidden wheels are drawn at opacity 0 once the sheet settles: verified (the probe reads opacity 0, visible, inert after the sheet settles).
  • Toggle changeset: the chevron's reading-direction rest, quarter turn and move curve, and the old flip and still chevron: verified (computed transforms at both revisions, in both directions).
  • Toggle changeset: a finger's tapped day selects at once, and a mouse or pen pick keeps the fade: verified (each press's pointer type decides the fade; unit cases).
  • Toggle changeset: focus moves into the incoming panel with any pointer, and DateTimeInput's Done lands on the shown month's day: verified (the hand-off picks the tab stop inside the panel's box).
  • Toggle changeset: under Reduce Motion a 200 ms cross-fade and a chevron dip on a coarse pointer, at once otherwise: verified (styles and the dip).
  • Pager changeset: the pager under a coarse primary pointer and the native scroller otherwise; one month per release, the title at half a month, the arrow step and retarget, the 10 px split, the trackpad pan and the Reduce Motion cross-fade: verified (the grid choice, the pager's report and split code, and their unit cases; the browser specs not re-run).
  • Pager changeset: PageUp/PageDown by a month and Shift by a year with any pointer: verified (the shared grid key handler and its unit cases).
  • Descriptions: no public API change and no new data attribute; the new hook's signature; the month pane's optional prop defaulting to off: verified.
  • Descriptions: the stated line counts: verified.
  • Descriptions: unit results: the date fields' and motion tables' unit suites pass here; typecheck, lint, the browser specs and the bundle sizes were not re-run.
  • Descriptions: the iPhone side-by-side and the Android emulator set at these revisions: pending as stated (blocking).
  • Files (#8206): the toggle hook and its tests, both touch fields and their tests, the month grid, both records, the toggle changeset, the sandbox page, its list and routes, the DateTimeInput story, the measurements, the motion table and the toggle browser spec: clear apart from the findings above and the comment note.
  • Files (#8200): the pager, its proof story, the DateInput story, the month grid, the gesture hook and its tests, both touch fields, the touch module, the DateInput record, the pager changeset, the measurements, the motion table and the pager, scroller and calendar tests: clear apart from the findings above.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 4d6feab

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested on both pull requests in this stack: every record change is approved by an engineering owner at its pull request's current revision and the code matches those records, but neither revision has the phone and emulator evidence the touch-presentation spec requires. A pull request lands only when it and every pull request below it are approved.

#8200: changes requested

  • The Android emulator set that spec:AST-094 Platform support and DEC-27 require (Chrome with Gboard, animations at normal scale and removed, plus the slow-device profile) is pending at this revision, and DEC-31 cannot carry an earlier set, because the merged main changes utils/timeFormat.ts and utils/sharedResizeObserver.ts, which TouchDateTimeField.tsx and MonthPager.tsx import directly: run it on the revision that will merge and state each result in the description.
  • The real-phone side-by-side against the revision the owner passed does not carry for the same reason: run it on the revision that will merge and state the result in the description.

#8206: changes requested

  • The Android emulator set is pending at this revision, and earlier runs do not carry: the merges change this pull request's own sandboxPages.ts and motion/MEASUREMENTS.md, and bring main's changes to DateInput.tsx and DateTimeInput.tsx, which its sandbox page and tests import directly. Run the set on the revision that will merge and state each result in the description.
  • The iPhone side-by-side is pending for the same reason: take it on the same iPhone and state the result in the description.

Whole stack

Passes: the stack line is in order, the lower pull request's head is contained in the top one, no public API changes anywhere in the stack, and the changesets, records and code agree that the new behavior follows a coarse primary pointer. A fine-pointer check at the top revision finds the toggle unchanged: the same 125 ms linear fade, the same chevron flip, the same hidden calendar.

One optional cleanup, already agreed for the follow-up pull request: the same two-sentence comment repeats above four style blocks in TouchDateField.tsx and twice in TouchDateTimeField.tsx; one copy beside TOGGLE_DURATION keeps the reason.

Claims and files checked

Review mode: full; reason: spec-record

  • Toggle changeset: the toggle follows a coarse primary pointer and a mouse or trackpad keeps today's toggle: verified (every new style sits behind the coarse-pointer media query; a fine-pointer probe at this revision reads the base's 125 ms linear fade and chevron flip).
  • Toggle changeset: the cross-fade takes the medium-min duration token, 225 ms in the neutral theme, nearest the platform's 250 ms, with the entrance and exit curves: verified (touch probe reads 225 ms on the entrance curve, against 125 ms linear on the base; the neutral theme's motion scale gives medium-min 225 ms, nearer 250 than medium 300 or fast-max 167).
  • Toggle changeset: in both sheets the wheels fade over a calendar that stays drawn: verified (both calendars stay visible at opacity 1, inert and hidden from assistive technology, and the wheels carry an opaque surface-coloured plate; on the base both calendars were hidden).
  • Toggle changeset: the header's arrows and Reset and the footer's buttons take no tap during the fade, and a second title tap turns it around: verified (the actions go inert with the toggle and return at the fade's end, the shield covers both panels, and the hook's turnaround cases cover the reversed fade).
  • Toggle changeset: the hidden wheels are drawn at opacity 0 once the sheet settles: verified (the probe reads them visible at opacity 0, still inert, before any toggle).
  • Toggle changeset: the chevron points along the reading direction, turns a quarter turn down, and mirrors under right-to-left: verified (computed transforms at both revisions, in both directions).
  • Toggle changeset: a finger's tapped day selects at once and a mouse or pen pick keeps the fade: verified (the day's own press decides the fade, with unit and browser cases).
  • Toggle changeset: focus moves into the incoming panel with any pointer, and Done lands on the shown month's day: verified (the hand-off runs in the toggle's callback and picks the tab stop inside the panel's box).
  • Toggle changeset: with Reduce Motion a 200 ms cross-fade and a chevron dip on a touch screen, and an immediate change otherwise: verified (the probe reads 200 ms on the policy's curve and no chevron transition).
  • Pager changeset: one month per swipe, the title at half a month, the arrow step and its retarget, the 10 px sheet split, the trackpad pan and the Reduce Motion cross-fade: verified from the pager, the gesture split and their unit cases; the Playwright specs were not re-run here.
  • Pager changeset: PageUp and PageDown move a month and Shift a year, with any pointer: verified (the shared grid key handler and its cases).
  • Descriptions: no public API change, no new data attribute, the new hook's signature, the month pane's optional prop defaulting to off: verified.
  • Descriptions: the stated line counts: verified (3,992 added for the toggle, 2,752 of them in test files; 1,114 product lines once the measurements file is left out).
  • Descriptions: unit results: the date, toggle, gesture, month-grid and motion-table suites pass at this revision; typecheck, lint, the browser specs and the size reports were not re-run.
  • Descriptions: the iPhone side-by-side and the Android emulator set at these revisions: pending as stated (blocking).
  • Files (#8206): the toggle hook and its tests, both touch fields and their tests, the month grid, both records, the toggle changeset, the sandbox page with its list and routes, the DateTimeInput story, the measurements file, the motion table and the toggle browser spec: clear apart from the findings above.
  • Files (#8200): the pager, its proof story, the DateInput story, the month grid, the gesture hook and its tests, both touch fields, the touch layer, the DateInput record, the pager changeset, the measurements file, the motion table and the pager, scroller and calendar tests: clear apart from the findings above.

Automated review (maintainer link)

useOwnScrollGesture grows past INV19's size line with the pager mode.
The record now names why no shared touch module fits: the sheet's pull
is a native touch listener outside the gesture host, so only
stopPropagation on the element keeps it off.
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 6a723a0

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested on both pull requests in this stack: an engineering owner approved every record change at each pull request's current revision and the code matches those records, but neither revision has the phone and emulator evidence the touch-presentation spec requires. A pull request lands only when it and every pull request below it are approved.

#8200: changes requested

  • The Android emulator set that spec:AST-094 Platform support and DEC-27 require (Chrome with Gboard, animations at normal scale and removed, plus the slow-device profile) is pending at this revision, and DEC-31 cannot carry the earlier sets because the merged main changes utils/sharedResizeObserver.ts and utils/timeFormat.ts, which MonthPager.tsx and TouchDateTimeField.tsx import directly: run it on the revision that will merge and state each result in the description.
  • The real-iPhone side-by-side against the revision the owner passed does not carry for the same reason: take it on the revision that will merge and state the result in the description.

#8206: changes requested

  • The Android emulator set is pending at this revision, and the earlier runs do not carry past the same merges: run it on the revision that will merge and state each result in the description.
  • The iPhone side-by-side against the revision the owner passed is pending for the same reason: take it on the same iPhone and state the result in the description.

Whole stack

Passes: the stack line is in order, the lower pull request's head is contained in the top one, no public API changes anywhere in the stack, and the changesets, records and code agree that only a coarse primary pointer gets the new behaviour, with a mouse check finding today's toggle unchanged.

Claims and files checked

Review mode: same-head; reason: none

  • Toggle changeset: under a coarse primary pointer the toggle cross-fades over the medium-min duration token, 225 ms in the neutral theme, with the entrance and exit curves: verified (touch probe reads 0.225 s on the entrance curve and the exit curve on the hidden state; the base read 0.125 s linear).
  • Toggle changeset: DateInput used a quick linear fade with a chevron that flipped up, and DateTimeInput an instant swap with a chevron that stayed still: verified (base probes).
  • Toggle changeset: in both sheets the wheels fade over a calendar that stays drawn: verified (the calendar stays at opacity 1, inert and hidden from assistive technology; DateTimeInput's wheels carry an opaque plate).
  • Toggle changeset: the header's arrows and Reset and the footer's buttons take no tap during the fade, and a second title tap turns it around: verified (the actions go inert with the toggle; shield and turnaround unit cases pass).
  • Toggle changeset: the hidden wheels are drawn at opacity 0 once the sheet settles: verified (probe after the sheet settles).
  • Toggle changeset: the chevron points along the reading direction, mirrors under right-to-left and turns a quarter turn down on the move curve: verified (computed transforms in both directions).
  • Toggle changeset: a finger's tapped day selects at once and a mouse or pen pick keeps the fade: verified (unit cases).
  • Toggle changeset: focus in the outgoing panel moves into the incoming one with any pointer, and DateTimeInput's Done lands on the shown month's day: verified (unit cases for both fields).
  • Toggle changeset: with Reduce Motion, a 200 ms cross-fade and a chevron dip on a touch screen, and an immediate change with a mouse: verified (probe reads 0.2 s and a 0 s chevron transition; the fine-pointer styles take 0 s).
  • Toggle changeset: a mouse or trackpad keeps today's toggle: verified (fine-pointer probe identical to the base apart from an added aria-hidden beside the existing inert).
  • Pager changeset: one month per swipe, the title at half a month, the arrow step and its retarget, the 10 px sheet split, the trackpad pan and the Reduce Motion cross-fade: verified from the pager source and its unit cases; the browser specs were not re-run.
  • Pager changeset: PageUp and PageDown move a month, and Shift a year, with any pointer: verified (unit cases with a touch and a mouse).
  • Descriptions: no public API change, no new data attribute, the new hook's signature, the month pane's optional prop defaulting to off, and the new motion-table rows: verified (API generator finds no change).
  • Descriptions: the newest merge adds one record entry and no code: verified.
  • Descriptions: the iPhone side-by-side and the Android emulator set at these revisions are pending: verified as stated (blocking).
  • Descriptions: typecheck, lint, browser-spec, accessibility-contract and size results: not re-run; the touched unit suites pass at this revision.
  • Files (#8206): the toggle hook and its tests, both touch fields and their tests, the month grid, both records, the toggle changeset, the sandbox page with its list and routes, the DateTimeInput story, the measurements file, the motion table and the toggle browser spec: clear apart from the findings above.
  • Files (#8200): the pager, its proof story, the DateInput story, the month grid, the gesture hook and its tests, both touch fields, the touch layer, the DateInput record, the pager changeset, the measurements file, the motion table and the pager, scroller and calendar tests: clear apart from the findings above.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 6a723a0

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI on both pull requests in this stack: CI has not run on these draft revisions yet, and a pull request lands only when it and every pull request below it are approved.

#8200: approved pending CI

No blocking findings.

#8206: approved pending CI

No blocking findings.

Whole stack

Passes: the stack line is in order, the lower pull request is contained in the top one, no public API changes anywhere in the stack, and the release notes, records and code agree that only a coarse primary pointer gets the new behaviour.

Claims and files checked

Review mode: same-head; reason: none

  • Changed rule, the incremental-review scope (many changed rules send a review to full, and each changed rule is listed): checked: the two review instructions compared, two rules changed; no finding.
  • Changed rule, the review mode line's reasons: checked: this review's mode line; no finding.
  • Toggle release note: under a coarse primary pointer the toggle cross-fades over the medium-min duration token, 225 ms in the neutral theme, on the entrance and exit curves: verified (styles in both fields; the neutral motion scale gives 225 ms; touch probe reads 0.225 s on both curves).
  • Toggle release note: DateInput used a quick linear fade with a chevron that flipped up, and DateTimeInput an instant swap with a chevron that stayed still: verified (base styles and probes).
  • Toggle release note: in both sheets the wheels fade over a calendar that stays drawn: verified (the calendar keeps opacity 1, inert and hidden from assistive technology; DateTimeInput's wheels carry an opaque plate).
  • Toggle release note: the header's arrows and Reset and the footer's buttons take no tap during the fade, and a second title tap turns it around: verified (the leaving actions go inert with the toggle, the footers inside DateTimeInput's surfaces sit under the shield; shield and turnaround cases pass).
  • Toggle release note: the hidden wheels are drawn at opacity 0 once the sheet settles: verified (warm-up hook and style; probe after the sheet settles).
  • Toggle release note: the chevron points along the reading direction, mirrors under right-to-left and turns a quarter turn down on the move curve: verified (styles and computed transforms in both directions).
  • Toggle release note: a finger's tapped day selects at once and a mouse or pen pick keeps the fade: verified (the day's pointer type decides the fade; unit cases).
  • Toggle release note: a mouse or trackpad keeps today's toggle: verified (fine-pointer styles unchanged; probe identical to the base apart from an added hidden-from-assistive-technology flag beside the existing inert).
  • Toggle release note: focus in the outgoing panel moves into the incoming one with any pointer, and DateTimeInput's Done lands on the shown month's day: verified (handler-driven hand-off; unit cases for both fields).
  • Toggle release note: with Reduce Motion, a 200 ms cross-fade and a chevron dip on a touch screen, and an immediate change with a mouse: verified (the policy's 200 ms constant; probe reads 0.2 s and a 0 s chevron transition).
  • Pager release note: one month per swipe by the paging rule, the title changing at half a month, the arrow step and its retarget, the 10 px sheet split, the trackpad pan and the Reduce Motion cross-fade: verified from the pager source, the shared pager it builds on, the 10 px gesture constant and the unit cases.
  • Pager release note: a mouse or trackpad keeps the native scroller, and PageUp and PageDown move a month, and Shift a year, with any pointer: verified (the pointer picks the grid; one key mapping serves both grids; unit cases with a touch and a mouse).
  • Descriptions: the timing quotes from the touch-presentation spec: verified (each quoted sentence is in the current spec).
  • Descriptions: the newest commits add one record entry and no code, so the app code is the previous revision's: verified (only the DateInput record changes, by one Ownership entry).
  • Descriptions: the iPhone side-by-side and the Android emulator set at each pull request's previous revision, with the toggle's one difference being its shield through a reversed fade: verified as stated, and carried to these revisions, which change only that record.
  • Descriptions: no public API change, no new data attribute, the new hook's signature, the month pane's optional prop defaulting to off, the new motion-table rows and the pager's re-export from the touch layer: verified (API generator finds no change; source).
  • Descriptions: why the existing focus-trap, entry-animation, settled-open and reduced-motion modules and native scroll snapping do not fit: verified against those modules' scope.
  • Descriptions: typecheck, lint, knowledge-check and unit results: verified at this revision for the Core typecheck, the knowledge check, lint on the changed sources and the date-field and motion-table unit suites (34 files, 1,542 tests); the earlier revisions' tallies describe code this revision keeps.
  • Descriptions: browser-spec, accessibility-contract and size figures: the author's measurements, not re-run here; the browser probes at this revision agree with the behaviour they cover.
  • Files (#8206): the toggle hook and its tests, both touch fields and their tests, the month grid, both records, the toggle release note, the sandbox page with its list and routes, the DateTimeInput story, the measurements file, the motion table and the toggle browser spec: clear, apart from an optional note on a toggle comment repeated above six style blocks.
  • Files (#8200): the pager, its proof story, the DateInput story, the month grid, the gesture hook and its tests, both touch fields, the touch layer, the DateInput record, the pager release note, the measurements file, the motion table and the pager, scroller and calendar tests: clear.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested on #8206; #8200 stays approved, and a pull request in this stack lands only when it and every pull request below it are approved.

#8200: approved pending CI

No blocking findings; CI has not run on this draft revision yet.

#8206: changes requested

  • Regression: this revision's merge of main changes packages/core/src/Layer/useLayer.tsx, one of the shared layer modules that spec:AST-094 DEC-31 lists, so the iPhone side-by-side and the Android emulator set (normal, animations removed, slow-device profile) that the description states for the previous revision no longer carry; rerun them on this revision and state each result in the description.

Whole stack

Passes: the stack line is in order, #8200 is contained in #8206, no public API changes anywhere in the stack, and the release notes, records and code agree that only a coarse primary pointer gets the new behaviour.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (1): "Whatever the scope, these are computed over the whole pull request" (incremental review now counts changed rules mechanically): checked: both recipe versions, this review's mode and this block, no finding
  • #8200: verdict and findings carried from the last stack review (head unchanged)
  • #8200 release note: a swipe moves at most one month, chosen at the lift by the iOS paging rule, and settles on its curve: verified (the month pager's release logic and its browser cases).
  • #8200 release note: the month title follows the drag and changes past half a month: verified (pager browser cases on the title).
  • #8200 release note: an arrow scrolls one month and a second tap goes on to the next: verified (pager arrow cases).
  • #8200 release note: in the sheet a drag is decided at 10 px, sideways for the calendar, otherwise the sheet: verified (the scroll-gesture hook's pager mode and its tests).
  • #8200 release note: a horizontal trackpad swipe pages at the release: verified (trackpad unit cases).
  • #8200 release note: Reduce Motion cross-fades the arrows' step and the settle in 200 ms: verified (pager reduced-motion cases).
  • #8200 release note: a mouse keeps the native scroller, and PageUp/PageDown move focus a month (Shift a year) with any pointer: verified (pointer gating and the Page-key unit cases).
  • #8206 release note: the toggle cross-fades over the medium-min duration token, 225 ms in the neutral theme, arriving on the entrance curve and leaving on the exit curve: verified (the toggle duration and easing constants in both fields, and the unit case that reads the neutral scale).
  • #8206 release note: the wheels fade over a calendar that stays drawn, and the header and footer actions take no tap during the fade, with a second title tap turning it around: verified (the toggle hook's shield and turnaround cases, and the opaque-plate browser cases).
  • #8206 release note: the hidden wheels are drawn at opacity 0 once the sheet settles: verified (the hook's warm-up and its cases).
  • #8206 release note: the chevron points along the reading direction and turns a quarter turn down on the move curve: verified (chevron browser cases, mirrored under right-to-left).
  • #8206 release note: a finger's tapped day selects at once while a mouse or pen keeps the fade: verified (day-tap unit and browser cases).
  • #8206 release note: a mouse keeps today's toggle, focus moves into the incoming panel with any pointer, and Done in DateTimeInput lands on the shown month's day: verified (pointer gating and the focus hand-off cases).
  • #8206 release note: Reduce Motion gives a 200 ms cross-fade and a chevron dip on touch, an instant change with a mouse: verified (reduced-motion cases).
  • #8206 release notes' iOS and Android parity: false at this revision, since the device and emulator evidence no longer carries (blocking finding).
  • #8206 description: no public API change: verified (API generator over both builds, 0 rows).
  • #8206 description: the internal toggle hook's signature, the month pane's optional selection-fade prop (default off) and the UIKit table's new toggle and tap rows: verified (the hook, the month pane and the motion table).
  • #8206 description: the testing section's "this head" is the previous revision: stale, since this revision is a later merge of main; the unit suites, typecheck and knowledge check pass here.
  • #8206 description: iPhone and Android-phone side-by-sides and the 18-cell emulator set: stated for the previous revision's app code and not carried to this one (blocking finding).
  • #8206 description: size figures for each field's first-load JavaScript and CSS: stated, not re-measured; this revision's merge changes no file of the pull request's own code.
  • .changeset/calendar-pages-like-uidatepicker.md: clear (#8200; its claims match the code and its device evidence stands at #8200's head)
  • .changeset/calendar-toggle-uidatepicker-timing.md: its iOS and Android parity claim lost its carried device evidence at this revision (blocking finding above); every behaviour line matches the code
  • apps/sandbox/scripts/next-export-routes.json: clear (generated route list; the merge kept the new page beside main's new routes)
  • apps/sandbox/src/app/(raw)/pages/month-year-toggle/page.tsx: clear
  • apps/sandbox/src/app/sandboxPages.ts: clear
  • apps/storybook/stories/DateInput.stories.tsx: clear
  • apps/storybook/stories/DateTimeInput.stories.tsx: clear
  • apps/storybook/stories/MonthPagerProofs.stories.tsx: clear
  • docs/specs/components/DateInput/DateInput.spec.md: clear (owner-approved record changes)
  • docs/specs/components/DateTimeInput/DateTimeInput.spec.md: clear (owner-approved record change)
  • packages/core/src/DateInput/DateInputTouch.calendar.test.tsx: clear
  • packages/core/src/DateInput/DateInputTouch.test.tsx: clear
  • packages/core/src/DateInput/MonthPager.tsx: clear
  • packages/core/src/DateInput/MonthScroller.tsx: clear
  • packages/core/src/DateInput/TouchDateField.tsx: non-blocking: the same toggle comment repeats above four style blocks
  • packages/core/src/DateInput/__tests__/MonthPager.interaction.browser.spec.ts: clear
  • packages/core/src/DateInput/__tests__/MonthScroller.interaction.browser.spec.ts: clear
  • packages/core/src/DateInput/__tests__/MonthScrollerSteps.interaction.browser.spec.ts: clear
  • packages/core/src/DateInput/__tests__/MonthYearToggle.interaction.browser.spec.ts: clear
  • packages/core/src/DateInput/datePickerTouch.ts: clear
  • packages/core/src/DateInput/useMonthYearToggle.test.tsx: clear
  • packages/core/src/DateInput/useMonthYearToggle.ts: clear
  • packages/core/src/DateInput/useOwnScrollGesture.test.tsx: clear
  • packages/core/src/DateInput/useOwnScrollGesture.ts: clear
  • packages/core/src/DateTimeInput/DateTimeInputTouch.test.tsx: clear
  • packages/core/src/DateTimeInput/TouchDateTimeField.tsx: non-blocking: a variant of the same toggle comment repeats twice
  • packages/core/src/motion/MEASUREMENTS.md: clear
  • packages/core/src/motion/uikit/datePicker.ts: clear

Automated review (maintainer link)

'@astryxdesign/core': patch
---

[feat] On a phone or tablet (a coarse primary pointer), the calendar in the DateInput and DateTimeInput bottom sheets now toggles to its month and year wheels like the iOS date picker:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Regression: this revision's merge of main changes packages/core/src/Layer/useLayer.tsx, one of the shared layer modules spec:AST-094 DEC-31 lists, so the iPhone side-by-side and the Android emulator set behind this iOS-parity claim no longer carry from the previous revision. Rerun both on this revision and state the results in the description.

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 233a7c8

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested on both pull requests in this stack: every record change is approved by an engineering owner at its pull request's current revision and the code matches it, but each still lacks part of the phone and emulator evidence. A pull request in this stack lands only when it and every pull request below it are approved.

#8200 — changes requested

  • Regression: this revision's merge of main changes packages/core/src/Layer/useLayer.tsx, a shared layer module that spec:AST-094 DEC-31 lists, so the iPhone side-by-side, its frame-checked rerun and the Android emulator set no longer carry; run them at this revision and state each result in the description.

#8206 — changes requested

  • Regression: the Android emulator's slow-device runs are still missing at this revision, since under 4× CPU four of the six cells were refused, as the description itself says, so rerun those cells under the slow-device profile at this revision and state each result.

The iPhone side-by-side and the emulator runs with normal and removed animations that the description now states cover the rest of #8206's evidence; naming the iPhone's browser in that line would complete it.

Whole stack: no cross-pull-request finding, and no public API changes.

Claims and files checked

Review mode: same-head; reason: none

  • changed rules (0): none
  • Description (#8206): this revision merges #8200's revision with no conflict, and the main-branch changes it brings overlap this pull request's own files only in the generated sandbox route list. Verified: the merge's parents are the previous revision and #8200's revision, and the route list is the only overlap.
  • Description (#8206): its own diff is +3,992/−170. Verified (17 files).
  • Description (#8206): no public API changes; one new internal hook both sheets use, an optional selection-fade flag on the month pane and two measured table groups. Verified: the built package surfaces differ in no row, both sheets import the hook, and the approved DateInput record names it.
  • Description (#8206): the record changes need an engineering owner's approval at this revision. Verified: an engineering owner approved this exact revision.
  • Description (#8206): at this revision the iPhone side-by-side of the title tap matches the revision the owner passed, apart from the intended calendar kept under the wheels, and the emulator's six cells pass with normal and removed animations. Stated in text and accepted as device evidence.
  • Description (#8206): the slow-device emulator runs did not pass at this revision. Stated; this is the blocking gap above.
  • Description (#8200): its device runs at its revision lapsed with its merge of the main branch. Carried from its own review at that revision.
  • Description (#8206): the per-field size growth and the typecheck, lint, unit, interaction and accessibility results at this revision. Stated; the date-field unit suites and the Core typecheck pass at this revision, and the sizes were not re-measured.
  • Release notes (both): unchanged since earlier reviews checked each line against the code; their phone and tablet lines rest on the device evidence above.
  • Files: unchanged since the earlier review of this same revision, which visited all 18 files of #8200 and all 17 of #8206; the cited lines were re-checked at this revision.

Automated review (maintainer link)

'@astryxdesign/core': patch
---

[fix] On a phone or tablet (a coarse primary pointer), the calendar in the DateInput and DateTimeInput bottom sheets now pages its months like the iOS date picker:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Regression: this pull request's merge of main changes packages/core/src/Layer/useLayer.tsx, one of the shared layer modules spec:AST-094 DEC-31 lists, so the iPhone side-by-side, its frame-checked rerun and the Android emulator set behind this iOS-parity claim no longer carry from the earlier revision. Rerun them on #8200's current revision and state the results in its description.

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 83955c4

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested on both pull requests in this stack: every record change carries an engineering owner's approval at its pull request's current revision and the code matches it, but each still lacks part of the phone and emulator evidence. A pull request in this stack lands only when it and every pull request below it are approved.

#8200 — changes requested

  • Regression: the slow-device emulator runs and the iPhone side-by-side of the paging gestures with Reduce Motion off, frame-checked as before, are missing at this revision, and the owners' acceptance of the partial slow-device set that the description now cites is not recorded on the pull request or in the record, so run both (or have an engineering owner record that acceptance on the pull request) and state each result in the description.

#8206 — changes requested

  • Regression: the Android emulator's slow-device runs are still missing, since under 4× CPU four of the six cells were refused, and the owners' acceptance of this partial set that the description now cites is not recorded on the pull request or in the record, so rerun those cells under the slow-device profile and state each result, or have an engineering owner record that acceptance on the pull request.

The iPhone and emulator runs both descriptions state for the previous revisions carry to these ones, because the merged main branch changes none of these pull requests' files, the files they import directly or the shared motion and layer modules.

Whole stack: no cross-pull-request finding, and no public API changes.

Claims and files checked

Review mode: same-head; reason: none

  • changed rules (0): none
  • Description (both, new): the owners accepted the partial slow-device emulator set for this revision. Unverified: no engineering owner's comment or review on either pull request records it, and the governing record makes no such exception.
  • Description (both): this revision only merges the main branch, with no conflict, and neither pull request's own lines change. Verified: both increments are unchanged, and the merged commits touch none of their files.
  • Description (both): the merged commits change the Tooltip, Button and theme modules, which the date fields reach only indirectly, and nothing under the layer or motion modules. Verified.
  • Description (#8206): its own diff is +3,992/−170. Verified (17 files).
  • Description (#8200): its own diff is +2,386/−477. Verified (18 files).
  • Description (both): the record changes need an engineering owner's approval at this revision. Verified: an engineering owner approved each pull request's exact revision, and the approval status succeeds on both.
  • Description (#8206): the iPhone side-by-side and the emulator's six cells with normal and removed animations, run at the previous revision, carry here, and the slow-device runs did not pass. Stated; the carry holds, and the slow-device gap is the finding above.
  • Description (#8200): the emulator side-by-side with normal and removed animations and an iPhone run with Reduce Motion on, run at its previous revision, carry here, and the slow-device runs did not pass. Stated; the carry holds, and the missing parts are the finding above.
  • Description (both): the typecheck, lint, unit, interaction and accessibility results and the per-field size growth at this revision. Stated; not re-run in this review.
  • Release notes (both): unchanged since earlier reviews checked each line against the code; their phone and tablet lines rest on the device evidence above.
  • Files: unchanged since earlier reviews visited all 18 files of #8200 and all 17 of #8206; the cited lines were re-checked at this revision.

Automated review (maintainer link)

@vjeux

vjeux commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

Under 4× CPU at 233a7c8, the title-tap and day-tap cells passed. The other 4 cells were refused twice each, for a frame stall of 0.7 to 1.2 s as the sheet opens. At this pull request's earlier head 8ddf2ae, the same 4 cells stalled the same way, at the same step, on the same emulator. The owners judged this a limit of the emulator host and accepted the partial slow-device set for this head.

A retake of these cells on another emulator host is queued, and its result will go in the description. The two items for #8200 are answered on that pull request. The iPhone's browser is now named in the side-by-side line.

This branch was successfully deployed

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants