Repository navigation
docs(spec): Calendar weekday headers show abbreviated names where they fit - #9072
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report
Generated by PR Enrichment workflow | View current CI run |
There was a problem hiding this comment.
Approval waits on an owner decision. DD1 adds a weekday-header rule that no current spec on main states yet: whole abbreviated names, including full words in Arabic and European Portuguese. An engineering owner records that decision by commenting /approve-spec 986546d4aabca741c217874492d0537e4ccab3ba on this pull request, and the author may do so if they are an engineering owner. Two record fixes are needed whatever the decision:
Calendar.spec.mdline 59 still says the released default is preserved, although DD1 changes every Calendar's header text.- The DD1 verification row tests English and one other locale, but English and the Spanish locale the current tests use both have three-letter abbreviations, so a header cut to three characters would still pass; name a locale with longer abbreviations, such as
plorpt-PT.
[Automated review]
| @@ -57,8 +57,8 @@ keyboard model that moves through days; date fields compose it. | |||
| ## Compatibility and migration | |||
|
|
|||
| - Released default preserved: `yes` | |||
There was a problem hiding this comment.
DD1 changes every Calendar's weekday headers from the short to the abbreviated names, with no prop to keep the short form, and line 45 already says the record departs from shipped behavior for that. This line should say so too, for example "yes, except DD1: no", naming the header change.
There was a problem hiding this comment.
Fixed in fd7a6ba: the row now requires a locale whose abbreviated names run past three characters, such as pl or pt-PT.
| | FR6 | `Calendar.test.tsx` navigation, bound, theming-target ("renders the astryx-calendar-nav target on both month-nav buttons", "reflects the disabled nav state as a data attribute at the range edges", "keeps the default nav rendering unchanged (still a ghost icon button)"), and RTL month-navigation cases | Previous and Next; at `min` and `max`; `dir="rtl"` | A button enabled past a bound, a missing `calendar-nav` target or state attribute, or a lost shared chevron wrapper fails. Evidence gap: no test asserts focus kept at a bound (the FR6 gap), the mirrored chevron pixels, or the press under reduced motion. | `audit:Calendar/behavior` | | ||
| | FR7 | `Calendar.test.tsx` month-change announcement cases ("does not announce on initial render", "announces the new month politely when clicking next", "announces the next month when paging the grid with PageDown", "announces both months in a two-month view", "does not announce when selecting a date leaves the visible month unchanged") and range announcement cases ("announces the start pick and prompts for an end date", "announces the completed range in chronological order for a reverse pick") | Month buttons, Page keys, handle; single and two months; range start, complete, cleared | A missing, extra, or out-of-order announcement fails. Evidence gap: no test reaches the cleared-start announcement (the cleared-range case sets no `minRangeSpan`). | `audit:Calendar/accessibility` | | ||
| | FR2 (size) | Evidence gap: no test asserts day-button size or text growth | — | — | `audit:Calendar/layout` | | ||
| | DD1 | Evidence gap: the `Calendar.test.tsx` day-name cases ("displays day names", "uses the provider locale for stand-alone short day names", "rotates localized day names by numeric weekday index") assert the short names | English and one other locale; `weekStartsOn` rotation; with week numbers | A header showing a short name, or a name cut to three characters, fails. | `audit:Calendar/layout` | |
There was a problem hiding this comment.
English and es-ES (the locale the existing day-name cases use) both have three-letter abbreviated names, so a header cut to three characters would pass this row. Naming a second locale with longer abbreviations, such as pl or pt-PT, makes the stated failure detectable.
There was a problem hiding this comment.
Fixed in fd7a6ba: the row now requires a locale whose abbreviated names run past three characters, such as pl or pt-PT.
There was a problem hiding this comment.
Approval waits on a spec owner deciding DD1 as the governing spec for Calendar's weekday headers: no current spec on main states that rule yet, and it shows whole abbreviated names, including full words in Arabic and European Portuguese that overrun the 32px day column. To settle it, an engineering owner comments /approve-spec fd7a6bae09fa026c2d5f78bf8f1604a87e714465 on this pull request (the author may do so as an engineering owner), or the owners ask for a shorter form in those locales; the repository's design-decision routing also asks for a design owner's review. The two record fixes from the earlier review are in, and nothing else needs to change.
[Automated review]
fd7a6ba to
c740152
Compare
There was a problem hiding this comment.
Approval waits on a spec owner deciding DD1 as the governing spec for Calendar's weekday headers: no current spec states the abbreviated-width rule yet, and it shows whole names, including full words in Arabic and European Portuguese that are wider than the 32px day column. To settle it, an engineering owner comments /approve-spec c74015220a9aa3e3ce184fc8e500fdb196f01d8a on this pull request (the author may do so as an engineering owner), or the owners ask for a shorter form in those locales; the repository's design-decision routing also asks for a design owner's review. Nothing else in the record needs to change.
[Automated review]
|
/approve-spec c740152 |
c740152 to
f00e24d
Compare
|
Rebased onto |
|
/approve-spec f00e24d |
|
/revoke-spec f00e24d |
|
Back to draft and not for merge yet: DD1 needs per-locale tuning first. In several shipped locales the abbreviated names do not fit the 32px header column ( |
There was a problem hiding this comment.
This spec change is ready to merge: component:Calendar DD1 and the record lines that point to it have an engineering owner's spec approval for this commit, and the record passes knowledge validation. Nothing in the record needs to change. The follow-up implementation switches the headers to the abbreviated width and updates the three day-name tests that the DD1 verification row names.
[Automated review]
There was a problem hiding this comment.
Changes requested: the spec approval for this commit was withdrawn, and component:Calendar DD1 needs the per-locale rule described in the pull request conversation for abbreviated weekday names wider than the 32px header column, such as those in pt-PT, ar, he, pl and vi. After the revision, an engineering owner records approval by commenting /approve-spec <full head SHA> on the pull request (the author may do so as an engineering owner), and a design owner's approval is also expected because the Design decisions edit is mixed with other contract edits. Nothing else in the record needs to change.
[Automated review]
f00e24d to
7527bd4
Compare
|
DD1 is tuned per locale: abbreviated names where all seven fit within four characters (English |
There was a problem hiding this comment.
Approval waits on a spec-owner decision: component:Calendar DD1 adds a per-locale rule for Calendar's weekday headers (abbreviated names where all seven are at most four characters, short names otherwise) that no current spec on main states yet.
- To settle it, an engineering owner approves DD1 as written at this commit by commenting
/approve-spec 7527bd439db38d43eab6e0bfdd5d73761f0cf5eaon this pull request (the author may do so as an engineering owner), and a design owner approves too, because the Design decisions edit is mixed with other contract edits.
DD1's locale examples match CLDR's data, and nothing else in the record needs to change.
[Automated review]
|
/approve-spec 7527bd4 |
7527bd4 to
fc608c9
Compare
|
/approve-spec fc608c9 |
There was a problem hiding this comment.
Approved from the review side: component:Calendar DD1 and the record lines that point to it have an engineering owner's spec approval for this commit, and the record passes knowledge validation.
- DD1's locale examples and its implementation gap (
SutoSatoday) match the CLDR 48.2.0 weekday data the generator reads, and its verification row names locales that catch a three-character cut and a mixed header row. - Nothing renders differently until the implementation lands; that pull request carries the generator change and the day-name tests DD1's verification row lists.
[Automated review]
fc608c9 to
efeed80
Compare
|
/approve-spec efeed80 |
There was a problem hiding this comment.
Approved from the review side: component:Calendar DD1 and the record lines that point to it have an engineering owner's spec approval for this commit, and the record passes knowledge validation.
- DD1's locale lists and its implementation gap (
SutoSatoday) match the CLDR 48.2.0 weekday data the generator reads, and its verification row names locales that catch a three-character cut and a mixed header row. - Nothing renders differently until the implementation lands; that pull request carries the generator change and the day-name tests DD1's verification row lists.
[Automated review]
Exact decision needed
Which form of the weekday name Calendar's column headers show, per locale.
Existing authority searched
component:Calendar(current,docs/specs/components/Calendar/Calendar.spec.md): FR1 says only that weekday names come from the provider locale.architecture:internationalizationINV8 covers where locale data comes from, not name width. No current record settles the form.Su–Sain English). The touch date field's sheet already uses the abbreviated width (Sun–Sat).Decision
component:CalendarDD1: a locale's weekday headers show its stand-alone abbreviated names (CLDRabbreviatedwidth) when every one of the seven is at most four characters, and its stand-alone short names (CLDRshortwidth) otherwise. Names are shown whole, and the choice is per locale, so a header row never mixes the two.Result across the 30 shipped locales:
en(Sun),es,fr,sv,no,ro,el,sr,tr,de,zh-TW.pt-PT,ar,he,pl,da,vi.pt-BR,af,ca,hu,it,cs,fi,nl,ru,uk,zh-CN,ja,ko.FR1 points to DD1. The headers still show short names everywhere, so the DD1 row, Current-state impact, and a verification-map evidence gap record that as an implementation gap. This PR changes no code.
Rejected alternatives
Rejected:line in DD1.pt-PTandarnames (full words) overlap,hecrowds,plniedz.touches its neighbour, andviThứ 2wraps. DD1's intent states why those locales keep short.Claim scope and non-goals
mdcolumn today; that layout question is outside this decision.Evidence and implementation relationship
TuandTh, orSaandSu, easy to confuse.DateInputpopover in all 30 shipped locales, comparing short and abbreviated names, set the four-character threshold.Writing rubric results
Scope
Validation
pnpm check:knowledge: alignedgit diff --check: cleanpnpm specs:for --diff origin/main: routedarchitecture:internationalization(INV8: names still come from provider-locale data) and the other component claims; no conflict