Skip to content

docs(core): prop types name only types the package exports - #12337

Merged
cixzhang merged 16 commits into
mainfrom
lane4/docs-name-exported-types
Nov 21, 2026
Merged

cixzhang merged 16 commits into
mainfrom
lane4/docs-name-exported-types

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Four component and hook docs name a prop type the package does not export, so an agent that reads astryx component <Name> --props and tries to import that type, or looks it up, finds nothing. This PR makes those docs name types @astryxdesign/core exports.

What changes for you

  • Selector: options is SelectorOptionType[]. SelectorOption is a component, not the item type.
  • SyntaxTheme: theme is a SyntaxThemeDefinition. The docsite playground picks its theme preset control by the type name, so it now matches SyntaxThemeDefinition, and CodeBlock's and Lab DiffViewer's syntaxTheme rows, typed the same way, get the picker too. For an optional prop the picker starts at None and None sends nothing, so an unset prop keeps the theme-level syntax colors. Show code names a picked preset by its exported identifier, such as syntaxTheme={dracula}, not the whole preset object. component-prop-controls.test.ts and syntax-theme-control.test.ts cover the picker, its None choice and the preset a value is; they fail without the change. No test reaches Show code's printed name. Show code prints a picked preset by its exported name (dracula, oneDarkPro) through the same identifier helper it uses for theme names.
  • useImperativeAlertDialog: show is (options: Omit<AlertDialogProps, 'isOpen' | 'onOpenChange'>) => void.
  • useImperativeDialog: show is (content: ReactNode, options?: Omit<DialogProps, 'isOpen' | 'onOpenChange' | 'children'>) => void. Both dialog shapes are the ones the hooks declare, written with exported types.
  • Toast's card doc: unchanged here. Its correction (the card's isAutoHide and autoHideDuration are required, as ToastProps declares, and the show-only options leave the card's table) removes documented defaults, which the merge guard holds for an owner decision, so it follows in its own pull request.
  • Record: docs/specs/components/Toast/Toast.spec.md says consumer usage lives in Toast.doc.mjs (the card) and useToast.doc.mjs (the show function).
  • Native: packages/native/src/components/Selector.ts maps the renamed doc type SelectorOptionType to the native SelectorOption, the one key the rename reaches. The native contract and Swift output are unchanged.

No type is exported or changed; only docs, one record sentence and native's doc-name mapping change.

Writing rubric results

  • R1 narration: none; the amended sentence states where consumer usage lives.
  • R2 research in the record: none.
  • R3 evidence naming a change: none.
  • R4 rejected alternatives over one line or outside a decision: none.
  • R5 pull request or issue references remaining: none (searched # + digits, /pull/, /issues/).
  • R6 ruled open questions still listing options: none.
  • R7 consistency: the sentence matches the record's Public contract, which lists Toast (the card) and the useToast() show function as separate exports.

Testing

  • Preflight: full node scripts/preflight.mjs --base origin/main (with the docsite) on a Linux node at this head: review:pre, build, typecheck, lint, vitest ui, knowledge and changesets pass. In vitest node, the only failures were 5 theme-editor picture cases (theme-cut-short, theme-pictures-broken-words) because that node had no Chromium system libraries or fonts; on a node where Chromium launches they pass on main, and this change touches neither.

  • packages/native/src/contract tests pass: the committed Swift binding stays in sync and Selector's portable props keep options.

  • The docsite component-prop-controls and syntax-theme-control tests pass (16/16).

  • packages/cli/test/core-prop-docs.test.mjs passes, with the Toast entries of the known-drift list as on main.

  • packages/cli/foundation/discovery/doc-types.test.mjs passes. Each changed doc still satisfies its authoring type.

  • pnpm check:knowledge and pnpm check:changesets pass. prettier --check passes on the lines this PR changes (Selector.doc.mjs has one unformatted line from main, outside this change).

Not in this PR: useCombobox and useMultiCombobox document UseComboboxOptions and UseMultiComboboxOptions, which no entry point exports. They are tracked with the same defect. MarkdownPluginEntry, which Markdown's doc names, is exported from @astryxdesign/core/Markdown/plugins, so that doc stays.

Overlap checked: #6819, #11517, #11966, #8121, #11463, #11466, #11476, #11478, #11508, #11518, #11525, #11530, #11536, #11540, #11544, #12378, #12450, #12959 (#6819, #12378, #12450 and #12959 share Selector.doc.mjs, and #11966 shares Toast.spec.md; all five merge cleanly with main and with this change in those files. #11517, #8121 and the touch-runtime pull requests #11463 to #11544 share Toast.spec.md and already conflict with main there. #11868, #12156, #11960 and #11621 no longer share a file with this change.)

Owner: fix-loop lane 4. Land path: Specs consistency stamp, CodeBunny, CI, then the drain merges.

Selector's options are SelectorOptionType[] (SelectorOption is a
component), SyntaxTheme's theme is a SyntaxThemeDefinition, Markdown's
plugins are what createMarkdownPlugin() returns, and the imperative
dialog hooks' show() options are written as the exported Dialog and
AlertDialog props they are built from.
…show options

Toast's props table now matches ToastProps: type, isAutoHide and
autoHideDuration are required, as the card takes them resolved. The
show-only options (uniqueID, collisionBehavior, onHide) and the defaults
the show function fills in move to useToast's doc. The Toast record names
both docs.
@vercel

vercel Bot commented Nov 17, 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 21, 2026 10:21am UTC

Request Review

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

astracat-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 21, 2026, 3:36 PM UTC

@cixzhang cixzhang added the lane:4 Astryx fix-loop lane 4 owns this label Nov 17, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 03c20f5

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · f7d8cbe

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
AlertDialog · Storybook 133.1 kB (0) · 16.2 kB CSS (0) 487 (0) ✓ · ✓ · ✓
Dialog 27.7 kB (0) · 7.3 kB CSS (0) — ✓ · ✓ · —
DialogHeader 70.8 kB (0) · 12.8 kB CSS (0) — ✓ · ✓ · ✓
2 more components
Component Size LoC Visual · A11y · RTL
Selector 120.1 kB (0) · 19.7 kB CSS (0) — ✓ · ✓ · ✓
SelectorOption 24.6 kB (0) · 6.8 kB CSS (0) — ✓ · ✓ · ✓

Package size: @astryxdesign/core 7.92 MB packed (+23 B); no new dependencies.

Touched components checked; for the full suites, 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 removed 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 English doc fixes match the code, but five text problems remain in what this pull request changes or claims.

  • The changeset says every component and hook doc now names exported types, but useCombobox and useMultiCombobox still document their options as UseComboboxOptions and UseMultiComboboxOptions, which no entry point exports, so narrow the changeset to the docs this changes or fix those two as well.
  • The description says MarkdownPluginEntry is not exported, but @astryxdesign/core/Markdown/plugins exports it beside createMarkdownPlugin and ReturnType<typeof createMarkdownPlugin> is the same type, so keep readonly MarkdownPluginEntry[], or state the root-entry reason and give useOutlineFromMarkdown's doc the same spelling.
  • Toast's type still says error toasts persist until dismissed, but the card's timer reads only isAutoHide, so move that sentence to isAutoHide as what useToast()'s show function does, in the English, zh and dense text.
  • Toast's zh and dense isAutoHide text still gives card defaults for a prop that is now required, so carry the new English sentence into both translations.
  • packages/core/src/Toast/useToast.doc.mjs fails prettier --check, so the description's "Prettier passes on the changed files" is not yet true; run prettier --write on it.

The other retyped docs, the required flags, the drift-list deletions and the record sentence check out against the code.

Claims and files checked

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

Claims:

  • Selector's options is the exported item type: verified (Selector/index.ts:19, Selector.tsx:1177).
  • SyntaxTheme's theme is the exported definition type: verified (theme/syntax/SyntaxTheme.tsx:156).
  • Markdown's old plugin type is not exported: false (Markdown/plugins/index.ts:59).
  • The alert dialog hook's show options use the exported props: verified (useImperativeAlertDialog.tsx:20).
  • The dialog hook's show options use the exported props: verified (useImperativeDialog.tsx:26-29).
  • Toast's doc describes the card, with three props required: verified for the English flags (Toast.tsx:152-156); partly false for type and the zh and dense isAutoHide text.
  • The show-only options and their defaults move to useToast's doc: verified (useToast.doc.mjs:16, ToastViewport.tsx:296-298, Layer/toastHost.tsx:64).
  • The uniqueID best practice names useToast(): verified (Toast.doc.mjs:133).
  • The Toast record names both consumer docs: verified (Toast.spec.md:73-74).
  • The six Toast drift entries are gone and the drift test requires it: verified (core-prop-docs.test.mjs passes).
  • No type is exported or changed: verified (API surface comparison lists no row).
  • The prop-docs and doc-type tests pass: verified (run at this head).
  • The knowledge and changeset checks pass: verified (run at this head).
  • Prettier passes on the changed files: false (useToast.doc.mjs).
  • The five named types are exported from Core's root: verified (src/index.ts re-exports).
  • Changeset, component and hook docs name only exported types: false (useCombobox.doc.mjs:27, useMultiCombobox.doc.mjs:27).
  • Changeset, the per-doc details: verified, apart from the Toast type and Markdown points above.

Files:

  • .changeset/docs-name-exported-types.md: finding (over-broad claim).
  • docs/specs/components/Toast/Toast.spec.md: clear.
  • packages/cli/test/core-prop-docs.known-drift.json: clear.
  • packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs: clear.
  • packages/core/src/Dialog/useImperativeDialog.doc.mjs: clear.
  • packages/core/src/Markdown/Markdown.doc.mjs: finding (false premise, spelling differs from Outline's doc).
  • packages/core/src/Selector/Selector.doc.mjs: clear.
  • packages/core/src/Toast/Toast.doc.mjs: findings (type persistence, zh and dense isAutoHide).
  • packages/core/src/Toast/useToast.doc.mjs: finding (not formatted).
  • packages/core/src/theme/SyntaxTheme.doc.mjs: clear.

Automated review (maintainer link)

Comment thread .changeset/docs-name-exported-types.md Resolved
Comment thread packages/core/src/Toast/Toast.doc.mjs Resolved
Comment thread packages/core/src/Toast/Toast.doc.mjs Resolved
…w sets in every language

MarkdownPluginEntry is exported from @astryxdesign/core/Markdown/plugins,
so the Markdown doc keeps naming it. The Toast card does not decide that an
error toast persists: useToast()\s show function sets isAutoHide to false
for one, so that sentence moves to isAutoHide, and the zh and dense text say
what show sets for each required prop. The changeset names the docs this
changes.
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 305b2de

@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 Toast, Selector and dialog hook docs match the code and the description's overlap note is now accurate, but the SyntaxTheme doc change still breaks the docsite's SyntaxTheme playground.

  • Miss: SyntaxTheme.doc.mjs now types theme as SyntaxThemeDefinition, but the docsite still picks the theme preset control by the old name (apps/docsite/src/components/component-detail/parsePropType.ts:186), so the SyntaxTheme page's playground shows "Render error: Cannot read properties of undefined (reading 'keyword')" with no theme picker; match SyntaxThemeDefinition there and add a docsite test for it.

Miss (non-blocking): the docsite's Toast playground now starts autoHideDuration at 0; adding the show function's values to the doc's playground.defaults keeps the old start (see the existing inline comment).

Claims and files checked

Review mode: same-head; reason: none

  • Claim, changeset: four docs now name exported prop types (Selector, SyntaxTheme, both imperative dialog hooks): verified against the Selector, theme and dialog entry points and the hooks' option types.
  • Claim, changeset and description: Toast's doc describes the card, with type, isAutoHide and autoHideDuration required: verified against ToastProps in Toast.tsx.
  • Claim, changeset and description: useToast's doc lists the show options and their defaults: verified against ToastOptions, the viewport's fallbacks and the toast host's collision default.
  • Claim, description: each required Toast prop says in English, Chinese and dense text what the show function sets, and error persistence moved to isAutoHide: verified in all three.
  • Claim, description: the uniqueID best practice names useToast(): verified in all three.
  • Claim, description: the Toast record names both consumer docs, consistent with its public contract: verified.
  • Claim, description: the six Toast drift entries are gone and the drift test requires it: verified, the test passes.
  • Claim, description: no type is exported or changed, and only docs and one record sentence change: verified (besides the changeset and the drift list).
  • Claim, description: the writing-rubric results for the record sentence: verified.
  • Claim, description: the prop-drift and descriptor-type tests, check:knowledge, check:changesets and Prettier pass: verified by rerunning them.
  • Claim, description: the combobox hooks' option types are not exported, and MarkdownPluginEntry is exported from the Markdown plugins entry: verified.
  • Claim, description: the exported-type resolver from #12326 finds the five named types at Core's root: verified, all five are re-exported from Core's root through the export chains that resolver follows.
  • Claim, description: the overlap note: verified for all nineteen pull requests it names.
  • File .changeset/docs-name-exported-types.md: clear.
  • File docs/specs/components/Toast/Toast.spec.md: clear.
  • File packages/cli/test/core-prop-docs.known-drift.json: clear.
  • File packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs: clear.
  • File packages/core/src/Dialog/useImperativeDialog.doc.mjs: clear.
  • File packages/core/src/Selector/Selector.doc.mjs: clear.
  • File packages/core/src/Toast/Toast.doc.mjs: one non-blocking note (docsite playground seeding).
  • File packages/core/src/Toast/useToast.doc.mjs: clear.
  • File packages/core/src/theme/SyntaxTheme.doc.mjs: one blocking finding (docsite playground).

Automated review (maintainer link)

Comment thread packages/core/src/Toast/Toast.doc.mjs Resolved
Without defaults on the now-required type, isAutoHide and
autoHideDuration, the docsite playground started autoHideDuration at 0.
Its defaults are now the values useToast()'s show function sets.
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec b0a864e

@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 Toast, Selector and dialog hook docs now match the code, but the SyntaxTheme doc change breaks the docsite's SyntaxTheme playground, and one description claim is out of date.

  • Miss: SyntaxTheme.doc.mjs now types theme as SyntaxThemeDefinition, but the docsite still picks the theme preset control by the old name (apps/docsite/src/components/component-detail/parsePropType.ts:186), so the SyntaxTheme page's playground shows "Render error: Cannot read properties of undefined (reading 'keyword')" with no theme picker; match SyntaxThemeDefinition there and add a case to apps/docsite/src/__tests__/component-prop-controls.test.ts.
  • Regression: the description's overlap note lists #11517 among the pull requests that already conflict with main, but #11517 now merges cleanly with main and with this change, so move it to the group that shares a file and merges cleanly.
Claims and files checked

Review mode: same-head; reason: none

  • Rules changed since the last review: 0.
  • Claim, changeset: the Selector, SyntaxTheme and both imperative dialog hook docs name exported types: verified (SelectorOptionType, SyntaxThemeDefinition, DialogProps and AlertDialogProps are Core root exports, and the show shapes match useImperativeDialog.tsx:26-33 and useImperativeAlertDialog.tsx:20-24).
  • Claim, changeset and description: Toast's doc describes the card, with type, isAutoHide and autoHideDuration required: verified against ToastProps (Toast.tsx:151-158).
  • Claim, changeset and description: useToast's doc lists the show options and their defaults: verified against ToastViewport.tsx:296-298, Layer/toastHost.tsx:64 and Toast/types.ts:53-63.
  • Claim, description: four docs named a type Core does not export, and a <Toast> written from the old table did not type-check: verified on the base.
  • Claim, description: each required Toast prop says in English, Chinese and dense text what the show function sets, and the error-persistence sentence moved to isAutoHide: verified in all three.
  • Claim, description: the uniqueID best practice names useToast(): verified in all three.
  • Claim, description: the Toast record names both consumer docs, consistent with its public contract: verified.
  • Claim, description: the six Toast drift entries are gone and the drift test requires it: verified, the drift test passes at this head.
  • Claim, description: no type is exported or changed, and only docs and one record sentence change: verified (besides the changeset and the drift list); Core's built API surface compares with no change.
  • Claim, description: the writing-rubric results for the record sentence: verified.
  • Claim, description: the prop-drift and descriptor-type tests, check:knowledge, check:changesets and Prettier pass: verified at this head.
  • Claim, description: the combobox hooks' option types are not exported, and MarkdownPluginEntry is exported from the Markdown plugins entry: verified (Selector/hooks.ts:358, MultiSelector/hooks.ts:24, Markdown/plugins/index.ts:59).
  • Claim, description: the five named types resolve at Core's root: verified.
  • Claim, description: the overlap note: verified for eighteen of the nineteen pull requests; false for #11517 (finding above).
  • File .changeset/docs-name-exported-types.md: clear.
  • File docs/specs/components/Toast/Toast.spec.md: clear.
  • File packages/cli/test/core-prop-docs.known-drift.json: clear.
  • File packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs: clear.
  • File packages/core/src/Dialog/useImperativeDialog.doc.mjs: clear.
  • File packages/core/src/Selector/Selector.doc.mjs: clear.
  • File packages/core/src/Toast/Toast.doc.mjs: clear.
  • File packages/core/src/Toast/useToast.doc.mjs: clear.
  • File packages/core/src/theme/SyntaxTheme.doc.mjs: one blocking finding (docsite playground).

Automated review (maintainer link)

…set control

SyntaxTheme's doc now types theme as SyntaxThemeDefinition, and the
playground still picked the preset control by the old name, so the
SyntaxTheme page rendered with no picker and a render error. CodeBlock's
syntaxTheme row, typed the same way, gets the picker too.
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 503c1bc

@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 SyntaxTheme playground has its preset picker again, but the same docsite change gives CodeBlock's props table a picker that misstates an unset prop, and one description claim is out of date.

  • The docsite now gives CodeBlock's and Lab DiffViewer's optional syntaxTheme rows the syntax theme picker (apps/docsite/src/components/component-detail/parsePropType.ts:186), which reads "One Dark Pro" while the prop is unset and the preview keeps the theme-level syntax colours, with no way back to unset; give an optional row an unset choice that sends undefined, as the enum control's "None" does, and add a test for it.
  • Regression: the description's overlap note lists #11966 among the pull requests that already conflict with main, but since #11966 merged main it merges cleanly with main and with this change, so move it to the group that shares a file and merges cleanly.
Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none.
  • Claim, changeset: the Selector, SyntaxTheme and both imperative dialog hook docs name exported types: verified (Core's root exports SelectorOptionType, SyntaxThemeDefinition, DialogProps and AlertDialogProps, and the show shapes match the hooks' declarations).
  • Claim, changeset and description: Toast's doc describes the card, with type, isAutoHide and autoHideDuration required: verified against ToastProps (Toast.tsx:151-158).
  • Claim, changeset and description: useToast's doc lists the show options and their defaults: verified against ToastViewport.tsx:296-298 and Layer/toastHost.tsx:64.
  • Claim, description: four docs named a type Core does not export, and a <Toast> written from the old table did not type-check: verified on the base.
  • Claim, description: the docsite picks the SyntaxTheme preset control by type name and now matches SyntaxThemeDefinition, and the new test fails without the change: verified (the test fails on the base and passes on this head).
  • Claim, description: CodeBlock's syntaxTheme row gets the picker too: true, but the picker misstates an unset value (finding above).
  • Claim, description: each required Toast prop says in English, Chinese and dense text what the show function sets; the error-persistence sentence moved to isAutoHide; the show-only options moved to useToast's doc; the uniqueID best practice names useToast(): verified.
  • Claim, description: the Toast record names both consumer docs, consistent with its public contract: verified.
  • Claim, description: the six Toast drift entries are gone and the drift test requires it: verified, the drift test passes.
  • Claim, description: no type is exported or changed: verified, Core's built API surface has no change.
  • Claim, description: the writing-rubric results for the record sentence: verified.
  • Claim, description: the prop-drift and descriptor-type tests, check:knowledge, check:changesets and Prettier pass: verified at this head.
  • Claim, description: the combobox hooks' option types are not exported, and MarkdownPluginEntry is exported from the Markdown plugins entry: verified.
  • Claim, description: the five named types resolve at Core's root: verified.
  • Claim, description: the overlap note: verified for eighteen of the nineteen pull requests; false for #11966 (finding above).
  • File .changeset/docs-name-exported-types.md: clear.
  • File apps/docsite/src/__tests__/component-prop-controls.test.ts: clear.
  • File apps/docsite/src/components/component-detail/parsePropType.ts: one blocking finding (optional-row picker).
  • File docs/specs/components/Toast/Toast.spec.md: clear.
  • File packages/cli/test/core-prop-docs.known-drift.json: clear.
  • File packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs: clear.
  • File packages/core/src/Dialog/useImperativeDialog.doc.mjs: clear.
  • File packages/core/src/Selector/Selector.doc.mjs: clear.
  • File packages/core/src/Toast/Toast.doc.mjs: clear.
  • File packages/core/src/Toast/useToast.doc.mjs: clear.
  • File packages/core/src/theme/SyntaxTheme.doc.mjs: clear.

Automated review (maintainer link)

…turn to it

The syntax-theme picker now also serves CodeBlock's and Lab DiffViewer's
optional syntaxTheme rows. For an optional prop it offers None first,
shows None while the prop is unset, and None sends nothing, so the
preview keeps the theme-level syntax colors. A required prop keeps the
presets only.
@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Nov 18, 2026
@github-actions
github-actions Bot requested a review from rubyycheung November 21, 2026 02:48
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 5052b6d

@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Nov 21, 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 doc and docsite changes check out, but one bullet of the description went stale with the last commit.

  • The description says Toast's isAutoHide and autoHideDuration text gives what useToast()'s show function sets and that the "error toasts persist until dismissed" sentence moves to isAutoHide, but at this head Toast.doc.mjs:52 and :59 (and the Chinese and dense text at :207, :209, :322 and :324) name no value and no isAutoHide text mentions error toasts persisting, so reword that bullet to match.

Editing the description clears this; the Toast doc itself matches its record and the other claims hold. CI has not run on this head because the pull request is a draft.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none
  • Changeset, four docs name exported types (Selector options, SyntaxTheme theme, both imperative dialog hooks' show): verified, Selector.doc.mjs:185, SyntaxTheme.doc.mjs:62, useImperativeAlertDialog.doc.mjs:14, useImperativeDialog.doc.mjs:14.
  • Changeset, Toast's isAutoHide and autoHideDuration are required: verified, Toast.doc.mjs:53, :60, matching Toast.tsx:164-165.
  • Changeset, the show-only options leave Toast's table because useToast's doc lists them with defaults: verified, absent from Toast.doc.mjs, listed at useToast.doc.mjs:27-33.
  • Changeset and description, type keeps its 'info' default: verified, Toast.doc.mjs:46.
  • Description, four docs named types the package does not export and Toast's timing props read optional: verified on the base.
  • Description, Selector options is SelectorOptionType[]: verified, Selector.doc.mjs:185.
  • Description, the playground picker matches SyntaxThemeDefinition and CodeBlock's and DiffViewer's rows get it: verified, parsePropType.ts:186, CodeBlock.doc.mjs:146, DiffViewer.doc.mjs:208.
  • Description, an optional row starts at None and None sends nothing: verified, syntaxThemeChoices.ts:30-37, :67-69.
  • Description, Show code prints a picked preset by its exported name: verified, InteractivePreview.tsx:126-129.
  • Description, the two docsite tests cover the picker and fail without the change, and none reaches Show code's printed name: verified, 16 tests pass at this head.
  • Description, the two dialog hooks' show signatures: verified, useImperativeAlertDialog.doc.mjs:14, useImperativeDialog.doc.mjs:14.
  • Description, Toast's timing rows say in every locale what the show function sets: false, Toast.doc.mjs:52, :59, :207, :209, :322, :324 name no value.
  • Description, the error-toast sentence moves from type to isAutoHide: false, it is gone from :45 and absent from :52, :207 and :322.
  • Description, the uniqueID best practice names useToast(): verified, Toast.doc.mjs:149, :231, :295.
  • Description, the record names both consumer docs: verified, Toast.spec.md:73-74.
  • Description, five Toast drift entries are gone and type stays: verified, core-prop-docs.known-drift.json:44.
  • Description, native maps the renamed type and its output is unchanged: verified, packages/native/src/components/Selector.ts:16.
  • Description, no type is exported or changed: verified, no public API change.
  • Description, the playground sets only body, isAutoHide and autoHideDuration and the theme editor's output stays the same: verified, Toast.doc.mjs:24-28, and the theme editor's toast suites pass at this head.
  • Description, Testing: the drift test, the authoring-type test, the docsite tests, the knowledge and changeset checks and the formatting note hold at this head; the native contract tests and the type resolver note are unchanged since the last check.
  • Description, scope note on useCombobox, useMultiCombobox and MarkdownPluginEntry: verified.
  • Description, overlap note: verified; the pull requests that share a file merge cleanly in it, and the others already conflict with main.
  • Files: .changeset/docs-name-exported-types.md clear; apps/docsite/src/__tests__/component-prop-controls.test.ts clear; apps/docsite/src/__tests__/syntax-theme-control.test.ts clear; apps/docsite/src/components/component-detail/InteractivePreview.tsx clear; apps/docsite/src/components/component-detail/PlaygroundPropsTable.tsx clear; apps/docsite/src/components/component-detail/parsePropType.ts clear; apps/docsite/src/components/component-detail/syntaxThemeChoices.ts clear; docs/specs/components/Toast/Toast.spec.md clear; packages/cli/test/core-prop-docs.known-drift.json clear; packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs clear; packages/core/src/Dialog/useImperativeDialog.doc.mjs clear; packages/core/src/Selector/Selector.doc.mjs clear; packages/core/src/Toast/Toast.doc.mjs clear, the description bullet about it is the finding; packages/core/src/theme/SyntaxTheme.doc.mjs clear; packages/native/src/components/Selector.ts clear.

Automated review (maintainer link)

Comment thread packages/core/src/Toast/Toast.doc.mjs Resolved

@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 the pull request is a draft, and it runs once the pull request is marked ready for review.

The description now matches the Toast doc's rows, which was the only open finding, and the doc, docsite and native changes check out against their records. One detail of the overlap note went stale after this review began: #11966 has since merged main and now merges cleanly, so it can leave the "already conflict" clause at the next description edit.

Claims and files checked

Review mode: same-head; reason: none

  • changed rules (0): none
  • Changeset, four docs name prop types the package exports (Selector options, SyntaxTheme theme, both imperative dialog hooks' show): verified, Selector.doc.mjs:185, SyntaxTheme.doc.mjs:62, useImperativeAlertDialog.doc.mjs:14, useImperativeDialog.doc.mjs:14.
  • Changeset, Toast's isAutoHide and autoHideDuration are required, as ToastProps declares: verified, Toast.doc.mjs:53, :60, matching Toast.tsx:164-165.
  • Changeset, the show-only options leave Toast's table because useToast's doc lists them: verified, absent from Toast.doc.mjs, listed at useToast.doc.mjs:31-33.
  • Changeset and description, type keeps its 'info' default: verified, Toast.doc.mjs:46.
  • Description, on the base four docs named types the package does not export and Toast's timing rows read optional with defaults, so a <Toast> built from them fails to type-check: verified, base docs and Toast.tsx:164-165.
  • Description, Selector options is SelectorOptionType[] and SelectorOption is a component: verified, Selector.doc.mjs:185, Selector/index.ts:17, :19.
  • Description, the playground picks the preset control by type name, now SyntaxThemeDefinition, and CodeBlock's and DiffViewer's rows get it: verified, parsePropType.ts:186, CodeBlock.doc.mjs:146, DiffViewer.doc.mjs:208.
  • Description, an optional row starts at None and None sends nothing: verified, syntaxThemeChoices.ts:30-37, :55, :67-69.
  • Description, Show code prints a picked preset by its export name through the theme-name helper: verified, InteractivePreview.tsx:101-113, :126-129.
  • Description, the two docsite tests cover the picker, its None choice and the preset a value is, and fail without the change; no test reaches Show code's printed name: verified, 16 tests pass on the head, the new case and suite fail on the base, and the preview tests mock the preset list as empty.
  • Description, the two dialog hooks' show shapes are the ones the hooks declare, written with exported types: verified, useImperativeAlertDialog.ts:20, useImperativeDialog.ts:26-29.
  • Description, each of type, isAutoHide and autoHideDuration says in every locale that the show function sets it and names no value, and useToast's doc gives the defaults: verified, Toast.doc.mjs:45, :52, :59, :205, :207, :209, :321, :322, :324; useToast.doc.mjs:27-29, :81.
  • Description, the uniqueID best practice names useToast(): verified, Toast.doc.mjs:149, :231, :295.
  • Description, the record names both consumer docs: verified, Toast.spec.md:73-74.
  • Description, five of the six Toast drift entries are gone and type stays: verified, core-prop-docs.known-drift.json:44.
  • Description, native maps the renamed type and its contract and output are unchanged: verified, packages/native/src/components/Selector.ts:16; native contract tests pass.
  • Description, no type is exported or changed: verified, no public API row.
  • Description, type keeps its default because the theme editor reads playground and documented defaults, and the playground sets only body, isAutoHide and autoHideDuration: verified, Toast.doc.mjs:24-28; the theme editor's toast tests pass on the head.
  • Description, Testing: the drift, authoring-type, docsite, native contract and theme-editor tests and the knowledge and changeset checks pass, and the one Prettier warning is a line this change does not touch: verified by re-running each; the full preflight run is the author's own.
  • Description, scope note on useCombobox, useMultiCombobox and MarkdownPluginEntry: verified, useCombobox.doc.mjs:27, useMultiCombobox.doc.mjs:27, Markdown/plugins/index.ts:59.
  • Description, the exported-type resolver from the CLI change finds the named types at Core's root: verified, it prints them in import type lines from @astryxdesign/core; ToastProps is a root export.
  • Description, overlap note: verified for every listed pull request except #11966, which merged main after this review began and now merges cleanly with main and with this change.
  • Files: .changeset/docs-name-exported-types.md clear; apps/docsite/src/__tests__/component-prop-controls.test.ts clear; apps/docsite/src/__tests__/syntax-theme-control.test.ts clear; apps/docsite/src/components/component-detail/InteractivePreview.tsx clear; apps/docsite/src/components/component-detail/PlaygroundPropsTable.tsx clear; apps/docsite/src/components/component-detail/parsePropType.ts clear; apps/docsite/src/components/component-detail/syntaxThemeChoices.ts clear; docs/specs/components/Toast/Toast.spec.md clear; packages/cli/test/core-prop-docs.known-drift.json clear; packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs clear; packages/core/src/Dialog/useImperativeDialog.doc.mjs clear; packages/core/src/Selector/Selector.doc.mjs clear; packages/core/src/Toast/Toast.doc.mjs clear; packages/core/src/theme/SyntaxTheme.doc.mjs clear; packages/native/src/components/Selector.ts clear.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 21, 2026 04:11

@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 for one description detail.

  • The reworded overlap note says #6819 merges cleanly with main, but #6819 conflicts with main in nine files (only its shared Selector.doc.mjs merges cleanly), so scope #6819's entry to that file or note its conflicts with main.

The #11966 entry is fixed, and the docs, docsite, record and native changes check out against their specs. The spec approval for this head stands, since editing the description does not change the head, and CI passed on this head.

Claims and files checked

Review mode: same-head; reason: none

  • changed rules (0): none
  • Changeset, four docs name prop types the package exports (Selector options, SyntaxTheme theme, both imperative dialog hooks' show): verified, Selector.doc.mjs:185, SyntaxTheme.doc.mjs:62, useImperativeAlertDialog.doc.mjs:14, useImperativeDialog.doc.mjs:14.
  • Changeset, Toast's isAutoHide and autoHideDuration are required, as ToastProps declares: verified, Toast.doc.mjs:53, :60, matching Toast.tsx:164-165.
  • Changeset, the show-only options leave Toast's table because useToast's doc lists them with their defaults: verified, absent from Toast.doc.mjs, listed at useToast.doc.mjs:31-33.
  • Changeset and description, type keeps its 'info' default: verified, Toast.doc.mjs:46.
  • Description, on the base four docs named types the package does not export and Toast's timing rows read optional with defaults, so a <Toast> built from them fails to type-check: verified, base docs and Toast.tsx:164-165.
  • Description, Selector options is SelectorOptionType[] and SelectorOption is a component: verified, Selector.doc.mjs:185, Selector/index.ts.
  • Description, the playground picks the preset control by type name, now SyntaxThemeDefinition, and CodeBlock's and DiffViewer's rows get it: verified, parsePropType.ts:186, CodeBlock.doc.mjs:146, DiffViewer.doc.mjs:208.
  • Description, an optional row starts at None and None sends nothing: verified, syntaxThemeChoices.ts:30-37, :55, :67-69.
  • Description, Show code prints a picked preset by its export name through the theme-name helper: verified, InteractivePreview.tsx:126-129.
  • Description, the two docsite tests cover the picker, its None choice and the preset a value is, and fail without the change; no test reaches Show code's printed name: verified, 16 tests pass on the head, the new case and suite fail on the base, and the preview tests mock the preset list as empty.
  • Description, the two dialog hooks' show shapes are the ones the hooks declare, written with exported types: verified, useImperativeAlertDialog.tsx:20, useImperativeDialog.tsx:26.
  • Description, each of type, isAutoHide and autoHideDuration says in every locale that the show function sets it and names no value, and useToast's doc gives the defaults: verified, Toast.doc.mjs:45, :52, :59, :205, :207, :209, :321, :322, :324; useToast.doc.mjs:27-29.
  • Description, the uniqueID best practice names useToast(): verified, Toast.doc.mjs:149, :231, :295.
  • Description, the record names both consumer docs: verified, Toast.spec.md:73-74.
  • Description, five of the six Toast drift entries are gone and type stays: verified, core-prop-docs.known-drift.json:44.
  • Description, native maps the renamed type and its contract and output are unchanged: verified, packages/native/src/components/Selector.ts:16; native contract tests pass.
  • Description, no type is exported or changed and only docs, the docsite, one record sentence and native's mapping change: verified, no public API row.
  • Description, type keeps its default because the theme editor reads playground and documented defaults, and the playground sets only body, isAutoHide and autoHideDuration: verified, Toast.doc.mjs:24-28; the theme editor's toast tests pass on the head.
  • Description, writing rubric: the record sentence matches the record's Public contract, which gives the defaults and show-only options to the show function and lists the card as its own export: verified, Toast.spec.md:58, :73-74.
  • Description, Testing: the drift, authoring-type, docsite, native contract and theme-editor tests and the knowledge and changeset checks pass, and the one Prettier warning is a line this change does not touch: verified, each passes on this head and CI shows no failure there; the full preflight run is the author's own.
  • Description, scope note on useCombobox, useMultiCombobox and MarkdownPluginEntry: verified, useCombobox.doc.mjs:27, useMultiCombobox.doc.mjs:27, Markdown/plugins/index.ts:59.
  • Description, the exported-type resolver from the CLI change finds the named types at Core's root: verified, ToastProps, SelectorOptionType, SyntaxThemeDefinition, AlertDialogProps and DialogProps are root exports.
  • Description, overlap note: false for #6819, which conflicts with main in nine files though its shared Selector.doc.mjs merges cleanly; verified for #11966, #12378, #12450, #12959, #11868, #11517, #8121, the touch-runtime stack from #11463, and the three merged pull requests.
  • Files: .changeset/docs-name-exported-types.md clear; apps/docsite/src/__tests__/component-prop-controls.test.ts clear; apps/docsite/src/__tests__/syntax-theme-control.test.ts clear; apps/docsite/src/components/component-detail/InteractivePreview.tsx clear; apps/docsite/src/components/component-detail/PlaygroundPropsTable.tsx clear; apps/docsite/src/components/component-detail/parsePropType.ts clear; apps/docsite/src/components/component-detail/syntaxThemeChoices.ts clear; docs/specs/components/Toast/Toast.spec.md clear; packages/cli/test/core-prop-docs.known-drift.json clear; packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs clear; packages/core/src/Dialog/useImperativeDialog.doc.mjs clear; packages/core/src/Selector/Selector.doc.mjs clear; packages/core/src/Toast/Toast.doc.mjs clear; packages/core/src/theme/SyntaxTheme.doc.mjs clear; packages/native/src/components/Selector.ts clear.

Automated review (maintainer link)

@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. CI passed on this head.

The overlap note's #6819 entry, the one open point from the last review, now matches the merge results, and the docs, docsite, record and native changes check out against their specs.

Claims and files checked

Review mode: same-head; reason: none

  • changed rules (0): none
  • Changeset, four docs name prop types the package exports (Selector options, SyntaxTheme theme, both imperative dialog hooks' show): verified, Selector.doc.mjs:185, SyntaxTheme.doc.mjs:62, useImperativeAlertDialog.doc.mjs:14, useImperativeDialog.doc.mjs:14.
  • Changeset, Toast's isAutoHide and autoHideDuration are required, as ToastProps declares: verified, Toast.doc.mjs:53, :60, matching Toast.tsx:164-165.
  • Changeset, the show-only options leave Toast's table because useToast's doc lists them with their defaults: verified, absent from Toast.doc.mjs, listed at useToast.doc.mjs:31-33.
  • Changeset and description, type keeps its 'info' default: verified, Toast.doc.mjs:46.
  • Description, on the base four docs named types the package does not export and Toast's timing rows read optional with defaults, so a <Toast> built from them fails to type-check: verified, base docs and Toast.tsx:164-165.
  • Description, Selector options is SelectorOptionType[] and SelectorOption is a component: verified, Selector.doc.mjs:185, Selector/index.ts:19.
  • Description, the playground picks the preset control by type name, now SyntaxThemeDefinition, and CodeBlock's and DiffViewer's rows get it: verified, parsePropType.ts:186, CodeBlock.doc.mjs:146, DiffViewer.doc.mjs:208.
  • Description, an optional row starts at None and None sends nothing, so an unset prop keeps the theme-level colours: verified, syntaxThemeChoices.ts:30-37, :55, :67-69.
  • Description, Show code prints a picked preset by its exported name through the theme-name helper: verified, InteractivePreview.tsx:126-129; dracula and oneDarkPro are the preset exports.
  • Description, the two docsite tests cover the picker, its None choice and the preset a value is, and fail without the change; no test reaches Show code's printed name: verified, 16 tests pass on the head, the new case and suite fail on the base, and the preview tests mock the preset list as empty.
  • Description, the two dialog hooks' show shapes are the ones the hooks declare, written with exported types: verified, useImperativeAlertDialog.tsx:20, useImperativeDialog.tsx:26.
  • Description, each of type, isAutoHide and autoHideDuration says in every locale that the show function sets it and names no value, and useToast's doc gives the defaults: verified, Toast.doc.mjs:45, :52, :59, :205, :207, :209, :321, :322, :324; useToast.doc.mjs:27-29.
  • Description, the uniqueID best practice names useToast(): verified, Toast.doc.mjs:149, :231, :295.
  • Description, the record names both consumer docs: verified, Toast.spec.md:73-74.
  • Description, five of the six Toast drift entries are gone and type stays: verified, core-prop-docs.known-drift.json:44.
  • Description, native maps the renamed type and its contract and output are unchanged: verified, packages/native/src/components/Selector.ts:16; native contract tests pass.
  • Description, no type is exported or changed, and the change is limited to docs (the docsite playground included), one record sentence and native's mapping: verified, no public API row.
  • Description, type keeps its default because the theme editor reads playground and documented defaults, and the playground sets only body, isAutoHide and autoHideDuration: verified, Toast.doc.mjs:24-28; the theme editor's toast tests pass on the head.
  • Description, writing rubric: the record sentence matches the record's Public contract, which gives the defaults and show-only options to the show function and lists the card as its own export: verified, Toast.spec.md:58, :73-74.
  • Description, Testing: the drift, authoring-type, docsite, native contract and theme-editor tests and the knowledge and changeset checks pass, and the one Prettier warning is a line this change does not touch: verified, each passes on this head and CI shows no failure there; the full preflight run is the author's own.
  • Description, scope note on useCombobox, useMultiCombobox and MarkdownPluginEntry: verified, useCombobox.doc.mjs:27, useMultiCombobox.doc.mjs:27, Markdown/plugins/index.ts:59.
  • Description, the exported-type resolver from the CLI change finds the named types at Core's root: verified, ToastProps, SelectorOptionType, SyntaxThemeDefinition, AlertDialogProps and DialogProps are root exports.
  • Description, overlap note: #11966, #12378, #12450 and #12959 share a file and merge cleanly with main and with this change; #6819's shared Selector.doc.mjs merges cleanly with this change and #6819 conflicts with main in other files; #11868, #11517, #8121 and the touch-runtime pull requests from #11463 to #11544 conflict with main in the files they share; #12156, #11960 and #11621 have merged: verified, each by its merge result against main and this head and its GitHub state.
  • Files: .changeset/docs-name-exported-types.md clear; apps/docsite/src/__tests__/component-prop-controls.test.ts clear; apps/docsite/src/__tests__/syntax-theme-control.test.ts clear; apps/docsite/src/components/component-detail/InteractivePreview.tsx clear; apps/docsite/src/components/component-detail/PlaygroundPropsTable.tsx clear; apps/docsite/src/components/component-detail/parsePropType.ts clear; apps/docsite/src/components/component-detail/syntaxThemeChoices.ts clear; docs/specs/components/Toast/Toast.spec.md clear; packages/cli/test/core-prop-docs.known-drift.json clear; packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs clear; packages/core/src/Dialog/useImperativeDialog.doc.mjs clear; packages/core/src/Selector/Selector.doc.mjs clear; packages/core/src/Toast/Toast.doc.mjs clear; packages/core/src/theme/SyntaxTheme.doc.mjs clear; packages/native/src/components/Selector.ts clear.

Automated review (maintainer link)

Toast.doc.mjs and its known-drift entries return to main's, so this pull
request changes no documented default. The card-doc correction (required
isAutoHide and autoHideDuration; the show-only options leave the card's
table) follows in a separate pull request.
@cixzhang
cixzhang marked this pull request as draft November 21, 2026 07:49
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 21, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 03c09e7

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 21, 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 doc type names and the docsite picker are right at this head; two text fixes remain.

  • The title says Toast's doc marks the card's timing props required, but packages/core/src/Toast/Toast.doc.mjs is unchanged here (isAutoHide and autoHideDuration still read optional), so retitle to docs(core): prop types name only types the package exports.
  • The description's overlap note lists #11868 among pull requests that conflict with main in the files they share, but #11868 no longer shares any file with this change now that the drift-list edit has left it.

SelectorOptionType, SyntaxThemeDefinition, AlertDialogProps and DialogProps are all Core root exports, CodeBlock's optional syntaxTheme row now starts at None and Show code prints syntaxTheme={dracula} after a pick. CI has not run on this draft head yet.

Claims and files checked

Review mode: full; reason: merge-touches-pr-files

Claims

  • Changeset: four docs now name exported types (Selector options, SyntaxTheme theme, both imperative dialog hooks' show options): verified, Selector.doc.mjs:185, SyntaxTheme.doc.mjs:62, the two hook docs at :14, and Core's root exports.
  • Title: prop types name only types the package exports: verified for the four docs; the combobox hooks are named as out of scope.
  • Title: Toast's doc marks the card's timing props required: false, Toast.doc.mjs:43-54 is unchanged from the base.
  • On the base, the four docs named types nobody can import: verified (SelectorOption and SyntaxTheme are components; the dialog option aliases are not exported).
  • The docsite picker keys on SyntaxThemeDefinition, and CodeBlock's and DiffViewer's rows get it: verified, parsePropType.ts:186 and a docsite capture.
  • An optional picker starts at None and None sends nothing: verified, syntaxThemeChoices.ts:30-37 and :67-69.
  • Show code prints a picked preset by its exported name: verified, InteractivePreview.tsx:126-129 and a capture showing syntaxTheme={dracula}.
  • The two docsite tests cover the picker, None and the preset name, and fail without the change: verified, 16 pass here and both fail on the base.
  • No test reaches Show code's printed name: verified, the preview test stubs the preset list as empty.
  • Both imperative dialog show types match what the hooks declare: verified against useImperativeAlertDialog.tsx:20 and useImperativeDialog.tsx:26-29.
  • Toast's card doc is unchanged here: verified. The reason given for moving it out was not checked; nothing in this head depends on it.
  • The Toast record names both consumer docs: verified, Toast.spec.md:73-74, and useToast.doc.mjs exists.
  • Native maps the renamed type, with its contract and Swift output unchanged: verified, Selector.ts:16 and 32 native contract tests passing.
  • No type is exported or changed: verified, the built API surface shows no change.
  • Writing rubric results for the record sentence: verified.
  • Preflight passes: not rerun in full; the build, knowledge and changeset checks and the targeted suites pass.
  • Native contract, docsite, drift and doc-type tests pass: verified (32, 16, 2 and 28 tests).
  • Knowledge and changeset checks pass: verified.
  • Prettier passes on the changed lines, with one older unformatted line in Selector.doc.mjs: verified, line 376 is untouched.
  • The combobox hooks name unexported option types, and MarkdownPluginEntry is exported from Markdown/plugins: verified.
  • The four named types are found at Core's root: verified through packages/core/src/index.ts.
  • Overlap note: verified for every listed pull request except #11868, which shares no file with this change.

Files

  • .changeset/docs-name-exported-types.md: clear.
  • apps/docsite/src/__tests__/component-prop-controls.test.ts: clear.
  • apps/docsite/src/__tests__/syntax-theme-control.test.ts: clear.
  • apps/docsite/src/components/component-detail/InteractivePreview.tsx: clear.
  • apps/docsite/src/components/component-detail/PlaygroundPropsTable.tsx: clear.
  • apps/docsite/src/components/component-detail/parsePropType.ts: clear.
  • apps/docsite/src/components/component-detail/syntaxThemeChoices.ts: clear.
  • docs/specs/components/Toast/Toast.spec.md: clear.
  • packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs: clear.
  • packages/core/src/Dialog/useImperativeDialog.doc.mjs: clear.
  • packages/core/src/Selector/Selector.doc.mjs: clear.
  • packages/core/src/theme/SyntaxTheme.doc.mjs: clear.
  • packages/native/src/components/Selector.ts: clear.

Automated review (maintainer link)

@cixzhang cixzhang changed the title docs(core): prop types name only types the package exports; Toast's doc marks the card's timing props required docs(core): prop types name only types the package exports Nov 21, 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: CI has not run on this head yet, and it runs once the pull request leaves draft.

SelectorOptionType, SyntaxThemeDefinition, AlertDialogProps and DialogProps are all Core root exports, the docsite's syntax-theme picker follows the rename with a None choice for optional rows, and the title and overlap note now match the change.

Claims and files checked

Review mode: same-head; reason: none

Claims

  • Changeset: four docs name exported prop types (Selector options, SyntaxTheme theme, both imperative dialog hooks' show options): verified, Selector.doc.mjs:185, SyntaxTheme.doc.mjs:62, both hook docs at :14, and Core's root exports.
  • Title: prop types name only types the package exports: verified for the four docs it changes; the description names the two combobox hook docs it leaves out, and the changeset says four docs.
  • On the base, the four docs named a type that is not an exported type for the prop: verified (SelectorOption and SyntaxTheme are components; the dialog option aliases are module-private).
  • Selector's options are SelectorOptionType[] and SelectorOption is a component: verified, Selector/index.ts:17-19.
  • SyntaxTheme's theme is SyntaxThemeDefinition, the playground picks its preset control by that name, and CodeBlock's and DiffViewer's rows get it too: verified, parsePropType.ts:186, CodeBlock.doc.mjs:146, DiffViewer.doc.mjs:208, and a docsite capture.
  • An optional picker starts at None and None sends nothing, so an unset prop keeps the theme-level colours: verified, syntaxThemeChoices.ts:30-37 and :67-69.
  • Show code names a picked preset by its exported identifier through the theme-name helper: verified, InteractivePreview.tsx:126-129; all twelve preset names map to their export names, and a capture shows syntaxTheme={dracula}.
  • The two docsite tests cover the picker, None and the preset name, and fail without the change: verified, 16 pass at this head and both fail on the base.
  • No test reaches Show code's printed name: verified, the preview test stubs the preset list as empty.
  • Both imperative dialog show types are the ones the hooks declare: verified against useImperativeAlertDialog.tsx:20 and useImperativeDialog.tsx:26-29.
  • Toast's card doc is unchanged here: verified, identical to the base. The stated reason for moving it out was not checked; nothing at this head depends on it.
  • The Toast record names both consumer docs: verified, Toast.spec.md:73-74, and useToast.doc.mjs exists.
  • Native maps the renamed type to its own SelectorOption, the one key the rename reaches, with its contract unchanged: verified, Selector.ts:16, no other native mapping names a renamed type, and 32 native contract tests pass.
  • No type is exported or changed, and only docs (the docsite included), the record sentence and native's mapping change: verified, the built API surface shows no change.
  • Writing rubric results for the record sentence: verified.
  • Preflight passes: not rerun in full; the build, knowledge and changeset checks and the targeted suites pass.
  • Native contract, docsite, drift and doc-type tests pass: verified (32, 16, 2 and 28 tests).
  • Knowledge and changeset checks pass: verified.
  • Prettier passes on the changed lines, with one older unformatted line in Selector.doc.mjs: verified, line 376 is untouched.
  • The combobox hooks name unexported option types, and MarkdownPluginEntry is exported from Markdown/plugins: verified (Selector/hooks.ts:368, MultiSelector/hooks.ts:24, Markdown/plugins/index.ts:59).
  • The four named types are found at Core's root: verified through packages/core/src/index.ts; the resolver itself was not run.
  • Overlap note: verified against current main: the four Selector-doc pull requests and #11966 merge cleanly in the shared files, #11517, #8121 and #11463 to #11544 conflict with main in the Toast record, and #11868, #12156, #11960 and #11621 share no file.

Files

  • .changeset/docs-name-exported-types.md: clear.
  • apps/docsite/src/__tests__/component-prop-controls.test.ts: clear.
  • apps/docsite/src/__tests__/syntax-theme-control.test.ts: clear.
  • apps/docsite/src/components/component-detail/InteractivePreview.tsx: clear.
  • apps/docsite/src/components/component-detail/PlaygroundPropsTable.tsx: clear.
  • apps/docsite/src/components/component-detail/parsePropType.ts: clear.
  • apps/docsite/src/components/component-detail/syntaxThemeChoices.ts: clear.
  • docs/specs/components/Toast/Toast.spec.md: clear.
  • packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs: clear.
  • packages/core/src/Dialog/useImperativeDialog.doc.mjs: clear.
  • packages/core/src/Selector/Selector.doc.mjs: clear.
  • packages/core/src/theme/SyntaxTheme.doc.mjs: clear.
  • packages/native/src/components/Selector.ts: clear.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec f7d8cbe

@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 is running on this head now that the pull request is ready for review, and its required checks still need to pass before merge.

The code is unchanged since the last review: the four doc type names, the docsite syntax-theme picker and the native mapping still check out, the description still matches the code, and the overlap note still holds against current main.

Claims and files checked

Review mode: same-head; reason: none

  • changed rules (0): none

Claims

  • Changeset: four docs name exported prop types (Selector options, SyntaxTheme theme, both imperative dialog hooks' show options): verified, Selector.doc.mjs:185, SyntaxTheme.doc.mjs:62, both hook docs at :14, and Core's root exports.
  • Title: prop types name only types the package exports: verified for the four docs it changes; the description names the two combobox hook docs it leaves out, and the changeset says four docs.
  • On the base, the four docs named a type that is not an exported type for the prop: verified (SelectorOption and SyntaxTheme are components; the dialog option aliases are module-private).
  • Selector's options are SelectorOptionType[] and SelectorOption is a component: verified, Selector/index.ts:17-19.
  • SyntaxTheme's theme is SyntaxThemeDefinition, the playground picks its preset control by that name, and CodeBlock's and DiffViewer's rows get it too: verified, parsePropType.ts:186, CodeBlock.doc.mjs:146, DiffViewer.doc.mjs:208.
  • An optional picker starts at None and None sends nothing, so an unset prop keeps the theme-level colours: verified, syntaxThemeChoices.ts:30-37, :40-56 and :67-69.
  • Show code names a picked preset by its exported identifier through the theme-name helper: verified, InteractivePreview.tsx:126-129 with toIdentifierName (:101-113).
  • The two docsite tests cover the picker, None and the preset name, and fail without the change: verified, 16 pass at this head; on the base the new prop-controls case gets no preset control and the new suite cannot import its module.
  • No test reaches Show code's printed name: verified, the preview test mocks the preset list as empty (interactive-preview.test.ts:31).
  • Both imperative dialog show types are the ones the hooks declare: verified against useImperativeAlertDialog.tsx:20 and useImperativeDialog.tsx:26-29.
  • Toast's card doc is unchanged here: verified, identical to the base.
  • The Toast record names both consumer docs: verified, Toast.spec.md:73-74, and useToast.doc.mjs exists.
  • Native maps the renamed type to its own SelectorOption, the one key the rename reaches, with its contract unchanged: verified, Selector.ts:16, no other native component sets a type-name mapping, and the native contract tests pass.
  • No type is exported or changed, and only docs (the docsite included), the record sentence and native's mapping change: verified, the built API surface shows no change.
  • Writing rubric results for the record sentence: verified.
  • Preflight passes, apart from theme-editor picture cases on a node without Chromium: not rerun in full; the API build, knowledge and changeset checks and the targeted suites pass at this head, and CI is now running.
  • Native contract, docsite (16 of 16), drift (Toast entries as on main) and doc-type tests pass: verified.
  • Knowledge and changeset checks pass: verified.
  • Prettier passes on the changed lines, with one older unformatted line in Selector.doc.mjs: verified, line 376 is untouched.
  • The combobox hooks name unexported option types, and MarkdownPluginEntry is exported from Markdown/plugins: verified (Selector/hooks.ts:368, MultiSelector/hooks.ts:24, Markdown/plugins/index.ts:59).
  • The four named types are found at Core's root: verified through packages/core/src/index.ts; the resolver itself was not run.
  • Overlap note: verified against current main and this head: the four Selector-doc pull requests and #11966 merge cleanly in the shared files (#12959 rechecked at its new head; #12378 and #12450 now conflict with main only in a release-note file), #11517, #8121 and #11463 to #11544 conflict with main in the Toast record, and #11868, #12156, #11960 and #11621 share no file.

Files

  • .changeset/docs-name-exported-types.md: clear.
  • apps/docsite/src/__tests__/component-prop-controls.test.ts: clear.
  • apps/docsite/src/__tests__/syntax-theme-control.test.ts: clear.
  • apps/docsite/src/components/component-detail/InteractivePreview.tsx: clear.
  • apps/docsite/src/components/component-detail/PlaygroundPropsTable.tsx: clear.
  • apps/docsite/src/components/component-detail/parsePropType.ts: clear.
  • apps/docsite/src/components/component-detail/syntaxThemeChoices.ts: clear.
  • docs/specs/components/Toast/Toast.spec.md: clear.
  • packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs: clear.
  • packages/core/src/Dialog/useImperativeDialog.doc.mjs: clear.
  • packages/core/src/Selector/Selector.doc.mjs: clear.
  • packages/core/src/theme/SyntaxTheme.doc.mjs: clear.
  • packages/native/src/components/Selector.ts: clear.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 21, 2026 15:14
@cixzhang
cixzhang merged commit b1e0fe9 into main Nov 21, 2026
157 checks passed
@github-actions
github-actions Bot deleted the lane4/docs-name-exported-types branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — f7d8cbe4 Deployed Nov 21, 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. lane:4 Astryx fix-loop lane 4 owns this needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants