Skip to content

feat(core): theme seams for the spinner, tree disclosure, number steppers and close buttons - #12156

Merged
josephfarina merged 2 commits into
mainfrom
core-theme-indicator-seams
Nov 18, 2026
Merged

josephfarina merged 2 commits into
mainfrom
core-theme-indicator-seams

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

User impact

Four parts could not be styled by a theme, so looks that need them could not be built:

  • The spinner: its two SVG circles could not be swapped, so an hourglass, spokes or a glowing orb was impossible.
  • A TreeList row's disclosure mark: it is the global chevronRight icon rotated by CSS. Swapping that icon changes every chevron in the app, and a +/- box or triangle has no per-state picture.
  • NumberInput's stepper buttons: they carry no target.
  • The close buttons of Toast and Banner: a theme rule for every button (accent text, a transparent fill) also reached the toast's close ×, which then drew accent blue on the red error toast at about 2:1, with no part to keep it apart.

With this change each one has a seam. The default look is unchanged.

Problem and solution fit

  • Spinner and tree disclosure: they read the theme's own entry through a small useThemeIndicator hook. It finds the theme as useIndicator does (the nearest <Theme>, else the root theme) and reads it through getThemeIndicators, the one theme lookup the default registry also uses, so a themed spinner and chevron draw the same in separate React roots and the fallback toast viewport. It never loads the built-in indicators. They use Core's existing theme indicators registry (component:Indicator), which is typed by state family and designed for new families. Two families are added, activity: 'busy' and disclosure: 'collapsed' | 'expanded' (the aria-expanded words), with the indicators spinner and tree-disclosure. They have no built-in in the default registry. With no theme entry, Spinner draws its ring and the row draws its rotating chevron, exactly as before. A theme's indicator is drawn inside the existing box (Spinner keeps its size, shade, role and name) or in the chevron slot, which is not rotated.
  • Stepper: number-input-stepper with direction: increment | decrement, on the buttons that already paint their hover and press.
  • Close buttons: toast-close and banner-close on the dismiss Buttons. Toast's draws in the toast's text color (color: inherit), the color it already drew in. Banner's keeps the status text color the banner scopes to its built-in buttons. A theme can give each its own rule.

Expected behavior and authority

  • New targets follow architecture:component-theming-surface INV4 (parts that paint) and INV6 (direction is a state, not a target).
  • The new data attribute data-direction is named, with its reason, in component:NumberInput DEC-2 (architecture:public-component-api DEC-2).
  • component:Indicator DEC-1 names Indicator/themeIndicators.ts and the useThemeIndicator hook: what they read, why Spinner and TreeList need them, and why the default registry cannot serve them.
  • architecture:component-import-boundaries INV10 gains a named entry for the shared theme lookup Spinner reads (under 0.5 KB gzip on a Spinner-only page): a page that renders an indicator a theme can replace uses theming, so the lookup is not an unused feature. The TreeList-only page stays inside the allowance.
  • The records gain component:Indicator FR7, component:Spinner FR9, component:TreeList FR10, component:NumberInput FR17, component:Toast FR15 and component:Banner FR10, with anatomy, Builder impact and Compatibility lines.

API delta

Component Seam Element
Indicator families activity, disclosure; names spinner, tree-disclosure (no built-in) defineTheme({indicators})
Spinner spinner indicator drawn inside the spinner box, state="busy"
TreeList tree-disclosure indicator the chevron slot, state expanded / collapsed
NumberInput number-input-stepper, state direction each stepper button
Toast toast-close the dismiss button, in the toast's text color
Banner banner-close the dismiss button, in its status text color

No prop, default or export changes.

Evidence

theme/themeIndicatorSeams.test.tsx:

  • The default render is unchanged: the static markup of a default Spinner and a default TreeList is snapshotted. The snapshots were recorded on the base sources and pass unchanged on this branch.
  • Theme replacement: a theme's spinner is drawn inside the progressbar box with state="busy" and no ring. A theme's tree-disclosure draws - for an expanded row and + for a collapsed one, in the chevron slot, with no chevron glyph.
  • Stepper: both stepper buttons carry number-input-stepper with data-direction increment and decrement.
  • Close buttons: toast-close and banner-close are on the dismiss buttons. The toast's declares color: inherit; the banner's declares no color of its own and reads the status on-color the banner scopes to it.

themingTargets.test.ts checks the new targets against the source. The probe theme is regenerated for them.

Size

First-load JavaScript per reference page, gzip, measured with pnpm size:pages from this head's merge base with main (af049a4) to this head:

Page Change, gzip
docs (Text, Heading, Link, Card, Divider, List) +0 B
form (Button, IconButton, TextInput, CheckboxInput, Text, Heading, Card) +51 B
menu (DropdownMenu, ContextMenu, Button, Text) +108 B
table (Table, Text, Button) +96 B
spinner (Spinner only) +467 B
treelist (TreeList only) +87 B

The Spinner-only page is over INV10's 0.3 KB allowance for an unused feature, so INV10 in architecture:component-import-boundaries gains a named entry for the shared theme lookup, stated as bounds a later merge of main won't make wrong: under 0.5 KB gzip on a Spinner-only page, under 0.1 KB on a TreeList-only page. A page that renders an indicator a theme can replace uses theming, so the lookup is not an unused feature.

Scope

Components: Indicator, Spinner, TreeList, NumberInput, Toast, Banner

  • 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 theme, Spinner, TreeList, NumberInput, Toast, Banner and Indicator pass, apart from NumberInput's locale-parsing cases (de-DE, en-IN, ar-SA), which fail the same way on the base in this environment.
  • Core tsc --noEmit, strict ESLint, Prettier, pnpm check:knowledge and the changeset check pass.
  • The theme editor suite, on this branch merged with current main and on its base: the only new failure was the toast close-button answer, which now writes on toast-close, and its test says so.

Writing rubric results

Run over the record edits in component:Indicator, component:Spinner, component:TreeList, component:NumberInput, component:Toast and component:Banner.

R1 narration: none; each added sentence states what a part carries or draws.
R2 research: none.
R3 evidence: the basis and verification cells name tests, not a pull request.
R4 rejected alternatives: none recorded.
R5 change references: none.
R6 open questions: none touched.
R7 project status: none.

@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 5:50pm 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, 6:07 PM 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 9762bf4

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

Changes requested: the new theme seams work, but the Banner close button no longer keeps its default look, the Spinner seam adds weight to pages that never use it, and required CI fails.

  • The Banner dismiss × now draws in the end area's text colour (black in the light theme) instead of the status colour, against component:Banner FR9 and the "default look unchanged" claim in the description and changeset; dropping xstyle={closeStyles.close} at Banner.tsx:818 keeps the banner-close class and restores it.
  • Spinner.tsx:35 pulls the indicator registry and its three built-in indicators into every Spinner, so pnpm size:pages shows +1,216 B gzip on the menu page and +1,172 B on the table page, above INV10's 0.3 KB; read the theme's indicators entry without importing the default map.
  • test-node shards 1–6 fail in 28 theme editor test files under packages/cli/api/theme-edit/ (50 tests fail on this head and pass at its merge base), so the editor and its tests, such as theme-elements.test.mjs, which still expects a toast to have no close part, need updating for the new close targets.
  • NumberInput.spec.md:272 adds a second DEC-1 above the existing one at :279; give the new decision the next free number in the log's format.

The Spinner, TreeList, NumberInput and Toast defaults render pixel-identically, and the theme seams themselves behave as the records describe. Smaller notes: the Toast record still says Button owns the dismiss button (Toast.spec.md:174), and nothing says who mirrors a theme disclosure mark in right-to-left pages.

Claims and files checked

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

Claims:

  • Changeset, the default look does not change: false, the Banner dismiss × changes colour in every status (browser capture).
  • Changeset, a theme spinner indicator replaces the ring: verified (themed capture, themeIndicatorSeams.test.tsx).
  • Changeset, a theme tree-disclosure indicator replaces the chevron with a mark per state: verified (themed capture, test).
  • Changeset, stepper buttons carry number-input-stepper with direction: verified (NumberInput.tsx:1517, :1568, capture).
  • Changeset, the close buttons carry their targets and draw in the card's text colour: true for Toast, false for Banner.
  • Description, these four parts had no theme seam on the base: verified (base source has none of the names or targets).
  • Description, a theme rule for every button turned the toast close accent blue at about 2:1: not checked, no theme in the repository writes that rule.
  • Description, with no theme entry Spinner and TreeList draw as before: verified (snapshots pass on the base; frames identical).
  • Description, a theme spinner keeps the box's size, shade, role and name: verified (role progressbar, name "Loading" under a theme).
  • Description, the close buttons draw in the colour they already drew in: true for Toast, false for Banner.
  • Description, the new targets follow INV4 and INV6: verified.
  • Description, data-direction is named with its reason in NumberInput's decision log: present, but under a duplicate DEC-1.
  • Description, no prop, default or export changes: verified.
  • Description, the snapshots were recorded on the base and pass here: verified (red-first run).
  • Description, the listed Core suites, typecheck and knowledge check pass: verified (1,384 tests, tsc, pnpm check:knowledge); CI lint passed.
  • Description, the probe theme is regenerated: verified (pnpm visual:probe-theme:check).

Files:

  • .changeset/core-theme-indicators-close-stepper.md: false default-look and Banner colour claims.
  • docs/specs/components/Banner/Banner.spec.md: run-on Compatibility sentence; FR10's colour claim does not match the code.
  • docs/specs/components/Indicator/Indicator.spec.md: clear.
  • docs/specs/components/NumberInput/NumberInput.spec.md: duplicate DEC-1.
  • docs/specs/components/Spinner/Spinner.spec.md: clear.
  • docs/specs/components/Toast/Toast.spec.md: ownership line not amended.
  • docs/specs/components/TreeList/TreeList.spec.md: right-to-left owner for a theme mark not stated.
  • packages/core/src/Banner/Banner.doc.mjs: clear.
  • packages/core/src/Banner/Banner.tsx: dismiss colour regression; misplaced comment.
  • packages/core/src/Indicator/Indicator.doc.mjs: clear.
  • packages/core/src/Indicator/types.ts: clear.
  • packages/core/src/NumberInput/NumberInput.doc.mjs: clear.
  • packages/core/src/NumberInput/NumberInput.tsx: clear.
  • packages/core/src/Spinner/Spinner.tsx: first-load cost from the registry import; redundant comment.
  • packages/core/src/Toast/Toast.doc.mjs: clear; it changes the theme editor's answers (CI).
  • packages/core/src/Toast/Toast.tsx: rendered colour unchanged; it changes the theme editor's answers (CI).
  • packages/core/src/TreeList/TreeListItem.tsx: first-load cost from the registry import; no right-to-left mirror for a theme mark.
  • packages/core/src/theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clear.
  • packages/core/src/theme/themeIndicatorSeams.test.tsx: colour tests check a declaration, not the rendered colour.
  • packages/themes/probe/src/probeTheme.ts: clear.

Automated review (maintainer link)

Comment thread packages/core/src/Banner/Banner.tsx Resolved
Comment thread packages/core/src/Spinner/Spinner.tsx Resolved
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 671a465

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
Spinner · Storybook 26.6 kB (+486 B) · 6.3 kB CSS (+26 B) 371 (+14) — · — · —
ChatMessageList 30.0 kB (+481 B) · 7.1 kB CSS (+26 B) — — · — · —
Toast · Storybook 105.6 kB (+187 B) · 11.1 kB CSS (0) 1,739 (+5) — · — · —
91 more components
Component Size LoC Visual · A11y · RTL
TextArea 92.8 kB (+164 B) · 9.4 kB CSS (+10 B) — — · — · —
CodeBlock 81.9 kB (+155 B) · 12.2 kB CSS (+9 B) — — · — · —
TopNavMegaMenu 77.6 kB (+164 B) · 12.7 kB CSS (0) — — · — · —
Switch 109.6 kB (+160 B) · 10.0 kB CSS (0) — — · — · —
ToggleButton 93.6 kB (+149 B) · 10.9 kB CSS (+9 B) — — · — · —
CommandPaletteInput 33.5 kB (+134 B) · 7.6 kB CSS (+23 B) — — · — · —
Banner · Storybook 68.4 kB (+145 B) · 11.3 kB CSS (+10 B) 515 (+3) — · — · —
ChatToolCalls 34.0 kB (+134 B) · 8.5 kB CSS (+21 B) — — · — · —
DrawerHeader 69.6 kB (+144 B) · 14.0 kB CSS (+9 B) — — · — · —
DateTimeInput 226.8 kB (+152 B) · 19.8 kB CSS (0) — — · — · —
NumberInput · Storybook 104.2 kB (+142 B) · 12.2 kB CSS (+10 B) 1,482 (+6) — · — · —
SideNavCollapseButton 67.2 kB (+143 B) · 10.9 kB CSS (+9 B) — — · — · —
Calendar 77.5 kB (+142 B) · 11.4 kB CSS (+9 B) — — · — · —
Carousel 76.5 kB (+141 B) · 11.8 kB CSS (+10 B) — — · — · —
ChatComposer 86.0 kB (+150 B) · 12.9 kB CSS (0) — — · — · —
ComplexSelector 78.9 kB (+147 B) · 12.7 kB CSS (0) — — · — · —
MobileNav 77.6 kB (+139 B) · 11.4 kB CSS (+7 B) — — · — · —
DropdownMenuSubMenu 79.1 kB (+145 B) · 10.5 kB CSS (0) — — · — · —
Button 66.4 kB (+133 B) · 10.8 kB CSS (+10 B) — — · — · —
TextInput 99.1 kB (+133 B) · 12.0 kB CSS (+10 B) — — · — · —
ChatComposerTokenElement 83.6 kB (+142 B) · 12.1 kB CSS (0) — — · — · —
ChatSendButton 66.8 kB (+132 B) · 10.8 kB CSS (+10 B) — — · — · —
ChatComposerInput 83.6 kB (+141 B) · 12.1 kB CSS (0) — — · — · —
BaseTypeahead 79.7 kB (+140 B) · 11.7 kB CSS (0) — — · — · —
DialogHeader 69.4 kB (+128 B) · 12.5 kB CSS (+10 B) — — · — · —
DateInput 203.3 kB (+135 B) · 18.0 kB CSS (0) — — · — · —
Popover 100.4 kB (+135 B) · 15.2 kB CSS (0) — — · — · —
SideNav 122.6 kB (+134 B) · 12.2 kB CSS (0) — — · — · —
BreadcrumbItem 98.1 kB (+132 B) · 13.3 kB CSS (0) — — · — · —
TopNavMenu 83.0 kB (+132 B) · 12.0 kB CSS (0) — — · — · —
lab/TourStep 95.1 kB (+131 B) · 691 B CSS (0) — — · — · —
SideNavHeading 83.9 kB (+128 B) · 12.1 kB CSS (0) — — · — · —
ChatDictationButton 66.9 kB (+117 B) · 10.9 kB CSS (+10 B) — — · — · —
CommandPalette 78.8 kB (+127 B) · 12.8 kB CSS (0) — — · — · —
SideNavItem 78.3 kB (+127 B) · 11.9 kB CSS (0) — — · — · —
ChatLayoutScrollButton 66.9 kB (+117 B) · 11.0 kB CSS (+9 B) — — · — · —
IconButton 66.4 kB (+116 B) · 10.8 kB CSS (+10 B) — — · — · —
Stepper 68.0 kB (+126 B) · 10.9 kB CSS (0) — — · — · —
AlertDialog 129.8 kB (+125 B) · 15.5 kB CSS (0) — — · — · —
lab/EmojiPicker 118.9 kB (+125 B) · 751 B CSS (0) — — · — · —
lab/ListInput 95.4 kB (+125 B) · 922 B CSS (0) — — · — · —
Lightbox 149.7 kB (+124 B) · 12.0 kB CSS (0) — — · — · —
AppShell 98.9 kB (+123 B) · 14.4 kB CSS (0) — — · — · —
MobileNavToggle 66.7 kB (+113 B) · 10.8 kB CSS (+10 B) — — · — · —
MoreMenu 109.2 kB (+122 B) · 18.9 kB CSS (0) — — · — · —
Thumbnail 70.8 kB (+122 B) · 12.4 kB CSS (0) — — · — · —
DateRangeInput 101.0 kB (+121 B) · 13.3 kB CSS (0) — — · — · —
lab/DiffViewer 94.5 kB (+121 B) · 2.1 kB CSS (0) — — · — · —
ChatLayout 90.0 kB (+120 B) · 11.4 kB CSS (0) — — · — · —
Typeahead 89.3 kB (+120 B) · 13.5 kB CSS (0) — — · — · —
TableSelectionToolbar 76.7 kB (+110 B) · 14.1 kB CSS (+9 B) — — · — · —
FileInput 75.4 kB (+108 B) · 11.7 kB CSS (+10 B) — — · — · —
TopNav 79.4 kB (+118 B) · 11.8 kB CSS (0) — — · — · —
TabMenu 80.2 kB (+117 B) · 11.9 kB CSS (0) — — · — · —
TopNavHeading 83.5 kB (+117 B) · 12.0 kB CSS (0) — — · — · —
Table 121.9 kB (+115 B) · 19.8 kB CSS (0) — — · — · —
DropdownMenu 108.9 kB (+113 B) · 18.9 kB CSS (0) — — · — · —
Tokenizer 106.0 kB (+113 B) · 20.4 kB CSS (0) — — · — · —
TableHeaderCell 104.6 kB (+112 B) · 19.1 kB CSS (0) — — · — · —
TableCell 104.8 kB (+111 B) · 19.3 kB CSS (0) — — · — · —
TimeInput 178.0 kB (+111 B) · 17.0 kB CSS (0) — — · — · —
lab/Schedule 116.2 kB (+110 B) · 3.9 kB CSS (0) — — · — · —
ContextMenu 103.5 kB (+105 B) · 18.8 kB CSS (0) — — · — · —
PowerSearch 310.6 kB (+105 B) · 25.6 kB CSS (0) — — · — · —
lab/DialogHeroHeader 90.5 kB (+105 B) · 372 B CSS (0) — — · — · —
lab/ChatReactionBar 124.0 kB (+103 B) · 1.1 kB CSS (0) — — · — · —
lab/CommentComposer 180.7 kB (+102 B) · 1.9 kB CSS (0) — — · — · —
lab/ChatEmojiPicker 122.8 kB (+95 B) · 773 B CSS (0) — — · — · —
Pagination 147.8 kB (+89 B) · 19.1 kB CSS (0) — — · — · —
CheckboxInput 69.5 kB (+66 B) · 10.2 kB CSS (+21 B) — — · — · —
ListItem 79.6 kB (+71 B) · 12.1 kB CSS (+11 B) — — · — · —
Markdown 205.5 kB (+82 B) · 22.1 kB CSS (0) — — · — · —
MultiSelector 103.3 kB (+81 B) · 17.8 kB CSS (0) — — · — · —
TreeList · Storybook 46.5 kB (+81 B) · 5.9 kB CSS (0) 1,236 (+7) — · — · —
lab/CommentThread 372.4 kB (+76 B) · 2.4 kB CSS (0) — — · — · —
lab/Comments 379.1 kB (+68 B) · 2.5 kB CSS (0) — — · — · —
CheckboxListItem 80.4 kB (+48 B) · 12.1 kB CSS (+11 B) — — · — · —
lab/TransferList 136.5 kB (+59 B) · 1.2 kB CSS (0) — — · — · —
lab/TabBarMoreList 102.5 kB (+56 B) · 1.8 kB CSS (0) — — · — · —
richtext/RichTextEditor 308.1 kB (+55 B) · 2.7 kB CSS (0) — — · — · —
Selector 114.9 kB (+49 B) · 18.7 kB CSS (0) — — · — · —
richtext/RichTextView 285.2 kB (+45 B) · 2.4 kB CSS (0) — — · — · —
lab/TransferListSelector 145.4 kB (+44 B) · 1.4 kB CSS (0) — — · — · —
richtext/RichTextEditorToolbar 309.3 kB (+39 B) · 454 B CSS (0) — — · — · —
Timestamp 30.8 kB (+1 B) · 11.1 kB CSS (+10 B) — — · — · —
CheckboxIndicator 2.7 kB (0) · 813 B CSS (0) — — · — · —
CheckIndicator 8.5 kB (0) · 681 B CSS (0) — — · — · —
RadioIndicator 2.5 kB (0) · 724 B CSS (0) — — · — · —
DropdownMenuCheckboxItem 28.8 kB (−2 B) · 7.3 kB CSS (0) — — · — · —
DropdownMenuRadioItem 28.8 kB (−2 B) · 7.3 kB CSS (0) — — · — · —
RadioListItem 76.5 kB (−9 B) · 10.7 kB CSS (0) — — · — · —

Package size: @astryxdesign/core 7.68 MB packed (+2.3 kB); no new dependencies.

API changes: core +7 · ~1 · −0

8 API changes (advisory)
Package Where Signature Usage
+ core . · Types · interface IndicatorFamilyMap activity: 'busy' import type {IndicatorFamilyMap} from '@astryxdesign/core'; const x: IndicatorFamilyMap = {activity: …}
+ core . · Types · interface IndicatorFamilyMap disclosure: 'collapsed' | 'expanded' import type {IndicatorFamilyMap} from '@astryxdesign/core'; const x: IndicatorFamilyMap = {disclosure: …}
+ core . · Types · interface IndicatorMap spinner: 'activity' import type {IndicatorMap} from '@astryxdesign/core'; const x: IndicatorMap = {spinner: …}
+ core . · Types · interface IndicatorMap tree-disclosure: 'disclosure' import type {IndicatorMap} from '@astryxdesign/core'; const x: IndicatorMap = {tree-disclosure: …}
+ core Theme targets · target banner-close (Banner) target banner-close (Banner) defineTheme({components: {'banner-close': {…}}})
+ core Theme targets · target number-input-stepper (NumberInput) target number-input-stepper (NumberInput) states [direction] defineTheme({components: {'number-input-stepper': {…}}})
+ core Theme targets · target toast-close (Toast) target toast-close (Toast) defineTheme({components: {'toast-close': {…}}})
~ core Public attributes · attr data-direction attr data-direction (theme reflection on 3 targets) → attr data-direction (theme reflection on 4 targets) [data-direction] { … }

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

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

Copy link
Copy Markdown
Contributor Author

/approve-spec c34966f

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

Copy link
Copy Markdown
Contributor Author

/approve-spec 175979e

@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 new theme seams work and the default look is unchanged, but the Spinner seam still adds first-load JavaScript where it is unused, lint fails, and two description claims are wrong.

  • A page that renders only Spinner grows 463 B gzip, because Spinner.tsx:35 now loads the theme context and registry through useThemeIndicator; architecture:component-import-boundaries INV10 allows 0.3 KB for an unused optional feature, and the description says "a Spinner pays no bundle cost", so move the lookup behind its own import or a deferred load and report the Spinner page and four reference-page gzip deltas in the description.
  • The Lint workflow fails on themeIndicators.ts:43 (@typescript-eslint/no-unnecessary-type-assertion), which makes the description's "strict ESLint passes" false; drop the cast.
  • The description says data-direction is named in component:NumberInput DEC-1, but the record names it in DEC-2.

The Banner dismiss colour, the built-in indicators on Button pages, the theme editor tests and the duplicate DEC-1 raised on the earlier head are fixed. The CI workflow was cancelled because CI was full, so it needs a fresh run. Non-blocking: the new Indicator DEC-1 and NumberInput DEC-2 have no **Decider:** line, unlike every other decision in the records.

Claims and files checked

Review mode: full; reason: spec-record

  • Claims:
    • Before this change, a theme could not replace the spinner picture or tree disclosure mark, or target the stepper and close buttons: verified (the same theme fixture changes nothing on the base).
    • The default look is unchanged: verified (Banner, Toast, Spinner, TreeList and NumberInput stories render pixel-identical; the default-render snapshots pass on the base).
    • The new hook never loads the built-in indicators: verified (no built-in indicator module reaches any measured page).
    • A Spinner pays no bundle cost: false (a Spinner-only page grows 463 B gzip).
    • Two families and two names are added with no built-in: verified (Indicator/types.ts, default registry unchanged).
    • With no theme entry, Spinner draws its ring and the row its rotating chevron: verified (frames and snapshots).
    • A theme's indicator draws inside the Spinner box with its size, shade, role and name, or in an unrotated chevron slot: verified (fixture probe: role progressbar, name "Loading"; TreeListItem.tsx:573-577).
    • The stepper buttons carry number-input-stepper with direction: verified (NumberInput.tsx:1517, :1568; test).
    • The Toast close button draws in the toast's text colour, as before: verified (white on both sides).
    • The Banner close button keeps its status text colour: verified (every status colour unchanged).
    • The new targets follow theming-surface INV4 and INV6: verified.
    • data-direction is named in NumberInput DEC-1: false (DEC-2).
    • Indicator DEC-1 names the theme-only reader and hook: verified (Indicator.spec.md:183).
    • The six records gain the listed requirements: verified.
    • The API delta table, with no prop, default or export change: verified (eight added or changed rows, all listed).
    • The snapshots were recorded on the base and pass unchanged: verified (they pass on the base).
    • The theme replacement, stepper and close-button tests: verified (pass on the head, fail on the base).
    • Theming targets and the probe theme are current: verified.
    • Core suites pass: verified (27 files, 1,384 tests).
    • TypeScript, Prettier and the knowledge check pass: verified (Prettier's only warning, Banner.doc.mjs, is the same on the base).
    • Strict ESLint passes: false (themeIndicators.ts:43).
    • The only theme editor change is the toast close-button answer, and its test says so: verified (388 files pass).
    • Changeset: themes reach four more parts and the default look does not change: verified.
    • Changeset: the spinner, tree-disclosure, stepper and close-button lines: verified.
  • Files:
    • .changeset/core-theme-indicators-close-stepper.md: clear
    • docs/specs/components/Banner/Banner.spec.md: non-blocking (missing full stop, line 45)
    • docs/specs/components/Indicator/Indicator.spec.md: non-blocking (DEC-1 has no Decider line)
    • docs/specs/components/NumberInput/NumberInput.spec.md: non-blocking (DEC-2 has no Decider line)
    • docs/specs/components/Spinner/Spinner.spec.md: clear
    • docs/specs/components/Toast/Toast.spec.md: clear
    • docs/specs/components/TreeList/TreeList.spec.md: clear
    • packages/cli/api/theme-edit/theme-elements.test.mjs: clear
    • packages/core/src/Banner/Banner.doc.mjs: clear
    • packages/core/src/Banner/Banner.tsx: clear
    • packages/core/src/Indicator/Indicator.doc.mjs: clear
    • packages/core/src/Indicator/indicatorRegistry.ts: clear
    • packages/core/src/Indicator/themeIndicators.ts: lint failure (finding 2)
    • packages/core/src/Indicator/types.ts: clear
    • packages/core/src/Indicator/useThemeIndicator.ts: first-load cost (finding 1)
    • packages/core/src/NumberInput/NumberInput.doc.mjs: clear
    • packages/core/src/NumberInput/NumberInput.tsx: clear
    • packages/core/src/Spinner/Spinner.tsx: first-load cost (finding 1); non-blocking comment at line 492
    • packages/core/src/Toast/Toast.doc.mjs: clear
    • packages/core/src/Toast/Toast.tsx: clear
    • packages/core/src/TreeList/TreeListItem.tsx: clear
    • packages/core/src/theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clear
    • packages/core/src/theme/themeIndicatorSeams.test.tsx: clear
    • packages/themes/probe/src/probeTheme.ts: clear

Automated review (maintainer link)

Comment thread packages/core/src/Spinner/Spinner.tsx Resolved
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec d1a8cd0

@josephfarina
josephfarina force-pushed the core-theme-indicator-seams branch from d1a8cd0 to 2653ff4 Compare November 17, 2026 02:15
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 2653ff4

@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 new theme seams work under a theme provider and the default look is unchanged, but the indicator lookup skips the root theme in separate React roots, and the size numbers are missing from the description.

  • useThemeIndicator reads only the provider context, so under a root theme a Spinner or TreeList rendered in a separate React root, including the viewport useToast() creates when no ToastViewport is mounted, keeps its default ring or chevron while the same theme's checkbox mark applies there; follow the root theme when no provider exists (keeping the Spinner-only page within 0.3 KB gzip), or get the theme-application record amended and say "under a <Theme> provider" in the changeset and the Spinner and TreeList requirements.
  • The description does not report the first-load gzip deltas the import-boundaries record asks for; measured here they all pass (Spinner-only +121 B, TreeList-only +86 B, docs +7 B, form +82 B, menu +101 B, table +87 B), so add them.

The Spinner bundle cost, the lint failure and the NumberInput decision reference from the last review are fixed. CI has not run on this head yet because the run was cancelled for capacity.

Claims and files checked

Review mode: full; reason: rebase

  • Claim, changeset: themes reach four more parts and the default look does not change: verified (default frames pixel-identical; default snapshots pass on the base).
  • Claim, changeset: a theme's spinner indicator replaces the ring: verified under a provider; false in a separate React root (first finding).
  • Claim, changeset: a theme's tree-disclosure indicator replaces the rotating chevron with a mark per state: verified under a provider; same caveat.
  • Claim, changeset: the stepper buttons carry the stepper target with a direction: verified (NumberInput.tsx:1517, :1568; seam test).
  • Claim, changeset: the close buttons carry their own targets; Toast's draws in the toast's text colour and Banner's keeps its status colour: verified (Toast.tsx:506-507, Banner.tsx:804; white toast close, status-coloured banner close in Chromium).
  • Claim: the four parts had no theme seam on the base: verified (base markup; base theme editor test refused a toast close-button write).
  • Claim: the hook reads only the nearest provider's context, from a module that useTheme re-exports: verified (useThemeIndicator.ts:23, useTheme.ts:38).
  • Claim: a Spinner loads neither the built-in indicators nor the theme registry: verified (Spinner bundle has no indicator registry; the theme registry contributes no bytes).
  • Claim: two families and two names are added with no built-in: verified (Indicator/types.ts:59-62, :187-192; the default registry is unchanged).
  • Claim: with no theme entry Spinner and TreeList draw exactly as before: verified (snapshots and frames).
  • Claim: a theme picture keeps the Spinner box's size, shade, role and name, and the chevron slot does not rotate it: verified (Chromium: 14 to 36 px boxes, role progressbar, name Loading; mark transform none).
  • Claim: the new targets follow the paint and state rules of the theming surface: verified.
  • Claim: the direction attribute is named with its reason in the NumberInput record: verified (NumberInput.spec.md:290).
  • Claim: the Indicator record's decision names the hook and the context module and why the registry cannot serve: verified (Indicator.spec.md:183-199).
  • Claim: the records gain six requirements with anatomy, Builder impact and Compatibility lines: partly; the requirements and Builder impact lines are there, but only Banner changes its anatomy and Spinner, TreeList and NumberInput gain no Compatibility line.
  • Claim: no prop, default or export changes: verified (API surface: four type members, three theme targets, one attribute).
  • Claim: the snapshots were recorded on the base and pass unchanged: verified (the base run passes both).
  • Claim: the theme replacement, stepper and close-button tests: verified (pass on the head, fail on the base).
  • Claim: the theming targets test covers the new targets and the probe theme is regenerated: verified (suite passes; probe theme current at 279 targets).
  • Claim: Core suites pass: verified (57 files, 2,741 tests).
  • Claim: type check, strict ESLint, Prettier, the knowledge check and the changeset check pass: verified for the Core build's type pass, strict ESLint, Prettier and the knowledge check; Lint passes in CI.
  • Claim: in the theme editor suite the only new failure was the toast close-button answer, now on its own target: verified (the changed test passes; the same 14 app-copy tests fail on the base and the head in this environment, none of them new).
  • Claim: a rule for every button drew accent blue on the red error toast at about 2:1: with Core's default accent the ratio is 1.41:1, so the problem is worse than stated.
  • File .changeset/core-theme-indicators-close-stepper.md: the spinner line needs the provider qualifier or the fix (first finding).
  • File docs/specs/components/Banner/Banner.spec.md: non-blocking missing full stop at line 45.
  • File docs/specs/components/Indicator/Indicator.spec.md: clear.
  • File docs/specs/components/NumberInput/NumberInput.spec.md: clear.
  • File docs/specs/components/Spinner/Spinner.spec.md: FR9 states no provider limit (first finding).
  • File docs/specs/components/Toast/Toast.spec.md: clear.
  • File docs/specs/components/TreeList/TreeList.spec.md: FR10 states no provider limit (first finding).
  • File packages/cli/api/theme-edit/theme-elements.test.mjs: clear.
  • File packages/core/src/Banner/Banner.doc.mjs: clear.
  • File packages/core/src/Banner/Banner.tsx: clear.
  • File packages/core/src/Indicator/Indicator.doc.mjs: clear.
  • File packages/core/src/Indicator/types.ts: clear.
  • File packages/core/src/Indicator/useThemeIndicator.ts: first finding.
  • File packages/core/src/NumberInput/NumberInput.doc.mjs: clear.
  • File packages/core/src/NumberInput/NumberInput.tsx: clear.
  • File packages/core/src/Spinner/Spinner.tsx: non-blocking restating comment at line 492.
  • File packages/core/src/Toast/Toast.doc.mjs: clear.
  • File packages/core/src/Toast/Toast.tsx: clear.
  • File packages/core/src/TreeList/TreeListItem.tsx: clear apart from the hook it shares (first finding).
  • File packages/core/src/theme/snapshots/themeIndicatorSeams.test.tsx.snap: clear.
  • File packages/core/src/theme/themeContext.ts: clear.
  • File packages/core/src/theme/themeIndicatorSeams.test.tsx: clear.
  • File packages/core/src/theme/useTheme.ts: clear.
  • File packages/themes/probe/src/probeTheme.ts: clear (matches its generator).

Automated review (maintainer link)

Comment thread packages/core/src/Spinner/Spinner.tsx Resolved
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 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.

Changes requested. The four theme seams work as described, the default render is unchanged, and an engineering owner approved every record change at this head. Two small corrections remain:

  • Miss: the changeset tags these new, compatible theme seams [fix], but the release-process record assigns [feat] to compatible capabilities and nothing an existing theme renders is corrected, so please change the tag to [feat].
  • Regression: the size figures in the description and in the import-boundaries record's named entry were measured against an earlier main, and at this head the Spinner-only page grows 467 B gzip (not 490 B), TreeList-only 79 B, form 69 B, menu 108 B and table 99 B, so please re-run pnpm size:pages and update both (the record edit needs a fresh /approve-spec).

Non-blocking: Indicator FR7 still calls spinner and tree-disclosure "Core indicator names", while the exported CoreIndicatorName type excludes both.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Release note: themes reach four more parts and the default look does not change. Verified by the seam tests, pixel-identical default frames, and both default snapshots passing on the base sources.
  • Release note: a theme spinner replaces the ring, and a theme disclosure mark replaces the rotating chevron with a mark per state. Verified by the seam tests and the themed frames.
  • Release note: the stepper buttons carry their own target with an increment or decrement direction. Verified by the seam test and a direction rule in the themed frame.
  • Release note: the Toast and Banner close buttons carry their own targets; the toast's draws in its text colour and the banner's keeps its status colour. Verified by the seam tests and probed colours identical to the base.
  • Release note category [fix]. False: the change adds compatible capabilities and corrects no existing render (a theme with only a button rule still draws the toast's close mark blue on red at this head).
  • The four parts could not be reached before. Verified on the base sources and the base themed frame.
  • The new hook finds the theme as the existing indicator hook does and reads it through the registry's shared lookup, never loading the built-in indicators. Verified in the hook and the lookup module.
  • A themed spinner and chevron draw the same in separate React roots and the fallback toast viewport. Verified by the separate-root seam test, which fails on the base.
  • Two families and two names are added with no built-in, and with no theme entry everything renders as before. Verified in the types, the registry and the snapshots.
  • The theme picture sits in the existing box with size, shade, role and name kept, and the chevron-slot mark is not rotated. Verified by the 20 px box, its progressbar role and name, and the chevron code.
  • The stepper target sits on the buttons that already paint, and the toast's close button uses an inherited colour, the colour it already drew in. Verified in the code and by probe.
  • The new targets follow the theming-surface rules, and the direction attribute is named with its reason in the NumberInput record. Verified.
  • The Indicator record names the new hook and lookup module and says why the default registry cannot serve. Verified.
  • The import-boundaries rule gains a named entry at a measured 490 B, and the TreeList-only page stays inside the allowance. Partly false: TreeList-only grows 79 B, within the allowance, but the Spinner-only page measures 467 B at this head.
  • The records gain the listed requirements with anatomy, builder-impact and compatibility lines. Verified; the anatomy map changes only in Banner, as the NumberInput and Toast records carry none.
  • The API delta table. Verified: the generator lists the same eight rows.
  • No prop, default or export changes, and nothing new is hidden under the bug-fix label. Verified: only interface members and theme targets are added, and the description lists them.
  • The per-page size table. False at this head: docs +0 matches; form +69, menu +108, table +99, spinner +467 and treelist +79 B differ from the stated figures.
  • The targets test checks the new targets and the probe theme is regenerated. Verified: the test passes and the probe check is current.
  • The affected suites, the core typecheck, ESLint, Prettier, the knowledge check and the changeset check pass. Verified, the NumberInput locale cases included.
  • The theme editor now writes the toast close-button answer on the new part. Verified: its test passes.
  • Writing rubric results are reported for the six records. Verified present.

Files:

  • .changeset/core-theme-indicators-close-stepper.md: finding; [fix] should be [feat]
  • docs/architecture/component-import-boundaries.md: finding; the named entry's 490 B is 467 B at this head
  • docs/specs/components/Banner/Banner.spec.md: clear
  • docs/specs/components/Indicator/Indicator.spec.md: note; FR7's "Core indicator names" against CoreIndicatorName
  • docs/specs/components/NumberInput/NumberInput.spec.md: clear
  • docs/specs/components/Spinner/Spinner.spec.md: clear
  • docs/specs/components/Toast/Toast.spec.md: clear
  • docs/specs/components/TreeList/TreeList.spec.md: clear
  • packages/cli/api/theme-edit/theme-elements.test.mjs: clear; passes on the rebased base
  • packages/core/src/Banner/Banner.doc.mjs: clear
  • packages/core/src/Banner/Banner.tsx: clear; status colour kept
  • packages/core/src/Indicator/Indicator.doc.mjs: clear
  • packages/core/src/Indicator/indicatorRegistry.ts: clear; same resolution through the shared lookup
  • packages/core/src/Indicator/themeIndicators.ts: clear
  • packages/core/src/Indicator/types.ts: clear
  • packages/core/src/Indicator/useThemeIndicator.ts: clear
  • packages/core/src/NumberInput/NumberInput.doc.mjs: clear
  • packages/core/src/NumberInput/NumberInput.tsx: clear; merges cleanly with the keyboard change on main
  • packages/core/src/Spinner/Spinner.tsx: clear
  • packages/core/src/Toast/Toast.doc.mjs: clear
  • packages/core/src/Toast/Toast.tsx: clear; same close-mark colour by default
  • packages/core/src/TreeList/TreeListItem.tsx: clear
  • packages/core/src/theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clear; matches the base render
  • packages/core/src/theme/themeIndicatorSeams.test.tsx: clear; 9 pass on the head, 6 fail on the base sources
  • packages/themes/probe/src/probeTheme.ts: clear; generated and current

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 88d905b

@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 run on this head yet, because admission found CI full, so please re-run all jobs once there is room. The four theme seams work as described, the default render is unchanged, both earlier findings are fixed, and an engineering owner approved every record change at this head.

  • Non-blocking: the title (fix(core): …) and the checked "One defect is restored" still call this a fix while the changeset files it [feat]; retitling it feat(core): … needs no new commit.
  • Non-blocking: Banner's record still counts five current theme targets in its verification map, and banner-close makes six.
Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • Release note category [feat] with a patch bump. Verified: the changeset check passes, and the release-process record files compatible capabilities as [feat].
  • Release note: themes reach four more parts and the default look does not change. Verified by the seam tests and pixel-identical default and Spinner size frames.
  • Release note: a theme spinner replaces the ring, and a theme disclosure mark replaces the rotating chevron with a mark per state. Verified by the seam tests and the themed frames.
  • Release note: the stepper buttons carry their own target with an increment or decrement direction. Verified by the seam test and a direction rule in the themed frame.
  • Release note: the Toast and Banner close buttons carry their own targets; the toast's draws in its text colour and the banner's keeps its status colour. Verified by the seam tests and probed colours identical to the base.
  • The four parts lacked a theme seam, which this change supplies (title type fix, "one defect is restored"). Verified in substance: the seams are absent on the base and present here; the label differs from the [feat] changeset, a non-blocking note.
  • The four parts could not be reached before, and a broad button rule reached the toast's close mark on the red card. Verified on the base sources and the base themed frame; the contrast ratio depends on the theme's colour.
  • The new hook finds the theme as the existing indicator hook does, reads it through the registry's shared lookup, and never loads the built-in indicators. Verified in the hook, the lookup module and their imports.
  • A themed spinner and chevron draw the same in separate React roots and the fallback toast viewport. Verified by the separate-root seam test, which fails on the base.
  • Two families and two names are added with no built-in, and with no theme entry everything renders as before. Verified in the types, the registry and the default snapshots.
  • The theme picture sits in the existing box with size, shade, role and name kept, and the chevron-slot mark is not rotated. Verified by probe (20 and 24 px boxes, progress-bar role, the Loading name) and the chevron code.
  • The stepper target sits on the buttons that already paint, and the close-button colours match what they drew before. Verified in the code and by probe.
  • The new targets follow the theming-surface rules, and the direction attribute is named with its reason in the NumberInput record. Verified.
  • The Indicator record names the new hook and lookup module and says why the default registry cannot serve. Verified.
  • The import-boundaries rule gains a named entry at a measured 467 B, and the TreeList-only page stays inside the allowance. Verified: 467 B and 79 B measured here.
  • The records gain the listed requirements with anatomy, builder-impact and compatibility lines. Verified; only the Banner record carries an anatomy map.
  • The API delta table, and no prop, default or export change. Verified: the generator lists the same eight rows, all interface members and theme targets.
  • New public API is not hidden under the bug-fix label. Verified: the description lists every row.
  • The default snapshots were recorded on the base sources and pass unchanged. Verified: both pass on the base sources and here.
  • The targets test checks the new targets and the probe theme is regenerated. Verified: the test passes and the probe check is current.
  • The per-page size table. Verified within 3 B: docs +0, form +69, table +97, spinner +467 and treelist +79 B match; menu measures +105 B against the stated +108 B.
  • The affected suites pass, apart from locale cases failing the same way on the base. Verified: all 2,755 tests pass here, the locale cases included.
  • Typecheck, lint, formatting, the knowledge check and the changeset check pass. Partly verified: the knowledge and changeset checks, the Lint workflow and the Core build's declaration typecheck pass; the CI typecheck job has not run at this head.
  • The theme editor now writes the toast close-button answer on the new part. Verified: its test passes.
  • Writing rubric results are reported for the six records. Verified present.

Files:

  • .changeset/core-theme-indicators-close-stepper.md: clear; [feat]
  • docs/architecture/component-import-boundaries.md: clear; the named entry carries this head's figures
  • docs/specs/components/Banner/Banner.spec.md: note; the verification map still counts five targets
  • docs/specs/components/Indicator/Indicator.spec.md: clear
  • docs/specs/components/NumberInput/NumberInput.spec.md: clear
  • docs/specs/components/Spinner/Spinner.spec.md: clear
  • docs/specs/components/Toast/Toast.spec.md: clear
  • docs/specs/components/TreeList/TreeList.spec.md: clear
  • packages/cli/api/theme-edit/theme-elements.test.mjs: clear
  • packages/core/src/Banner/Banner.doc.mjs: clear
  • packages/core/src/Banner/Banner.tsx: clear; status colour kept
  • packages/core/src/Indicator/Indicator.doc.mjs: clear
  • packages/core/src/Indicator/indicatorRegistry.ts: clear; same resolution through the shared lookup
  • packages/core/src/Indicator/themeIndicators.ts: clear
  • packages/core/src/Indicator/types.ts: clear
  • packages/core/src/Indicator/useThemeIndicator.ts: clear
  • packages/core/src/NumberInput/NumberInput.doc.mjs: clear
  • packages/core/src/NumberInput/NumberInput.tsx: clear
  • packages/core/src/Spinner/Spinner.tsx: clear
  • packages/core/src/Toast/Toast.doc.mjs: clear
  • packages/core/src/Toast/Toast.tsx: clear; same close-mark colour by default
  • packages/core/src/TreeList/TreeListItem.tsx: clear
  • packages/core/src/theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clear; passes on the base sources
  • packages/core/src/theme/themeIndicatorSeams.test.tsx: clear; 9 pass here, 6 fail on the base sources
  • packages/themes/probe/src/probeTheme.ts: clear; generated and current

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the core-theme-indicator-seams branch from 88d905b to 9edcae0 Compare November 18, 2026 13:47
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 9edcae0

@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 four theme seams still work as described, the default render is unchanged, and an engineering owner approved every record change at this head, but the rebase onto a newer main left two things stale.

  • Regression: the new test "draws the built-in rotating chevron" in themeIndicatorSeams.test.tsx now fails here and in CI's test-ui (3/4) job, because its snapshot predates main's plain-row focus ring for TreeList (#12153); the base renders the identical markup, so re-record the snapshot.
  • Regression: measured at this head, the TreeList-only page grows 87 B gzip, not the 79 B that the INV10 named entry in component-import-boundaries.md and the description state, and the form, menu and table pages grow 51, 107 and 95 B; update the figures, or state them as bounds so they do not drift with each merge of main.

Any new commit needs a fresh /approve-spec from an engineering owner, and the heavy CI jobs run once the review passes.

  • Non-blocking: the title (fix(core): …) and the checked "One defect is restored" still call this a fix, while the changeset files it [feat].
  • Non-blocking: Banner's record still counts five current theme targets in its verification map, and banner-close makes six.
Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Release note category [feat] with a patch bump. Verified: the changeset check passes, and the release-process record files compatible capabilities as [feat].
  • Release note: themes reach four more parts and the default look does not change. Verified by the seam tests, pixel-identical default and Spinner size frames, and TreeList markup identical to the base.
  • Release note: a theme spinner replaces the ring, and a theme disclosure mark replaces the rotating chevron with a mark per state. Verified by the seam tests and the themed frames.
  • Release note: the stepper buttons carry their own target with an increment or decrement direction. Verified by the seam test and a direction rule in the themed frame.
  • Release note: the Toast and Banner close buttons carry their own targets; the toast's draws in its text colour and the banner's keeps its status colour. Verified by the seam tests and probed colours identical to the base.
  • The four parts lacked a theme seam, and a broad button rule reached the toast's close mark on the red card. Verified on the base sources and the base themed frame; the contrast ratio depends on the theme's colour.
  • The new hook finds the theme as the existing indicator hook does, reads it through the registry's shared lookup, and never loads the built-in indicators. Verified in the hook, the lookup module and their imports.
  • A themed spinner and chevron draw the same in separate React roots and the fallback toast viewport. Verified by the separate-root seam test, which fails on the base.
  • Two families and two names are added with no built-in, and with no theme entry everything renders as before. Verified in the types, the registry and the default frames.
  • The theme picture sits in the existing box with size, shade, role and name kept, and the chevron-slot mark is not rotated. Verified by probe (20 and 24 px boxes, progress-bar role, the Loading name) and the chevron code.
  • The stepper target sits on the buttons that already paint, and the close-button colours match what they drew before. Verified in the code and by probe.
  • The new targets follow the theming-surface rules, and the direction attribute is named with its reason in the NumberInput record. Verified.
  • The Indicator record names the new hook and lookup module and says why the default registry cannot serve. Verified.
  • The import-boundaries rule gains a named entry at a measured 467 B, and the TreeList-only page stays inside the allowance. Spinner figure verified (467 B); the TreeList page is inside the allowance, but its stated 79 B is false at this head (87 B).
  • The records gain the listed requirements with anatomy, builder-impact and compatibility lines. Verified; only the Banner record carries an anatomy map.
  • The API delta table, and no prop, default or export change. Verified: the generator lists the same eight rows, all interface members and theme targets.
  • The default snapshots were recorded on the base sources and pass unchanged on this branch. False: the TreeList snapshot fails here and on the base sources; the Spinner snapshot passes.
  • The theme replacement, stepper and close-button tests. Verified: they pass here and fail on the base sources.
  • The targets test checks the new targets and the probe theme is regenerated. Verified: the test passes and the probe check is current.
  • The per-page size table. False after the rebase: docs +0 and spinner +467 B match, but form, menu, table and TreeList measure +51, +107, +95 and +87 B against the stated +69, +108, +97 and +79 B.
  • No new public API is hidden under the bug-fix label, and the text has no internal context. Verified: the description lists every row.
  • The affected suites pass, apart from locale cases that fail the same way on the base. False: the TreeList snapshot test fails here and in CI's test-ui job; the locale cases pass here.
  • Typecheck, lint, formatting, the knowledge check and the changeset check pass. Verified: CI's typecheck job, the Lint workflow, and the knowledge and changeset checks pass at this head.
  • The theme editor now writes the toast close-button answer on the new part. Verified: its test passes.
  • Writing rubric results are reported for the six records. Verified present.

Files:

  • .changeset/core-theme-indicators-close-stepper.md: clear; [feat]
  • docs/architecture/component-import-boundaries.md: finding; the TreeList figure is stale after the rebase
  • docs/specs/components/Banner/Banner.spec.md: note; the verification map still counts five targets
  • docs/specs/components/Indicator/Indicator.spec.md: clear
  • docs/specs/components/NumberInput/NumberInput.spec.md: clear
  • docs/specs/components/Spinner/Spinner.spec.md: clear
  • docs/specs/components/Toast/Toast.spec.md: clear
  • docs/specs/components/TreeList/TreeList.spec.md: clear
  • packages/cli/api/theme-edit/theme-elements.test.mjs: clear
  • packages/core/src/Banner/Banner.doc.mjs: clear
  • packages/core/src/Banner/Banner.tsx: clear; status colour kept
  • packages/core/src/Indicator/Indicator.doc.mjs: clear
  • packages/core/src/Indicator/indicatorRegistry.ts: clear; same resolution through the shared lookup
  • packages/core/src/Indicator/themeIndicators.ts: clear
  • packages/core/src/Indicator/types.ts: clear
  • packages/core/src/Indicator/useThemeIndicator.ts: clear
  • packages/core/src/NumberInput/NumberInput.doc.mjs: clear
  • packages/core/src/NumberInput/NumberInput.tsx: clear
  • packages/core/src/Spinner/Spinner.tsx: clear
  • packages/core/src/Toast/Toast.doc.mjs: clear
  • packages/core/src/Toast/Toast.tsx: clear; same close-mark colour by default
  • packages/core/src/TreeList/TreeListItem.tsx: clear
  • packages/core/src/theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: finding; the chevron entry predates the plain-row focus ring
  • packages/core/src/theme/themeIndicatorSeams.test.tsx: finding; the chevron snapshot test fails, the other 8 pass
  • packages/themes/probe/src/probeTheme.ts: clear; generated and current

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 010aa1f

@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 re-recorded snapshot fixes the failing seam test: all nine seam tests pass here, the six seam checks fail on the base sources, and the default Spinner and TreeList render as on the base. An engineering owner approved every record change at this head, so one small fix from the rebase remains.

  • Regression: measured at this head against its merge base, a TreeList-only page grows 87 B gzip, not the 79 B that the INV10 named entry in component-import-boundaries.md and the description state, and the form page grows 51 B, not 69 B; update those two figures (the Spinner, menu, table and docs figures match, so the earlier note about menu and table no longer applies), or state the TreeList cost as a bound so it does not drift with each merge of main.

Any new commit needs a fresh /approve-spec from an engineering owner.

  • Non-blocking: the title (fix(core): …) and the checked "One defect is restored" still call this a fix, while the changeset files it [feat].
  • Non-blocking: Banner's record still counts five current theme targets in its verification map, and banner-close makes six.
Claims and files checked

Review mode: incremental; reason: none

Claims:

  • Release note category [feat] with a patch bump. Verified: the changeset check passes, and the release-process record files compatible capabilities as [feat].
  • Release note: themes reach four more parts and the default look does not change. Verified by the seam tests and the two default-render snapshots, which pass on the base sources and here.
  • Release note: a theme spinner replaces the ring, and a theme disclosure mark replaces the rotating chevron with a mark per state. Verified by the seam tests, which fail on the base.
  • Release note: the stepper buttons carry their own target with an increment or decrement direction. Verified by the seam test.
  • Release note: the Toast and Banner close buttons carry their own targets; the toast's draws in its text colour and the banner's keeps its status colour. Verified by the seam tests and the code.
  • The four parts lacked a theme seam, and a broad button rule reached the toast's close mark. Verified on the base sources; the contrast ratio depends on the theme's colour.
  • The new hook finds the theme as the existing indicator hook does, reads it through the registry's shared lookup, and never loads the built-in indicators. Verified in the hook, the lookup module and their imports.
  • A themed spinner and chevron draw the same in separate React roots and the fallback toast viewport. Verified for a separate root by the seam test, which fails on the base; the fallback viewport reads the same root-theme store.
  • Two families and two names are added with no built-in, and with no theme entry everything renders as before. Verified in the types, the registry and the default snapshots.
  • The theme picture sits in the existing box with size, shade, role and name kept, and the chevron-slot mark is not rotated. Verified in the code and by the seam test's progress-bar query.
  • The stepper target sits on the buttons that already paint, and the close-button colours match what they drew before. Verified in the code and the seam tests.
  • The new targets follow the theming-surface rules, and the direction attribute is named with its reason in the NumberInput record. Verified.
  • The Indicator record names the new hook and lookup module and says why the default registry cannot serve. Verified.
  • The import-boundaries rule gains a named entry at a measured 467 B, and the TreeList-only page stays inside the allowance. Spinner figure verified (467 B); the TreeList page is inside the allowance, but its stated 79 B is false at this head (87 B).
  • The records gain the listed requirements with anatomy, builder-impact and compatibility lines. Verified; only the Banner record carries an anatomy map.
  • The API delta table, and no prop, default or export change. Verified: the generator lists the same eight rows, all interface members and theme targets.
  • The default snapshots were recorded on the base sources and pass unchanged on this branch. Verified: both pass on the base sources and here.
  • The theme replacement, stepper and close-button tests. Verified: they pass here and fail on the base sources.
  • The targets test checks the new targets and the probe theme is regenerated. Verified: the targets test passes and the probe check is current.
  • The per-page size table. False for two rows: form measures +51 B (stated +69 B) and TreeList +87 B (stated +79 B); docs +0, menu +108, table +97 and spinner +467 B match.
  • No new public API is hidden under the bug-fix label, and the text has no internal context. Verified: the description lists every row.
  • The affected suites pass, apart from locale cases that fail on the base in the author's environment. Verified: all 2,765 tests in those suites pass here, locale cases included.
  • Typecheck, lint, formatting, the knowledge check and the changeset check pass. Verified: CI's typecheck job and the Lint workflow pass at this head, and the knowledge and changeset checks pass.
  • The theme editor now writes the toast close-button answer on the new part. Verified: its test passes.
  • Writing rubric results are reported for the six records. Verified present.

Files:

  • .changeset/core-theme-indicators-close-stepper.md: clear; [feat]
  • docs/architecture/component-import-boundaries.md: finding; the TreeList figure is stale after the rebase
  • docs/specs/components/Banner/Banner.spec.md: note; the verification map still counts five targets
  • docs/specs/components/Indicator/Indicator.spec.md: clear
  • docs/specs/components/NumberInput/NumberInput.spec.md: clear
  • docs/specs/components/Spinner/Spinner.spec.md: clear
  • docs/specs/components/Toast/Toast.spec.md: clear
  • docs/specs/components/TreeList/TreeList.spec.md: clear
  • packages/cli/api/theme-edit/theme-elements.test.mjs: clear
  • packages/core/src/Banner/Banner.doc.mjs: clear
  • packages/core/src/Banner/Banner.tsx: clear; status colour kept
  • packages/core/src/Indicator/Indicator.doc.mjs: clear
  • packages/core/src/Indicator/indicatorRegistry.ts: clear; same resolution through the shared lookup
  • packages/core/src/Indicator/themeIndicators.ts: clear
  • packages/core/src/Indicator/types.ts: clear
  • packages/core/src/Indicator/useThemeIndicator.ts: clear
  • packages/core/src/NumberInput/NumberInput.doc.mjs: clear
  • packages/core/src/NumberInput/NumberInput.tsx: clear
  • packages/core/src/Spinner/Spinner.tsx: clear
  • packages/core/src/Toast/Toast.doc.mjs: clear
  • packages/core/src/Toast/Toast.tsx: clear; same close-mark colour by default
  • packages/core/src/TreeList/TreeListItem.tsx: clear
  • packages/core/src/theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clear; re-recorded, matches the base render
  • packages/core/src/theme/themeIndicatorSeams.test.tsx: clear; 9 of 9 pass
  • packages/themes/probe/src/probeTheme.ts: clear; generated and current

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the core-theme-indicator-seams branch from 010aa1f to d1195d0 Compare November 18, 2026 16:04
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec d1195d0

@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 four theme seams work as described, the default render is unchanged, and an engineering owner approved every record change at this head; one set of size figures is stale.

  • Regression: the INV10 named entry in docs/architecture/component-import-boundaries.md (line 217) gives 79 B for a TreeList-only page where this head measures +87 B gzip against its merge base, and the description's size table is also off for form (+51 B, not +69 B), menu (+107 B, not +108 B) and table (+95 B, not +97 B), so please update the figures or state them as bounds that a merge of main will not stale.

Non-blocking: the Banner record's theming-anatomy verification row still counts five current targets (six with banner-close), and the fix(core) title differs from the [feat] changeset. Any new commit needs a fresh /approve-spec for its head.

Claims and files checked

Review mode: full; reason: rebase

Claims (description and changeset):

  • Verified: a theme could not swap the spinner picture or give the tree mark a picture per state, the stepper buttons had no target, and a rule for every button reached the toast's close button (base frames: no stepper target class; the toast close takes the button rule's colour).
  • Verified: the default look is unchanged (the default fixture and Spinner's Sizes story are pixel-identical; both default snapshots pass on the base sources).
  • Verified: the new hook finds the theme the way the existing indicator hook does and reads it through the same lookup as the default registry (useThemeIndicator.ts:23, useIndicator.ts, indicatorRegistry.ts:30-33).
  • Verified: a themed spinner and chevron draw the same in a separate React root (the root-theme seam test passes here and fails on the base).
  • Verified: the hook never loads the built-in indicators (it imports only the theme hook, the theme lookup and types).
  • Verified: two families and two names are added with no built-in (types.ts; the default registry still maps only check, checkbox and radio).
  • Verified: the theme picture draws inside the unchanged spinner box, and the tree mark draws in the chevron slot without rotation or mirroring (seam tests; RTL frame shows no transform).
  • Verified: each stepper button carries the new target with its direction (seam test; frames show increment and decrement).
  • Verified: the toast close button keeps the toast's text colour and the banner close button keeps its status text colour (frames: white on the error toast, the error and info status colours on both sides).
  • Verified: the new targets sit on painted parts with direction as a state, the new data attribute and the new modules are named in owner-approved records.
  • Verified: the records gain the listed requirements with anatomy, builder-impact and compatibility lines.
  • Verified: the API delta table, and no prop, default or export changes (generator: 8 additive rows).
  • Verified: the default snapshots were recorded on the base sources and pass unchanged.
  • Verified: the targets test covers the new targets and the probe theme is regenerated (459 tests pass; probe check current).
  • Verified: the Spinner-only page grows 467 B and the docs page 0 B; the TreeList-only page stays inside the allowance.
  • False: the size table's form (+69 B), menu (+108 B), table (+97 B) and TreeList (+79 B) figures; this head measures +51, +107, +95 and +87 B.
  • Verified for this review's run: the Core suites pass, the NumberInput locale cases included.
  • Verified: knowledge and changeset checks pass, and the Lint workflow passed at this head; CI's build and test jobs were still running.
  • Verified: the theme-editor suite's only changed answer is the toast close button, and its test says so (6 tests pass).
  • Verified: the changeset's feature entry and each of its four bullets match the code.

Files:

  • .changeset/core-theme-indicators-close-stepper.md: clear
  • docs/architecture/component-import-boundaries.md: finding (stale TreeList figure, line 217)
  • docs/specs/components/Banner/Banner.spec.md: non-blocking note (target count, line 248)
  • docs/specs/components/Indicator/Indicator.spec.md: clear
  • docs/specs/components/NumberInput/NumberInput.spec.md: clear
  • docs/specs/components/Spinner/Spinner.spec.md: clear
  • docs/specs/components/Toast/Toast.spec.md: clear
  • docs/specs/components/TreeList/TreeList.spec.md: clear
  • packages/cli/api/theme-edit/theme-elements.test.mjs: clear
  • packages/core/src/Banner/Banner.doc.mjs: clear
  • packages/core/src/Banner/Banner.tsx: clear
  • packages/core/src/Indicator/Indicator.doc.mjs: clear
  • packages/core/src/Indicator/indicatorRegistry.ts: clear
  • packages/core/src/Indicator/themeIndicators.ts: clear
  • packages/core/src/Indicator/types.ts: clear
  • packages/core/src/Indicator/useThemeIndicator.ts: clear
  • packages/core/src/NumberInput/NumberInput.doc.mjs: clear
  • packages/core/src/NumberInput/NumberInput.tsx: clear
  • packages/core/src/Spinner/Spinner.tsx: clear
  • packages/core/src/Toast/Toast.doc.mjs: clear
  • packages/core/src/Toast/Toast.tsx: clear
  • packages/core/src/TreeList/TreeListItem.tsx: clear
  • packages/core/src/theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clear
  • packages/core/src/theme/themeIndicatorSeams.test.tsx: clear
  • packages/themes/probe/src/probeTheme.ts: clear (generated, current)

Automated review (maintainer link)

@josephfarina josephfarina changed the title fix(core): theme seams for the spinner, tree disclosure, number steppers and close buttons feat(core): theme seams for the spinner, tree disclosure, number steppers and close buttons Nov 18, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 18, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 671a465

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 18, 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.

Approved pending CI. The four theme seams work as described, the default render is unchanged, and an engineering owner approved every record change at this head.

  • CI has not finished on this head: pr-interaction (6/6) failed one frame-timing assertion in ItemSwipeActions.interaction.browser.spec.ts, a component this change does not touch, so please re-run that job; other jobs are still running.
Claims and files checked

Review mode: full; reason: spec-record

  • Changeset: themes reach four more parts and the default look does not change — verified: the default fixture is pixel-identical base to head, and both default snapshots pass on the base sources.
  • Changeset: a theme's spinner indicator replaces the ring — verified: themeIndicatorSeams.test.tsx fails on the base and passes here; themed frame.
  • Changeset: a theme's tree-disclosure indicator replaces the rotating chevron with a mark per state — verified: seam test; themed frames show − and + unrotated.
  • Changeset: the stepper buttons carry number-input-stepper with direction — verified: seam test; NumberInput.tsx:1519, :1570.
  • Changeset: the close buttons carry toast-close and banner-close; the toast × keeps the toast's text colour and the banner × its status colour — verified: seam tests; default × colours identical base to head.
  • Description: on the base the spinner circles cannot be swapped, the tree mark is the global chevron rotated by CSS, the steppers carry no target, and a rule for every button reaches the toast × — verified on the base frames and probes (the contrast ratio depends on the theme's colours).
  • Description: the hook finds the theme as useIndicator does, reads it through the registry's own lookup, works in separate React roots and never loads the built-ins — verified: useThemeIndicator.ts:20-24, useIndicator.ts:38; the separate-root test fails on the base and passes here.
  • Description: two families are added with no built-in, and with no theme entry both hosts draw as before — verified: types.ts, indicatorRegistry.ts; snapshots.
  • Description: the theme indicator draws inside the existing box (size, shade, role and name kept) or in the unrotated chevron slot — verified: frame probes (progressbar names kept, transform: none).
  • Description: the new targets follow the theming-surface rules, data-direction is named in NumberInput DEC-2, Indicator DEC-1 names the new modules, the size rule gains a named entry, and the six component records gain their new requirements — verified in the head records.
  • Description: no prop, default or export changes — verified: the API delta adds only type members, theme targets and one more data-direction reflection, all listed in the description's API table.
  • Description: the default snapshots were recorded on the base sources — verified: both pass on the base.
  • Description: size table (docs +0, form +51, menu +108, table +96, Spinner-only +467, TreeList-only +87 B gzip) — verified: this run measures the same, with table +97 B, within run-to-run variance.
  • Description: the named size entry's bounds (under 0.5 KB Spinner-only, under 0.1 KB TreeList-only) — verified: +467 B and +87 B.
  • Description: the component suites, typecheck, ESLint, Prettier, knowledge and changeset checks pass — verified: 1,401 tests pass here (NumberInput locale cases included), Core's build typechecks, ESLint reports no errors, Prettier is clean on the files CI checks, and both checks pass.
  • Description: the theme editor's toast close-button answer now writes on toast-close — verified: theme-elements.test.mjs passes.
  • Description: the probe theme is regenerated for the new targets — verified: its --check reports it current (290 targets, 930 selectors).
  • .changeset/core-theme-indicators-close-stepper.md: clear
  • docs/architecture/component-import-boundaries.md: clear
  • docs/specs/components/Banner/Banner.spec.md: clear
  • docs/specs/components/Indicator/Indicator.spec.md: clear
  • docs/specs/components/NumberInput/NumberInput.spec.md: clear
  • docs/specs/components/Spinner/Spinner.spec.md: clear
  • docs/specs/components/Toast/Toast.spec.md: clear
  • docs/specs/components/TreeList/TreeList.spec.md: clear
  • packages/cli/api/theme-edit/theme-elements.test.mjs: clear
  • packages/core/src/Banner/Banner.doc.mjs: clear
  • packages/core/src/Banner/Banner.tsx: clear
  • packages/core/src/Indicator/Indicator.doc.mjs: clear
  • packages/core/src/Indicator/indicatorRegistry.ts: clear
  • packages/core/src/Indicator/themeIndicators.ts: clear
  • packages/core/src/Indicator/types.ts: clear
  • packages/core/src/Indicator/useThemeIndicator.ts: clear
  • packages/core/src/NumberInput/NumberInput.doc.mjs: clear
  • packages/core/src/NumberInput/NumberInput.tsx: clear
  • packages/core/src/Spinner/Spinner.tsx: clear
  • packages/core/src/Toast/Toast.doc.mjs: clear
  • packages/core/src/Toast/Toast.tsx: clear
  • packages/core/src/TreeList/TreeListItem.tsx: clear
  • packages/core/src/theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clear
  • packages/core/src/theme/themeIndicatorSeams.test.tsx: clear
  • packages/themes/probe/src/probeTheme.ts: clear

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 3deff9d into main Nov 18, 2026
160 of 162 checks passed
@github-actions
github-actions Bot deleted the core-theme-indicator-seams branch November 19, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 671a4653 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