Repository navigation
chore: land 3 reviewed pull requests together (batch 63) - #12945
Conversation
…s not installed readReleaseFacts parsed the whole lockfile for Core and again for the CLI whenever either was missing, even for the one the folder had installed, and the exec door's package-set check parsed it once per declared package. A run reads these facts several times, so a Core-only app with a large lockfile paid four full parses per command and 25 per doctor run. Both now ask the lockfile only for packages nothing is installed for, and read it once for all of them. [skip ci]
…tead of throwing [skip ci]
… Dialog and a menu hand each corner to - The theme pipeline writes each corner of a radius to its own private variable (<var>-top-left … from the shorthand or a physical longhand, <var>-start-start … from a logical longhand) for components whose derived borderRadius entry sets the new corners flag: card, dialog, dropdown-menu, context-menu. - Card and Dialog publish each of their corners to a full-bleed Table or List (a logical corner first, else the physical corner it is in this direction, else the one radius). - A menu's rows take each menu corner less the menu's padding. - A radius of one value draws as before.
…ixtures use string radii
…ts own corners; sub-menu rows follow the menu [skip ci]
…hromium cases [skip ci]
…s out each corner [skip ci]
…s the pointer menu [skip ci]
…y read corners themselves [skip ci]
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
/approve-spec e40d456 |
|
/approve-spec e40d456 |
|
AI review status for this pull request.
|
e40d456 to
485069f
Compare
|
/approve-spec 485069f |
|
/approve-spec 485069f |
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| lab/Comments | 383.6 kB (+887 B) · 2.5 kB CSS (0) | — | — · — · — |
| lab/CommentThread | 376.5 kB (+741 B) · 2.4 kB CSS (0) | — | — · — · — |
| CommandPalette | 79.5 kB (+249 B) · 13.2 kB CSS (+389 B) | — | — · — · — |
37 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| AlertDialog | 130.7 kB (+264 B) · 15.9 kB CSS (+359 B) | — | — · — · — |
| Dialog | 26.0 kB (+269 B) · 7.3 kB CSS (+347 B) | — | — · — · — |
| SelectableCard | 19.3 kB (+254 B) · 8.0 kB CSS (+338 B) | — | — · — · — |
| Card · Storybook | 10.3 kB (+248 B) · 7.0 kB CSS (+343 B) | 213 (+16) | — · — · — |
| ClickableCard | 19.1 kB (+249 B) · 7.7 kB CSS (+339 B) | — | — · — · — |
| Markdown | 207.5 kB (+275 B) · 23.0 kB CSS (+260 B) | — | — · — · — |
| BreadcrumbItem | 98.9 kB (+217 B) · 13.6 kB CSS (+265 B) | — | — · — · — |
| Table | 123.3 kB (+203 B) · 20.8 kB CSS (+276 B) | — | — · — · — |
| ContextMenu · Storybook | 104.3 kB (+187 B) · 19.3 kB CSS (+280 B) | 745 (+16) | — · — · — |
| MoreMenu | 110.0 kB (+189 B) · 19.4 kB CSS (+273 B) | — | — · — · — |
| TableHeaderCell | 105.3 kB (+177 B) · 19.7 kB CSS (+284 B) | — | — · — · — |
| DropdownMenu | 109.7 kB (+178 B) · 19.4 kB CSS (+273 B) | — | — · — · — |
| TableCell | 105.5 kB (+171 B) · 19.8 kB CSS (+278 B) | — | — · — · — |
| DropdownMenuSubMenu | 79.7 kB (+188 B) · 10.7 kB CSS (+254 B) | — | — · — · — |
| PowerSearch | 313.1 kB (0) · 26.5 kB CSS (+369 B) | — | — · — · — |
| Tokenizer | 107.7 kB (0) · 21.1 kB CSS (+362 B) | — | — · — · — |
| DropdownMenuRadioItem | 29.4 kB (+87 B) · 7.6 kB CSS (+178 B) | — | — · — · — |
| DropdownMenuCheckboxItem | 29.3 kB (+85 B) · 7.6 kB CSS (+178 B) | — | — · — · — |
| DropdownMenuItem | 28.5 kB (+85 B) · 7.1 kB CSS (+176 B) | — | — · — · — |
| ContextMenuItem | 36.4 kB (+80 B) · 7.3 kB CSS (+177 B) | — | — · — · — |
| lab/SelectableCardGroup | 69.9 kB (+253 B) · 162 B CSS (0) | — | — · — · — |
| lab/CommentComposer | 181.8 kB (+230 B) · 1.9 kB CSS (0) | — | — · — · — |
| Breadcrumbs | 16.5 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| DialogHeader | 70.0 kB (0) · 12.5 kB CSS (0) | — | — · — · — |
| DropdownMenuDivider | 5.3 kB (0) · 548 B CSS (0) | — | — · — · — |
| DropdownMenuGroup | 6.4 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| DropdownMenuRadioGroup | 6.6 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| Layout | 7.1 kB (0) · 2.3 kB CSS (0) | — | — · — · — |
| LayoutContent | 17.9 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| LayoutFooter | 6.4 kB (0) · 1.7 kB CSS (0) | — | — · — · — |
| LayoutHeader | 6.4 kB (0) · 1.7 kB CSS (0) | — | — · — · — |
| LayoutPanel | 22.1 kB (0) · 5.1 kB CSS (0) | — | — · — · — |
| TableBody | 6.6 kB (0) · 3.3 kB CSS (0) | — | — · — · — |
| TableFooter | 3.5 kB (0) · 3.3 kB CSS (0) | — | — · — · — |
| TableHeader | 3.5 kB (0) · 3.3 kB CSS (0) | — | — · — · — |
| TableRow | 7.2 kB (0) · 4.1 kB CSS (0) | — | — · — · — |
| TableSelectionToolbar | 77.3 kB (0) · 14.3 kB CSS (0) | — | — · — · — |
Package size:
- @astryxdesign/cli 5.64 MB packed (+1.1 kB); no new dependencies
- @astryxdesign/core 7.82 MB packed (+6.7 kB); no new dependencies
- @astryxdesign/theme-butter 57.1 kB packed (+54 B); no new dependencies
3 more packages
- @astryxdesign/theme-gothic 40.6 kB packed (+52 B); no new dependencies
- @astryxdesign/theme-matcha 30.2 kB packed (+54 B); no new dependencies
- @astryxdesign/theme-y2k 45.8 kB packed (+53 B); no new dependencies
API changes: cli +1 · ~0 · −0
1 API change (advisory)
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| + | cli |
./authoring · Types · interface ComponentThemingDerivedVar |
corners?: boolean |
import type {ComponentThemingDerivedVar} from '@astryxdesign/cli/authoring'; const x: ComponentThemingDerivedVar = {corners: …} |
Wide change (shared styles: packages/core/src/theme/derivedVarRegistry.ts, packages/core/src/theme/generateThemeRules.ts): add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
Not ready to approve yet: one change in this batch needs a fix, and one needs an owner decision.
- The theme compiler now writes Text's color overrides after every
timestampandtimertheme entry (packages/core/src/theme/generateThemeRules.ts:1900), and every Timestamp and Timer carriesdata-colorfrom its defaultsecondary, so a theme'stimestamportimercolor never paints, even when the caller passes no color.
Approval also waits on an engineering owner deciding whether useTableSortableState should count an Invalid Date as a missing value, sorted with null, undefined and NaN, because no current record states which values count as missing. An engineering owner, the author included, can settle it by adding that rule to a record such as the Table spec and commenting /approve-spec <full head SHA>, or by confirming it on this pull request. The other changes match their records, and CI is green on this head.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: six members merge in the stated order, each as its own merge: verified in the commit history.
- Claim: the render test fix makes four CLI render test pages import Core's stylesheet: verified in
render.interactive.test.mjsandrender.test.mjs. - Claim: each record edit carries an engineering owner's spec approval at this head: verified at this head; the member pull requests' own approvals were not re-read.
- Claim: export keeps a built one-mode theme in its mode in any viewer and reads a linked theme package's color modes: verified in
render-page.mjsand its tests. - Claim: the lockfile is read once, and only for an Astryx package that is not installed: verified in
project.mjs,locked-versions.mjsand their only readers; the quoted timings were not measured. - Claim: a sorted column holding an Invalid Date sorts that row with the other missing values: verified in
useTableSortableState.tsxand its tests. - Claim: a theme radius of different corners reaches what a Card, a Dialog and a menu hand each corner to, a default container inside a themed one keeps its own corners, and one radius draws as before: verified in Chromium and in the corner tests.
- Claim: a theme's entry for a part on another component's element wins over that component's entries, with
sitsOnon 46 targets in 38 docs, and runtime and build write the same CSS: verified, except that a Timestamp or Timer color entry never paints (finding above). - Claim: a theme with no part entry keeps its CSS byte for byte, and the published themes' looks do not change: verified for themes without part entries; the published themes' looks were not rendered.
- Claim: Pagination cells' entries win over
buttonentries whatever their keys: verified by the pager case insharedElementParts.test.ts. - Claim: three members change no record: verified.
- Files, theme compiler and build (finding in
generateThemeRules.ts; others clear):generateThemeRules.ts,generateThemeRules.test.ts,sharedElementParts.ts,sharedElementParts.test.ts,derivedVarRegistry.ts,derivedVarRegistry.test.ts,publicThemeHelperContract.test.ts,theme/index.ts,build.mjs,family.mjs,build.packed-old-core.test.mjs,build.shared-element-parts.test.mjs. - Files, corners (clear):
Card.tsx,Dialog.tsx,ContextMenu.tsx,BreadcrumbItem.tsx,DropdownMenu.tsx,DropdownMenuItem.tsx,DropdownMenuCheckboxItem.tsx,DropdownMenuRadioItem.tsx,DropdownMenuSubMenu.tsx,menuRowCorners.stylex.ts,containerCorners.stylex.ts,ContainerCorners.a11y.chromium.spec.ts,ContainerCorners.stories.tsx,_check.mjs,_edit.mjs,_context.mjs,_settings.mjs,theme-corners-content-each-corner.test.mjs,doctypes/base/type.ts,generate-data.mjs,theming-doc.mjs. - Files, component docs with
sitsOnorcorners(clear): AlertDialog, AppShell, Banner, Calendar, Card, Chat, CheckboxInput, CheckboxList, ClickableCard, CodeBlock, ComplexSelector, ContextMenu, DateInput, DateRangeInput, DateTimeInput, Dialog, DialogHeader, Drawer, DrawerHeader, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuDivider, DropdownMenuItem, Field, FieldStatus, FileInput, List, Markdown, MoreMenu, MultiSelector, Pagination, RadioList, SelectableCard, Selector, Switch, Timer, Timestamp, Toast, ToggleButton, Typeahead (*.doc.mjs), andtheming-targets.test.mjs. - Files, export (clear):
render-page.mjs,color-modes.mjs,color-modes.test.mjs,css-color.mjs,css-color.test.mjs,word-table.mjs,css-tree.mjs,module-exports.mjs,theme-imports.mjs,_color.mjs,_css.mjs,_tables.mjs,render.doc.mjs,experimental-export.doc.mjs,export-pages.doc.mjs,share-a-page.doc.mjs,render.test.mjs(both),render.interactive.test.mjs,render-interaction-parity.browser.test.mjs. - Files, lockfile and Table (clear):
project.mjs,project.test.mjs,locked-versions.mjs,package-set.test.mjs,useTableSortableState.tsx,useTableSortableState.test.tsx. - Files, records and release notes (clear):
cli-surface.md,theme-compilation.md,AST-050spec,DropdownMenu.spec.md,Pagination.spec.md, and the six changesets.
485069f to
f166234
Compare
|
Owner decision (engineering owner, covering #12921 in this batch at its current head): a sorted Table column counts an invalid Date as a missing value. |
|
/approve-spec f166234 |
There was a problem hiding this comment.
Approved pending CI: the three fixes in this batch match their records, and five of CI's nine test-node shards had not finished on this head when the review was written; no check has failed.
- The Invalid Date sort (#12921) now has an engineering owner's decision on this pull request, which settles the earlier open question.
- The earlier Timestamp and Timer theme-colour finding no longer applies: it was in #12378, which this batch no longer includes.
Non-blocking:
- Miss:
useTableSortableState.doc.mjs(lines 58 and 142) still lists onlynull,undefinedandNaNas the values sorted last, so the docs should add an Invalid Date. - The same eight corner-variable resets are repeated on nine surfaces (Card, Dialog twice, DropdownMenu, the sub-menu twice, ContextMenu twice, BreadcrumbItem); one shared style per radius variable would keep them in step.
- Miss:
docs/architecture/container-padding.mdlines 459-460 still say Card and Dialog set the radius "at each block edge"; they now hand over one variable per corner.
Claims and files checked
Review mode: full; reason: history
- Claim: the CLI reads the lockfile only for an Astryx package that is not installed, once per lookup for all of them. Verified:
project.mjs:485-502,locked-versions.mjs:61-72; the new test fails before the change. - Claim: with the declared Astryx packages installed, no command parses the lockfile. Verified: these are the only lockfile readers; the package-manager check reads only a yarn.lock header.
- Claim: about 50 ms saved per command and 200 ms per
doctorrun with a 2 MB lockfile. Not reproduced per command; with a synthetic 2 MB lockfile one pins lookup drops from 6.9 ms to 0.04 ms. - Claim:
useTableSortableStateno longer throws on an Invalid Date. Verified: the new tests throwRangeError: Invalid time valuebefore the change and pass after it. - Claim: an Invalid Date sorts like
null,undefinedandNaN, last ascending and first descending. Verified:useTableSortableState.tsx:37-43and:184-193, and the two new tests. - Claim: a full-bleed Table or a bleeding List in a Card or Dialog takes each corner of a themed radius, ring and fills included. Verified in Chromium: 12 / 12 / 0 / 0 for a top-rounded card, 0 / 0 / 16px / 16px for a dialog's last row; 0 before.
- Claim: pointer-menu rows, sub-menu flyout rows and ContextMenu rows take the menu's shape less its padding. Verified in Chromium for the popover and the flyout (0 / 0 / 8px / 8px); ContextMenu by source.
- Claim: touch-sheet List rows and a drilled-in sub-menu view with a header or footer keep their own corners. Verified by source: List rows read no menu variable;
DropdownMenuSubMenu.tsx:326-333resets the corners. - Claim: an elliptical corner reaches a full-bleed Table, while List and menu rows stay square there. Verified by source: the corner keeps both radii, and the rows' padding subtraction is invalid for it; not probed.
- Claim: a default Card, Dialog or menu inside a themed one keeps its own corners. Verified in Chromium: identical frames before and after.
- Claim: before the change these children were square, or took the first corner when the CLI theme editor wrote the radius. Verified: 0 at every corner before; the editor's old single-radius note.
- Claim: the theme pipeline writes each corner to its own private variable for entries with
corners. Verified:generateThemeRules.test.tscorner cases. - Claim: a radius of one value draws as before. Verified: three built themes are byte-identical, and four add corner variables equal to their one radius.
- Claim: the three members merge in order, each as its own merge of its reviewed head. Verified: three two-parent merges whose second parents are the members' heads.
- Claim: each record edit has an engineering owner's spec approval on its member and on this head. Verified for
component:DropdownMenuDEC-12, the only record edit. - Claim: #12911 changes no record, and #12921's sort is decided by an engineering owner on this pull request. Verified.
- Claim: each member's record lines are scored in its own description. Verified for #12388, the only member with a record.
- Claim: each member is closed after this merges. Not checkable before the merge.
- Files with a non-blocking note:
Card.tsx,Dialog.tsx,DropdownMenu.tsx,DropdownMenuSubMenu.tsx,ContextMenu.tsx,BreadcrumbItem.tsx(repeated resets). - Clear:
.changeset/lockfile-read-once.md,.changeset/sortable-state-invalid-date.md,.changeset/theme-corners-reach-children.md,apps/docsite/scripts/generate-data.mjs,apps/docsite/scripts/lib/theming-doc.mjs,apps/storybook/stories/ContainerCorners.stories.tsx,docs/specs/components/DropdownMenu/DropdownMenu.spec.md. - Clear:
packages/cli/api/theme-edit/_check.mjs,_context.mjs,_edit.mjs,_settings.mjs,theme-corners-content-each-corner.test.mjs,packages/cli/authoring/doctypes/base/type.ts. - Clear:
packages/cli/foundation/release/project.mjs,project.test.mjs,packages/cli/foundation/runtime/locked-versions.mjs,package-set.test.mjs. - Clear:
Card.doc.mjs,ContextMenu.doc.mjs,Dialog.doc.mjs,DropdownMenu.doc.mjs,DropdownMenuCheckboxItem.tsx,DropdownMenuItem.tsx,DropdownMenuRadioItem.tsx,menuRowCorners.stylex.ts. - Clear:
Layout/__tests__/ContainerCorners.a11y.chromium.spec.ts,Layout/containerCorners.stylex.ts,useTableSortableState.tsx,useTableSortableState.test.tsx,derivedVarRegistry.ts,derivedVarRegistry.test.ts,generateThemeRules.ts,generateThemeRules.test.ts.
This branch merges three reviewed pull requests onto current main, each as its own
--no-ffmerge, in this order. Each member keeps its own description, tests and review history, and each record edit below has an engineering owner's/approve-specon its member and at this branch's head.Scope
CLI: lockfile read once (#12911).
Components: Table (a sorted column holding an invalid Date sorts that row with the other missing values) (#12921); Card, Dialog, DropdownMenu and menus (a theme radius of different corners reaches what each hands each corner to;
ComponentThemingDerivedVar.corners?: boolean) (#12388).Records
component:DropdownMenuDEC-12, every pointer-menu row takes the menu's corner shape less its padding (fix(core): a theme radius of different corners reaches what a Card, a Dialog and a menu hand each corner to #12388).null,undefinedandNaN(last ascending, first descending), decided by an engineering owner as recorded below.Writing rubric results
Each member's record lines are scored in its own description: present tense, no change references, research or project status; verification rows name tests.
When this merges, each pull request above is closed with a note that names this one.