Repository navigation
chore: land 2 reviewed pull requests together (batch 17) - #12866
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
/approve-spec cc3f70e |
|
/approve-spec cc3f70e |
|
AI review status for this pull request.
|
cc3f70e to
2b1a292
Compare
|
/approve-spec 2b1a292 |
|
/approve-spec 2b1a292 |
…e container radius [skip ci]
There was a problem hiding this comment.
Changes requested: the AppShell first-paint change (#12452) copies an existing rule instead of sharing it. The secondary-text change (#12269) and the TopNavHeading drawer state (#12590) have no blocking findings.
packages/core/src/TopNav/TopNav.tsxlines 50-77 copy AppShell's pre-hydration width-point rule (unreadSideNavStyles,AppShell.tsxlines 549-565, with its gating condition at lines 942-947 restated at 1016-1022), andtouchPresentation.test.tsline 315 widens the guard that kept those media queries in AppShell alone; compute the unread standard point once in AppShell and hand TopNav the existing hide-below style (or move the one table into a shared module both import), then keep the guard at a single owner.
Both record additions (theme-tokens INV14 and TopNavHeading FR12) are approved at this head, and the new contrast, TopNavHeading and AppShell tests fail on the base and pass on the head. Three dashboard templates this batch touches only for the colour fallback already score below the template rubric's 75 and three pages run past 1,000 lines; those notes are non-blocking.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- The light secondary-text default becomes #445564 (was #4E606F) and the dark value is unchanged: verified,
tokens.stylex.tsline 45. - Secondary text meets 4.5:1 on every default palette tint over the surface and the page body: verified,
contrast.test.tspalette-tint suite (lowest pair 4.52:1; the old value reached 3.82:1). - A theme can restore the previous colour by setting the token to the old pair: verified, the default is a plain custom property.
- The CLI package needs a patch for its template and docs fallbacks: verified, the eight templates and the token doc change.
- TopNavHeading carries the drawer mode as the phone menu's title, as the menu's items do, and no mode in the bar: verified,
TopNavHeading.tsxlines 381-383 andTopNav.test.tsxline 254. - On a phone with the standard width points, a server-rendered page no longer paints the full row of links before its script runs; the heading and end content stay, and the toggle arrives with the script: verified, the new
AppShell.test.tsxtop-nav cases (lines 768-878). - The branch merges the three pull requests as separate merges in the stated order: verified; each merge is conflict-free and its second parent is that pull request's current head.
- The record edits are as listed and #12452 changes no record: verified.
- The record edits need an engineering owner's approval at this head: verified, the approval and the spec-owner status are present.
- The first-load size table bounds this head, with the module graph and chunk counts unchanged: verified; at this head the four reference pages change by 0 B, the TopNav page by +220 B gzip and the AppShell page by +22 B gzip.
- The writing-rubric results: self-reported, not re-run.
- Lint, build, typecheck and the unit suites pass on this branch: verified for the build, lint of the changed files and the touched test files; the CI lint, typecheck, build and node suites passed, and one UI shard was still running.
- Each member's own tests pass on its own head: not checked here.
Files:
packages/core/src/TopNav/TopNav.tsx: blocking (copied width-point rule); non-blocking comment wording.packages/core/src/AppShell/AppShell.tsx: part of the blocking finding (restated gating condition).packages/core/src/utils/touchPresentation.test.ts: part of the blocking finding (single-owner guard widened).packages/cli/assets/templates/pages/dashboard-alert-rail/page.tsx: non-blocking (rubric 74; 1,592 lines).packages/cli/assets/templates/pages/dashboard-comparison/page.tsx: non-blocking (rubric 70).packages/cli/assets/templates/pages/dashboard-progress/page.tsx: non-blocking (rubric 74; 1,147 lines).packages/cli/assets/templates/pages/table-collapsible/page.tsx: non-blocking (1,474 lines).packages/core/src/TopNav/TopNavRenderContext.ts,packages/core/src/AppShell/AppShell.test.tsx,.changeset/top-nav-phone-first-paint.md: clear.packages/core/src/TopNav/TopNavHeading.tsx,packages/core/src/TopNav/TopNav.doc.mjs,packages/core/src/TopNav/TopNav.test.tsx,docs/specs/components/TopNav/TopNavHeading.spec.md,packages/themes/probe/src/probeTheme.ts,.changeset/core-top-nav-heading-drawer-mode.md: clear.packages/core/src/theme/tokens.stylex.ts,packages/core/src/theme/contrast.test.ts,packages/core/src/theme/expandColorScale.test.ts,docs/architecture/theme-tokens.md,.changeset/secondary-text-on-palette-tints.md: clear.packages/core/src/reset.css,.github/pages/assets/reset.css,.github/pages/assets/manifest.json,packages/core/src/reset.a11y.chromium.spec.ts,internal/eslint-plugin-astryx/README.md,packages/cli/assets/docs/tree/tokens-color.doc.mjs,packages/native/apple/Sources/Astryx/Theme/Generated/DefaultTheme.swift: clear.packages/cli/assets/templates/pages/dashboard-cohort-funnel/page.tsx,dashboard-composition/page.tsx,dashboard-scorecard/page.tsx,dashboard/page.tsx: clear.
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| TopNavHeading | 83.8 kB (+68 B) · 12.1 kB CSS (0) | — | — · — · — |
| TopNav | 80.0 kB (0) · 11.8 kB CSS (0) | — | — · — · — |
| TopNavItem | 14.6 kB (0) · 4.0 kB CSS (0) | — | — · — · — |
4 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| TopNavMegaMenu | 77.9 kB (0) · 12.7 kB CSS (0) | — | — · — · — |
| TopNavMegaMenuFeaturedCard | 8.4 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| TopNavMegaMenuItem | 15.3 kB (0) · 4.2 kB CSS (0) | — | — · — · — |
| TopNavMenu | 83.3 kB (0) · 12.1 kB CSS (0) | — | — · — · — |
Package size:
- @astryxdesign/cli 5.54 MB packed (+276 B); no new dependencies
- @astryxdesign/core 7.72 MB packed (+161 B); no new dependencies
API changes: core +0 · ~2 · −0
2 API changes (advisory)
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| ~ | core |
Theme targets · target top-nav-heading (TopNav) |
target top-nav-heading (TopNav) → target top-nav-heading (TopNav) states [mode] |
defineTheme({components: {'top-nav-heading': {…}}}) |
| ~ | core |
Public attributes · attr data-mode |
attr data-mode (theme reflection on 8 targets) → attr data-mode (theme reflection on 9 targets) |
[data-mode] { … } |
Wide change (shared styles: packages/themes/probe/src/probeTheme.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
2b1a292 to
1c744f9
Compare
|
/approve-spec 1c744f9 |
|
/approve-spec 1c744f9 |
1c744f9 to
bcb69e3
Compare
|
/approve-spec bcb69e3 |
|
/approve-spec bcb69e3 |
There was a problem hiding this comment.
Changes requested: one description fix; the code in all three members has no blocking findings.
- The description's Scope and Page size sections give #12639 only Card and the editor's changed-tokens line and say no shared module grows, but #12639 adds
packages/core/src/theme/selectedTintText.stylex.ts, which eight component folders import, and adds 119 B gzip to the docs reference page, 124 B to form, 13 B to menu and 27 B to table, so please list #12639's components in Scope and report those four deltas, as INV10 ofcomponent-import-boundariesasks.
An engineering owner approved all three record changes at this head (TopNavHeading FR12, AST-050 DEC-13, theme-compilation INV22 with the Neutral paragraph), and the new TopNavHeading, Citation and corners tests fail on the base and pass on the head. Non-blocking: the changedPartTokens description in theme-edit.type.mjs should mention the new folded line for the theme root.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- The branch merges three reviewed pull requests on current main, each as its own merge, in the stated order: verified (each merge's second parent is that pull request's current head, each merge is conflict-free, and the base is main's tip).
- Each member keeps its own description, tests and review history: verified (all three are open with their own reviews).
- The record edits need an engineering owner's approval at this head: verified (approval and spec-owner status present for this head).
- Scope, TopNavHeading gains the mode state as the phone menu's title: verified (
TopNavHeading.tsxlines 381-383,TopNav.doc.mjsline 25). - Scope, the corners dial moves chat corners with container corners: verified (
_settings.mjsline 6653, new test). - Scope, #12639 touches only Card and the editor's changed-tokens line, plus Neutral's record paragraph: false (it also changes Item, TreeListItem, CheckboxListItem, CommandPaletteItem, Table selection, Citation, FileInput, theme generation and the Neutral, Butter and Y2K themes).
- Records, TopNavHeading FR12, AST-050 DEC-13, theme-compilation INV22 naming the new module, and the Neutral paragraph: verified (record diffs).
- Writing rubric results: self-reported, not re-run.
- No shared module grows: false (a new module imported by eight component folders; Card, Item and CheckboxListItem grow; reference pages +119, +124, +13 and +27 B gzip).
- Each member closes when this merges: not checkable before merge.
- Changeset, secondary text on the accent tint reads at 4.5:1 at rest and hovered, on the page and in every card, in every official theme, for the seven listed parts: verified (role contrast test passes; lowest root pair in the built themes 4.55:1).
- Changeset, Core measures the text from the theme's own colours with the least change, and again in each card variant: verified (
selectedTintText.ts, unit tests). - Changeset, before figures of 3.47:1 in dark Neutral, 3.50:1 in dark Butter (2.85:1 hovered on a surface) and 3.97:1 hovered in Chocolate's orange card: verified (recomputed from the base themes).
- Changeset, Neutral, Butter and Y2K drop their per-part rules in their packages and in the CLI copies: verified (the CLI bundle regenerates identically).
- Changeset, TopNavHeading carries the drawer mode as the phone menu's title, as TopNavItem does, with no mode in the bar and nothing else changed: verified (new test; it fails on the base).
- Changeset, the corners dial gives the chat radius back to the container radius, Core's default, where most bases pin 28px: verified (Core default, six bases at 28px and Y2K at 0px, new test fails on the base).
Files:
- Description (Scope and Page size sections): blocking (above).
packages/cli/api/theme-edit/_settings.mjs: non-blocking (the folded root line is undocumented intheme-edit.type.mjs).packages/core/src/theme/selectedTintText.ts,selectedTintText.stylex.ts,selectedTintText.test.ts,generateThemeRules.ts,statusRoleDerivation.ts,derivedVarRegistry.test.ts: clear.packages/core/src/Card/Card.tsx,CheckboxList/CheckboxListItem.tsx,Citation/Citation.tsx,Citation/Citation.test.tsx,CommandPalette/CommandPaletteItem.tsx,FileInput/FileInput.tsx,Item/Item.tsx,Table/plugins/selection/useTableSelection.tsx,TreeList/TreeListItem.tsx: clear.packages/themes/butter/src/butterTheme.ts,butterPaletteRefs.generated.ts,packages/themes/y2k/src/y2kTheme.ts,packages/themes/neutral/src/neutralTheme.ts,neutralTheme.test.ts,neutral.spec.md: clear.packages/cli/assets/templates/themes/butter/butterTheme.ts,butterPaletteRefs.generated.ts,neutral/neutralTheme.ts,y2k/y2kTheme.ts: clear (regenerated copies).scripts/check-text-contrast-by-role.test.mjs,docs/architecture/theme-compilation.md,.changeset/core-selected-tint-text.md: clear.packages/cli/api/theme-edit/_palette.mjs,theme-accent-lift.test.mjs,theme-changed-tokens-built-values.test.mjs,theme-exact-secondary-text-stays-readable.test.mjs,theme-palette.test.mjs: clear.packages/cli/api/theme-edit/_tables.mjs,theme-corners-chat-radius.test.mjs,docs/specs/AST-050-app-themes/spec.md,.changeset/experimental-theme-corners-chat-radius.md: clear.packages/core/src/TopNav/TopNavHeading.tsx,TopNav.doc.mjs,TopNav.test.tsx,docs/specs/components/TopNav/TopNavHeading.spec.md,packages/themes/probe/src/probeTheme.ts,.changeset/core-top-nav-heading-drawer-mode.md: clear.
bcb69e3 to
8bea9a9
Compare
|
/approve-spec 8bea9a9 |
|
/approve-spec 8bea9a9 |
There was a problem hiding this comment.
Changes requested: the title and description still describe #12639, which this branch no longer contains. The code of #12590 and #12800 has no blocking findings.
- The title says three pull requests land, and the body lists #12639 with its own Scope, Records and Page size lines, but the branch merges only #12590 and #12800 and #12639 is not on
main, so please retitle the batch to two pull requests and drop #12639 from the list and those sections (or merge it back in), so it is not closed as landed.
An engineering owner approved both record changes at this head (TopNavHeading FR12 and AST-050 DEC-13), and the new TopNavHeading and corners tests fail on the base and pass here. Miss, non-blocking: the TopNavHeading record's public-contract, builder-impact and compatibility lines could name the new mode state, as TopNavItem's record names its states.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Title, three reviewed pull requests land together: false (two merges, #12590 and #12800).
- The branch merges the listed pull requests on main, each as its own merge, in order: false for #12639, which is absent; the two merges are clean, each brings in that pull request's current head, and main has since gained three commits that touch none of these files.
- Each member keeps its own description, tests and review history: verified (#12590 and #12800 are open with their own reviews).
- The record edits need an engineering owner's approval at this head: verified (an exact-head approval comment and a green spec-owner status).
- #12590, TopNavHeading carries the drawer mode as the phone menu's title: verified (
TopNavHeading.tsxlines 379-383,TopNav.doc.mjsline 25, new test). - #12800, the corners dial gives the chat radius back to the container radius: verified (
_settings.mjslines 6653 and 12888-12889, new tests). - #12639 is merged here: false (not in the branch; still open and not on main).
- Scope, the TopNavHeading target gains the mode state: verified.
- Scope, the editor's corners dial moves chat corners with container corners: verified.
- Scope, Card and the editor's changed-tokens line, plus Neutral's record paragraph: false (no such change in this branch).
- Records, TopNavHeading FR12 and AST-050 DEC-13: verified; theme-compilation INV22 and the Neutral paragraph: false (neither record changes).
- Writing rubric, the changed records carry no narration, project status or open questions: verified for the added lines.
- Page size, no shared module grows: verified for this branch (TopNavHeading is imported only from its own folder); its sentence about #12639 is false.
- Each listed pull request is closed when this merges: not checkable before merge; #12639 would be closed without landing.
- Changeset (core), the heading carries the drawer mode as the menu's title like TopNavItem, with no mode in the bar and nothing else changed: verified (new test fails on the base).
- Changeset (cli), the corners dial gives the chat radius back to Core's default, the container radius, where most bundled themes pin 28px: verified (Core's default, six bundled themes at 28px and Y2K at 0px; new tests fail on the base).
Files:
- Title and description: blocking (above).
packages/core/src/TopNav/TopNavHeading.tsx,TopNav.doc.mjs,TopNav.test.tsx: clear.packages/themes/probe/src/probeTheme.ts: clear (regenerates identically from the docs).packages/cli/api/theme-edit/_settings.mjs,_tables.mjs,theme-corners-chat-radius.test.mjs: clear.docs/specs/components/TopNav/TopNavHeading.spec.md: non-blocking (summary lines do not name the new state).docs/specs/AST-050-app-themes/spec.md: clear..changeset/core-top-nav-heading-drawer-mode.md,.changeset/experimental-theme-corners-chat-radius.md: clear.
|
|
||
| - The identity block layout and its link and trigger configurations (FR1–FR6, | ||
| FR11). | ||
| FR11), and its theme state in the phone menu (FR12). |
There was a problem hiding this comment.
Miss, non-blocking: FR12 adds a mode state that theme builders key, but this record's summary lines still describe none: line 44 lists the public contract as "target top-nav-heading", line 47 says builder impact is "None.", and lines 65-66 say the compatibility class has "no public API change". TopNavItem's record names its states ("target top-nav-item with mode and selected states"). Suggested: "target top-nav-heading with a mode state", and a builder-impact clause naming mode:drawer.
|
/approve-spec 63a5391 |
|
/approve-spec 63a5391 |
There was a problem hiding this comment.
Approved pending CI: CI has not finished on this head yet. Both members, #12590 (TopNavHeading carries mode=drawer as the phone menu's title) and #12800 (the corners dial gives the chat radius back to the container radius), match their records, which an engineering owner approved at this head, and the title and description now list exactly these two.
- Non-blocking: the TopNavHeading record's summary table and compatibility line still describe the
top-nav-headingtarget without states and with no builder impact; the open inline note has the suggested wording.
Claims and files checked
Review mode: incremental; reason: none
Claims:
- The branch merges the two listed pull requests on a recent main, each as its own merge, in the stated order: verified.
- Each member keeps its own description, tests, checks and review history: verified.
- The record edits carry an engineering owner's spec approval at this head: verified.
- The listed member titles match the members: verified.
- Scope: the heading's theme target gains the
modestate (data-mode="drawer"), and the editor's corners dial moves chat corners with container corners: verified. - Records: the TopNavHeading requirement and the app-themes decision say what the code does: verified; the new tests fail before the change and pass after it.
- Each member reports writing-rubric results, and the added record text has no narration, research, change references, open questions or status: verified.
- No shared module grows: verified; the heading module is imported only from its own folder, and the CLI change is outside component source.
- Each member is closed with a note once this merges: a future step, not checkable at this head.
- Core changeset: the heading carries
data-mode="drawer"as the phone menu's title, as the menu's items do, and nomodein the bar: verified. - CLI changeset:
cornerswrites--radius-chat: var(--radius-container), Core's own default, so the composer, its drawer and message bubbles follow the theme's corners instead of the 28px most bundled themes pin: verified (six of seven bundled themes pin 28px).
Files:
.changeset/core-top-nav-heading-drawer-mode.md: clear.changeset/experimental-theme-corners-chat-radius.md: cleardocs/specs/AST-050-app-themes/spec.md: cleardocs/specs/components/TopNav/TopNavHeading.spec.md: non-blocking note: summary table and compatibility line do not name the new statepackages/cli/api/theme-edit/_settings.mjs: clearpackages/cli/api/theme-edit/_tables.mjs: clearpackages/cli/api/theme-edit/theme-corners-chat-radius.test.mjs: clearpackages/core/src/TopNav/TopNav.doc.mjs: clearpackages/core/src/TopNav/TopNav.test.tsx: clearpackages/core/src/TopNav/TopNavHeading.tsx: clearpackages/themes/probe/src/probeTheme.ts: clear (generated; regenerates identically)
This branch merges two reviewed pull requests on current
main, each as its own--no-ffmerge, in this order. Each member keeps its own description, tests, preflight and review history; the record edits below need an engineering owner's/approve-specat this branch's head.Scope
Components: TopNavHeading (the
top-nav-headingtheming target gains themodestate,data-mode="drawer"); CLIexperimental themeeditor (the corners dial moves chat corners with container corners).Records
component:TopNavHeadingFR12: the heading carriesdata-mode="drawer"as the phone menu's title, so a theme keys it withmode:drawer. (feat(TopNav): TopNavHeading carries mode=drawer as the phone menu's title #12590)spec:AST-050DEC-13: an editor-made theme's corners move its chat corners with its containers. (fix(cli): the corners dial gives the chat radius back to the container radius #12800)Writing rubric results
Each member ran the rubric over its own record change and reports it in its own description; none found narration, research, change references, open questions or project status in the records.
Page size (shared modules)
No shared module grows: #12590 adds one state to TopNavHeading, and #12800 changes only the CLI editor.
When this merges, each pull request above is closed with a note that names this one.