Skip to content

feat(DateInput, DateTimeInput): the bottom sheet shows months of the calendar - #9794

Closed
nynexman4464 wants to merge 30 commits into
mainfrom
nynexman4464/feat/calendar-bottom-sheet
Closed

nynexman4464 wants to merge 30 commits into
mainfrom
nynexman4464/feat/calendar-bottom-sheet

Conversation

@nynexman4464

@nynexman4464 nynexman4464 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Stack: #9643 → #10031 → #9794 → #9653 → #9837 → #9842

Declared stack: each pull request targets main and contains the one below it, so review only its own commits (the ones above #10031). The stack lands together.

This implements spec:AST-111 (approved in #9605) FR16 for DateInput and DateTimeInput.

User need

After #9793, a phone user in a non-Gregorian calendar gets the Astryx bottom sheet, but it still shows Gregorian months, a 12-month wheel, and Gregorian years. A Hebrew user can't pick Adar I, an Ethiopic user can't reach Pagume, and a Japanese user sees no era.

Problem and solution fit

  • Scroller panes are calendar months, with calendar labels, day names and locale digits, in fixed six-row panes, including the 5–6 day Ethiopic and Coptic thirteenth month (monthGeometry, MonthScroller).
  • The month wheel lists the months of the selected calendar year, with leap months by name. A year change keeps the month or moves to its common counterpart (Adar I → Adar) (MonthYearWheels).
  • Year labels carry the era (令和8, 1405 AP). As on iOS, a year that an era change splits takes its label and the heading's era from the date the wheels show: 2019 reads 平成31 with January selected and 令和元 with July, and January 3, 1989 heads 昭和64年1月.
  • The closed sheet field writes the date in the calendar, with its era, in DateInput and in DateTimeInput's sheet date segment, and the sheet remounts when the calendar changes, since month indexes depend on it (TouchDateField, TouchDateTimeField).
  • Calendar-system utility: months between two months, the calendar month at a year and month position, months of a calendar year, month and year labels, and era-change detection. The month model reads year and month numbers with main's calendarYearMonthOf, and calendarMonthOfYear builds on main's calendarMonthFromYearMonth for calendars that are not Gregorian-aligned. Gregorian-aligned calendars keep Gregorian year numbers inside the sheet's month model.
  • Day grids: MonthScroller lays out each pane with the public useCalendarDays, passing the year and month numbers of its calendar month, since feat(Calendar): useCalendarDays and useCalendarNavigation take an optional calendar #10007 folded the internal useCalendarMonthDays into it.
  • Values stay Gregorian ISO (FR3). Buddhist, Minguo and Japanese sheets work without Temporal.
  • A -u-ca- keyword in the provider locale does not select the calendar, so such a field keeps the Gregorian sheet; calendar on the component or the provider selects one.
  • The records drop the Gregorian-bottom-sheet gap.

Current specification

  • spec:AST-111 FR16 and FR3 (approved in spec(AST-111): date components use the calendar the application chooses #9605).
  • Projected into component:DateInput FR21 and component:DateTimeInput FR12. The sheet's weekday row follows main's DateInput FR19 (Calendar's weekday names). FR21 also says that in a month an era change splits, the heading follows the kept day while the pane's grid name keeps the era of the month's middle day.
  • component:InternationalizationProvider FR10 and its Calendar row, and architecture:internationalization INV10, now say DateInput and DateTimeInput follow the calendar on every surface; only DateRangeInput stays Gregorian. The provider's docs and JSDoc say the same and keep main's statement that Timestamp, PowerSearch, and Lab's Schedule write their dates in the calendar.

Public delta and caller burden

  • Behavior: under a non-Gregorian calendar, the bottom sheet shows that calendar's months, wheels and era years.
  • The bottom sheet's day numbers keep the locale digits they already use (unchanged).
  • No change for gregory/iso8601. No new props or types. Caller decisions: none.

Design and alternatives

  • The touch surfaces index months through a per-calendar month model. Gregorian-aligned calendars keep year * 12 + month, so existing behavior is unchanged. Other calendars count months from a fixed month with Temporal.
  • Labels come from Intl through the shared calendar helpers.

Evidence

  • Touch calendar tests:
    • Persian, Hebrew leap/common, and Ethiopic Pagume panes;
    • wheel month counts (13 vs 12);
    • Adar I → Adar on a year change;
    • Japanese and Persian era labels, the 2019 and 1989 era-change years, and the split-month heading;
    • month-model round trips across seven calendars;
    • the sheet field text and DateTimeInput's date segment in the calendar.
  • Calendar-system tests for formatCalendarYearLabel, the era-change years behind calendarYearSpansEras, and the kept-day formatCalendarMonthLabel cases.
  • No-Temporal tests: Buddhist and Japanese bottom sheets still show their years and eras.
  • Real browsers against Storybook with a mobile viewport and a coarse pointer:
Browser Native Temporal Polyfill No Temporal
Chromium 149 pass pass pass (Gregorian fallback)
Firefox 151 pass pass pass
WebKit (Safari 26.5) n/a (no Temporal) pass pass

Screenshots

Chromium 149 with native Temporal unless noted. Phone shots use a mobile viewport with touch and a coarse pointer.

State Screenshot
Phone, Persian: the bottom sheet shows Aban 1405 in Persian digits Phone, Persian: the bottom sheet shows Aban 1405 in Persian digits
Phone, Hebrew 5784 (leap year): the month wheel lists Adar I and Adar II Phone, Hebrew 5784 (leap year): the month wheel lists Adar I and Adar II
Phone, Hebrew common year: one Adar Phone, Hebrew common year: one Adar
Phone, Ethiopic: the five-day Pagume in a fixed six-row pane Phone, Ethiopic: the five-day Pagume in a fixed six-row pane
Phone, Japanese: year wheel with eras Phone, Japanese: year wheel with eras
Phone, Japanese 2019 with January selected: the row reads 平成31 (Heisei 31) Phone, Japanese 2019 with January selected: the row reads 平成31 (Heisei 31)
Phone, Japanese 2019 with July selected: the row reads 令和元 (Reiwa 1) Phone, Japanese 2019 with July selected: the row reads 令和元 (Reiwa 1)
Phone, DateTimeInput in Persian Phone, DateTimeInput in Persian
WebKit (Safari 26.5) with the polyfill: Persian bottom sheet WebKit (Safari 26.5) with the polyfill: Persian bottom sheet
Firefox 151: Hebrew leap-year wheel Firefox 151: Hebrew leap-year wheel

Scope

  • One capability is added.
  • Unrelated fixes, cleanup, and policy changes were removed or split.
  • Consumer docs, focused tests, and migration evidence ship with the feature.
  • Public text and artifacts contain no internal Meta context.

Testing

  • pnpm exec vitest run --maxWorkers=4 over the MonthScroller, DateInput touch, calendar-presentation and no-Temporal tests and calendarSystem.test.ts, with packages/core/src/i18n, docPropLiterals.test.ts and the CLI core prop docs test, after the restack onto current main (with Lab's Schedule): 20 files, 324 tests passed. CI runs the full suites.
  • CLI docs tests (golden reads, core prop docs, core doc quality, core doc types) and docPropLiterals.test.ts: 5 files, 38 tests pass.
  • pnpm exec tsc --noEmit -p packages/core: passes.
  • pnpm check:knowledge, pnpm check:changesets: pass.
  • node scripts/pre-review.mjs --base nynexman4464/feat/calendar-native-fallback: 1,553 authored lines.
  • Playwright against Storybook stories core-dateinput--calendar-system-presentations and core-datetimeinput--calendar-systems. The coarse pointer is isMobile + hasTouch; Firefox uses the ui.primaryPointerCapabilities pref.

Writing rubric results

component:DateInput

  • R1 narration: FR21 is present tense and now states the bottom sheet's months, wheels and era labels, and which era a split month's heading and grid name show. The Gregorian-bottom-sheet gap and its Current-state bullet were removed, because the behavior now ships. The Compatibility/readiness row drops the touch-surface calendar entry and keeps the sheet wheels' markup and time-order key (FR17) sentences.
  • R2 research: none.
  • R3 evidence: the FR21 verification cites the touch calendar tests, calendar-system cases and real-browser runs.
  • R4 rejected alternatives: none.
  • R5 change references: none added.
  • R6 open questions: none.

component:DateTimeInput

  • R1 narration: FR12 is present tense and states that the Date panel follows component:DateInput FR21. The Gregorian Date-panel gap was removed. The FR12 verification row keeps a missing warning for an explicit native among its failures and adds a Date panel in another calendar.
  • R2 research: none.
  • R3 evidence: tests only.
  • R4 rejected alternatives: none.
  • R5 change references: none.
  • R6 open questions: none.

architecture:internationalization

  • R1 narration: INV10 is present tense and names DateRangeInput as the one date input that stays Gregorian.
  • R2 research: none.
  • R3 evidence: none changed.
  • R4 rejected alternatives: none.
  • R5 change references: none.
  • R6 open questions: none.

component:InternationalizationProvider

  • R1 narration: FR10 and the Calendar row are present tense and name DateRangeInput as the one component that stays Gregorian.
  • R2 research: none.
  • R3 evidence: none added.
  • R4 rejected alternatives: none.
  • R5 change references: none.
  • R6 open questions: none.

@vercel

vercel Bot commented Nov 3, 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 5, 2026 4:00am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 5, 2026, 4:02 AM UTC

@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 about the calendar direction, and one fix is needed whichever way it goes.

  • Spec decision: on main, architecture:internationalization INV10 still keeps date grids and navigation Gregorian, and spec:AST-111 (#9605) is a draft. The calendar months, leap-month wheel and era years that this PR writes into component:DateInput FR17 and component:DateTimeInput FR11 therefore need an engineering owner to record the decision by commenting /approve-spec <full head SHA> on this pull request, which the author may do as an engineering owner, or need AST-111 and its INV10 rewrite to land first.
  • Era dropped in DateTimeInput's sheet: TouchDateTimeField.tsx:696 formats the date segment with formatCalendarDate instead of the shared formatCalendarDateText(selectedDate, 'date_long', locale, calendar), so on a coarse pointer the era disappears (۱۱ آبان ۱۴۰۵ instead of ۱۱ آبان ۱۴۰۵ ه‍.ش. in fa, and likewise for Hebrew, th-TH Buddhist and am Ethiopic). Please switch to the shared formatter and add a fa or th-TH case to "writes the sheet date segment in the calendar".

Non-blocking: Gregorian sheets in locales such as ar-EG and fa now show locale digits on day buttons, and the changeset could say so.

[Automated review]

}
return plainDateFormat(selectedDate, DATE_FORMAT_LONG, locale);
}, [selectedDate, locale]);
return formatCalendarDate(calendar, selectedDate, DATE_FORMAT_LONG, locale);

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.

This writes the date with formatCalendarDate, but DateInput's sheet field and this field's fine-pointer segment use formatCalendarDateText(pd, 'date_long', locale, calendar), which adds the era where the locale's long pattern leaves it out. In fa Persian this shows ۱۱ آبان ۱۴۰۵, while the same value reads ۱۱ آبان ۱۴۰۵ ه‍.ش. on a fine pointer; Hebrew, th-TH Buddhist and am Ethiopic differ the same way.

return formatCalendarDateText(selectedDate, 'date_long', locale, calendar);

Comment on lines +127 to +130
// A year that spans an era change names the era of the date the wheels
// show, as the iOS date wheels do, so its row changes as the month turns.
// Rows keep their size: the wheel columns share the width equally and every
// row is one fixed height, whatever its label.

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.

Non-blocking (comment style): the first sentence has 30 words and two topics. A shorter version that keeps the reason:

// A year with an era change takes the era of the shown date, as iOS does.
// Its row text changes as the month turns. Each row keeps one fixed size.

@nynexman4464
nynexman4464 force-pushed the nynexman4464/feat/calendar-native-fallback branch from 302c777 to bd1f569 Compare November 3, 2026 19:42
@nynexman4464
nynexman4464 force-pushed the nynexman4464/feat/calendar-bottom-sheet branch from 6afec54 to 264269c Compare November 3, 2026 19:43

@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 about the calendar direction, and one fix is needed whichever way it goes.

  • Spec decision: on main, architecture:internationalization INV10 still keeps date grids and navigation Gregorian, and spec:AST-111 (#9605) is a draft, so the calendar months, leap-month wheel and era years this PR writes into component:DateInput FR17 and component:DateTimeInput FR11 need an engineering owner to record the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), or need AST-111 and its INV10 rewrite to land first.
  • Era dropped in DateTimeInput's sheet: TouchDateTimeField.tsx:696 formats the date segment with formatCalendarDate instead of the shared formatCalendarDateText(selectedDate, 'date_long', locale, calendar), so on a coarse pointer fa-IR shows ۱۱ آبان ۱۴۰۵ where DateInput's sheet shows ۱۱ آبان ۱۴۰۵ ه‍.ش. (and th-TH drops พ.ศ.); please switch to the shared formatter and add a fa or th-TH case to "writes the sheet date segment in the calendar".

Non-blocking: Gregorian sheets in locales such as ar-EG and fa now show locale digits on day buttons, and the changeset could say so.

[Automated review]

}
return plainDateFormat(selectedDate, DATE_FORMAT_LONG, locale);
}, [selectedDate, locale]);
return formatCalendarDate(calendar, selectedDate, DATE_FORMAT_LONG, locale);

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.

This writes the date with formatCalendarDate, but DateInput's sheet field and this field's fine-pointer segment use formatCalendarDateText(pd, 'date_long', locale, calendar), which adds the era where the locale's long pattern leaves it out. In fa-IR Persian this shows ۱۱ آبان ۱۴۰۵ while the same value reads ۱۱ آبان ۱۴۰۵ ه‍.ش. in DateInput's sheet; th-TH Buddhist drops พ.ศ. the same way.

return formatCalendarDateText(selectedDate, 'date_long', locale, calendar);

Comment on lines +127 to +128
// A year that spans an era change names the era of the date the wheels
// show, as the iOS date wheels do, so its row changes as the month turns.

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.

Non-blocking (comment style): this sentence has 30 words and two topics. A shorter version that keeps the reason:

// A year with an era change takes the era of the shown date, as iOS does.
// Its row text changes as the month turns.

@nynexman4464
nynexman4464 force-pushed the nynexman4464/feat/calendar-native-fallback branch from bd1f569 to 698fdd8 Compare November 3, 2026 20:51
@nynexman4464
nynexman4464 force-pushed the nynexman4464/feat/calendar-bottom-sheet branch from 264269c to 6361f62 Compare November 3, 2026 20:51

@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 about the calendar direction, and one fix is needed whichever way it goes.

  • Spec decision: on main, architecture:internationalization INV10 still keeps date grids and navigation Gregorian and spec:AST-111 (#9605) is a draft, so the calendar months, leap-month wheel and era years this pull request writes into component:DateInput FR17 and component:DateTimeInput FR11 need an engineering owner to record the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), or need AST-111 and its INV10 rewrite to land first.
  • Era dropped in DateTimeInput's sheet: TouchDateTimeField.tsx:696 formats the date segment with formatCalendarDate instead of the shared formatCalendarDateText(selectedDate, 'date_long', locale, calendar), so on a coarse pointer fa-IR shows ۱۱ آبان ۱۴۰۵ where DateInput's sheet shows ۱۱ آبان ۱۴۰۵ ه‍.ش. (and th-TH drops พ.ศ.); please switch to the shared formatter and add a fa-IR or th-TH case to "writes the sheet date segment in the calendar".

Non-blocking: Gregorian sheets in locales such as ar-EG and fa now show locale digits on day buttons, and the changeset could say so.

[Automated review]

}
return plainDateFormat(selectedDate, DATE_FORMAT_LONG, locale);
}, [selectedDate, locale]);
return formatCalendarDate(calendar, selectedDate, DATE_FORMAT_LONG, locale);

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.

This writes the date with formatCalendarDate, but DateInput's sheet field and this field's fine-pointer segment use formatCalendarDateText(pd, 'date_long', locale, calendar), which adds the era where the locale's long pattern leaves it out. In fa-IR Persian this shows ۱۱ آبان ۱۴۰۵ while DateInput's sheet shows ۱۱ آبان ۱۴۰۵ ه‍.ش.; th-TH Buddhist drops พ.ศ. the same way.

return formatCalendarDateText(selectedDate, 'date_long', locale, calendar);

Comment on lines +127 to +128
// A year that spans an era change names the era of the date the wheels
// show, as the iOS date wheels do, so its row changes as the month turns.

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.

Non-blocking (comment style): this sentence has 30 words and two topics. A shorter version that keeps the reason:

// A year with an era change takes the era of the shown date, as iOS does.
// Its row text changes as the month turns.

@nynexman4464
nynexman4464 force-pushed the nynexman4464/feat/calendar-native-fallback branch from 698fdd8 to 5576696 Compare November 3, 2026 23:26
@nynexman4464
nynexman4464 force-pushed the nynexman4464/feat/calendar-bottom-sheet branch from 6361f62 to 9662010 Compare November 3, 2026 23:26

@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 about the calendar direction, and one description fix is needed whichever way it goes.

  • Spec decision: on main, architecture:internationalization INV10 still keeps date grids and navigation Gregorian and spec:AST-111 (#9605) is a draft, so the calendar months, leap-month wheel, era years and calendar field text this pull request writes into component:DateInput FR18, component:DateTimeInput FR12 and component:InternationalizationProvider FR10 need an engineering owner to record the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), or need AST-111 and its INV10 rewrite to land first.
  • Description claims a change that already shipped: the Public delta says "The bottom sheet's day numbers now use locale digits in every calendar", but MonthScroller.tsx already renders plainDateFormatDayNumber(day.dayNumber, locale) on the base and on main; please delete that bullet or say the digits are unchanged.

Not blocking this pull request:

  • apps/storybook/stories/DateInput.stories.tsx imports InternationalizationProvider twice (line 9 and lines 14–17), which stops Storybook from indexing the file, so the three stories added here cannot load; the duplicate comes from the base branch and is best fixed there.
  • main now defines component:DateInput FR17 and FR18 as sheet-wheel rules, so the stack's calendar clauses (and this pull request's "follows component:DateInput FR18" in DateTimeInput) need new IDs when it rebases.
  • The era fix in DateTimeInput's sheet date segment is confirmed: fa-IR and th-TH now match DateInput's sheet.

[Automated review]

Comment on lines +760 to +762
// The day the picker keeps: the selected date's day of its month. The month
// and year view names its era from this day in the shown month, the way the
// year wheel does, for a month that spans an era change.

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.

Non-blocking (comment style): the second sentence has 29 words and two topics. A shorter version that keeps the reason:

// The day the picker keeps: the selected date's day of its month. A month
// with an era change takes its heading era from this day.

Comment on lines +679 to +681
// The day the picker keeps: the selected date's day of its month. The month
// and year view names its era from this day in the shown month, the way the
// year wheel does, for a month that spans an era change.

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.

Non-blocking (comment style): the same 29-word sentence as in TouchDateField.tsx. A shorter version:

// The day the picker keeps: the selected date's day of its month. A month
// with an era change takes its heading era from this day.

@nynexman4464
nynexman4464 force-pushed the nynexman4464/feat/calendar-native-fallback branch from 5576696 to d1906f2 Compare November 4, 2026 00:19
@nynexman4464
nynexman4464 force-pushed the nynexman4464/feat/calendar-bottom-sheet branch from 9662010 to 6b4a555 Compare November 4, 2026 00:19

@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 about the calendar direction, and one description fix is needed whichever way it goes.

  • Spec decision: on main, architecture:internationalization INV10 still keeps date grids and navigation Gregorian and spec:AST-111 (#9605) is a draft, so the calendar months, leap-month wheel, era years and calendar field text that this pull request writes into component:DateInput FR18, component:DateTimeInput FR12 and component:InternationalizationProvider FR10 need an engineering owner to record the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), or need AST-111 and its INV10 rewrite to land first.
  • Description claims a change that already shipped: the Public delta says "The bottom sheet's day numbers now use locale digits in every calendar", but MonthScroller.tsx already renders plainDateFormatDayNumber(day.dayNumber, locale) on the base and on main, so please delete that bullet or say the digits are unchanged.

Not blocking this pull request:

  • main now defines component:DateInput FR17 and FR18 as sheet-wheel rules, so the stack's calendar clauses (and DateTimeInput's "follows component:DateInput FR18") need new IDs when it rebases.
  • The comments at TouchDateField.tsx:760-762 and TouchDateTimeField.tsx:679-681 have a 29-word second sentence, and monthGeometry.ts:185-186 is passive; shorter wording is suggested in the review comments.

[Automated review]

Comment on lines +185 to +186
// Temporal arithmetic is slow next to a render, and the same months are
// asked for on every render of the panes and the wheels.

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.

Non-blocking (comment style): this sentence is passive ("are asked for") and joins two topics. A shorter version that keeps the reason:

// Temporal arithmetic is slow next to a render. The panes and the wheels ask
// for the same months on every render.

…g and presentation

useTypedDate calls isGregorianCalendar, the same test that decides when the native control can show the calendar. The presentation test names read the expected surface, and the warning comment says what keys it. The provider docs and record say that only the bottom sheet stays Gregorian, and the changeset says that an explicit -u-ca- locale selects the calendar the same way.
The changeset says that a provider locale with a -u-ca- keyword keeps
Gregorian dates and the native control; set calendar to choose a
calendar.
… narrow the calendar surface claims

DateInput's compatibility row keeps the sheet wheels' markup and time-order key sentences (FR17) and changes only the touch-surface calendar entry. DateTimeInput's calendar shows in the date segment and its popover. On a coarse pointer the field and its bottom sheet show Gregorian dates. The dense nativePicker docs name the calendar exception.
…calendar

The sheet's month scroller lays out calendar months in six-row panes, the month wheel lists the months of the calendar year with leap months, and year labels carry the era. A year with an era change is labeled with the era of the shown month, and the month heading follows the kept day across an era change.
…put's sheet does

TouchDateTimeField writes the date with formatCalendarDateText, so fa-IR Persian and th-TH Buddhist sheets keep their era. The MonthScroller Reduced Motion test passes the month model the scroller now takes. A wheel comment is shorter. The provider docs and record say that DateInput and DateTimeInput show the calendar on every surface, and the changeset says that an explicit -u-ca- locale selects the calendar too.
The changeset says that a provider locale with a -u-ca- keyword keeps
the Gregorian sheet; set calendar to choose a calendar.
INV10 names DateInput and DateTimeInput among the displays that follow the calendar on every surface.
…Days

useCalendarMonthDays is gone from main: useCalendarDays now takes a calendar.
The scroller passes the year and month numbers of its calendar month.
calendarMonthOfYear reuses calendarMonthFromYearMonth for calendars that are
not Gregorian-aligned, and the month model reads year and month numbers with
main's calendarYearMonthOf, which replaces the sheet's own.
…he lost native warning as a failure

DateInput FR21 states that a pane's grid name keeps the era of its month's
middle day. The DateTimeInput FR12 verification row again fails a missing
warning for an explicit native.
@nynexman4464

Copy link
Copy Markdown
Contributor Author

/approve-spec cbc5173

@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.

This pull request is reviewed as part of its stack; see the review on #9842.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · cbc5173

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
Calendar · Storybook 57.7 kB (+214 B) · 9.3 kB CSS (0) 1,714 (0) ✗ · ✓ · ✓
PowerSearch · Storybook 🔴 257.8 kB (+8.1 kB) · 22.3 kB CSS (0) 7,201 (0) ✓ · ✓ · ✓
DateInput · Storybook 🔴 162.7 kB (+7.8 kB) · 15.5 kB CSS (0) 5,510 (+407) ✓ · ✓ · ✓
6 more components
Component Size LoC Visual · A11y · RTL
DateTimeInput · Storybook 🔴 184.5 kB (+7.4 kB) · 17.2 kB CSS (0) 3,632 (+67) ✓ · ✓ · ✓
DateRangeInput 76.0 kB (+211 B) · 11.2 kB CSS (0) — — · — · —
TimeInput 140.4 kB (0) · 14.5 kB CSS (0) — — · — · —
Timestamp 22.9 kB (−8 B) · 8.9 kB CSS (0) — — · — · —
lab/Comments 271.5 kB (new) · 2.5 kB CSS (new) — — · — · —
lab/CommentThread 266.4 kB (new) · 2.4 kB CSS (new) — — · — · —
Visual changes: 2 snapshots in 1 component

A change is a question for the reviewer, not a failure.

Component · story Before After Diff
Calendar · Default (neutral, light) before frame after frame diff frame
Calendar · Default (neutral, dark) before frame after frame diff frame

Package size: measured; main has no measurement of the merge base to compare yet.

API changes: cli +8 · ~1 · −0 (against the merge base's committed report); core +2 · ~0 · −0

Committed API report behind this build: cli 9 rows, core 3 rows; run pnpm api:report.

11 API changes (advisory)
Package Where Signature Usage
+ cli ./api · Types · type SearchResultEntry deprecated?: ComponentDeprecation | undefined import type {SearchResultEntry} from '@astryxdesign/cli/api'; const x: SearchResultEntry = {deprecated: …}
+ cli ./authoring · Types · interface ComponentDeprecation interface ComponentDeprecation import type {ComponentDeprecation} from '@astryxdesign/cli/authoring'
+ cli ./authoring · Types · interface MultiComponentDoc deprecated?: ComponentDeprecation import type {MultiComponentDoc} from '@astryxdesign/cli/authoring'; const x: MultiComponentDoc = {deprecated: …}
+ cli ./authoring · Types · interface SingleComponentDoc deprecated?: ComponentDeprecation import type {SingleComponentDoc} from '@astryxdesign/cli/authoring'; const x: SingleComponentDoc = {deprecated: …}
+ cli ./doc · Types · interface ComponentBaseDoc deprecated?: ComponentDeprecation import type {ComponentBaseDoc} from '@astryxdesign/cli/doc'; const x: ComponentBaseDoc = {deprecated: …}
+ cli ./doc · Types · interface SubComponentDoc deprecated?: ComponentDeprecation import type {SubComponentDoc} from '@astryxdesign/cli/doc'; const x: SubComponentDoc = {deprecated: …}
+ cli ./doc · Also exported from an earlier entry point · ComponentDeprecation ComponentDeprecation (./authoring) import {ComponentDeprecation} from '@astryxdesign/cli/doc'
+ cli ./template · Also exported from an earlier entry point · ComponentDeprecation ComponentDeprecation (./authoring) import {ComponentDeprecation} from '@astryxdesign/cli/template'
~ cli ./api · Functions · function search function search: (query: string, options?: { cwd?: string | undefined; type?: "template" | "component" | "hook" | "theme" | "doc" | undefined; limit?: number | undefined }) => Promise<SearchResponse> → function search: (query: string, options?: { cwd?: string | undefined; type?: "template" | "component" | "doc" | "theme" | "hook" | undefined; limit?: number | undefined }) => Promise<SearchResponse> import {search} from '@astryxdesign/cli/api'; search(…)
+ core . · Components · component DateInput prop calendar?: CalendarSystem = the InternationalizationProvider's calendar, else `'gregory'` <DateInput calendar="s calendar, else `" />
+ core . · Components · component DateTimeInput prop calendar?: CalendarSystem = the InternationalizationProvider's calendar, else `'gregory'` <DateTimeInput calendar="s calendar, else `" />

Touched components checked; add ci:run-visual, ci:run-a11y or ci:run-rtl to run the full suites.


Generated by PR Enrichment workflow | View full report

@nynexman4464

Copy link
Copy Markdown
Contributor Author

Folded into #9643: the review asked for the shared typed-entry hook (#9837) in the same change as the typed entry (#9643), so #9643 now carries this part unchanged, with this description reproduced as its own part. The declared stack is #9643 → #9842.

nynexman4464 added a commit that referenced this pull request Nov 5, 2026
…ates in the active calendar (#9643, #9842)

Lands the declared stack #9643 → #9842; each part was reviewed on its own pull request.

- #9643 (with #10031, #9794, #9653 and #9837 folded in): DateInput and DateTimeInput read and write typed dates in the active calendar; a non-Gregorian calendar uses the Astryx picker instead of the native control; the bottom sheet shows months of the calendar; DateRangeInput shows the range in the calendar; one shared typed-entry hook serves both fields.
- #9842: while DateInput or DateTimeInput is disabled or busy, typed text stays without a rejection, and commits or gives way once the field is editable.

Fixes #8958.
@github-actions
github-actions Bot deleted the nynexman4464/feat/calendar-bottom-sheet branch November 5, 2026 06:03

This branch was successfully deployed

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

Labels

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.

1 participant