Skip to content

fix(core): theme targets for parts that paint inside a component - #12081

Merged
josephfarina merged 2 commits into
mainfrom
core-theming-targets
Nov 18, 2026
Merged

josephfarina merged 2 commits into
mainfrom
core-theming-targets

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

User impact

Several parts paint inside a component but carry no theme target of their own, so a theme cannot style them:

  • the key badges inside Kbd (only the non-painting group had a target);
  • the Typeahead result popup (only the shared popover reached it);
  • Calendar's range band and hover-preview band;
  • BottomSheet's grab bar;
  • AlertDialog's title and description, apart from every other heading and text;
  • a Layout header or footer by the container it sits in: one card header and one dialog header shared the same target;
  • a pressed toggle inside a ToggleButtonGroup, apart from a lone pressed toggle;
  • an accent link's hover color inside a container, apart from its resting color.

With this change each one has a target, a state, or a variable. The default look is unchanged: every addition is a class, a reflected attribute, or a variable read with the current value as its fallback.

Problem and solution fit

  • Why does it occur? These parts render without themeProps(), or share one target with unrelated uses.
  • Why does it harm the task? A theme that wants, say, a calmer dialog header or visible key chips has no selector for them.
  • Why does that matter? architecture:component-theming-surface INV4 puts targets on the elements that paint. Of these parts, the records listed the BottomSheet handle as a reachability gap. Kbd's record had a Key badge anatomy entry marked unsettled under its OQ1, and AlertDialog's Title and Description delegated to the heading and text targets; the other parts had no anatomy entry for the painted element.

Expected behavior and authority

  • New targets follow INV2 and INV4 (anatomy parts that paint) and INV6 (state stays on the owning target): container on layout-header/layout-footer and grouped on toggle-button are states, not new targets.
  • Every new data attribute is named, with its reason, in the owning record (architecture:public-component-api DEC-2).
  • --link-hover-color is admitted in component:Link DEC-1 under architecture:public-component-api INV11.

API delta

Component Target / state / variable Element
Kbd kbd-key each key badge
Typeahead typeahead-popup the result popup surface
Calendar calendar-range, calendar-range-preview, states start, end the range bands
BottomSheet bottom-sheet-handle the grab bar
AlertDialog alert-dialog-title, alert-dialog-description the title heading and description; they draw with Heading's level-2 and Text's secondary body type styles and no longer carry the heading and text targets, so a theme's heading or text state rule never outranks them
LayoutHeader, LayoutFooter state container: card, dialog, bottom-sheet the header and footer root, set by the nearest Card, Dialog or BottomSheet in the same layer
ToggleButton state grouped the toggle, inside a ToggleButtonGroup
Link variable --link-hover-color an accent link's hover color; unset, the current color-mix

No prop, type, export or default changes. In every first-party theme the alert title and description look the same; a theme with its own heading or text component rules styles them through the new targets instead.

Smallest restoration

  • Each part merges its target into the element it already renders; no element is added. The alert title and description render their own h2 and span with the shared Heading and Text type styles, as EmptyState's title and description do.
  • A small layer-scoped context (LayoutContainerContext, recorded in component:Layout DEC-2) lets Card, Dialog and BottomSheet name themselves to the Layout inside them; a layer opened from inside one starts with no container, and AppShell's layout root resets it with the other layout contexts (component:AppShell FR18). Card stays a server-safe component: it provides the context through a client island (LayoutContainerScope, named in component:Layout DEC-2 and component:Card PR1). LayoutDividerContext cannot carry it, because Layout provides that context itself and shadows a container's value.
  • Link reads var(--link-hover-color, <current color-mix>) on hover and never sets the variable, so an ancestor's value reaches it.

Evidence

  • componentPartTargets.test.tsx: each key badge carries kbd-key; the range bands carry their targets with start and end; the alert dialog's title and description carry theirs, and no selector a theme writes for a heading or text rule (base or state) matches them while the alert-dialog-* rules do; a grouped toggle reflects grouped and a lone one does not; a Layout header and footer reflect card, dialog, or nothing outside a container; a theme rule for container:dialog builds a selector that does not touch a card's header.
  • Link.hoverColor.a11y.chromium.spec.ts: with no variable set, an accent link hovers in the default color-mix; a container's --link-hover-color sets an accent link's hover color and leaves a primary link's alone, and the resting color never reads it.
  • themingTargets.test.ts and derivedVarRegistry.test.ts check the documented targets and the variable against the source; the probe theme is regenerated for the new targets.

Editor updates on main

Main's theme editor reads Core's parts, so two of its answers follow the new parts:

  • "the calendar range band" is the calendar-range part. "range" is a word the editor keeps, never corrected to "orange".
  • "the key badges" are Kbd's kbd-key badges. "Keyboard keys", "key chips", "the keyboard shortcut" and "the kbd" still read Kbd as on main.
  • Inner-part hand-off: a part that draws none of what is asked hands it to the one piece of its own inside it that draws it at rest (always, or under its own visual props such as a slider track's orientation; never under a runtime state, a pseudo-class or a layer), and the answer names that piece. A piece that fills only to mark a state (a nav item's selected fill, an option's highlight), or only through a hover or press layer inside it (a tab, a radio row), is never handed a resting fill: only the piece's own resting paint counts. A shared component inside it (an empty state's or a button group's Button) is never handed the change, so main's answer stands there. "Make the keyboard keys gray" writes the fill on kbd-key (Kbd itself draws no fill now that the badges are a part of their own). With several such pieces (a stepper's step bars and connectors), nothing is written and the answer names them. What each part draws comes from the editor's census of Core's parts; when the shared part map lands, these facts move there so there is one source.
  • Space between laid-out parts: spacing asked between the parts a holder lays out side by side is that holder's gap, when the census shows the holder draws a gap and holds those parts more than once as the nearest part around them (a new repeats census fact). "More space between the keys in the keyboard shortcut" and "between the keyboard shortcut's keys" write on kbd, "between the tokens in the tokenizer" on tokenizer and "between the steps in the stepper" on stepper. A relation decided by census facts, not a phrase list. Kbd's doc gains playground defaults (mod+k) so its preview, and the census, show a shortcut of two keys.
  • One behavior changes: the base refused set background-color --on kbd and --on calendar, because the key badges and the range band painted over that fill from a token. They are parts of their own now, so the fill is no longer painted over: it is taken and paints the group's own box. The CLI changeset says so.

theme-range.test.mjs and theme-inner-paint.test.mjs assert the new answers: six Kbd fill and color wordings write on kbd-key and name it, a stepper writes nothing and names its pieces, an empty state, a button group, an overflow list, a top nav, a typeahead dropdown, a command palette list, a tree list, a nav heading menu, a tab list and a radio list never write on a shared component or a state-only piece, nine gap and between wordings (seven Kbd, a tokenizer, a stepper) write on the holder, "the key badges" write on kbd-key, and fills on kbd-key, kbd, calendar and markdown-paragraph are taken. The @astryxdesign/cli changeset is [experimental].

First-load size

Gzip deltas on the reference pages at this revision (pnpm size:pages, main → this head): +68 B docs, +69 B form, 0 menu, +1 B table. A page that renders only a Card: +410 B, from the client island that names the card to the Layout inside it.

Scope

Components: Kbd, Typeahead, Calendar, BottomSheet, AlertDialog, LayoutHeader, LayoutFooter, Card, Dialog, ToggleButton, Link

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

Testing

  • Core suites for the changed components, theme/, and CommandPalette pass, apart from locale-data cases that fail the same way without this change.
  • The CLI theme build and theme editor suites pass on this Core.
  • Prettier, strict ESLint, Core tsc --noEmit, pnpm check:knowledge and the changeset check pass.

Writing rubric results

Run over the record edits in component:Layout, component:Kbd, component:Calendar, component:Typeahead, component:BaseTypeahead, component:BottomSheet, component:AlertDialog, component:Card, component:Dialog, component:LayoutHeader, component:LayoutFooter, component:ToggleButton and component:Link.

R1 narration: none; each added sentence states what a part carries or what a value does, with no now, previously, added or before.
R2 research: none.
R3 evidence: evidence cells name the tests, not a pull request.
R4 rejected alternatives: none recorded.
R5 change references: none.
R6 open questions: Kbd OQ1 asked whether a key badge should gain a target; it is answered by DEC-1 and removed.
R7 project status: none; BottomSheet's handle reachability-gap entry is replaced by its target, and no yet or follow-up was added.

@vercel

vercel Bot commented Nov 16, 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 18, 2026 3:28am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 16, 2026
@astracat-bot

astracat-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 18, 2026, 3:51 AM UTC

@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Nov 16, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 16, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 3f3add1

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 16, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 755e0b0

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · e70f5b2

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
Card · Storybook 🔴 10.1 kB (+3.2 kB) · 6.6 kB CSS (0) 197 (+1) — · — · —
lab/CommentThread 370.5 kB (+183 B) · 2.4 kB CSS (0) — — · — · —
ClickableCard 18.9 kB (+168 B) · 7.4 kB CSS (0) — — · — · —
55 more components
Component Size LoC Visual · A11y · RTL
lab/Comments 377.2 kB (+166 B) · 2.5 kB CSS (0) — — · — · —
SelectableCard 19.1 kB (+161 B) · 7.6 kB CSS (0) — — · — · —
PowerSearch 310.4 kB (+131 B) · 25.6 kB CSS (0) — — · — · —
DateTimeInput 226.6 kB (+116 B) · 19.8 kB CSS (0) — — · — · —
DateInput 203.1 kB (+100 B) · 18.0 kB CSS (0) — — · — · —
CommandPalette 78.6 kB (+94 B) · 12.8 kB CSS (0) — — · — · —
lab/CommentComposer 180.6 kB (+83 B) · 1.9 kB CSS (0) — — · — · —
BottomSheet 75.3 kB (+78 B) · 7.8 kB CSS (0) — — · — · —
lab/SelectableCardGroup 69.3 kB (+60 B) · 162 B CSS (0) — — · — · —
Dialog 25.8 kB (+48 B) · 7.0 kB CSS (0) — — · — · —
Calendar · Storybook 77.3 kB (+39 B) · 11.4 kB CSS (0) 1,810 (+12) — · — · —
AppShell · Storybook 98.8 kB (+37 B) · 14.4 kB CSS (0) 1,176 (+3) — · — · —
DateRangeInput 100.8 kB (+37 B) · 13.3 kB CSS (0) — — · — · —
DrawerHeader 69.4 kB (+35 B) · 13.8 kB CSS (0) — — · — · —
TimeInput 177.9 kB (+33 B) · 17.0 kB CSS (0) — — · — · —
LayoutFooter 6.4 kB (+31 B) · 1.7 kB CSS (0) — — · — · —
LayoutHeader 6.4 kB (+28 B) · 1.7 kB CSS (0) — — · — · —
lab/DialogHeroHeader 90.4 kB (+21 B) · 372 B CSS (0) — — · — · —
richtext/RichTextEditorToolbar 309.2 kB (+20 B) · 454 B CSS (0) — — · — · —
SideNavHeading 83.8 kB (+1 B) · 12.1 kB CSS (+15 B) — — · — · —
Lightbox 147.8 kB (+1 B) · 12.0 kB CSS (+14 B) — — · — · —
ToggleButton 93.4 kB (+15 B) · 10.9 kB CSS (0) — — · — · —
TopNavHeading 83.3 kB (+1 B) · 12.0 kB CSS (+14 B) — — · — · —
Toolbar 47.5 kB (+14 B) · 8.2 kB CSS (0) — — · — · —
CommandPaletteFooter 17.5 kB (+12 B) · 3.7 kB CSS (0) — — · — · —
Kbd · Storybook 17.2 kB (+11 B) · 3.6 kB CSS (0) 175 (+3) — · — · —
Link 56.8 kB (0) · 7.1 kB CSS (+11 B) — — · — · —
Tokenizer 105.9 kB (+10 B) · 20.4 kB CSS (0) — — · — · —
DialogHeader 69.2 kB (+9 B) · 12.4 kB CSS (0) — — · — · —
Typeahead 89.2 kB (+8 B) · 13.5 kB CSS (0) — — · — · —
TableSelectionToolbar 76.6 kB (+7 B) · 14.1 kB CSS (0) — — · — · —
BaseTypeahead 79.6 kB (+6 B) · 11.7 kB CSS (0) — — · — · —
TabList 47.7 kB (+6 B) · 6.5 kB CSS (0) — — · — · —
SegmentedControl 102.5 kB (+5 B) · 6.9 kB CSS (0) — — · — · —
MoreMenu 109.1 kB (+2 B) · 18.9 kB CSS (0) — — · — · —
Pagination 147.6 kB (+1 B) · 19.1 kB CSS (0) — — · — · —
Popover 100.2 kB (+1 B) · 15.2 kB CSS (0) — — · — · —
TableHeaderCell 104.5 kB (+1 B) · 19.1 kB CSS (0) — — · — · —
BottomSheetSwitcher 18.8 kB (0) · 3.4 kB CSS (0) — — · — · —
ContextMenu 103.4 kB (0) · 18.8 kB CSS (0) — — · — · —
DropdownMenu 108.8 kB (0) · 18.9 kB CSS (0) — — · — · —
Layout 7.1 kB (0) · 2.3 kB CSS (0) — — · — · —
LayoutContent 17.9 kB (0) · 1.8 kB CSS (0) — — · — · —
LayoutPanel 22.1 kB (0) · 5.0 kB CSS (0) — — · — · —
LinkProvider 3.8 kB (0) · 20 B CSS (0) — — · — · —
Markdown 205.5 kB (0) · 22.1 kB CSS (0) — — · — · —
MultiSelector 103.2 kB (0) · 17.8 kB CSS (0) — — · — · —
Selector 114.8 kB (0) · 18.7 kB CSS (0) — — · — · —
Table 121.8 kB (0) · 19.8 kB CSS (0) — — · — · —
TableCell 104.7 kB (0) · 19.3 kB CSS (0) — — · — · —
ToggleButtonGroup 41.6 kB (0) · 3.7 kB CSS (0) — — · — · —
TypeaheadItem 6.6 kB (0) · 3.6 kB CSS (0) — — · — · —
lab/ChatEmojiPicker 122.7 kB (0) · 773 B CSS (0) — — · — · —
lab/ChatReactionBar 123.9 kB (−1 B) · 1.1 kB CSS (0) — — · — · —
AlertDialog · Storybook 129.6 kB (−371 B) · 15.5 kB CSS (0) 475 (+27) — · — · —

Package size:

  • @astryxdesign/cli 5.39 MB packed (+1.8 kB); no new dependencies
  • @astryxdesign/core 7.66 MB packed (+2.7 kB); no new dependencies

API changes: core +10 · ~4 · −0

14 API changes (advisory)
Package Where Signature Usage
+ core Theme targets · target alert-dialog-description (AlertDialog) target alert-dialog-description (AlertDialog) defineTheme({components: {'alert-dialog-description': {…}}})
+ core Theme targets · target alert-dialog-title (AlertDialog) target alert-dialog-title (AlertDialog) defineTheme({components: {'alert-dialog-title': {…}}})
+ core Theme targets · target bottom-sheet-handle (BottomSheet) target bottom-sheet-handle (BottomSheet) defineTheme({components: {'bottom-sheet-handle': {…}}})
+ core Theme targets · target calendar-range (Calendar) target calendar-range (Calendar) states [end, start] defineTheme({components: {'calendar-range': {…}}})
+ core Theme targets · target calendar-range-preview (Calendar) target calendar-range-preview (Calendar) states [end, start] defineTheme({components: {'calendar-range-preview': {…}}})
+ core Theme targets · target kbd-key (Kbd) target kbd-key (Kbd) defineTheme({components: {'kbd-key': {…}}})
+ core Theme targets · target typeahead-popup (Typeahead) target typeahead-popup (Typeahead) defineTheme({components: {'typeahead-popup': {…}}})
+ core Public attributes · attr data-end attr data-end (theme reflection on 2 targets) [data-end] { … }
+ core Public attributes · attr data-grouped attr data-grouped (theme reflection on 1 target) [data-grouped] { … }
+ core Public attributes · attr data-start attr data-start (theme reflection on 2 targets) [data-start] { … }
~ core Theme targets · target layout-footer (Layout) target layout-footer (Layout) → target layout-footer (Layout) props [container] defineTheme({components: {'layout-footer': {…}}})
~ core Theme targets · target layout-header (Layout) target layout-header (Layout) → target layout-header (Layout) props [container] defineTheme({components: {'layout-header': {…}}})
~ core Theme targets · target toggle-button (ToggleButton) target toggle-button (ToggleButton) props [elevation] states [isPressed] → target toggle-button (ToggleButton) props [elevation] states [grouped, isPressed] defineTheme({components: {'toggle-button': {…}}})
~ core Public attributes · attr data-container attr data-container (theme reflection on 5 targets) → attr data-container (theme reflection on 7 targets) [data-container] { … }

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

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

Requesting changes. The new targets, states and --link-hover-color are owner-approved in the records, and the default look is unchanged, but three things need fixing first:

  • packages/core/src/Layout/LayoutContainerContext.ts is a new internal module that Card, Dialog and BottomSheetPanel import, and no record names it, so name it in a record (its usage, why it is needed, and why LayoutDividerContext or another existing module is not enough) so an owner can decide it.
  • A theme rule on alert-dialog-title or alert-dialog-description loses to any heading or text rule keyed on a state those elements reflect (level:2, color:primary, type:body), because the new targets are a bare class on Heading and Text, and in the probe theme the alert title still paints the heading colour, so move the targets where a base rule can win and add a test that proves it.
  • The "Contract at a glance" rows in the LayoutHeader, LayoutFooter, Card, AlertDialog, ToggleButton and Link records still say builders see no change, which contradicts the FR rows added beside them, so update them as was done for Kbd and Typeahead.

Smaller points: the new FR rows have no Basis cell, the Kbd DEC-1 heading's bold does not render, and the LayoutContainerContext.ts header sentence could be split. CI's test and build jobs were cancelled at this head because CI was full, so re-run them after the fixes.

Claims and files checked

Review mode: full; reason: no-earlier-review

Claims

  • Changeset: each Kbd key badge carries kbd-key. Verified: Kbd.tsx:239, and the tests fail on the base and pass on the head.
  • Changeset: the Typeahead result popup carries typeahead-popup. Verified: BaseTypeahead.tsx:1113, and a jsdom check finds it beside popover.
  • Changeset: Calendar's range and preview bands carry their targets, with start and end on the first and last day. Verified: Calendar.tsx:1422-1425 and :1448-1451, and a test covers the range band.
  • Changeset: BottomSheet's grab bar carries bottom-sheet-handle. Verified: BottomSheetPanel.tsx:1298-1301, and a jsdom check.
  • Changeset: AlertDialog's title and description carry their targets. Verified for the classes (AlertDialog.tsx:305, :312, and a test). A theme cannot use them against heading or text state rules (finding above).
  • Changeset: LayoutHeader and LayoutFooter reflect container (card, dialog, bottom-sheet). Verified: a test covers card, dialog and none, and a jsdom check covers bottom-sheet.
  • Changeset: ToggleButton reflects grouped inside a ToggleButtonGroup. Verified: ToggleButton.tsx:382, and a test.
  • Changeset: an accent Link's hover reads --link-hover-color. Verified: Link.tsx:175, and a Chromium hover check (unset it keeps the shipped mix; set it takes the value; the rest colour is unchanged).
  • Changeset and description: the default look does not change. Verified: the seven published theme builds are byte-identical, and unthemed Kbd frames are identical.
  • Description: these parts had no target of their own, or shared one with unrelated uses. Verified against the base source.
  • Description: the AlertDialog title and description can be styled apart from every other heading and text. False: the probe theme shows the heading and text state rules win.
  • Description: no prop, type, export or default changes. Verified: the generated API delta has only theme rows.
  • Description: each part merges its target into an element it already renders, and no element is added. Verified.
  • Description: a layer opened from inside a Card, Dialog or BottomSheet starts with no container. Verified with a jsdom check (a Popover opened from a Card).
  • Description: Link reads the variable with a fallback and never sets it. Verified: Link.tsx:175.
  • Description: each new data attribute is named with its reason in the owning record. Verified: Calendar DEC-1, ToggleButton DEC-1, LayoutHeader DEC-1, LayoutFooter DEC-1.
  • Description: the variable is admitted in the Link record. Verified: Link DEC-1.
  • Description: the listed tests and the probe theme regeneration. Verified: the tests exist as described; the jsdom suites pass on the head; six of the seven new cases fail on the base; and the probe theme regenerates identically. The Chromium spec was not run here.
  • Description: the suites for the changed components, theme/ and CommandPalette pass. Verified: 104 files and 3,874 tests pass on the head.
  • Description: lint and the knowledge check pass. Verified: the Lint workflow passed on this head, and pnpm check:knowledge passes.
  • Description: the CLI theme build passes on this Core. Verified: the seven theme builds ran it on the head. The theme editor suites were not re-run.

Files

  • .changeset/core-part-theme-targets.md: claims checked above; clear apart from the AlertDialog claim.
  • docs/specs/components/AlertDialog/AlertDialog.spec.md: stale impact rows (finding); FR10 has no Basis cell.
  • docs/specs/components/BottomSheet/BottomSheet.spec.md: FR25 has no Basis cell (non-blocking).
  • docs/specs/components/Calendar/Calendar.spec.md: FR13 has no Basis cell (non-blocking).
  • docs/specs/components/Card/Card.spec.md: stale impact rows (finding); FR7 has no Basis cell.
  • docs/specs/components/Dialog/Dialog.spec.md: FR10 has no Basis or review-state cell (non-blocking).
  • docs/specs/components/Kbd/Kbd.spec.md: the DEC-1 heading's bold is broken, and FR2 lost its Basis (non-blocking).
  • docs/specs/components/Layout/LayoutFooter.spec.md: stale impact rows (finding); the module is not named (finding).
  • docs/specs/components/Layout/LayoutHeader.spec.md: stale impact rows (finding); the module is not named (finding).
  • docs/specs/components/Link/Link.spec.md: stale impact rows (finding).
  • docs/specs/components/ToggleButton/ToggleButton.spec.md: stale impact rows (finding).
  • docs/specs/components/Typeahead/BaseTypeahead.spec.md: clear.
  • docs/specs/components/Typeahead/Typeahead.spec.md: clear.
  • packages/core/src/AlertDialog/AlertDialog.doc.mjs: clear.
  • packages/core/src/AlertDialog/AlertDialog.tsx: the targets lose to heading and text state rules (finding).
  • packages/core/src/BottomSheet/BottomSheet.doc.mjs: clear.
  • packages/core/src/BottomSheet/BottomSheetPanel.tsx: imports the unrecorded module (finding); the handle target is clear.
  • packages/core/src/Calendar/Calendar.doc.mjs: clear.
  • packages/core/src/Calendar/Calendar.tsx: clear.
  • packages/core/src/Card/Card.tsx: imports the unrecorded module (finding).
  • packages/core/src/Dialog/Dialog.tsx: imports the unrecorded module (finding).
  • packages/core/src/Kbd/Kbd.doc.mjs: clear.
  • packages/core/src/Kbd/Kbd.test.tsx: clear.
  • packages/core/src/Kbd/Kbd.tsx: clear.
  • packages/core/src/Layout/Layout.doc.mjs: container is listed as a visual prop, so the probe theme leaves it unprobed (non-blocking).
  • packages/core/src/Layout/LayoutContainerContext.ts: new internal shared module with no record (finding); the header comment is too long (non-blocking).
  • packages/core/src/Layout/LayoutFooter.tsx: clear.
  • packages/core/src/Layout/LayoutHeader.tsx: clear.
  • packages/core/src/Link/Link.doc.mjs: clear.
  • packages/core/src/Link/Link.tsx: clear.
  • packages/core/src/Link/__tests__/Link.hoverColor.a11y.chromium.spec.ts: clear.
  • packages/core/src/ToggleButton/ToggleButton.doc.mjs: clear.
  • packages/core/src/ToggleButton/ToggleButton.tsx: clear.
  • packages/core/src/Typeahead/BaseTypeahead.doc.mjs: clear.
  • packages/core/src/Typeahead/BaseTypeahead.tsx: clear.
  • packages/core/src/Typeahead/Typeahead.doc.mjs: clear.
  • packages/core/src/theme/componentPartTargets.test.tsx: clear. It covers neither the Typeahead popup, the BottomSheet handle and container, nor the preview band.
  • packages/themes/probe/src/probeTheme.ts: generated, and it regenerates identically; clear.

Automated review (maintainer link)

Comment thread docs/specs/components/Kbd/Kbd.spec.md Resolved
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec a8f04b6

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

Requesting changes: two text fixes remain. The new targets, states, container context and --link-hover-color are owner-approved in their records at this head, and the two earlier code issues are fixed: LayoutContainerContext is recorded in component:Layout DEC-2, and the AlertDialog title and description targets now win over heading and text rules.

  • The changeset (.changeset/core-part-theme-targets.md:11) should say that a theme's heading and text rules no longer reach AlertDialog's title and description, and that repeating them on alert-dialog-title and alert-dialog-description keeps that look, as spec:AST-017 FR3 requires for an appearance change.
  • The "Contract at a glance" rows at LayoutHeader.spec.md:47, LayoutFooter.spec.md:47, ToggleButton.spec.md:42 and Link.spec.md:45 and :49 still say there is no API, default, output or DOM change, against the FR rows and decision this pull request adds to the same records.

Rendering is unchanged: the AlertDialog matches pixel for pixel with no theme and under all seven published themes, and the theme builds are byte-identical. Two non-blocking notes are inline.

Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • Themes can reach the listed parts through their own targets: verified: tests in componentPartTargets.test.tsx and Kbd.test.tsx pass; probe-theme frames show the Kbd, Calendar, ToggleButton and AlertDialog targets painting
  • The default look does not change: verified for the published themes and for no theme: seven theme.css builds identical, AlertDialog and Kbd frames pixel-identical; themes with their own heading or text rules do change (finding)
  • Each Kbd key badge carries kbd-key: verified: Kbd.tsx:239
  • The Typeahead result popup carries typeahead-popup: verified: BaseTypeahead.tsx:1113, usePopover.tsx:692-696
  • The Calendar range and preview bands carry their targets with start and end: verified: Calendar.tsx:1422, :1448; test
  • The BottomSheet grab bar carries bottom-sheet-handle: verified: BottomSheetPanel.tsx:1299; jsdom check
  • The AlertDialog title and description carry their own targets: verified: AlertDialog.tsx:313, :325; incomplete, since they no longer carry heading and text (finding)
  • LayoutHeader and LayoutFooter reflect container for a card, dialog or bottom sheet: verified: LayoutHeader.tsx:165, LayoutFooter.tsx:153; tests; Card story
  • ToggleButton reflects grouped inside a group: verified: ToggleButton.tsx:382; test
  • An accent Link hover reads the hover variable when set: verified: Link.tsx:175; compiled stylesheet
  • No prop, type, export or default changes: verified: the API delta has theme targets, attributes and one variable only
  • A layer opened inside a container starts with no container: verified: jsdom check
  • The divider context cannot carry the container: verified by reading: Layout provides that context itself
  • Every new data attribute is named with its reason in its record: verified: Calendar, ToggleButton, LayoutHeader and LayoutFooter DEC-1
  • In every first-party theme the alert title and description look the same: verified: frames identical under all seven themes
  • The changed components' suites pass: verified: 68 files, 2,550 tests on the head
  • The probe theme is regenerated for the new targets: verified: the generator reproduces it

Files:

  • .changeset/core-part-theme-targets.md: finding: does not say that heading and text rules stop reaching the AlertDialog title and description
  • docs/specs/components/AlertDialog/AlertDialog.spec.md: clear (list FR10 in the Compatibility row with the fix)
  • docs/specs/components/BottomSheet/BottomSheet.spec.md: clear
  • docs/specs/components/Calendar/Calendar.spec.md: clear
  • docs/specs/components/Card/Card.spec.md: clear
  • docs/specs/components/Dialog/Dialog.spec.md: clear
  • docs/specs/components/Kbd/Kbd.spec.md: non-blocking: FR2 lost its Basis cell
  • docs/specs/components/Layout/Layout.spec.md: clear
  • docs/specs/components/Layout/LayoutFooter.spec.md: finding: Compatibility row says no output change
  • docs/specs/components/Layout/LayoutHeader.spec.md: finding: Compatibility row says no output change
  • docs/specs/components/Link/Link.spec.md: finding: Public contract and Compatibility rows say nothing changed
  • docs/specs/components/ToggleButton/ToggleButton.spec.md: finding: Compatibility row says no DOM change
  • docs/specs/components/Typeahead/BaseTypeahead.spec.md: clear
  • docs/specs/components/Typeahead/Typeahead.spec.md: clear
  • packages/core/src/AlertDialog/AlertDialog.doc.mjs: clear
  • packages/core/src/AlertDialog/AlertDialog.tsx: non-blocking: one long code comment
  • packages/core/src/BottomSheet/BottomSheet.doc.mjs: clear
  • packages/core/src/BottomSheet/BottomSheetPanel.tsx: clear
  • packages/core/src/Calendar/Calendar.doc.mjs: clear
  • packages/core/src/Calendar/Calendar.tsx: clear
  • packages/core/src/Card/Card.tsx: clear
  • packages/core/src/Dialog/Dialog.tsx: clear
  • packages/core/src/Kbd/Kbd.doc.mjs: clear
  • packages/core/src/Kbd/Kbd.test.tsx: clear
  • packages/core/src/Kbd/Kbd.tsx: clear
  • packages/core/src/Layout/Layout.doc.mjs: clear
  • packages/core/src/Layout/LayoutContainerContext.ts: clear
  • packages/core/src/Layout/LayoutFooter.tsx: clear
  • packages/core/src/Layout/LayoutHeader.tsx: clear
  • packages/core/src/Link/Link.doc.mjs: clear
  • packages/core/src/Link/Link.tsx: clear
  • packages/core/src/Link/__tests__/Link.hoverColor.a11y.chromium.spec.ts: clear
  • packages/core/src/ToggleButton/ToggleButton.doc.mjs: clear
  • packages/core/src/ToggleButton/ToggleButton.tsx: clear
  • packages/core/src/Typeahead/BaseTypeahead.doc.mjs: clear
  • packages/core/src/Typeahead/BaseTypeahead.tsx: clear
  • packages/core/src/Typeahead/Typeahead.doc.mjs: clear
  • packages/core/src/theme/componentPartTargets.test.tsx: clear
  • packages/themes/probe/src/probeTheme.ts: clear (regenerates identically)

Automated review (maintainer link)

Comment thread .changeset/core-part-theme-targets.md Resolved
Comment thread docs/specs/components/Link/Link.spec.md Resolved
Comment thread docs/specs/components/Kbd/Kbd.spec.md Resolved
Comment on lines +307 to +309
{/* The title and description draw as a level-2 heading and
secondary body text, but carry only their own targets: a
theme rule on a heading or text state never outranks them. */}

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: this is one 31-word sentence with two topics. Shorter: "The title and description use Heading's and Text's type styles but only their own targets. No heading or text state rule outranks them."

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 16, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 4e58b46

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 16, 2026

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

Requesting changes for one description fix. The new targets, states, container context and --link-hover-color are owner-approved in their records at this head, and the previous review's two points are fixed: the changeset names the AlertDialog heading and text consequence with its escape, and the glance rows state the additions.

  • Miss: the description's "Problem and solution fit" says the records listed these parts as reachability gaps, but on the base only BottomSheet's handle was (Kbd's key badges were an open question and the other parts had no gap recorded), so please reword it to say that each record edit here decides its part.

Default rendering is unchanged: the seven theme builds are byte-identical, and the captured AlertDialog, Kbd, Calendar and Link frames match. Non-blocking notes are inline, and CI's test jobs need a re-run because this head's run found no room under the CI ceiling.

Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • Themes reach parts that had no target, and the default look does not change: verified: the seven theme builds are byte-identical, Core's stylesheet changes only Link's accent hover rule (with the shipped mix as fallback), and AlertDialog, Kbd, Calendar and Link frames match
  • Each Kbd key badge carries kbd-key: verified: Kbd.tsx:239; Kbd.test.tsx, componentPartTargets.test.tsx
  • The Typeahead result popup carries typeahead-popup: verified: BaseTypeahead.tsx:1113, usePopover.tsx:692-696; probe capture
  • Calendar's range and preview bands carry their targets with start and end: verified: Calendar.tsx:1422, :1448; test covers the selected-range band
  • BottomSheet's grab bar carries bottom-sheet-handle: verified: BottomSheetPanel.tsx:1299; probe capture
  • AlertDialog's title and description carry their own targets, heading and text rules no longer reach them, and repeating those rules keeps the old look: verified: AlertDialog.tsx:310-334; componentPartTargets.test.tsx cascade case
  • LayoutHeader and LayoutFooter reflect container for a card, dialog or bottom sheet: verified: LayoutHeader.tsx:165, LayoutFooter.tsx:153; test; Card story
  • ToggleButton reflects grouped inside a group: verified: ToggleButton.tsx:382; test; probe capture
  • An accent Link's hover reads the hover variable when set: verified: Link.tsx:175; compiled stylesheet; hover capture
  • On the base, each listed part paints with no target of its own or shares one target: verified from the base source
  • Each part now has a target, a state or a variable: verified: the API delta lists all of them
  • Every addition is a class, a reflected attribute or a variable with the current value as fallback: verified; AlertDialog also swaps Heading and Text for its own h2 and span with the same style entries, as the description says
  • The records listed these parts as reachability gaps: false: only BottomSheet's handle was (finding)
  • New targets follow the anatomy and painting rules, and container and grouped are states: verified: the doc files declare them as states
  • Every new data attribute is named, with its reason, in its record: verified: the Calendar, ToggleButton, LayoutHeader and LayoutFooter decisions
  • The hover variable is admitted in Link's record: verified: Link's decision log names it with its purpose, default and scope
  • No prop, type, export or default changes: verified: the container context is not exported
  • In every first-party theme the alert title and description look the same: verified: identical frames under neutral, gothic and butter; all seven themes generate the same heading and text rules over the tokens the style entries read
  • No element is added; the alert parts render their own h2 and span like EmptyState's title and description: verified: AlertDialog.tsx:310-334, EmptyState.tsx:177-198
  • A layer opened inside a container starts with no container: verified by reading: layerScopedContext resets the context at each layer boundary
  • The divider context cannot carry the container because Layout provides it: verified: Layout.tsx:459
  • Link reads the variable with a fallback and never sets it: verified: Link.tsx:172-175
  • The new tests and the Link Chromium spec cover the listed cases: verified: seven componentPartTargets cases pass; the Chromium spec was read, not run
  • The targets and derived-variable tests pass and the probe theme is regenerated: verified: tests pass; the probe check reports it current
  • The changed components' suites pass: verified: 68 files, 2,550 tests
  • The CLI theme build and editor suites pass on this Core: not rerun here; no CLI file changes
  • Prettier, strict ESLint, Core tsc, the knowledge check and the changeset check pass: verified: all pass on the changed files (ESLint 0 errors)
  • Record edits add no narration, no 'yet' or 'follow-up', and Kbd's open question is answered and removed: verified
  • No new public API is hidden under the fix label: verified: the description's API table lists the new surface

Files:

  • .changeset/core-part-theme-targets.md: non-blocking: tag is [fix] for new capabilities
  • docs/specs/components/AlertDialog/AlertDialog.spec.md: non-blocking: Compatibility row leaves FR10 out
  • docs/specs/components/BottomSheet/BottomSheet.spec.md: clear
  • docs/specs/components/Calendar/Calendar.spec.md: clear
  • docs/specs/components/Card/Card.spec.md: clear
  • docs/specs/components/Dialog/Dialog.spec.md: clear
  • docs/specs/components/Kbd/Kbd.spec.md: non-blocking: FR2 lost its Basis cell; a verification row is stale
  • docs/specs/components/Layout/Layout.spec.md: clear
  • docs/specs/components/Layout/LayoutFooter.spec.md: clear
  • docs/specs/components/Layout/LayoutHeader.spec.md: clear
  • docs/specs/components/Link/Link.spec.md: clear
  • docs/specs/components/ToggleButton/ToggleButton.spec.md: clear
  • docs/specs/components/Typeahead/BaseTypeahead.spec.md: clear
  • docs/specs/components/Typeahead/Typeahead.spec.md: clear
  • packages/core/src/AlertDialog/AlertDialog.doc.mjs: clear
  • packages/core/src/AlertDialog/AlertDialog.tsx: non-blocking: one long code comment
  • packages/core/src/BottomSheet/BottomSheet.doc.mjs: clear
  • packages/core/src/BottomSheet/BottomSheetPanel.tsx: clear
  • packages/core/src/Calendar/Calendar.doc.mjs: clear
  • packages/core/src/Calendar/Calendar.tsx: clear
  • packages/core/src/Card/Card.tsx: clear
  • packages/core/src/Dialog/Dialog.tsx: clear
  • packages/core/src/Kbd/Kbd.doc.mjs: clear
  • packages/core/src/Kbd/Kbd.test.tsx: clear
  • packages/core/src/Kbd/Kbd.tsx: clear
  • packages/core/src/Layout/Layout.doc.mjs: clear
  • packages/core/src/Layout/LayoutContainerContext.ts: clear
  • packages/core/src/Layout/LayoutFooter.tsx: clear
  • packages/core/src/Layout/LayoutHeader.tsx: clear
  • packages/core/src/Link/Link.doc.mjs: clear
  • packages/core/src/Link/Link.tsx: non-blocking: one long code comment
  • packages/core/src/Link/__tests__/Link.hoverColor.a11y.chromium.spec.ts: clear
  • packages/core/src/ToggleButton/ToggleButton.doc.mjs: clear
  • packages/core/src/ToggleButton/ToggleButton.tsx: clear
  • packages/core/src/Typeahead/BaseTypeahead.doc.mjs: clear
  • packages/core/src/Typeahead/BaseTypeahead.tsx: clear
  • packages/core/src/Typeahead/Typeahead.doc.mjs: clear
  • packages/core/src/theme/componentPartTargets.test.tsx: clear
  • packages/themes/probe/src/probeTheme.ts: clear (regenerates identically)

Automated review (maintainer link)

Comment thread .changeset/core-part-theme-targets.md Resolved
Comment on lines +172 to +173
// Read with a fallback, never set here: a container or a theme sets
// --link-hover-color on an ancestor or the link, and the link takes it.

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: this is one 26-word sentence that mixes an instruction with a description, in the passive. Shorter, keeping the constraint: "Never set --link-hover-color here. A container or theme sets it on an ancestor or the link."

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec ce21208

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

Requesting changes: CI finished at this head while this review ran, and four required checks fail on changes this pull request makes. The targets, states, container context and --link-hover-color are owner-approved in their records, and the previous review's description point is fixed, but the container context reaches further than the records that admit it, and some record text now contradicts its own new requirements.

  • Found by CI: Card has no 'use client' directive, so Core ships it as a server module, and it now imports Layout/LayoutContainerContext.ts, which does; packages/core/src/serverSafeComponents.test.ts fails at this head, and an app that renders Card from a React Server Component pulls Card's subtree into the client bundle — please keep Card directive-free, for example by providing the container from a client-only part of the subtree.
  • Found by CI: an AppShell inside a Card now reflects data-container="card" on its Layout headers, so its markup differs from the page-root render and component:AppShell FR18's own suite (AppShell.test.tsx, "AppShell layout root (FR18)") fails; please reset the container context at AppShell's layout root, beside the contexts it already resets there, or have an owner amend FR18.
  • Found by CI: packages/core/src/Kbd/__tests__/KbdAudit.a11y.chromium.spec.ts:477 asserts that a key badge carries no astryx-* class, which kbd-key breaks in 14 audit cases; please update that assertion in this pull request, since component:Kbd FR2 now requires the target.
  • Found by CI: two theme-editor contracts that landed on main since this branch's merge base fail on the merge — theme-range.test.mjs:69 expects the calendar range band to be set through --color-accent-muted, and theme-inner-paint.test.mjs:66 expects background-color --on kbd to be refused — so those two contracts need settling with their owner alongside this change.
  • Found by CI: the description's Testing section says the changed components' Core suites and the CLI theme-editor suites pass; at this head they do not. Please reword it once the failures above are fixed.
  • Miss: in six records the authoritative ## Compatibility and migration section still says the change is invisible — LayoutHeader.spec.md:65 and LayoutFooter.spec.md:65 ("no public prop, default, DOM, target, or styling output changes") against their new FR6, ToggleButton.spec.md:58 and Kbd.spec.md:53 ("no public prop, default, export, or DOM change") against FR12 and FR2, AlertDialog.spec.md:77 ("no public API, DOM, or target change") against FR10, and Typeahead.spec.md:59 ("without them, no default or DOM changes") against FR2 — so please give each Compatibility class the one-line correction you already made in its Contract at a glance row.
  • Miss: BottomSheet.spec.md gives the Handle bottom-sheet-handle in FR2 (:188) and in its anatomy map (:399) while still saying no public target reaches the Handle at :158, :383 and :469, and still asking about it in OQ1 (:629); please drop the Handle from those statements and from the open question.

Non-blocking, as inline comments: a stale disposition paragraph and verification row in Kbd.spec.md, the dropped Basis cell at Kbd.spec.md:88, the FR10 omission at AlertDialog.spec.md:58, the [fix] changeset tag, and two long source comments. The default look does hold where it was checked: the seven theme builds are byte-identical, Core's stylesheet differs only in Link's accent hover rule, and the captured AlertDialog frames under the two themes whose heading font differs from their body font match exactly.

Claims and files checked

Review mode: incremental; reason: none

Claims:

  • Themes can reach parts that painted with no target of their own, and the default look does not change: verified — the seven published themes build byte-identical, Core's stylesheet changes only Link's accent hover rule (with the shipped mix as its fallback), and the AlertDialog frames under two themes whose heading font differs from their body font are byte-identical
  • Each Kbd key badge carries kbd-key: verified — Kbd.tsx:236-239, Kbd.test.tsx, componentPartTargets.test.tsx, and the badge paints the probe colour in the capture
  • The Typeahead result popup carries typeahead-popup: verified — BaseTypeahead.tsx:1113 with usePopover.tsx:692-696, which keeps popover beside it
  • Calendar's range and preview bands carry their targets with start and end on the first and last day: verified — Calendar.tsx:1422 and :1448, componentPartTargets.test.tsx for the selected-range band, probe capture
  • BottomSheet's grab bar carries bottom-sheet-handle: verified — BottomSheetPanel.tsx:1298-1301
  • AlertDialog's title and description carry their own targets, and heading and text rules no longer reach them: verified — AlertDialog.tsx:310-334 and the cascade case in componentPartTargets.test.tsx
  • LayoutHeader and LayoutFooter reflect container for a card, a dialog or a bottom sheet: verified — LayoutHeader.tsx:165/:176, LayoutFooter.tsx:153/:164, the test's card/dialog/none case, and the Card story capture
  • ToggleButton reflects grouped inside a group and not alone: verified — ToggleButton.tsx:382, the test, and the probe capture
  • An accent Link's hover reads --link-hover-color when a container or theme sets it: verified — Link.tsx:172-175, the compiled stylesheet, and a hover capture that paints the container's colour while the resting colour is unchanged
  • Each part merges its target into an element it already renders and no element is added, except the alert title and description, which render their own heading and text elements as EmptyState's do: verified by reading each call site
  • Every addition is a class, a reflected attribute, or a variable read with the current value as its fallback: verified
  • On the base only BottomSheet's handle was a recorded reachability gap, Kbd's key badges were an open question, and the other parts had no gap recorded: verified against the base records — this corrects the earlier wording and clears the previous review's blocking finding
  • The new targets follow the anatomy and painting rules, and container and grouped are states rather than new targets: verified — the doc files declare them that way and the generated selectors key on the existing targets
  • Every new data attribute is named, with its reason, in the owning record: verified — the Calendar, ToggleButton, LayoutHeader and LayoutFooter decisions
  • The hover variable is admitted in Link's record: verified — its decision log names the purpose, the default and the scope
  • No prop, type, export or default changes: verified — the container context is not exported, and the generated API delta shows no such row
  • In every first-party theme the alert title and description look the same: verified — identical frames under matcha and chocolate, whose heading family differs from their body family, and the heading family reaches a bare heading element through the theme's own prose reset
  • A layer opened inside a container starts with no container: verified by reading the layer-scoped context and its reset boundary
  • The divider context cannot carry the container because Layout provides that context itself: verified
  • The new tests and the Link browser spec cover the listed cases: verified — the seven cases in the new test file pass; the browser spec was read, not run, and the hover claim was checked with a capture instead
  • The documented-target and derived-variable tests pass and the probe theme is regenerated: verified — the probe check reports the committed fixture current
  • The changed components' suites pass: false — the selected suites pass here, but Core's serverSafeComponents and AppShell suites and the Kbd audit fail at this head (findings above)
  • The CLI theme build and theme editor suites pass on this Core: false on the merge with the default branch — two theme-editor contracts there fail (findings above)
  • Prettier, strict lint, the Core type check, the knowledge check and the changeset check pass: verified for the changed TypeScript, TSX and Markdown files; three component doc files are unformatted on the base as well and are outside the formatting check
  • The record edits add no narration, research, change references or project status, and Kbd's open question is answered and removed: verified for Kbd — but BottomSheet's open question still asks about the handle this change targets, and several statements beside the new requirements still describe the old state (findings above)
  • No new public API is hidden under the fix label: verified — the description's table lists the new theme surface, which is what the generated API delta shows

Files:

  • .changeset/core-part-theme-targets.md: non-blocking: tagged [fix] for what are also new capabilities
  • docs/specs/components/AlertDialog/AlertDialog.spec.md: blocking: the Compatibility class says no DOM or target change; non-blocking: the readiness row leaves FR10 out
  • docs/specs/components/BottomSheet/BottomSheet.spec.md: blocking: four statements and the open question still say no target reaches the Handle
  • docs/specs/components/Calendar/Calendar.spec.md: clear
  • docs/specs/components/Card/Card.spec.md: clear
  • docs/specs/components/Dialog/Dialog.spec.md: clear
  • docs/specs/components/Kbd/Kbd.spec.md: blocking: the Compatibility class says no DOM change; non-blocking: a dropped Basis cell, a stale verification row and a stale disposition paragraph
  • docs/specs/components/Layout/Layout.spec.md: clear
  • docs/specs/components/Layout/LayoutFooter.spec.md: blocking: the Compatibility class says no DOM or target change
  • docs/specs/components/Layout/LayoutHeader.spec.md: blocking: the Compatibility class says no DOM or target change
  • docs/specs/components/Link/Link.spec.md: clear
  • docs/specs/components/ToggleButton/ToggleButton.spec.md: blocking: the Compatibility class says no DOM change
  • docs/specs/components/Typeahead/BaseTypeahead.spec.md: clear
  • docs/specs/components/Typeahead/Typeahead.spec.md: blocking: the Compatibility class says no DOM change without the two optional props
  • packages/core/src/AlertDialog/AlertDialog.doc.mjs: clear
  • packages/core/src/AlertDialog/AlertDialog.tsx: non-blocking: one long source comment
  • packages/core/src/BottomSheet/BottomSheet.doc.mjs: clear
  • packages/core/src/BottomSheet/BottomSheetPanel.tsx: clear
  • packages/core/src/Calendar/Calendar.doc.mjs: clear
  • packages/core/src/Calendar/Calendar.tsx: clear
  • packages/core/src/Card/Card.tsx: blocking: importing the client-only container context takes Card out of the server-safe set
  • packages/core/src/Dialog/Dialog.tsx: clear
  • packages/core/src/Kbd/Kbd.doc.mjs: clear
  • packages/core/src/Kbd/Kbd.test.tsx: clear
  • packages/core/src/Kbd/Kbd.tsx: blocking: the new badge target breaks the Kbd audit's assertion, which this pull request leaves unchanged
  • packages/core/src/Layout/Layout.doc.mjs: clear
  • packages/core/src/Layout/LayoutContainerContext.ts: blocking: a client-only context that Card imports, and that no layout root resets, so an AppShell inside a Card breaks FR18
  • packages/core/src/Layout/LayoutFooter.tsx: clear
  • packages/core/src/Layout/LayoutHeader.tsx: clear
  • packages/core/src/Link/Link.doc.mjs: clear
  • packages/core/src/Link/Link.tsx: non-blocking: one long source comment
  • packages/core/src/Link/__tests__/Link.hoverColor.a11y.chromium.spec.ts: clear
  • packages/core/src/ToggleButton/ToggleButton.doc.mjs: clear
  • packages/core/src/ToggleButton/ToggleButton.tsx: clear
  • packages/core/src/Typeahead/BaseTypeahead.doc.mjs: clear
  • packages/core/src/Typeahead/BaseTypeahead.tsx: clear
  • packages/core/src/Typeahead/Typeahead.doc.mjs: clear
  • packages/core/src/theme/componentPartTargets.test.tsx: clear
  • packages/themes/probe/src/probeTheme.ts: clear: regenerates identically

Automated review (maintainer link)

Comment thread docs/specs/components/Kbd/Kbd.spec.md Resolved
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 9dc657d

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

Changes requested: the last review's two Kbd answers in the theme editor are fixed, but the new general rules bring three editor problems.

  • packages/cli/api/theme-edit/_how-question.mjs:15800-15808 hands a fill to the one part inside the asked part that draws one, and that part can be a shared component: "make the empty state gray" (also "make the button group gray" and "make the overflow list gray") now writes background-color … --on button, recoloring every secondary and ghost Button in the theme at this head (every Button once merged with main), where main writes nothing; please hand off only to the asked part's own parts (named <part>-…, as kbd-key is) and otherwise name the part and write nothing.
  • packages/cli/api/theme-edit/theme-inner-paint.test.mjs:107-109 expects a plain hex, but main now writes gray as light-dark(#9e9e9e, #525252), so the test fails on the merge commit CI's test-node and the merge queue run; please accept the mode-aware value or merge main and update the expectation.
  • Miss: "more space between the keyboard shortcut's keys" still answers spacing more --on kbd-key, which grows each badge instead of the shortcut's gap, because the holder-gap rule at _how-question.mjs:6995-7001 reads only "between the … in/of …" places; please cover the possessive form and add it to the gap loop.

The Core targets, states and --link-hover-color are approved in their records for this head, and the default look is unchanged. Optional: [feat] fits the new capabilities better than [fix] in the Core Changeset, the description's "One behavior changes" undercounts the editor changes, and two code comments in AlertDialog.tsx and Link.tsx could be shorter. CI's test and build jobs have not run on this head: the run was turned away while CI was full.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none since the last review

Claims:

  • Core release note: each Kbd key badge carries its own target (verified: Kbd.tsx:236-239, componentPartTargets.test.tsx)
  • Core release note: the Typeahead result popup carries its own target (verified: BaseTypeahead.tsx:1113)
  • Core release note: Calendar's range and preview bands carry targets, with start and end on the first and last day (verified: Calendar.tsx:1421-1458, componentPartTargets.test.tsx)
  • Core release note: BottomSheet's grab bar carries its own target (verified: BottomSheetPanel.tsx:1302-1305)
  • Core release note: AlertDialog's title and description carry their own targets, heading and text rules stop reaching them, and repeating those rules keeps the look (verified: AlertDialog.tsx:307-334, cascade test)
  • Core release note: Layout headers and footers reflect their container, ToggleButton reflects grouped, and an accent Link's hover reads the new variable (verified: LayoutHeader.tsx:177, LayoutFooter.tsx:165, ToggleButton.tsx:382, Link.tsx:175, tests)
  • Core release note: the default look does not change (verified at the previous revision with pixel-identical default frames; Core unchanged since)
  • CLI release note: the calendar range band is the range part, and range is no longer corrected to orange (verified: theme-range.test.mjs, reviewer probe)
  • CLI release note: the key badges are the kbd-key part, and the Kbd words still read Kbd (verified: reviewer probe)
  • CLI release note: a part that draws none of a fill hands it to the one part inside it that draws it, and names it (verified for Kbd; blocking for shared parts such as Button)
  • CLI release note: with several such parts nothing is written and the answer names them (verified: avatar group, toolbar, stepper, tab list)
  • CLI release note: spacing asked between the parts a holder lays out is that holder's gap (verified for the in/of wordings; false for the possessive key wording, blocking)
  • CLI release note: a fill on kbd or calendar is now taken (verified: theme-inner-paint.test.mjs at this head)
  • Description: the listed parts had no target of their own, and the records' prior state is as described (verified against the base records)
  • Description: new targets follow the theming invariants, container and grouped are states, every new data attribute and the variable are named with a reason (verified in the record diff)
  • Description: the API delta table, with no prop, type, export or default change (verified: source and the earlier API comparison; Core unchanged since)
  • Description: in every first-party theme the alert title and description look the same (verified at an earlier revision; Core unchanged since)
  • Description: each part merges its target into an existing element; the container context is layer-scoped, recorded and reset by AppShell; Card stays server-safe through a client island (verified: code, serverSafeComponents.test.ts)
  • Description: Link reads the variable with the current mix as fallback and never sets it (verified: Link.tsx:175)
  • Description: the evidence tests cover the stated cases (verified: 716 Core tests pass at this head)
  • Description: Main's editor reads Core's parts; the range band and key badge answers follow the new parts (verified: reviewer probe)
  • Description: the inner-part hand-off writes "make the keyboard keys gray" on kbd-key and names it, and an avatar group writes nothing (verified; over-broad for shared parts, blocking)
  • Description: spacing between laid-out parts is the holder's gap through a new census fact, for Kbd, tokenizer and stepper (verified for the in/of wordings; the possessive key wording is missed)
  • Description: one editor behavior changes, fills on kbd and calendar (false in part: other editor answers change too, non-blocking)
  • Description: the two editor tests assert the new answers (verified at this head; theme-inner-paint.test.mjs fails on the merge with main, blocking)
  • Description: first-load gzip deltas of +59 B docs, +45 B form and +410 B for a Card-only page (verified at an earlier revision; Core unchanged since)
  • Description: Core suites, editor suites, lint, typecheck, knowledge and changeset checks pass (Core tests and the editor suite pass at this head; the editor test fails on the merge with main)
  • Description: the record edits carry no narration, status or open question, and Kbd's open question is answered by its new decision (verified in the record diff)

Files:

  • .changeset/core-part-theme-targets.md: non-blocking: [fix] tag for new capabilities
  • .changeset/theme-editor-range-band-key-badge-parts.md: blocking: the holder-gap sentence does not hold for the possessive key wording
  • docs/specs/components/AlertDialog/AlertDialog.spec.md: clear
  • docs/specs/components/AppShell/AppShell.spec.md: clear
  • docs/specs/components/BottomSheet/BottomSheet.spec.md: clear
  • docs/specs/components/Calendar/Calendar.spec.md: clear
  • docs/specs/components/Card/Card.spec.md: clear
  • docs/specs/components/Dialog/Dialog.spec.md: clear
  • docs/specs/components/Kbd/Kbd.spec.md: clear
  • docs/specs/components/Layout/Layout.spec.md: clear
  • docs/specs/components/Layout/LayoutFooter.spec.md: clear
  • docs/specs/components/Layout/LayoutHeader.spec.md: clear
  • docs/specs/components/Link/Link.spec.md: clear
  • docs/specs/components/ToggleButton/ToggleButton.spec.md: clear
  • docs/specs/components/Typeahead/BaseTypeahead.spec.md: clear
  • docs/specs/components/Typeahead/Typeahead.spec.md: clear
  • packages/cli/api/theme-edit/_how-question.mjs: blocking: the hand-off writes on a shared component (button); the holder-gap rule misses a possessive place
  • packages/cli/api/theme-edit/_part-words.mjs: clear
  • packages/cli/api/theme-edit/_parts.mjs: clear (the repeats census fact)
  • packages/cli/api/theme-edit/theme-inner-paint.test.mjs: blocking: fails on the merge with main (gray pattern)
  • packages/cli/api/theme-edit/theme-range.test.mjs: clear
  • packages/core/src/AlertDialog/AlertDialog.doc.mjs: clear
  • packages/core/src/AlertDialog/AlertDialog.tsx: non-blocking: comment wording
  • packages/core/src/AppShell/AppShell.tsx: clear
  • packages/core/src/BottomSheet/BottomSheet.doc.mjs: clear
  • packages/core/src/BottomSheet/BottomSheetPanel.tsx: clear
  • packages/core/src/Calendar/Calendar.doc.mjs: clear
  • packages/core/src/Calendar/Calendar.tsx: clear
  • packages/core/src/Card/Card.tsx: clear
  • packages/core/src/Dialog/Dialog.tsx: clear
  • packages/core/src/Kbd/Kbd.doc.mjs: clear (playground default)
  • packages/core/src/Kbd/Kbd.test.tsx: clear
  • packages/core/src/Kbd/Kbd.tsx: clear
  • packages/core/src/Kbd/__tests__/KbdAudit.a11y.chromium.spec.ts: clear
  • packages/core/src/Layout/Layout.doc.mjs: clear
  • packages/core/src/Layout/LayoutContainerContext.ts: clear
  • packages/core/src/Layout/LayoutContainerScope.tsx: clear
  • packages/core/src/Layout/LayoutFooter.tsx: clear
  • packages/core/src/Layout/LayoutHeader.tsx: clear
  • packages/core/src/Link/Link.doc.mjs: clear
  • packages/core/src/Link/Link.tsx: non-blocking: comment wording
  • packages/core/src/Link/__tests__/Link.hoverColor.a11y.chromium.spec.ts: clear
  • packages/core/src/ToggleButton/ToggleButton.doc.mjs: clear
  • packages/core/src/ToggleButton/ToggleButton.tsx: clear
  • packages/core/src/Typeahead/BaseTypeahead.doc.mjs: clear
  • packages/core/src/Typeahead/BaseTypeahead.tsx: clear
  • packages/core/src/Typeahead/Typeahead.doc.mjs: clear
  • packages/core/src/serverSafeComponents.test.ts: clear
  • packages/core/src/theme/componentPartTargets.test.tsx: clear
  • packages/themes/probe/src/probeTheme.ts: clear (generated)

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 7bd0a92

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

Changes requested: the last review's three theme-editor problems are fixed, but the narrower fill hand-off still writes a resting fill on parts that paint only to mark a state.

  • packages/cli/api/theme-edit/_how-question.mjs:14746-14752: "make the top nav gray" now writes background-color … --on top-nav-item, which is transparent at rest and fills only the selected item, so every nav link gets a gray box, the bar keeps its color, and the selected item stops standing out (theme rules sit above StyleX); please hand off only to a part that draws the asked fill at rest, or carry its state into the write, and otherwise name the part and write nothing, with a test.
  • Miss: the same hand-off (_how-question.mjs:14738-14742 counts a fill under any condition) writes resting fills for "make the typeahead dropdown gray" (typeahead-option), "make the command palette list gray" (command-palette-item), "make the tree list gray" (tree-list-item) and "make the nav heading menu gray" (nav-heading-menu-item), where the base writes nothing, and in the Typeahead and command palette that hides the highlight a keyboard user relies on to see which option Enter picks; the fix above covers these, so please add those wordings to the test as well.

The Core targets, states and --link-hover-color are approved in their records for this head, and the default look is unchanged. Optional: [feat] fits the new capabilities better than [fix] in the Core Changeset, the description's "One behavior changes" undercounts the editor changes, and two code comments in AlertDialog.tsx and Link.tsx could be shorter. CI's test and build jobs had not run on this head at the time of review.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none since the last review

Claims:

  • Core release note: each Kbd key badge carries its own target (verified: Kbd.tsx:236-239, componentPartTargets.test.tsx)
  • Core release note: the Typeahead result popup carries its own target (verified: BaseTypeahead.tsx:1113)
  • Core release note: Calendar's range and preview bands carry targets, with start and end on the first and last day (verified: Calendar.tsx:1421-1458, componentPartTargets.test.tsx)
  • Core release note: BottomSheet's grab bar carries its own target (verified: BottomSheetPanel.tsx:1302-1305)
  • Core release note: AlertDialog's title and description carry their own targets, heading and text rules stop reaching them, and repeating those rules keeps the look (verified: AlertDialog.tsx:307-334, cascade test)
  • Core release note: Layout headers and footers reflect their container, ToggleButton reflects grouped, and an accent Link's hover reads the new variable (verified: LayoutHeader.tsx:177, LayoutFooter.tsx:165, ToggleButton.tsx:382, Link.tsx:175, tests)
  • Core release note: the default look does not change (verified at an earlier revision with pixel-identical default frames; Core unchanged since)
  • CLI release note: the calendar range band is the range part, and range is no longer corrected to orange (verified: theme-range.test.mjs, reviewer probe)
  • CLI release note: the key badges are the kbd-key part, and the Kbd words still read Kbd (verified: reviewer probe)
  • CLI release note: a part that draws none of a fill hands it to the one part inside it that draws it, and names it (verified as built; the receiving part can paint only in a state, blocking)
  • CLI release note: with several such parts nothing is written and the answer names them (verified: date time input, stepper, tab list, slider)
  • CLI release note: spacing asked between the parts a holder lays out is that holder's gap (verified, possessive and in/of wordings)
  • CLI release note: a fill on kbd or calendar is now taken (verified: theme-inner-paint.test.mjs)
  • Description: the listed parts had no target of their own, and the records' prior state is as described (verified against the base records)
  • Description: new targets follow the theming invariants, container and grouped are states, every new data attribute and the variable are named with a reason (verified in the record diff)
  • Description: the API delta table, with no prop, type, export or default change (verified: source and the earlier API comparison; Core unchanged since)
  • Description: in every first-party theme the alert title and description look the same (verified at an earlier revision; Core unchanged since)
  • Description: each part merges its target into an existing element; the container context is layer-scoped, recorded and reset by AppShell; Card stays server-safe through a client island (verified: code, serverSafeComponents.test.ts)
  • Description: Link reads the variable with the current mix as fallback and never sets it (verified: Link.tsx:175)
  • Description: the evidence tests cover the stated cases (verified: Core tests at the last Core change; Core unchanged since)
  • Description: the editor reads Core's parts; the range band and key badge answers follow the new parts (verified: reviewer probe)
  • Description: the hand-off writes the keyboard keys' fill on kbd-key and names it, never hands a change to a shared component, and names several pieces without writing (verified; it also hands fills to parts that paint only in a state, blocking)
  • Description: spacing between laid-out parts is the holder's gap through a new census fact, for Kbd, tokenizer and stepper, possessive wording included (verified)
  • Description: one editor behavior changes, fills on kbd and calendar (false in part: other editor answers change too, non-blocking)
  • Description: the two editor tests assert the new answers, with the counts given (verified: theme-inner-paint.test.mjs, theme-range.test.mjs; both pass on the head and on the merge with main)
  • Description: first-load gzip deltas of +59 B docs, +45 B form and +410 B for a Card-only page (verified at an earlier revision; Core unchanged since)
  • Description: Core suites, editor suites, lint, typecheck, knowledge and changeset checks pass (the PR's editor tests pass on the head and the merge; the Lint workflow passes at this head)
  • Description: the record edits carry no narration, status or open question, and Kbd's open question is answered by its new decision (verified in the record diff)

Files:

  • .changeset/core-part-theme-targets.md: non-blocking: [fix] tag for new capabilities
  • .changeset/theme-editor-range-band-key-badge-parts.md: clear (describes the hand-off as built; the defect is in the code)
  • docs/specs/components/AlertDialog/AlertDialog.spec.md: clear
  • docs/specs/components/AppShell/AppShell.spec.md: clear
  • docs/specs/components/BottomSheet/BottomSheet.spec.md: clear
  • docs/specs/components/Calendar/Calendar.spec.md: clear
  • docs/specs/components/Card/Card.spec.md: clear
  • docs/specs/components/Dialog/Dialog.spec.md: clear
  • docs/specs/components/Kbd/Kbd.spec.md: clear
  • docs/specs/components/Layout/Layout.spec.md: clear
  • docs/specs/components/Layout/LayoutFooter.spec.md: clear
  • docs/specs/components/Layout/LayoutHeader.spec.md: clear
  • docs/specs/components/Link/Link.spec.md: clear
  • docs/specs/components/ToggleButton/ToggleButton.spec.md: clear
  • docs/specs/components/Typeahead/BaseTypeahead.spec.md: clear
  • docs/specs/components/Typeahead/Typeahead.spec.md: clear
  • packages/cli/api/theme-edit/_how-question.mjs: blocking: the fill hand-off writes a resting fill on parts that paint only when selected, highlighted or focused (top nav new; Typeahead, command palette, tree list, nav heading menu missed earlier)
  • packages/cli/api/theme-edit/_part-words.mjs: clear
  • packages/cli/api/theme-edit/_parts.mjs: clear (the repeats census fact)
  • packages/cli/api/theme-edit/theme-inner-paint.test.mjs: clear (passes on the head and on the merge with main)
  • packages/cli/api/theme-edit/theme-range.test.mjs: clear
  • packages/core/src/AlertDialog/AlertDialog.doc.mjs: clear
  • packages/core/src/AlertDialog/AlertDialog.tsx: non-blocking: comment wording
  • packages/core/src/AppShell/AppShell.tsx: clear
  • packages/core/src/BottomSheet/BottomSheet.doc.mjs: clear
  • packages/core/src/BottomSheet/BottomSheetPanel.tsx: clear
  • packages/core/src/Calendar/Calendar.doc.mjs: clear
  • packages/core/src/Calendar/Calendar.tsx: clear
  • packages/core/src/Card/Card.tsx: clear
  • packages/core/src/Dialog/Dialog.tsx: clear
  • packages/core/src/Kbd/Kbd.doc.mjs: clear (playground default)
  • packages/core/src/Kbd/Kbd.test.tsx: clear
  • packages/core/src/Kbd/Kbd.tsx: clear
  • packages/core/src/Kbd/__tests__/KbdAudit.a11y.chromium.spec.ts: clear
  • packages/core/src/Layout/Layout.doc.mjs: clear
  • packages/core/src/Layout/LayoutContainerContext.ts: clear
  • packages/core/src/Layout/LayoutContainerScope.tsx: clear
  • packages/core/src/Layout/LayoutFooter.tsx: clear
  • packages/core/src/Layout/LayoutHeader.tsx: clear
  • packages/core/src/Link/Link.doc.mjs: clear
  • packages/core/src/Link/Link.tsx: non-blocking: comment wording
  • packages/core/src/Link/__tests__/Link.hoverColor.a11y.chromium.spec.ts: clear
  • packages/core/src/ToggleButton/ToggleButton.doc.mjs: clear
  • packages/core/src/ToggleButton/ToggleButton.tsx: clear
  • packages/core/src/Typeahead/BaseTypeahead.doc.mjs: clear
  • packages/core/src/Typeahead/BaseTypeahead.tsx: clear
  • packages/core/src/Typeahead/Typeahead.doc.mjs: clear
  • packages/core/src/serverSafeComponents.test.ts: clear
  • packages/core/src/theme/componentPartTargets.test.tsx: clear
  • packages/themes/probe/src/probeTheme.ts: clear (generated)

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 7ce94a4

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

Changes requested: the state-only hand-offs from the last review are fixed, but the new at-rest test still hands a fill to two pieces that draw nothing at rest.

  • packages/cli/api/theme-edit/_how-question.mjs:14754-14756: drawsAtRest accepts any token an unnamed element inside the piece reads, hover and press layers included, so "make the tab list gray" now writes background-color … --on tab and "make the radio list gray" writes --on radio-list-item, which gives every tab or radio row a gray box while the list keeps its color (the base wrote nothing, and the Changeset says the piece "draws it at rest"); please count only a piece's resting paint, including one that sits under a reflected size or orientation (:14750-14752 misses those today), and add both wordings to the write-nothing list in theme-inner-paint.test.mjs.

The Core targets, states and --link-hover-color are approved in their records for this head, and the default look is unchanged. Optional: [feat] fits the new capabilities better than [fix] in the Core Changeset, the description's "One behavior changes" undercounts the editor changes, and two code comments in AlertDialog.tsx and Link.tsx could be shorter. CI's first run on this head was refused for capacity ("CI is full"), and its re-run had not finished at the time of review.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none since the last review

Claims:

  • Core release note: each Kbd key badge carries its own target (verified: Kbd.tsx:236-239, componentPartTargets.test.tsx)
  • Core release note: the Typeahead result popup carries its own target (verified: BaseTypeahead.tsx:1113)
  • Core release note: Calendar's range and preview bands carry targets, with start and end on the first and last day (verified: Calendar.tsx:1421-1458, componentPartTargets.test.tsx)
  • Core release note: BottomSheet's grab bar carries its own target (verified: BottomSheetPanel.tsx:1302-1305)
  • Core release note: AlertDialog's title and description carry their own targets, heading and text rules stop reaching them, and repeating those rules keeps the look (verified: AlertDialog.tsx:307-334, cascade test)
  • Core release note: Layout headers and footers reflect their container, ToggleButton reflects grouped, and an accent Link's hover reads the new variable (verified: LayoutHeader.tsx:177, LayoutFooter.tsx:165, ToggleButton.tsx:382, Link.tsx:175, tests)
  • Core release note: the default look does not change (verified at an earlier revision with pixel-identical default frames; Core unchanged since)
  • CLI release note: the calendar range band is the range part, and range is no longer corrected to orange (verified: theme-range.test.mjs, reviewer probe)
  • CLI release note: the key badges are the kbd-key part, and the Kbd words still read Kbd (verified: reviewer probe)
  • CLI release note: a part that draws none of a fill hands it to the one piece inside it that draws it at rest, and names it (false for the tab list and radio list, whose pieces draw no fill at rest; blocking)
  • CLI release note: with several such parts nothing is written and the answer names them (verified: stepper)
  • CLI release note: spacing asked between the parts a holder lays out is that holder's gap (verified, possessive and in/of wordings)
  • CLI release note: a fill on kbd or calendar is now taken (verified: theme-inner-paint.test.mjs)
  • Description: the listed parts had no target of their own, and the records' prior state is as described (verified against the base records)
  • Description: new targets follow the theming invariants, container and grouped are states, every new data attribute and the variable are named with a reason (verified in the record diff)
  • Description: the API delta table, with no prop, type, export or default change (verified: source and the earlier API comparison; Core unchanged since)
  • Description: in every first-party theme the alert title and description look the same (verified at an earlier revision; Core unchanged since)
  • Description: each part merges its target into an existing element; the container context is layer-scoped, recorded and reset by AppShell; Card stays server-safe through a client island (verified: code, serverSafeComponents.test.ts)
  • Description: Link reads the variable with the current mix as fallback and never sets it (verified: Link.tsx:175)
  • Description: the evidence tests cover the stated cases (verified: Core tests at the last Core change; Core unchanged since)
  • Description: the editor reads Core's parts; the range band and key badge answers follow the new parts (verified: reviewer probe)
  • Description: a piece that fills only to mark a state is never handed a resting fill, a shared component is never handed the change, and several pieces are named without a write (verified for the five listed wordings and the stepper; false for a tab's hover layer and a radio row's press layer, blocking)
  • Description: spacing between laid-out parts is the holder's gap through a new census fact, for Kbd, tokenizer and stepper (verified)
  • Description: one editor behavior changes, fills on kbd and calendar (false in part: other editor answers change too, non-blocking)
  • Description: the two editor tests assert the new answers, with the counts given (verified: theme-inner-paint.test.mjs, theme-range.test.mjs; both pass on the head and on the merge with main)
  • Description: first-load gzip deltas of +59 B docs, +45 B form and +410 B for a Card-only page (verified at an earlier revision; Core unchanged since)
  • Description: Core suites, editor suites, lint, typecheck, knowledge and changeset checks pass (verified in part: the full theme editor suite passes at this head, 388 files, and the PR's editor tests pass on the merge with main; Lint passes at this head; the Core suites ran at an earlier revision, and Core is unchanged since; CI's test jobs had not finished on this head)
  • Description: the record edits carry no narration, status or open question, and Kbd's open question is answered by its new decision (verified in the record diff)

Files:

  • .changeset/core-part-theme-targets.md: non-blocking: [fix] tag for new capabilities
  • .changeset/theme-editor-range-band-key-badge-parts.md: the "draws it at rest" sentence is false for the tab list and radio list (part of the blocking finding)
  • docs/specs/components/AlertDialog/AlertDialog.spec.md: clear
  • docs/specs/components/AppShell/AppShell.spec.md: clear
  • docs/specs/components/BottomSheet/BottomSheet.spec.md: clear
  • docs/specs/components/Calendar/Calendar.spec.md: clear
  • docs/specs/components/Card/Card.spec.md: clear
  • docs/specs/components/Dialog/Dialog.spec.md: clear
  • docs/specs/components/Kbd/Kbd.spec.md: clear
  • docs/specs/components/Layout/Layout.spec.md: clear
  • docs/specs/components/Layout/LayoutFooter.spec.md: clear
  • docs/specs/components/Layout/LayoutHeader.spec.md: clear
  • docs/specs/components/Link/Link.spec.md: clear
  • docs/specs/components/ToggleButton/ToggleButton.spec.md: clear
  • docs/specs/components/Typeahead/BaseTypeahead.spec.md: clear
  • docs/specs/components/Typeahead/Typeahead.spec.md: clear
  • packages/cli/api/theme-edit/_how-question.mjs: blocking: drawsAtRest accepts inner hover and press layers as a resting fill and misses resting fills under reflected attributes
  • packages/cli/api/theme-edit/_part-words.mjs: clear
  • packages/cli/api/theme-edit/_parts.mjs: clear (the repeats census fact)
  • packages/cli/api/theme-edit/theme-inner-paint.test.mjs: clear (passes on the head and on the merge with main; the tab list and radio list wordings belong in its write-nothing list)
  • packages/cli/api/theme-edit/theme-range.test.mjs: clear
  • packages/core/src/AlertDialog/AlertDialog.doc.mjs: clear
  • packages/core/src/AlertDialog/AlertDialog.tsx: non-blocking: comment wording
  • packages/core/src/AppShell/AppShell.tsx: clear
  • packages/core/src/BottomSheet/BottomSheet.doc.mjs: clear
  • packages/core/src/BottomSheet/BottomSheetPanel.tsx: clear
  • packages/core/src/Calendar/Calendar.doc.mjs: clear
  • packages/core/src/Calendar/Calendar.tsx: clear
  • packages/core/src/Card/Card.tsx: clear
  • packages/core/src/Dialog/Dialog.tsx: clear
  • packages/core/src/Kbd/Kbd.doc.mjs: clear (playground default)
  • packages/core/src/Kbd/Kbd.test.tsx: clear
  • packages/core/src/Kbd/Kbd.tsx: clear
  • packages/core/src/Kbd/__tests__/KbdAudit.a11y.chromium.spec.ts: clear
  • packages/core/src/Layout/Layout.doc.mjs: clear
  • packages/core/src/Layout/LayoutContainerContext.ts: clear
  • packages/core/src/Layout/LayoutContainerScope.tsx: clear
  • packages/core/src/Layout/LayoutFooter.tsx: clear
  • packages/core/src/Layout/LayoutHeader.tsx: clear
  • packages/core/src/Link/Link.doc.mjs: clear
  • packages/core/src/Link/Link.tsx: non-blocking: comment wording
  • packages/core/src/Link/__tests__/Link.hoverColor.a11y.chromium.spec.ts: clear
  • packages/core/src/ToggleButton/ToggleButton.doc.mjs: clear
  • packages/core/src/ToggleButton/ToggleButton.tsx: clear
  • packages/core/src/Typeahead/BaseTypeahead.doc.mjs: clear
  • packages/core/src/Typeahead/BaseTypeahead.tsx: clear
  • packages/core/src/Typeahead/Typeahead.doc.mjs: clear
  • packages/core/src/serverSafeComponents.test.ts: clear
  • packages/core/src/theme/componentPartTargets.test.tsx: clear
  • packages/themes/probe/src/probeTheme.ts: clear (generated)

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 6eed931

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

Changes requested: the tab list and radio list writes from the last review are fixed, but the theme editor's hand-off still skips pieces that reflect an attribute, so one Changeset sentence does not hold.

  • packages/cli/api/theme-edit/_how-question.mjs:14748-14754: drawsAtRest counts only paint the census files under always, which exists only for a piece that reflects no attribute, so "make the slider gray" and "make the switch field gray" get main's "its color comes from its own props" instead of naming slider-track, slider-thumb and switch, switch-thumb as the CLI Changeset promises ("With several such parts, nothing is written and the answer names them"); please either narrow the Changeset and description to a piece that paints the fill with no reflected attribute, or count resting paint keyed only by the target's documented visual props (not its states) and add the slider to theme-inner-paint.test.mjs.

The Core targets, states and --link-hover-color are approved in their records for this head, and the default look is unchanged. Counting every attribute-keyed paint is not a safe fix: it brings back fills on every top nav, tree list and command palette item. Optional: [feat] fits the Core Changeset better than [fix], the description's "One behavior changes" undercounts the editor changes, and two code comments in AlertDialog.tsx and Link.tsx could be shorter.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none since the last review

Claims:

  • Core release note: each Kbd key badge carries its own target (verified: Kbd.tsx:236-239, componentPartTargets.test.tsx)
  • Core release note: the Typeahead result popup carries its own target (verified: BaseTypeahead.tsx:1113)
  • Core release note: Calendar's range and preview bands carry targets, with start and end on the first and last day (verified: Calendar.tsx:1421-1458, componentPartTargets.test.tsx)
  • Core release note: BottomSheet's grab bar carries its own target (verified: BottomSheetPanel.tsx:1302-1305)
  • Core release note: AlertDialog's title and description carry their own targets, heading and text rules stop reaching them, and repeating those rules keeps the look (verified: AlertDialog.tsx:307-334, cascade test)
  • Core release note: Layout headers and footers reflect their container, ToggleButton reflects grouped, and an accent Link's hover reads the new variable (verified: LayoutHeader.tsx:177, LayoutFooter.tsx:165, ToggleButton.tsx:382, Link.tsx:175, tests)
  • Core release note: the default look does not change (verified at an earlier revision with pixel-identical default frames; Core unchanged since)
  • CLI release note: the calendar range band is the range part, and range is no longer corrected to orange (verified: theme-range.test.mjs, reviewer probe)
  • CLI release note: the key badges are the kbd-key part, and the Kbd words still read Kbd (verified: reviewer probe)
  • CLI release note: a part that draws none of a fill hands it to the one piece inside it that draws it at rest, and names it (verified for Kbd; false for parts whose pieces reflect an attribute; blocking)
  • CLI release note: with several such parts nothing is written and the answer names them (verified for the stepper; false for the slider and switch field, which get the main reply; blocking)
  • CLI release note: spacing asked between the parts a holder lays out is that holder's gap (verified: theme-inner-paint.test.mjs, passing)
  • CLI release note: a fill on kbd or calendar is now taken (verified: theme-inner-paint.test.mjs)
  • Description: the listed parts had no target of their own, and the records' prior state is as described (verified against the base records)
  • Description: new targets follow the theming invariants, container and grouped are states, every new data attribute and the variable are named with a reason (verified in the record diff)
  • Description: the API delta table, with no prop, type, export or default change (verified: source and the earlier API comparison; Core unchanged since)
  • Description: in every first-party theme the alert title and description look the same (verified at an earlier revision; Core unchanged since)
  • Description: each part merges its target into an existing element; the container context is layer-scoped, recorded and reset by AppShell; Card stays server-safe through a client island (verified: code, serverSafeComponents.test.ts)
  • Description: Link reads the variable with the current mix as fallback and never sets it (verified: Link.tsx:175)
  • Description: the evidence tests cover the stated cases (verified: Core tests at the last Core change; Core unchanged since)
  • Description: the editor reads Core's parts; the range band and key badge answers follow the new parts (verified: reviewer probe)
  • Description: a piece that fills only to mark a state, or only through a hover or press layer inside it, is never handed a resting fill, and a shared component is never handed the change (verified: top nav, typeahead dropdown, command palette list, tree list, nav heading menu, tab list, radio list, empty state, button group, overflow list write nothing)
  • Description: only the piece's own resting paint counts (false for pieces whose resting paint sits under a reflected attribute, such as a slider's track and thumb; blocking)
  • Description: spacing between laid-out parts is the holder's gap through a new census fact, for Kbd, tokenizer and stepper (verified: theme-inner-paint.test.mjs)
  • Description: one editor behavior changes, fills on kbd and calendar (false in part: other editor answers change too, non-blocking)
  • Description: the two editor tests assert the new answers, with the wordings listed (verified: theme-inner-paint.test.mjs, theme-range.test.mjs; both pass on the head and on the merge with main)
  • Description: first-load gzip deltas of +59 B docs, +45 B form and +410 B for a Card-only page (verified at an earlier revision; Core unchanged since)
  • Description: Core suites, editor suites, lint, typecheck, knowledge and changeset checks pass (verified in part: the PR's editor tests pass at this head and on the merge with main; Lint and CLI Smoke Test pass at this head; the Core suites ran at an earlier revision with Core unchanged since; CI's test jobs had not finished on this head)
  • Description: the record edits carry no narration, status or open question, and Kbd's open question is answered by its new decision (verified in the record diff)

Files:

  • .changeset/core-part-theme-targets.md: non-blocking: [fix] tag for new capabilities
  • .changeset/theme-editor-range-band-key-badge-parts.md: the hand-off and naming sentences are false for the slider and switch field (part of the blocking finding)
  • docs/specs/components/AlertDialog/AlertDialog.spec.md: clear
  • docs/specs/components/AppShell/AppShell.spec.md: clear
  • docs/specs/components/BottomSheet/BottomSheet.spec.md: clear
  • docs/specs/components/Calendar/Calendar.spec.md: clear
  • docs/specs/components/Card/Card.spec.md: clear
  • docs/specs/components/Dialog/Dialog.spec.md: clear
  • docs/specs/components/Kbd/Kbd.spec.md: clear
  • docs/specs/components/Layout/Layout.spec.md: clear
  • docs/specs/components/Layout/LayoutFooter.spec.md: clear
  • docs/specs/components/Layout/LayoutHeader.spec.md: clear
  • docs/specs/components/Link/Link.spec.md: clear
  • docs/specs/components/ToggleButton/ToggleButton.spec.md: clear
  • docs/specs/components/Typeahead/BaseTypeahead.spec.md: clear
  • docs/specs/components/Typeahead/Typeahead.spec.md: clear
  • packages/cli/api/theme-edit/_how-question.mjs: blocking: drawsAtRest never counts a piece that reflects an attribute
  • packages/cli/api/theme-edit/_part-words.mjs: clear
  • packages/cli/api/theme-edit/_parts.mjs: clear (the repeats census fact)
  • packages/cli/api/theme-edit/theme-inner-paint.test.mjs: clear (passes on the head and on the merge with main; lists the tab list and radio list)
  • packages/cli/api/theme-edit/theme-range.test.mjs: clear
  • packages/core/src/AlertDialog/AlertDialog.doc.mjs: clear
  • packages/core/src/AlertDialog/AlertDialog.tsx: non-blocking: comment wording
  • packages/core/src/AppShell/AppShell.tsx: clear
  • packages/core/src/BottomSheet/BottomSheet.doc.mjs: clear
  • packages/core/src/BottomSheet/BottomSheetPanel.tsx: clear
  • packages/core/src/Calendar/Calendar.doc.mjs: clear
  • packages/core/src/Calendar/Calendar.tsx: clear
  • packages/core/src/Card/Card.tsx: clear
  • packages/core/src/Dialog/Dialog.tsx: clear
  • packages/core/src/Kbd/Kbd.doc.mjs: clear (playground default)
  • packages/core/src/Kbd/Kbd.test.tsx: clear
  • packages/core/src/Kbd/Kbd.tsx: clear
  • packages/core/src/Kbd/__tests__/KbdAudit.a11y.chromium.spec.ts: clear
  • packages/core/src/Layout/Layout.doc.mjs: clear
  • packages/core/src/Layout/LayoutContainerContext.ts: clear
  • packages/core/src/Layout/LayoutContainerScope.tsx: clear
  • packages/core/src/Layout/LayoutFooter.tsx: clear
  • packages/core/src/Layout/LayoutHeader.tsx: clear
  • packages/core/src/Link/Link.doc.mjs: clear
  • packages/core/src/Link/Link.tsx: non-blocking: comment wording
  • packages/core/src/Link/__tests__/Link.hoverColor.a11y.chromium.spec.ts: clear
  • packages/core/src/ToggleButton/ToggleButton.doc.mjs: clear
  • packages/core/src/ToggleButton/ToggleButton.tsx: clear
  • packages/core/src/Typeahead/BaseTypeahead.doc.mjs: clear
  • packages/core/src/Typeahead/BaseTypeahead.tsx: clear
  • packages/core/src/Typeahead/Typeahead.doc.mjs: clear
  • packages/core/src/serverSafeComponents.test.ts: clear
  • packages/core/src/theme/componentPartTargets.test.tsx: clear
  • packages/themes/probe/src/probeTheme.ts: clear (generated)

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec f444fec

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

Changes requested: the Core targets, states and --link-hover-color are approved in their records for this head and the default look is unchanged, but one theme-editor sentence in the CLI Changeset still does not hold.

  • packages/cli/api/theme-edit/_how-question.mjs:15548-15554: drawsAtRest counts only paint the census files under always, which exists only for a piece that reflects no attribute, so "make the slider gray" and "make the switch field gray" get main's "its color comes from its own props" instead of naming slider-track, slider-thumb and switch, switch-thumb as the CLI Changeset promises; please either narrow the Changeset and description to a piece that paints the fill with no reflected attribute, or count resting paint keyed only by the target's documented visual props (not its states) and add the slider to theme-inner-paint.test.mjs.

Counting every attribute-keyed paint is not a safe fix: it brings back fills on every top nav, tree list and command palette item. Optional: the description's first-load figures predate the rebase (this head measures +62 B docs, +69 B form, 0 B on the menu and table pages, +410 B Card-only), [feat] fits the Core Changeset better than [fix], and two code comments in AlertDialog.tsx and Link.tsx could be shorter. CI's one failing interaction test is the AlertDialog busy-thread motion proof that main has since fixed; updating the branch onto main picks it up.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Core release note: each Kbd key badge carries its own target (verified: Kbd.tsx:236-239, componentPartTargets.test.tsx, probe-theme frame)
  • Core release note: the Typeahead result popup carries its own target (verified: BaseTypeahead.tsx:1113)
  • Core release note: Calendar's range and preview bands carry targets, with start and end on the first and last day (verified: Calendar.tsx:1421-1460, frame with 11 bands, one start, one end)
  • Core release note: BottomSheet's grab bar carries its own target (verified: BottomSheetPanel.tsx:1302-1305)
  • Core release note: AlertDialog's title and description carry their own targets, heading and text rules stop reaching them, and repeating those rules keeps the look (verified: AlertDialog.tsx:307-334, the cascade test)
  • Core release note: Layout headers and footers reflect their container, ToggleButton reflects grouped, and an accent Link's hover reads the new variable (verified: LayoutHeader.tsx:177, LayoutFooter.tsx:165, ToggleButton.tsx:404, Link.tsx:175, tests)
  • Core release note: the default look does not change (verified: default Kbd, Calendar range, AlertDialog and ToggleButton group frames pixel-identical)
  • CLI release note: the calendar range band is the range part, and range is no longer corrected to orange (verified: theme-range.test.mjs, reviewer probe)
  • CLI release note: the key badges are the key-badge part, and the Kbd words still read Kbd (verified: reviewer probe)
  • CLI release note: a part that draws none of a fill hands it to the one piece inside it that draws it at rest, and names it (verified for Kbd; false for the slider and switch field; blocking)
  • CLI release note: with several such parts nothing is written and the answer names them (verified for the stepper; false for the slider and switch field; blocking)
  • CLI release note: spacing asked between the parts a holder lays out is that holder's gap (verified: theme-inner-paint.test.mjs, reviewer probe)
  • CLI release note: a fill on Kbd or Calendar is now taken (verified: theme-inner-paint.test.mjs)
  • Description: the listed parts had no target of their own, and the records' prior state is as described (verified against the base source and records)
  • Description: new targets follow the theming invariants, container and grouped are states, and every new data attribute and the variable are named with a reason (verified in the record diff)
  • Description: the API delta table, with no prop, type, export or default change (verified: built API surface comparison and source)
  • Description: in every first-party theme the alert title and description look the same (verified: no first-party theme has a heading or body-text component rule; the title keeps every type class)
  • Description: each part merges its target into an existing element; the container context is layer-scoped, recorded and reset by AppShell; Card stays server-safe through a client island (verified: code, AppShell.test.tsx, serverSafeComponents.test.ts)
  • Description: Link reads the variable with the current mix as fallback and never sets it (verified: Link.tsx:175)
  • Description: the evidence tests cover the stated cases (verified: the Core and editor tests pass on this head; the Link browser spec runs in CI)
  • Description: the editor's inner-part hand-off skips state-only pieces and shared components (verified: ten such wordings write nothing, as on the base)
  • Description: only the piece's own resting paint counts (false for pieces whose resting paint sits under a reflected attribute, such as a slider's track and thumb; blocking)
  • Description: spacing between laid-out parts is the holder's gap through a new census fact, for Kbd, tokenizer and stepper (verified: tests and probe)
  • Description: one editor behavior changes, fills on Kbd and Calendar (false in part: other editor answers change too; non-blocking)
  • Description: the two editor tests assert the new answers, with the wordings listed (verified: both pass on this head)
  • Description: first-load gzip deltas of +59 B docs, +45 B form and +410 B for a Card-only page (stale since the rebase: +62 B docs, +69 B form, +410 B Card-only measured; non-blocking)
  • Description: Core suites, editor suites, lint, typecheck, knowledge and changeset checks pass (verified in part: Core suites, the PR's editor tests and the knowledge check pass here; lint and typecheck pass in CI; the full editor suite was not rerun)
  • Description: the record edits carry no narration, status or open question, and Kbd's open question is answered by its new decision (verified in the record diff)

Files:

  • .changeset/core-part-theme-targets.md: non-blocking: [fix] tag for new capabilities
  • .changeset/theme-editor-range-band-key-badge-parts.md: the hand-off and naming sentences are false for the slider and switch field (blocking)
  • docs/specs/components/AlertDialog/AlertDialog.spec.md: clear
  • docs/specs/components/AppShell/AppShell.spec.md: clear
  • docs/specs/components/BottomSheet/BottomSheet.spec.md: clear
  • docs/specs/components/Calendar/Calendar.spec.md: clear
  • docs/specs/components/Card/Card.spec.md: clear
  • docs/specs/components/Dialog/Dialog.spec.md: clear
  • docs/specs/components/Kbd/Kbd.spec.md: clear
  • docs/specs/components/Layout/Layout.spec.md: clear
  • docs/specs/components/Layout/LayoutFooter.spec.md: clear
  • docs/specs/components/Layout/LayoutHeader.spec.md: clear
  • docs/specs/components/Link/Link.spec.md: clear
  • docs/specs/components/ToggleButton/ToggleButton.spec.md: clear
  • docs/specs/components/Typeahead/BaseTypeahead.spec.md: clear
  • docs/specs/components/Typeahead/Typeahead.spec.md: clear
  • packages/cli/api/theme-edit/_how-question.mjs: blocking: drawsAtRest never counts a piece that reflects an attribute
  • packages/cli/api/theme-edit/_part-words.mjs: clear
  • packages/cli/api/theme-edit/_parts.mjs: clear (the repeats census fact)
  • packages/cli/api/theme-edit/theme-inner-paint.test.mjs: clear (passes on this head)
  • packages/cli/api/theme-edit/theme-range.test.mjs: clear (passes on this head)
  • packages/core/src/AlertDialog/AlertDialog.doc.mjs: clear
  • packages/core/src/AlertDialog/AlertDialog.tsx: non-blocking: comment wording
  • packages/core/src/AppShell/AppShell.tsx: clear
  • packages/core/src/BottomSheet/BottomSheet.doc.mjs: clear
  • packages/core/src/BottomSheet/BottomSheetPanel.tsx: clear
  • packages/core/src/Calendar/Calendar.doc.mjs: clear
  • packages/core/src/Calendar/Calendar.tsx: clear
  • packages/core/src/Card/Card.tsx: clear
  • packages/core/src/Dialog/Dialog.tsx: clear
  • packages/core/src/Kbd/Kbd.doc.mjs: clear (playground default)
  • packages/core/src/Kbd/Kbd.test.tsx: clear
  • packages/core/src/Kbd/Kbd.tsx: clear
  • packages/core/src/Kbd/__tests__/KbdAudit.a11y.chromium.spec.ts: clear
  • packages/core/src/Layout/Layout.doc.mjs: clear
  • packages/core/src/Layout/LayoutContainerContext.ts: clear
  • packages/core/src/Layout/LayoutContainerScope.tsx: clear
  • packages/core/src/Layout/LayoutFooter.tsx: clear
  • packages/core/src/Layout/LayoutHeader.tsx: clear
  • packages/core/src/Link/Link.doc.mjs: clear
  • packages/core/src/Link/Link.tsx: non-blocking: comment wording
  • packages/core/src/Link/__tests__/Link.hoverColor.a11y.chromium.spec.ts: clear
  • packages/core/src/ToggleButton/ToggleButton.doc.mjs: clear
  • packages/core/src/ToggleButton/ToggleButton.tsx: clear
  • packages/core/src/Typeahead/BaseTypeahead.doc.mjs: clear
  • packages/core/src/Typeahead/BaseTypeahead.tsx: clear
  • packages/core/src/Typeahead/Typeahead.doc.mjs: clear
  • packages/core/src/serverSafeComponents.test.ts: clear (passes, with the island listed)
  • packages/core/src/theme/componentPartTargets.test.tsx: clear
  • packages/themes/probe/src/probeTheme.ts: clear (generated; the probe-theme check passes)

Automated review (maintainer link)

…ounts as drawn at rest; feat tag; measured sizes
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec e70f5b2

@josephfarina

Copy link
Copy Markdown
Contributor Author

@AstraCat when you review this head, please list every remaining concern in one pass, blocking and non-blocking, so the next push can address them together.

@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: CI has not finished on this head yet (lint, typecheck, the UI and interaction lanes pass; some node test shards are still running).

The Core targets, states and --link-hover-color are approved in their records for this head, the default look is unchanged, and the theme editor now names the pieces that paint a slider and a switch field, so the last blocking finding is fixed. As asked, these are all the remaining concerns; none blocks:

  • "make the radio list gray" names radio-indicator-dot, which renders only on the checked radio (packages/core/src/Indicator/RadioIndicator.tsx:184-189), so either skip a piece the census meets only inside an ancestor's state or say in the description that such a piece can be named.
  • Against the reviewed base, pnpm size:pages measures +62 B on the docs page and 0 B on the table page (the description says +68 B and +1 B), so please name the base the figures came from.
  • The description's "One behavior changes" undercounts the editor: the Kbd fill answers, the "between" gap answers, the range keep word, the pieces named for the stepper, slider, switch field, radio list and date-time input, and the chat message's write on chat-message-bubble change too.
  • docs/specs/components/Dialog/Dialog.spec.md:52: the Compatibility class line does not mention FR11's data-container="dialog" reflection, which the Card, Kbd, Layout, Link and ToggleButton records now state.
  • packages/core/src/AlertDialog/AlertDialog.tsx:307-309 and packages/core/src/Link/Link.tsx:172-173: the two comments can be shorter, as the earlier inline suggestions show.
Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none

Claims:

  • Core release note: each Kbd key badge carries its own target (verified: Kbd.tsx:236-239, componentPartTargets.test.tsx, probe-theme frame)
  • Core release note: the Typeahead result popup carries its own target (verified: BaseTypeahead.tsx:1113)
  • Core release note: Calendar's range and preview bands carry targets, with start and end on the first and last day (verified: Calendar.tsx:1421-1460, frame with 11 bands, one start, one end)
  • Core release note: BottomSheet's grab bar carries its own target (verified: BottomSheetPanel.tsx:1302-1305)
  • Core release note: AlertDialog's title and description carry their own targets, heading and text rules stop reaching them, and repeating those rules keeps the look (verified: AlertDialog.tsx:307-334, the cascade test)
  • Core release note: Layout headers and footers reflect their container, ToggleButton reflects grouped, and an accent Link's hover reads the new variable (verified: LayoutHeader.tsx:177, LayoutFooter.tsx:165, ToggleButton.tsx:404, Link.tsx:175, tests)
  • Core release note: the default look does not change (verified: default Kbd and AlertDialog frames pixel-identical)
  • Core release note: tagged as a feature with a patch bump (verified: matches the Changeset rules for compatible capabilities)
  • CLI release note: the calendar range band is the range part, and range is no longer corrected to orange (verified: theme-range.test.mjs, reviewer probe)
  • CLI release note: the key badges are the key-badge part, and the Kbd words still read Kbd (verified: reviewer probe)
  • CLI release note: a part that draws none of a fill hands it to the one piece of its own that draws it at rest, and names it (verified: Kbd and the chat message)
  • CLI release note: with several such parts nothing is written and the answer names them (verified for the stepper, slider and switch field; the radio list also names its checked-only dot; non-blocking)
  • CLI release note: spacing asked between the parts a holder lays out is that holder's gap (verified: theme-inner-paint.test.mjs, reviewer probe)
  • CLI release note: a fill on Kbd or Calendar is now taken (verified: theme-inner-paint.test.mjs)
  • Description: the listed parts had no target of their own, and the records' prior state is as described (verified against the base source and records)
  • Description: new targets follow the theming invariants, container and grouped are states, and every new data attribute and the variable are named with a reason (verified in the record diff)
  • Description: the API delta table, with no prop, type, export or default change (verified: generated API surface for this head and the source)
  • Description: in every first-party theme the alert title and description look the same (verified: no first-party theme has a heading or body-text rule that reaches them; the title keeps every type class)
  • Description: each part merges its target into an existing element; the container context is layer-scoped, recorded and reset by AppShell; Card stays server-safe through a client island (verified: code, the AppShell suite, serverSafeComponents.test.ts)
  • Description: Link reads the variable with the current mix as fallback and never sets it (verified: Link.tsx:175)
  • Description: the evidence tests cover the stated cases (verified: the Core and editor tests pass on this head; the Link browser spec runs in CI)
  • Description: the editor names the Kbd key badges and range band words as stated (verified: reviewer probe)
  • Description: the inner-part hand-off counts resting paint, including paint keyed only by a piece's own visual props, and skips state-only pieces and shared components (verified for the slider, switch field, nav items, options, tabs, radio rows, empty state and button group; the radio list's checked-only dot is still named; non-blocking)
  • Description: spacing between laid-out parts is the holder's gap through a new census fact, for Kbd, tokenizer and stepper (verified: tests and probe)
  • Description: Kbd's doc opens its preview on a two-key shortcut (verified: Kbd.doc.mjs:97-100)
  • Description: one editor behavior changes, fills on Kbd and Calendar (true for refusals; other editor answers change too; non-blocking)
  • Description: the two editor tests assert the new answers (verified: both pass on this head)
  • Description: first-load gzip deltas of +68 B docs, +69 B form, 0 B menu, +1 B table and +410 B for a Card-only page (form, menu and Card-only verified; docs measures +62 B and table 0 B against the reviewed base; non-blocking)
  • Description: Core suites, editor suites, lint, typecheck, knowledge and changeset checks pass (verified in part: the changed components' Core suites and the PR's editor tests pass here; lint and typecheck pass in CI; CI's remaining node test shards were still running)
  • Description: the record edits carry no narration, status or open question, and Kbd's open question is answered by its new decision (verified in the record diff)

Files:

  • .changeset/core-part-theme-targets.md: clear ([feat] now)
  • .changeset/theme-editor-range-band-key-badge-parts.md: clear; the hand-off and naming sentences hold for the slider and switch field
  • docs/specs/components/AlertDialog/AlertDialog.spec.md: clear
  • docs/specs/components/AppShell/AppShell.spec.md: clear
  • docs/specs/components/BottomSheet/BottomSheet.spec.md: clear
  • docs/specs/components/Calendar/Calendar.spec.md: clear
  • docs/specs/components/Card/Card.spec.md: clear
  • docs/specs/components/Dialog/Dialog.spec.md: non-blocking: the Compatibility class line does not mention FR11
  • docs/specs/components/Kbd/Kbd.spec.md: clear
  • docs/specs/components/Layout/Layout.spec.md: clear
  • docs/specs/components/Layout/LayoutFooter.spec.md: clear
  • docs/specs/components/Layout/LayoutHeader.spec.md: clear
  • docs/specs/components/Link/Link.spec.md: clear
  • docs/specs/components/ToggleButton/ToggleButton.spec.md: clear
  • docs/specs/components/Typeahead/BaseTypeahead.spec.md: clear
  • docs/specs/components/Typeahead/Typeahead.spec.md: clear
  • packages/cli/api/theme-edit/_how-question.mjs: non-blocking: the radio list answer names the checked-only dot
  • packages/cli/api/theme-edit/_part-words.mjs: clear
  • packages/cli/api/theme-edit/_parts.mjs: clear (the repeats census fact)
  • packages/cli/api/theme-edit/theme-inner-paint.test.mjs: clear (passes, slider case included)
  • packages/cli/api/theme-edit/theme-range.test.mjs: clear (passes)
  • packages/core/src/AlertDialog/AlertDialog.doc.mjs: clear
  • packages/core/src/AlertDialog/AlertDialog.tsx: non-blocking: comment wording
  • packages/core/src/AppShell/AppShell.tsx: clear
  • packages/core/src/BottomSheet/BottomSheet.doc.mjs: clear
  • packages/core/src/BottomSheet/BottomSheetPanel.tsx: clear
  • packages/core/src/Calendar/Calendar.doc.mjs: clear
  • packages/core/src/Calendar/Calendar.tsx: clear
  • packages/core/src/Card/Card.tsx: clear
  • packages/core/src/Dialog/Dialog.tsx: clear
  • packages/core/src/Kbd/Kbd.doc.mjs: clear (playground default)
  • packages/core/src/Kbd/Kbd.test.tsx: clear
  • packages/core/src/Kbd/Kbd.tsx: clear
  • packages/core/src/Kbd/__tests__/KbdAudit.a11y.chromium.spec.ts: clear
  • packages/core/src/Layout/Layout.doc.mjs: clear
  • packages/core/src/Layout/LayoutContainerContext.ts: clear
  • packages/core/src/Layout/LayoutContainerScope.tsx: clear
  • packages/core/src/Layout/LayoutFooter.tsx: clear
  • packages/core/src/Layout/LayoutHeader.tsx: clear
  • packages/core/src/Link/Link.doc.mjs: clear
  • packages/core/src/Link/Link.tsx: non-blocking: comment wording
  • packages/core/src/Link/__tests__/Link.hoverColor.a11y.chromium.spec.ts: clear (runs in CI)
  • packages/core/src/ToggleButton/ToggleButton.doc.mjs: clear
  • packages/core/src/ToggleButton/ToggleButton.tsx: clear
  • packages/core/src/Typeahead/BaseTypeahead.doc.mjs: clear
  • packages/core/src/Typeahead/BaseTypeahead.tsx: clear
  • packages/core/src/Typeahead/Typeahead.doc.mjs: clear
  • packages/core/src/serverSafeComponents.test.ts: clear (passes, with the island listed)
  • packages/core/src/theme/componentPartTargets.test.tsx: clear (passes)
  • packages/themes/probe/src/probeTheme.ts: clear (generated)

Automated review (maintainer link)

.every(pair => visual.includes(pair.split('=')[0] ?? ''));
};
/** @param {string} k */
const drawsAtRest = k =>

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: resting accepts the radio dot's fill because the census files it under size alone, but RadioIndicator.tsx:184-189 renders the dot only on the checked radio. So "make the radio list gray" names radio-indicator, radio-indicator-dot, and a reader who picks the dot recolors only the selected radio. Nothing is written. Either skip a piece the census meets only inside an ancestor's state, or say in the description that such a piece can be named.

This branch was successfully deployed

1 active deployment
Preview — e70f5b28 Deployed Nov 18, 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