Skip to content

chore: land 3 reviewed pull requests together (batch 63) - #12945

Merged
josephfarina merged 17 commits into
mainfrom
josephfarina/land-batch-63
Nov 19, 2026
Merged

josephfarina merged 17 commits into
mainfrom
josephfarina/land-batch-63

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

This branch merges three reviewed pull requests onto current main, each as its own --no-ff merge, in this order. Each member keeps its own description, tests and review history, and each record edit below has an engineering owner's /approve-spec on 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

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.

josephfarina and others added 14 commits November 19, 2026 06:01
…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]
… 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.
…ts own corners; sub-menu rows follow the menu

[skip ci]
@vercel

vercel Bot commented Nov 19, 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 19, 2026 4:05pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 19, 2026
@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Nov 19, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec e40d456
Covers at this head: architecture:cli-surface DEC-19 and the spec:AST-050 FR7 sentence (#12683); spec:AST-050 FR11 item 12, the doctor page-color check (#12469); component:DropdownMenu DEC-12 and the ComponentThemingDerivedVar.corners field (#12388); architecture:theme-compilation INV22 with its INV4/INV12 rows, component:Pagination FR20/DEC-4 and the theming sitsOn lines (#12378); and the Table invalid-Date sort (#12921).

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec e40d456

@astracat-bot

astracat-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 19, 2026, 4:58 PM UTC

@josephfarina josephfarina changed the title chore: land 7 reviewed pull requests together (batch 63) chore: land 6 reviewed pull requests together (batch 63) Nov 19, 2026
@josephfarina
josephfarina force-pushed the josephfarina/land-batch-63 branch from e40d456 to 485069f Compare November 19, 2026 15:47
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 485069f
Covers at this head: architecture:cli-surface DEC-19 and the spec:AST-050 FR7 sentence (#12683); component:DropdownMenu DEC-12 and the ComponentThemingDerivedVar.corners field (#12388); architecture:theme-compilation INV22 with its INV4/INV12 rows, component:Pagination FR20/DEC-4 and the theming sitsOn lines (#12378); and the Table invalid-Date sort (#12921).

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 485069f

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · f166234

⏳ Building… Until it's ready, Storybook · Sandbox open the branch's previous preview.

Modified components

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

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

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 timestamp and timer theme entry (packages/core/src/theme/generateThemeRules.ts:1900), and every Timestamp and Timer carries data-color from its default secondary, so a theme's timestamp or timer color 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.mjs and render.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.mjs and its tests.
  • Claim: the lockfile is read once, and only for an Astryx package that is not installed: verified in project.mjs, locked-versions.mjs and 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.tsx and 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 sitsOn on 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 button entries whatever their keys: verified by the pager case in sharedElementParts.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 sitsOn or corners (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), and theming-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-050 spec, DropdownMenu.spec.md, Pagination.spec.md, and the six changesets.

Automated review (maintainer link)

@josephfarina josephfarina changed the title chore: land 6 reviewed pull requests together (batch 63) chore: land 3 reviewed pull requests together (batch 63) Nov 19, 2026
@josephfarina
josephfarina force-pushed the josephfarina/land-batch-63 branch from 485069f to f166234 Compare November 19, 2026 16:25
@josephfarina

Copy link
Copy Markdown
Contributor Author

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. useTableSortableState sorts that row with the other missing values (null, undefined and NaN): last when ascending, first when descending, instead of throwing. No API change.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec f166234
Covers at this head: the invalid-Date sort decision above (#12921); component:DropdownMenu DEC-12 and the ComponentThemingDerivedVar.corners field (#12388); and #12911's lockfile read (no record).

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec f166234

@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: 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 only null, undefined and NaN as 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.md lines 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 doctor run 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: useTableSortableState no longer throws on an Invalid Date. Verified: the new tests throw RangeError: Invalid time value before the change and pass after it.
  • Claim: an Invalid Date sorts like null, undefined and NaN, last ascending and first descending. Verified: useTableSortableState.tsx:37-43 and :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-333 resets 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.ts corner 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:DropdownMenu DEC-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.

Automated review (maintainer link)

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