Skip to content

docs(icons): the icon prop says how to draw any icon; prop text says "built-in meaning" and "theme icons" - #12959

Closed
josephfarina wants to merge 4 commits into
mainfrom
josephfarina/icon-words-core-docs
Closed

josephfarina wants to merge 4 commits into
mainfrom
josephfarina/icon-words-core-docs

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

preflight: pass e150e7c (CI checks 19 of 19; review recommends approval)

Reader impact

Someone building an icon button (delete, copy, confirm) reads astryx component Icon or astryx component IconButton and learns that Icon takes an SVG component, but not where to get one; a trash can is not a built-in name. Now the icon prop line in both answers says it first: pass any SVG component from your icon library, such as icon={TrashIcon}.

The prop text also used several words for two things. Now a name such as close is a "built-in meaning" (was "semantic icon name" / "semantic name" / "semantic icon"), and the drawings a theme gives those names are its "theme icons" (was "icon registry" / "registry"). A complete set is still typed IconRegistry.

Source of truth

  • packages/core/src/Icon/Icon.tsx: icon takes IconName | NamespacedIconName | ComponentType<SVGProps>, so a library component such as TrashIcon is a valid value.
  • packages/core/src/IconButton/IconButton.tsx: icon takes a node; an Icon element is the documented slot.
  • packages/core/src/Icon/globalIconRegistry.tsx: names resolve through the theme's icons, then registerIcons(), then the built-in drawings; the type is IconRegistry.

Correction

  • Icon icon prop (full, Chinese copy, dense), first sentence: "Built-in meaning, or any SVG component from your icon library (icon={TrashIcon})."
  • IconButton icon prop (full, dense), first sentence: <Icon icon="close" /> for a built-in meaning, or <Icon icon={TrashIcon} /> for any SVG component from your icon library.
  • Prop and parameter text (Icon, useIcon, IconButton, ChatSendButton and the form-control docs in Core), anatomy rows (InfoTip, MoreMenu, ChatToolCalls, ComplexSelector, DropdownMenu, MultiSelector, Selector, TextArea, Typeahead), and hook guidance, which search does not read (useIcon, useThemeName) say "built-in meaning" and "theme icons" instead of "semantic icon name" and "icon registry". Where a line names the lookup or a default icon (useIcon's full name parameter; ChatSendButton in every copy; ChatToolCalls; MoreMenu), it names the whole order: "theme icons, else a registered or built-in drawing". useIcon's dense name line still names only the theme icons, as main's named only "the same registry"; the follow-up adds the order there. The Chinese copies use 内置含义 and 主题图标.
  • Only text that astryx search and astryx build do not read changes: search reads a component's description, keywords and guidance, a hook's description and keywords, and the guides. Those, including Icon's opening, Rich Text's guidance and the icons guide, keep their words; a follow-up moves them.

Evidence

  • The search index (every entry's name, description and card words) is identical to main's, checked by dumping each entry's word counts on main and on this head.
  • astryx build against the labeled build requests, main vs this head: no answer changes.
  • No search sample (golden) changes. In-repo astryx search for the removed and added words (registry, icon registry, semantic, semantic icon, semantic icon name, semantic name, registered icon, built-in meaning, theme icons, default icon, leading icon, three-dot icon, send button icon, status icon, info icon): identical to main.

Scope

Components: Icon, IconButton, InfoTip, MoreMenu, ChatSendButton, ChatToolCalls, CheckboxInput, ComplexSelector, ContextMenu, DropdownMenu, Field, MultiSelector, NumberInput, PowerSearch, Selector, SideNav, Switch, TextArea, TextInput, Tokenizer, Typeahead, useIcon, useThemeName

  • This PR changes documentation only, or names every necessary generated artifact.
  • Runtime, API, visual, and policy changes were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

  • New packages/cli/test/icon-words.test.mjs: prop and parameter text in every Core and Rich Text component and hook doc (full, Chinese, dense: props, propDescriptions, params, returns, paramDescriptions, returnDescriptions) uses no "icon registry", "icon pack" or "semantic icon name" (color wording such as "semantic color" is allowed; code spans excluded), and the icon prop's first sentence in Icon and IconButton names TrashIcon and "your icon library". It fails on main (2 of 2) and passes here.
  • At this head, on main 4520169 (CI=1): experimental-isolation passes 55 of 55 with no golden change; icon-words, core-doc-quality, golden-reads, core-prop-docs, core-doc-types, docs-graph and docs-topic-refs pass 32 of 32.

@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 21, 2026 3:46pm UTC

Request Review

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

astracat-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

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

@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 Icon and IconButton openings do what the description says, but the description promises a vocabulary clean-up the docs do not carry out.

  • The description says the Icon docs' three words ("icon registry", "semantic icon names", "registry") now read "theme icons", but "semantic icon name" still appears in Icon and useIcon prose (for example Icon.doc.mjs:76 and useIcon.doc.mjs:24) and the new openings call the names "built-in meaning", so please state what changed (only "icon registry" and "registry" became "theme icons") in the description and the test header, or use one word for the names throughout.

Two optional suggestions are inline: name astryx component Icon --props where the opening says the full list is under the icon prop, since the short answer prints only that prop's first sentence, and mention the registered and built-in fallbacks where the icon guide says a name resolves through the theme icons. The new test fails on main and passes here, and the published API surface is unchanged.

Claims and files checked

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

  • Claim (release note): the Icon and IconButton answers now open with how to draw an icon that is not built in: verified, the opening paragraph of both answers, default and dense.
  • Claim (release note): icon docs and the icons guide call a theme's drawings "theme icons", the type is still IconRegistry, and no API changes: verified; no "registry" is left in prose, built themes declare their icons as IconRegistry, and the API surface is unchanged.
  • Claim: the first sentence of both answers says how to draw any other icon: verified in substance; the recipe is in the opening paragraph (for Icon, its second sentence).
  • Claim: the Icon docs' three words for one thing now read "theme icons": false, see the finding above.
  • Claim: Icon takes a name or an SVG component, IconButton takes a node, and names resolve through the theme's icons: verified (Icon.tsx:194, IconButton.tsx:34, globalIconRegistry.tsx).
  • Claim: the Icon (full, Chinese copy, dense) and IconButton (full, dense) openings are rewritten: verified.
  • Claim: registry wording is replaced in the Icon, useIcon, InfoTip, MoreMenu, ChatSendButton and RichTextEditor docs and the icons guide, and keywords keep "icon registry": verified.
  • Claim: no API name changes, and the output names no experimental command: verified.
  • Claim: old-versus-new agent test results: not posted yet.
  • Claim: the new test fails on main (2 of 2) and passes here, and the named doc suites pass: verified.
  • Claim: documentation only, with no internal context: verified.
  • File .changeset/icon-docs-theme-icons.md: clear.
  • File packages/cli/assets/docs/icons.doc.mjs: non-blocking note (line 22).
  • File packages/cli/test/icon-words.test.mjs: part of the finding (header, line 4).
  • File packages/core/src/Chat/ChatSendButton.doc.mjs: clear.
  • File packages/core/src/Icon/Icon.doc.mjs: part of the finding; non-blocking note (line 155).
  • File packages/core/src/Icon/useIcon.doc.mjs: part of the finding (lines 24 and 68 keep "Semantic icon name").
  • File packages/core/src/IconButton/IconButton.doc.mjs: clear.
  • File packages/core/src/InfoTip/InfoTip.doc.mjs: clear.
  • File packages/core/src/MoreMenu/MoreMenu.doc.mjs: clear.
  • File packages/richtext/src/RichTextEditor.doc.mjs: clear.

Automated review (maintainer link)

Comment thread packages/cli/test/icon-words.test.mjs Resolved
Comment thread packages/core/src/Icon/Icon.doc.mjs Resolved
Comment thread packages/cli/assets/docs/icons.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.

Changes requested: the Icon and IconButton openings now show how to draw any icon, but the release note still promises one set of icon words that three doc lines do not use yet.

  • The changeset says component docs and astryx docs icons call a name such as close a "built-in meaning", but Icon.doc.mjs:127 ("a semantic or namespaced name"), DropdownMenu.doc.mjs:32 ("Optional semantic or component icon") and icons.doc.mjs:67 ("not in the semantic list") still use the old word and the new test's pattern misses them, so please reword those three lines and widen the pattern, or narrow the claim to what changed.

Both earlier optional suggestions are done, the new test fails on main and passes here, and the published API surface is unchanged. Suggested wording is inline.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules since the last review (0): none.
  • Release note: the Icon and IconButton answers now open with how to draw an icon that is not built in (import from an icon library, pass the component): verified, the opening paragraph of both answers, default and dense (Icon.doc.mjs:155, IconButton.doc.mjs:139; second case of the new test).
  • Release note: component docs and the icons guide use one set of icon words, with a name such as close called a "built-in meaning": false, see the finding (Icon.doc.mjs:127, DropdownMenu.doc.mjs:32, icons.doc.mjs:67).
  • Release note: a theme's drawings are its "theme icons" and the type is still IconRegistry: verified; no "icon registry" or "registry" is left in that prose (new test, search), and the type is unchanged.
  • Release note: no API changes: verified; the API surface generator lists no row for core, richtext, build or the seven themes, and no CLI command doc changes.
  • Description: the first paragraph of both answers says how to draw any other icon: verified (CLI output).
  • Description: Icon takes a name or an SVG component, IconButton takes a node, and names resolve through the theme's icons: verified (Icon.tsx:194, IconButton.tsx:34, globalIconRegistry.tsx:223-247).
  • Description: the Icon (full, Chinese copy, dense) and IconButton (full, dense) first sentences carry the recipe: verified in substance; the recipe is in the opening paragraph, for Icon and full IconButton in its second sentence.
  • Description: registry wording becomes "theme icons" in the Icon, useIcon, InfoTip, MoreMenu, ChatSendButton and RichTextEditor docs and the icons guide, adding the registered and built-in fallbacks where the lookup is named: verified (icons.doc.mjs:22, useIcon.doc.mjs:24).
  • Description: "semantic icon name" becomes "built-in meaning" in every component doc's prose: the exact phrase is gone, but three lines still use "semantic" for the same names: false, see the finding.
  • Description: Icon's opening points to the full list with astryx component Icon --props: verified; that command prints the whole icon description with the list.
  • Description: keywords keep "icon registry" and "semantic icon", so a search still finds these pages: verified; no keyword changed and both searches list useIcon, Icon and the icons guide.
  • Description: no API name changes, and source JSDoc keeps its words: verified.
  • Description: stable output names no experimental command: verified; the new text names only astryx component Icon --props and astryx docs icons.
  • Description: the old-versus-new agent test results: stated by the author, not reproduced here.
  • Description: the listed components match the changed files, and the change is documentation only with no internal context: verified.
  • Description: the new test fails on main (2 of 2) and passes here, and the named doc suites pass (32 of 32): verified (2 of 2 fail on the base with the new test copied in; 36 of 36 pass on the head, two extra icon suites included).
  • File .changeset/icon-docs-theme-icons.md: the finding (line 7).
  • File packages/cli/assets/docs/icons.doc.mjs: the finding (line 67 keeps "the semantic list"); the rewritten lines are clear.
  • File packages/cli/test/icon-words.test.mjs: part of the finding (line 24's pattern misses the three lines).
  • File packages/core/src/Icon/Icon.doc.mjs: the finding (line 127 keeps "a semantic or namespaced name"); the rewritten lines are clear.
  • File packages/core/src/Chat/ChatSendButton.doc.mjs: clear.
  • File packages/core/src/CheckboxInput/CheckboxInput.doc.mjs: clear.
  • File packages/core/src/ComplexSelector/ComplexSelector.doc.mjs: clear.
  • File packages/core/src/ContextMenu/ContextMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs: clear.
  • File packages/core/src/Field/Field.doc.mjs: clear.
  • File packages/core/src/Field/FieldLabel.doc.mjs: clear.
  • File packages/core/src/Icon/useIcon.doc.mjs: clear.
  • File packages/core/src/IconButton/IconButton.doc.mjs: clear.
  • File packages/core/src/InfoTip/InfoTip.doc.mjs: clear.
  • File packages/core/src/MoreMenu/MoreMenu.doc.mjs: clear.
  • File packages/core/src/MultiSelector/MultiSelector.doc.mjs: clear.
  • File packages/core/src/NumberInput/NumberInput.doc.mjs: clear.
  • File packages/core/src/PowerSearch/PowerSearch.doc.mjs: clear.
  • File packages/core/src/Selector/Selector.doc.mjs: clear.
  • File packages/core/src/Selector/SelectorOption.doc.mjs: clear.
  • File packages/core/src/SideNav/SideNavItem.doc.mjs: clear.
  • File packages/core/src/Switch/Switch.doc.mjs: clear.
  • File packages/core/src/TextArea/TextArea.doc.mjs: clear.
  • File packages/core/src/TextInput/TextInput.doc.mjs: clear.
  • File packages/core/src/Tokenizer/Tokenizer.doc.mjs: clear.
  • File packages/core/src/Typeahead/Typeahead.doc.mjs: clear.
  • File packages/core/src/theme/useThemeName.doc.mjs: clear.
  • File packages/richtext/src/RichTextEditor.doc.mjs: clear.

Automated review (maintainer link)

Comment thread .changeset/icon-docs-theme-icons.md Resolved
Comment thread packages/cli/test/icon-words.test.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: required CI has not run on this head yet, because its commits carry [skip ci].

The Icon and IconButton answers now open with how to draw an icon that is not built in, and the three doc lines that still said "semantic" now say "built-in meaning", so the release note's one-vocabulary claim holds. The widened wording test fails on main and passes here, and the published API surface is unchanged.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules since the last review (0): none.
  • Release note: the Icon and IconButton answers now say first how to draw an icon that is not built in (import it from your icon library and pass the component): verified (Icon.doc.mjs:155, :307, :361, :364; IconButton.doc.mjs:139, :211, :214; CLI output; the new test's second case).
  • Release note: component docs and the icons guide use one set of icon words, with a name such as close called a "built-in meaning": verified; no doc prose in the package sources or the icons guide still uses "semantic" for these names (search; the new test).
  • Release note: a theme's drawings are its "theme icons", and the type is still IconRegistry: verified; no "icon registry" or bare "registry" is left in that prose, and IconRegistry is unchanged (globalIconRegistry.tsx:115).
  • Release note: no API changes, patch releases of core, cli and richtext: verified; the API surface generator lists no row for core, richtext, build or the seven themes, no CLI command doc changes, and those three packages are the ones whose files change.
  • Description: a reader of the Icon or IconButton answer learned that Icon takes an SVG component but not where to get one: verified on main's CLI output.
  • Description: icon takes a name or an SVG component, IconButton's icon takes a node, names resolve through the theme's icons, and the type is IconRegistry: verified (Icon.tsx:194, IconButton.tsx:34, globalIconRegistry.tsx:115, :223-247).
  • Description: the Icon (full, Chinese copy, dense) and IconButton (full, dense) openings carry the recipe: verified (lines above).
  • Description: registry wording becomes "theme icons" in the Icon, useIcon, InfoTip, MoreMenu, ChatSendButton and RichTextEditor docs and the icons guide, adding the registered and built-in fallbacks where the lookup is named: verified (useIcon.doc.mjs:24, icons.doc.mjs:22; the order in selectIconEntry).
  • Description: "semantic icon name" and its variants become "built-in meaning" in every component doc's prose, while "semantic" for colors, text types and HTML elements stays: verified (search; the new test).
  • Description: Icon's opening points to the full list with astryx component Icon --props: verified; that command prints the whole icon description with all 29 names.
  • Description: keywords keep "icon registry" and "semantic icon": verified (useIcon.doc.mjs:10, :12; no keyword changed).
  • Description: no API name changes; source JSDoc and the theme guides keep their words: verified (no source file changed; the theme guide still says "semantic icon names").
  • Description: stable output names no experimental command: verified; the new text names only astryx component Icon --props and astryx docs icons.
  • Description: the old-versus-new agent test results: stated by the author, not reproduced here.
  • Description: the listed components match the changed files, and the change is documentation only with no internal context: verified.
  • Description: the new test fails on main (2 of 2) and passes here, and the named doc suites pass (32 of 32): verified; 2 of 2 fail on main with the test copied in, and the six suites plus the new test (32 tests) pass here, as do two more icon suites.
  • File .changeset/icon-docs-theme-icons.md: clear; its one-vocabulary sentence now holds (line 7).
  • File packages/cli/assets/docs/icons.doc.mjs: clear; line 67 now says "icons that are not built-in meanings".
  • File packages/cli/test/icon-words.test.mjs: clear; the widened pattern (lines 26-27) fails on main for the lines it guards.
  • File packages/core/src/Chat/ChatSendButton.doc.mjs: clear.
  • File packages/core/src/Chat/ChatToolCalls.doc.mjs: clear; the status icon is now "the theme icons' success or error icon".
  • File packages/core/src/CheckboxInput/CheckboxInput.doc.mjs: clear.
  • File packages/core/src/ComplexSelector/ComplexSelector.doc.mjs: clear.
  • File packages/core/src/ContextMenu/ContextMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenu.doc.mjs: clear; line 32 now matches the Selector and Typeahead anatomy wording.
  • File packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs: clear.
  • File packages/core/src/Field/Field.doc.mjs: clear.
  • File packages/core/src/Field/FieldLabel.doc.mjs: clear.
  • File packages/core/src/Icon/Icon.doc.mjs: clear; the ref line (127) now says "a built-in meaning or namespaced key".
  • File packages/core/src/Icon/useIcon.doc.mjs: clear; "semantic purpose" is now "a meaning".
  • File packages/core/src/IconButton/IconButton.doc.mjs: clear.
  • File packages/core/src/InfoTip/InfoTip.doc.mjs: clear.
  • File packages/core/src/MoreMenu/MoreMenu.doc.mjs: clear.
  • File packages/core/src/MultiSelector/MultiSelector.doc.mjs: clear.
  • File packages/core/src/NumberInput/NumberInput.doc.mjs: clear.
  • File packages/core/src/PowerSearch/PowerSearch.doc.mjs: clear.
  • File packages/core/src/Selector/Selector.doc.mjs: clear.
  • File packages/core/src/Selector/SelectorOption.doc.mjs: clear.
  • File packages/core/src/SideNav/SideNavItem.doc.mjs: clear.
  • File packages/core/src/Switch/Switch.doc.mjs: clear.
  • File packages/core/src/TextArea/TextArea.doc.mjs: clear.
  • File packages/core/src/TextInput/TextInput.doc.mjs: clear.
  • File packages/core/src/Tokenizer/Tokenizer.doc.mjs: clear.
  • File packages/core/src/Typeahead/Typeahead.doc.mjs: clear.
  • File packages/core/src/theme/useThemeName.doc.mjs: clear.
  • File packages/richtext/src/RichTextEditor.doc.mjs: 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 pending CI: required CI has not run on this head yet, because its commits carry [skip ci].

In the newest commit, the Chinese copies of the component docs use the same icon words (内置含义, 主题图标), the icons guide and release note say a complete set is typed IconRegistry, and Rich Text's toolbar guidance names the registered fallback; each matches the source. The wording test now covers the Chinese copies, fails on main and passes here, and the published API surface is unchanged.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules since the last review (0): none.
  • Release note: the Icon and IconButton answers now say first how to draw an icon that is not built in (import it from your icon library and pass the component): verified (Icon.doc.mjs:155, :307, :361, :364; IconButton.doc.mjs:139, :211, :214; CLI output; the new test's second case).
  • Release note: component docs and the icons guide use one set of icon words, with a name such as close called a "built-in meaning": verified; no doc prose in the Core or Rich Text sources or the icons guide still uses "semantic" for these names, in English or Chinese (search; the new test).
  • Release note: a theme's drawings are its "theme icons", and a complete set is still typed IconRegistry: verified (globalIconRegistry.tsx:115, a record over every built-in name).
  • Release note: no API changes, patch releases of core, cli and richtext: verified; the API surface generator lists no row for core, richtext, build or the seven themes, no CLI command doc changes, and those three packages are the ones whose files change.
  • Description: a reader of the Icon or IconButton answer learned that Icon takes an SVG component but not where to get one: verified on main's CLI output.
  • Description: icon takes a name or an SVG component, IconButton's icon takes a node, names resolve through the theme's icons, and the type is IconRegistry: verified (Icon.tsx:194, IconButton.tsx:34, globalIconRegistry.tsx:115, :223-247).
  • Description: the Icon (full, Chinese copy, dense) and IconButton (full, dense) openings carry the recipe: verified (lines above).
  • Description: registry wording becomes "theme icons" in the Icon, useIcon, InfoTip, MoreMenu, ChatSendButton and RichTextEditor docs and the icons guide, adding the registered and built-in fallbacks where the lookup is named: verified (useIcon.doc.mjs:24, icons.doc.mjs:22; the order in selectIconEntry).
  • Description: "semantic icon name" and its variants become "built-in meaning" in every component doc's prose, while "semantic" for colors, text types and HTML elements stays: verified (search; the new test).
  • Description: Icon's opening points to the full list with astryx component Icon --props: verified; that command prints the whole icon description with all 29 names.
  • Description: the Chinese copies use 内置含义 for 语义图标名称 and 主题图标 for 图标注册表: verified; 21 Chinese lines change, and none of the old terms remains in Core or Rich Text docs (the Chinese theme guide keeps them, as the description defers theme guides).
  • Description: RichTextEditor names the full lookup, theme icons, else a registered drawing, else the bundled SVG: verified (RichTextEditor.doc.mjs:294; RichTextEditorToolbar.tsx:458-472 passes the bundled SVG as the fallback).
  • Description: keywords keep "icon registry" and "semantic icon": verified (useIcon.doc.mjs:10, :12; no keyword changed).
  • Description: no API name changes; source JSDoc and the theme guides keep their words: verified (no source file changed; both theme guides keep the old words).
  • Description: stable output names no experimental command: verified; the new text names only astryx component Icon --props and astryx docs icons.
  • Description: the old-versus-new agent test results: stated by the author, not reproduced here.
  • Description: the listed components match the changed files, and the change is documentation only with no internal context: verified.
  • Description: the new test checks English and Chinese prose and allows color wording such as "semantic color", fails on main (2 of 2) and passes here, and the named doc suites pass (32 of 32): verified; 2 of 2 fail on main with the test copied in, the six suites plus the new test (32 tests) pass here, and the new test also passes with this head merged onto main.
  • File .changeset/icon-docs-theme-icons.md: clear; "a complete set is still typed IconRegistry" matches the type.
  • File packages/cli/assets/docs/icons.doc.mjs: clear; line 22 now says a complete set is typed IconRegistry.
  • File packages/cli/test/icon-words.test.mjs: clear; the Chinese patterns (lines 30-31) fail on main for the lines they guard.
  • File packages/core/src/Chat/ChatSendButton.doc.mjs: clear; the Chinese defaults now say 主题图标.
  • File packages/core/src/Chat/ChatToolCalls.doc.mjs: clear.
  • File packages/core/src/CheckboxInput/CheckboxInput.doc.mjs: clear.
  • File packages/core/src/ComplexSelector/ComplexSelector.doc.mjs: clear.
  • File packages/core/src/ContextMenu/ContextMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenu.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs: clear.
  • File packages/core/src/Field/Field.doc.mjs: clear.
  • File packages/core/src/Field/FieldLabel.doc.mjs: clear.
  • File packages/core/src/Icon/Icon.doc.mjs: clear; the Chinese icon, variant and ref descriptions now say 内置含义.
  • File packages/core/src/Icon/useIcon.doc.mjs: clear.
  • File packages/core/src/IconButton/IconButton.doc.mjs: clear.
  • File packages/core/src/InfoTip/InfoTip.doc.mjs: clear.
  • File packages/core/src/MoreMenu/MoreMenu.doc.mjs: clear.
  • File packages/core/src/MultiSelector/MultiSelector.doc.mjs: clear.
  • File packages/core/src/NumberInput/NumberInput.doc.mjs: clear.
  • File packages/core/src/PowerSearch/PowerSearch.doc.mjs: clear.
  • File packages/core/src/Selector/Selector.doc.mjs: clear.
  • File packages/core/src/Selector/SelectorOption.doc.mjs: clear.
  • File packages/core/src/SideNav/SideNavItem.doc.mjs: clear.
  • File packages/core/src/Switch/Switch.doc.mjs: clear.
  • File packages/core/src/TextArea/TextArea.doc.mjs: clear.
  • File packages/core/src/TextInput/TextInput.doc.mjs: clear.
  • File packages/core/src/Tokenizer/Tokenizer.doc.mjs: clear.
  • File packages/core/src/Typeahead/Typeahead.doc.mjs: clear.
  • File packages/core/src/theme/useThemeName.doc.mjs: clear; now "picking which icon to show".
  • File packages/richtext/src/RichTextEditor.doc.mjs: clear; line 294 names the registered drawing before the bundled SVG.

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 pending CI: required CI has not run on this head yet; its commits carry [skip ci], and only the review-pass start job has run since the approval.

The newest commit adds the old and new icon words as search keywords on Icon and the icons guide; the guide's doc type declares that field, and the search rankings in the description reproduce row for row. Every other claim still holds, the wording test fails on main and passes here, and the published API surface is unchanged.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules since the last review (0): none.
  • Release note: the Icon and IconButton answers now say first how to draw an icon that is not built in: verified (Icon.doc.mjs:160, :312, :366, :369; IconButton.doc.mjs:139, :211, :214; CLI output; the new test's second case).
  • Release note: component docs and the icons guide use one set of icon words, a name such as close being a "built-in meaning" and a theme's drawings its "theme icons", with a complete set still typed IconRegistry: verified (globalIconRegistry.tsx:115; the new test's first case; no such prose left in the Core or Rich Text docs or the icons guide).
  • Release note: no API changes; patch releases of core, cli and richtext: verified; the API surface generator lists no changed row in any published package, and those are the three packages whose files change.
  • Description: before this change, the Icon and IconButton answers say Icon takes an SVG component but not where to get one: verified on the base's CLI output.
  • Description: icon takes a name or an SVG component, IconButton's icon takes a node, and names resolve through the theme's icons with the type IconRegistry: verified (Icon.tsx:171, :194; IconButton.tsx:34; globalIconRegistry.tsx:115, :223-247).
  • Description: the Icon (full, Chinese copy, dense) and IconButton (full, dense) openings carry the recipe: verified (lines above).
  • Description: registry wording becomes "theme icons" in the Icon, useIcon, InfoTip, MoreMenu, ChatSendButton and Rich Text docs and the icons guide, naming the registered and built-in fallbacks where the lookup is described: verified (InfoTip.doc.mjs:15, MoreMenu.doc.mjs:15, ChatSendButton.doc.mjs:35, :49, :133-134, useIcon.doc.mjs:24, icons.doc.mjs:23; the order in selectIconEntry).
  • Description: "semantic icon name" and its variants become "built-in meaning" in every component doc's prose, while "semantic" for colors, text types and HTML elements stays: verified (the new test; a search of the remaining "semantic" prose).
  • Description: Icon's opening points to the full list with astryx component Icon --props: verified; that read prints all 29 names.
  • Description: the Chinese copies use 内置含义 and 主题图标: verified (the test's Chinese patterns fail on the base and pass here).
  • Description: Rich Text names the full lookup, theme icons, else a registered drawing, else the bundled SVG: verified (RichTextEditor.doc.mjs:294; RichTextEditorToolbar.tsx:463-472).
  • Description: Icon and the icons guide gain the old and new words as keywords, and useIcon already had the old ones: verified (Icon.doc.mjs:21-25, icons.doc.mjs:12, useIcon.doc.mjs:10-12).
  • Description: no API name changes, and source JSDoc, the theme guides and the icon-definitions guide keep their words: verified (no source file or guide outside the list changes).
  • Description: stable output names no experimental command: verified.
  • Description: the old-versus-new agent test results: stated by the author, not reproduced here.
  • Description: the search top-five table, and old words still finding the same pages: verified; all five rows reproduce exactly on the base and on this head.
  • Description: the listed components match the changed files, and the change is documentation only with no internal context: verified.
  • Description: the new test fails on main (2 of 2) and passes here, and the named doc suites pass (32 of 32): verified; 2 of 2 fail on the base with the test copied in, the six suites plus the new test run 32 of 32 here, and the new test also passes with this head merged onto current main.
  • File .changeset/icon-docs-theme-icons.md: clear; patch notes for the three packages whose files change, and the IconRegistry wording matches the type.
  • File packages/cli/assets/docs/icons.doc.mjs: clear; the new keywords use the declared keywords field, and the lookup sentence matches the resolver order.
  • File packages/cli/test/icon-words.test.mjs: clear; fails 2 of 2 on the base with the file copied in, passes here.
  • File packages/core/src/Chat/ChatSendButton.doc.mjs: clear.
  • File packages/core/src/Chat/ChatToolCalls.doc.mjs: clear.
  • File packages/core/src/CheckboxInput/CheckboxInput.doc.mjs: clear.
  • File packages/core/src/ComplexSelector/ComplexSelector.doc.mjs: clear.
  • File packages/core/src/ContextMenu/ContextMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenu.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs: clear.
  • File packages/core/src/Field/Field.doc.mjs: clear.
  • File packages/core/src/Field/FieldLabel.doc.mjs: clear.
  • File packages/core/src/Icon/Icon.doc.mjs: clear; the new keywords sit outside the prose the test reads, and the openings carry the recipe.
  • File packages/core/src/Icon/useIcon.doc.mjs: clear; the lookup wording matches the resolver order.
  • File packages/core/src/IconButton/IconButton.doc.mjs: clear; both openings carry the recipe.
  • File packages/core/src/InfoTip/InfoTip.doc.mjs: clear.
  • File packages/core/src/MoreMenu/MoreMenu.doc.mjs: clear.
  • File packages/core/src/MultiSelector/MultiSelector.doc.mjs: clear.
  • File packages/core/src/NumberInput/NumberInput.doc.mjs: clear.
  • File packages/core/src/PowerSearch/PowerSearch.doc.mjs: clear.
  • File packages/core/src/Selector/Selector.doc.mjs: clear.
  • File packages/core/src/Selector/SelectorOption.doc.mjs: clear.
  • File packages/core/src/SideNav/SideNavItem.doc.mjs: clear.
  • File packages/core/src/Switch/Switch.doc.mjs: clear.
  • File packages/core/src/TextArea/TextArea.doc.mjs: clear.
  • File packages/core/src/TextInput/TextInput.doc.mjs: clear.
  • File packages/core/src/Tokenizer/Tokenizer.doc.mjs: clear.
  • File packages/core/src/Typeahead/Typeahead.doc.mjs: clear.
  • File packages/core/src/theme/useThemeName.doc.mjs: clear.
  • File packages/richtext/src/RichTextEditor.doc.mjs: clear; the lookup matches the toolbar's resolver.

Automated review (maintainer link)

@josephfarina josephfarina changed the title docs(icons): Icon and IconButton say how to draw any icon; docs say "theme icons" docs(icons): Icon and IconButton say how to draw any icon; component docs say "built-in meaning" and "theme icons" Nov 19, 2026
@josephfarina
josephfarina marked this pull request as ready for review November 19, 2026 23:16

@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 docs, the wording test and the regenerated goldens are right, but the description's Testing bullet understates what the goldens change.

  • The Testing bullet says close only moves Drawer up one place and icon set swaps two low-ranked components, but the goldens move Drawer from 6th to 2nd, add Icon and IconButton at 8th and 9th while two icons-guide sections leave the top 20, and replace results 14 to 20 of icon set (NavIcon through InternationalizationProvider) with Thumbnail and six template blocks; please edit the bullet to say so.

Every other claim holds, the published API surface is unchanged, and the goldens pass the experimental-isolation suite here and with current main merged in. Required CI has not run on this head because its commits carry [skip ci].

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules since the last review (0): none.
  • Release note: the Icon and IconButton answers now say first how to draw an icon that is not built in: verified (Icon.doc.mjs:160, :312, :366, :369; IconButton.doc.mjs:139, :211, :214; the wording test's second case).
  • Release note: component docs and the icons guide use one set of icon words ("built-in meaning", "theme icons"), with a complete set still typed IconRegistry: verified (globalIconRegistry.tsx:115; the wording test's first case passes here).
  • Release note: no API changes; patch releases of core, cli and richtext: verified; the API surface generator lists 0 changed rows in every published package, and those are the three packages whose files change.
  • Description: the author reports preflight passing at the previous head: stated by the author, not reproduced.
  • Description: this head only adds regenerated goldens on top, moving search goldens and the docs-topics digest: verified; one commit changes 7 golden files, and the search golden changes only its count.
  • Description: the experimental-isolation suite passes 54 of 54 at this head: verified.
  • Description: 57 of 57 pass with the wording test on main plus this change: 56 of 57 pass with this head merged into current main; the 57th lists repository files with git, which the review's copy cannot run.
  • Description: before this change, the Icon and IconButton answers say Icon takes an SVG component but not where to get one: verified on the base's docs.
  • Description: icon takes a name or an SVG component, IconButton's icon takes a node, and names resolve through the theme's icons with the type IconRegistry: verified (Icon.tsx:171, :194; IconButton.tsx:34; globalIconRegistry.tsx:115, :223-247).
  • Description: the Icon (full, Chinese copy, dense) and IconButton (full, dense) openings carry the recipe: verified (lines above).
  • Description: registry wording becomes "theme icons" in the Icon, useIcon, InfoTip, MoreMenu, ChatSendButton and Rich Text docs and the icons guide, naming the registered and built-in fallbacks where the lookup is described: verified (the order in selectIconEntry).
  • Description: "semantic icon name" and its variants become "built-in meaning" in every component doc's prose, while "semantic" for colors, text types and HTML elements stays: verified (the wording test).
  • Description: Icon's opening points to the full list with astryx component Icon --props: verified; that read prints all 29 names.
  • Description: the Chinese copies use 内置含义 and 主题图标: verified (the test's Chinese patterns pass here).
  • Description: Rich Text names the full lookup, theme icons, else a registered drawing, else the bundled SVG: verified (RichTextEditor.doc.mjs:294).
  • Description: Icon and the icons guide gain the old and new words as keywords, and useIcon already had the old ones: verified (Icon.doc.mjs:21-25, icons.doc.mjs:12, useIcon.doc.mjs:8-12).
  • Description: no API name changes, and source JSDoc, the theme guides and the icon-definitions guide keep their words: verified.
  • Description: stable output names no experimental command: verified (the suite's leak checks pass).
  • Description: the old-versus-new agent test results: stated by the author, not reproduced.
  • Description: the search top-five table, and old words still finding the same pages: verified at the previous head; no doc file changed since.
  • Description: the listed components match the changed files, and the change is documentation only with no internal context: verified.
  • Description: the new wording test fails on main (2 of 2) and passes here: verified (passes 2 of 2 here; failed 2 of 2 on the base at the previous head, docs unchanged since).
  • Description: the test walks every string itself because the shared prose walker skips props, name, title and label: verified (copied-passages.mjs:62-82).
  • Description: in the goldens, close gains one match and search gains one: verified (51 to 52, 116 to 117).
  • Description: in the goldens, Drawer moves up one place in close: false; Drawer moves from 6th to 2nd, Icon and IconButton enter at 8th and 9th, and two icons-guide sections leave the top 20.
  • Description: in the goldens, icon set with no icon set swaps two low-ranked components: false; results 14 to 20 change, seven components giving way to Thumbnail and six template blocks.
  • Description: no golden names an icon set or experimental surface: verified (the suite's leak checks pass).
  • Description: the six named doc suites pass (32 of 32): verified; the six suites and the wording test run 32 of 32 here.
  • File .changeset/icon-docs-theme-icons.md: clear; patch notes for the three packages whose files change, and the IconRegistry wording matches the type.
  • File packages/cli/assets/docs/icons.doc.mjs: clear; the keywords use the declared field, and the lookup sentence matches the resolver order.
  • File packages/cli/test/__golden__/no-icon-set/docs-topics.json: clear; equals the CLI's output at this head.
  • File packages/cli/test/__golden__/no-icon-set/search-close.json: clear; equals the CLI's output at this head (the suite passes 54 of 54); the description misstates it (finding above).
  • File packages/cli/test/__golden__/no-icon-set/search-close.txt: clear; equals the CLI's output at this head (the suite passes 54 of 54); the description misstates it (finding above).
  • File packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear; equals the CLI's output at this head (the suite passes 54 of 54); the description misstates it (finding above).
  • File packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear; equals the CLI's output at this head (the suite passes 54 of 54); the description misstates it (finding above).
  • File packages/cli/test/__golden__/no-icon-set/search-search.json: clear; equals the CLI's output at this head.
  • File packages/cli/test/__golden__/no-icon-set/search-search.txt: clear; equals the CLI's output at this head.
  • File packages/cli/test/icon-words.test.mjs: clear; passes 2 of 2 here.
  • File packages/core/src/Chat/ChatSendButton.doc.mjs: clear.
  • File packages/core/src/Chat/ChatToolCalls.doc.mjs: clear.
  • File packages/core/src/CheckboxInput/CheckboxInput.doc.mjs: clear.
  • File packages/core/src/ComplexSelector/ComplexSelector.doc.mjs: clear.
  • File packages/core/src/ContextMenu/ContextMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenu.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs: clear.
  • File packages/core/src/Field/Field.doc.mjs: clear.
  • File packages/core/src/Field/FieldLabel.doc.mjs: clear.
  • File packages/core/src/InfoTip/InfoTip.doc.mjs: clear.
  • File packages/core/src/MoreMenu/MoreMenu.doc.mjs: clear.
  • File packages/core/src/MultiSelector/MultiSelector.doc.mjs: clear.
  • File packages/core/src/NumberInput/NumberInput.doc.mjs: clear.
  • File packages/core/src/PowerSearch/PowerSearch.doc.mjs: clear.
  • File packages/core/src/Selector/Selector.doc.mjs: clear.
  • File packages/core/src/Selector/SelectorOption.doc.mjs: clear.
  • File packages/core/src/SideNav/SideNavItem.doc.mjs: clear.
  • File packages/core/src/Switch/Switch.doc.mjs: clear.
  • File packages/core/src/TextArea/TextArea.doc.mjs: clear.
  • File packages/core/src/TextInput/TextInput.doc.mjs: clear.
  • File packages/core/src/Tokenizer/Tokenizer.doc.mjs: clear.
  • File packages/core/src/Typeahead/Typeahead.doc.mjs: clear.
  • File packages/core/src/theme/useThemeName.doc.mjs: clear.
  • File packages/core/src/Icon/Icon.doc.mjs: clear; the openings carry the recipe, and the keywords sit outside the prose the test reads.
  • File packages/core/src/Icon/useIcon.doc.mjs: clear; the lookup wording matches the resolver order.
  • File packages/core/src/IconButton/IconButton.doc.mjs: clear; both openings carry the recipe.
  • File packages/richtext/src/RichTextEditor.doc.mjs: clear; the lookup matches the toolbar's resolver.

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 pending CI: required CI has not run on this head yet, because its commits carry [skip ci].

The Icon and IconButton answers now open with how to draw an icon that is not built in, component docs and the icons guide use "built-in meaning" and "theme icons" in English and Chinese, and the Testing bullet now states exactly what the regenerated goldens change. The wording test fails on main and passes here, and the published API surface is unchanged.

Claims and files checked

Review mode: full; reason: rebase

  • Release note: the Icon and IconButton answers say first how to draw an icon that is not built in (import its drawing, pass the component): verified (Icon.doc.mjs:160, :312, :366, :369; IconButton.doc.mjs:139, :211, :214; CLI output).
  • Release note: component docs and astryx docs icons call a name such as close a "built-in meaning" and a theme's drawings its "theme icons", with a complete set still typed IconRegistry: verified (the wording test; globalIconRegistry.tsx:115).
  • Release note: no API changes, with patch notes for core, cli and richtext: verified; the API surface generator lists no changed row, those are the three packages whose files change, and the changeset check passes.
  • Description: before this change, the answers say Icon takes an SVG component but not where to get one: verified on main's CLI output.
  • Description: icon takes a name or an SVG component, IconButton's icon takes a node, and names resolve through the theme's icons with the type IconRegistry: verified (Icon.tsx:194, IconButton.tsx:34, globalIconRegistry.tsx:115, :223-247).
  • Description: the Icon openings (full, Chinese copy, dense) and IconButton openings (full, dense) carry the recipe: verified; the full IconButton copy writes the built-in example as <Icon icon="close" /> after "pass an Icon as icon".
  • Description: registry wording becomes "theme icons" in the Icon, useIcon, InfoTip, MoreMenu, ChatSendButton and Rich Text docs and the icons guide, naming the registered and built-in fallbacks where the lookup is described: verified (the order in selectIconEntry).
  • Description: "semantic icon name" and its variants become "built-in meaning" in every component doc's prose, while "semantic" for colors, text types and HTML elements stays: verified (the wording test; a search of every package's component docs).
  • Description: Icon's opening points to astryx component Icon --props for the full list: verified; that read prints all 29 names.
  • Description: the Chinese copies use 内置含义 and 主题图标: verified (the test's Chinese patterns fail on main and pass here).
  • Description: Rich Text names theme icons, else a registered drawing, else the bundled SVG: verified (RichTextEditor.doc.mjs:294; RichTextEditorToolbar.tsx:463-472).
  • Description: Icon and the icons guide gain the old and new words as keywords, and useIcon already had the old ones: verified (Icon.doc.mjs:20-24, icons.doc.mjs:12, useIcon.doc.mjs:8-12).
  • Description: no API name changes, and source JSDoc, the theme guides and the icon-definitions guide keep their words: verified.
  • Description: stable output names no experimental command: verified (the isolation suite's leak checks pass).
  • Description: the old-versus-new agent test results: stated by the author, not reproduced.
  • Description: the astryx search top-five table: verified; all five rows reproduce on main and on this head.
  • Description: the scope lists the changed components, and the change is documentation only with no internal context: verified.
  • Description: the new test fails on main (2 of 2) and passes here: verified.
  • Description: the test walks every string itself because the shared prose walker skips props, name, title and label: verified (copied-passages.mjs:62-84).
  • Description: the goldens move as listed (close 52 to 53 with Drawer 6th to 2nd, Icon and IconButton entering 8th and 9th and two icons-guide sections leaving; search 117 to 118 with its top 20 unchanged; icon set places 14 to 20 giving way to Thumbnail and six template blocks; the docs-topics digest): verified against the goldens on main and here.
  • Description: no golden names an icon set or an experimental surface: verified (the suite's leak checks pass).
  • Description: the four named suites pass 73 of 73 and the other four pass: verified in substance; 72 of 73 here, the 73rd lists repository files with git, which this review's copy cannot run, and the other four pass at this head.
  • File .changeset/icon-docs-theme-icons.md: clear; patch notes for the three packages whose files change, and the IconRegistry wording matches the type.
  • File packages/cli/assets/docs/icons.doc.mjs: clear; the keywords use the declared field, and the lookup sentence matches the resolver order.
  • File packages/cli/test/__golden__/no-icon-set/docs-topics.json: clear; equals the CLI output at this head.
  • File packages/cli/test/__golden__/no-icon-set/search-close.json: clear; equals the CLI output at this head, and the description now states its moves.
  • File packages/cli/test/__golden__/no-icon-set/search-close.txt: clear; equals the CLI output at this head, and the description now states its moves.
  • File packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear; equals the CLI output at this head, and the description now states its moves.
  • File packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear; equals the CLI output at this head, and the description now states its moves.
  • File packages/cli/test/__golden__/no-icon-set/search-search.json: clear; only the match count changes.
  • File packages/cli/test/__golden__/no-icon-set/search-search.txt: clear; only the match count changes.
  • File packages/cli/test/icon-words.test.mjs: clear; fails 2 of 2 on main with the file copied in, passes here.
  • File packages/core/src/Chat/ChatSendButton.doc.mjs: clear.
  • File packages/core/src/Chat/ChatToolCalls.doc.mjs: clear.
  • File packages/core/src/CheckboxInput/CheckboxInput.doc.mjs: clear.
  • File packages/core/src/ComplexSelector/ComplexSelector.doc.mjs: clear.
  • File packages/core/src/ContextMenu/ContextMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenu.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs: clear.
  • File packages/core/src/Field/Field.doc.mjs: clear.
  • File packages/core/src/Field/FieldLabel.doc.mjs: clear.
  • File packages/core/src/Icon/Icon.doc.mjs: clear; the openings carry the recipe, and the keywords sit outside the prose the test reads.
  • File packages/core/src/Icon/useIcon.doc.mjs: clear; the lookup wording matches the resolver order.
  • File packages/core/src/IconButton/IconButton.doc.mjs: clear; both openings carry the recipe.
  • File packages/core/src/InfoTip/InfoTip.doc.mjs: clear.
  • File packages/core/src/MoreMenu/MoreMenu.doc.mjs: clear.
  • File packages/core/src/MultiSelector/MultiSelector.doc.mjs: clear.
  • File packages/core/src/NumberInput/NumberInput.doc.mjs: clear.
  • File packages/core/src/PowerSearch/PowerSearch.doc.mjs: clear.
  • File packages/core/src/Selector/Selector.doc.mjs: clear.
  • File packages/core/src/Selector/SelectorOption.doc.mjs: clear.
  • File packages/core/src/SideNav/SideNavItem.doc.mjs: clear.
  • File packages/core/src/Switch/Switch.doc.mjs: clear.
  • File packages/core/src/TextArea/TextArea.doc.mjs: clear.
  • File packages/core/src/TextInput/TextInput.doc.mjs: clear.
  • File packages/core/src/Tokenizer/Tokenizer.doc.mjs: clear.
  • File packages/core/src/Typeahead/Typeahead.doc.mjs: clear.
  • File packages/core/src/theme/useThemeName.doc.mjs: clear.
  • File packages/richtext/src/RichTextEditor.doc.mjs: clear; the lookup matches the toolbar's resolver.

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 pending CI: required CI has not run on this head yet, because its commits carry [skip ci].

The Icon and IconButton answers open with how to draw an icon that is not built in, and component docs and the icons guide use "built-in meaning" and "theme icons" in English and Chinese. The new compatibility note in the release note names the three deprecated field ids that the re-ranked icon set search sample no longer carries and explains why scripts built on 0.7.17 keep working, so the release-note coverage check against 0.7.17 now passes. The published API surface is unchanged.

Claims and files checked

Review mode: incremental; reason: none

  • Release note: the Icon and IconButton answers say first how to draw an icon that is not built in (import its drawing from your icon library, pass the component): verified (Icon.doc.mjs:160, :312, :366, :369; IconButton.doc.mjs:139, :211, :214; CLI output).
  • Release note: component docs and astryx docs icons use "built-in meaning" and "theme icons", and a complete set is still typed IconRegistry: verified (the wording test; globalIconRegistry.tsx:115).
  • Release note: no API changes, with patch notes for core, cli and richtext: verified; the API surface generator lists no changed row, and those are the three packages whose files change.
  • Release note, compatibility: the re-ranked icon set sample has no deprecated component in its top 20 and no longer carries search.data.results[].deprecated, .deprecated.description or .deprecated.replacement: verified (the search-icon-set.json golden; BottomSheetSwitcher was 16th before); the release-note coverage check against 0.7.17 passes and fails without this note.
  • Release note, compatibility: a script built on 0.7.17 keeps working because search still writes deprecated with description and replacement on every deprecated component it returns: verified (packages/cli/api/search/_result.mjs:53; the field is optional in search.type.mjs:38 here and in 0.7.17; the close golden still carries it).
  • Description: before this change, the answers say Icon takes an SVG component but not where to get one: verified on the base's CLI output.
  • Description: icon takes a name or an SVG component, IconButton's icon takes a node, and names resolve through the theme's icons with the type IconRegistry: verified (Icon.tsx:194, IconButton.tsx:34, globalIconRegistry.tsx:115, :223-247).
  • Description: the Icon openings (full, Chinese copy, dense) and IconButton openings (full, dense) carry the recipe: verified; the full IconButton copy writes the built-in example as <Icon icon="close" /> after "pass an Icon as icon".
  • Description: registry wording becomes "theme icons" in the Icon, useIcon, InfoTip, MoreMenu, ChatSendButton and Rich Text docs and the icons guide, naming the registered and built-in fallbacks where the lookup is described: verified (the order in selectIconEntry).
  • Description: "semantic icon name" and its variants become "built-in meaning" in every component doc's prose, while "semantic" for colors, text types and HTML elements stays: verified (the wording test passes here and finds 107 retired words on the base).
  • Description: Icon's opening points to astryx component Icon --props for the full list: verified; that read prints all 29 names.
  • Description: the Chinese copies use 内置含义 and 主题图标: verified (the test's Chinese patterns).
  • Description: Rich Text names theme icons, else a registered drawing, else the bundled SVG: verified (RichTextEditor.doc.mjs:294; RichTextEditorToolbar.tsx:458-472).
  • Description: Icon and the icons guide gain the old and new words as keywords, and useIcon already had the old ones: verified (Icon.doc.mjs:21-25, icons.doc.mjs:12, useIcon.doc.mjs:8-14).
  • Description: no API name changes, and source JSDoc, the theme guides and the icon-definitions guide keep their words: verified (no source file changes; those guides are unchanged).
  • Description: stable output names no experimental command: verified (the isolation suite's leak checks pass).
  • Description: the old-versus-new agent test results: stated by the author, not reproduced.
  • Description: the astryx search top-five table: verified; all five rows reproduce on the base and on this head.
  • Description: the scope lists the changed components, and the change is documentation only with no internal context: verified.
  • Description: the new test fails on main (2 of 2) and passes here: verified.
  • Description: the test walks every string itself because the shared prose walker skips props, name, title and label: verified (copied-passages.mjs:62-84).
  • Description: the goldens move as listed (close 52 to 53 with Drawer 6th to 2nd, Icon and IconButton 8th and 9th, two icons-guide sections leaving; search 117 to 118 with its top 20 unchanged; icon set places 14 to 20 giving way to Thumbnail and six template blocks; the docs-topics digest): verified against the goldens on the base and here.
  • Description: no golden names an icon set or an experimental surface: verified (the suite's leak checks pass).
  • Description: the four named suites pass 73 of 73 and the other four pass: verified in substance; 72 of 73 here, the 73rd lists repository files with git, which this copy cannot run, and the other four pass.
  • File .changeset/icon-docs-theme-icons.md: clear; patch notes for the three packages whose files change, and the new compatibility paragraph names exactly the three ids the coverage check requires.
  • File packages/cli/assets/docs/icons.doc.mjs: clear; the keywords use the declared field, and the lookup sentence matches the resolver order.
  • File packages/cli/test/__golden__/no-icon-set/docs-topics.json: clear; equals the CLI output at this head.
  • File packages/cli/test/__golden__/no-icon-set/search-close.json: clear; equals the CLI output at this head, and the description states its moves.
  • File packages/cli/test/__golden__/no-icon-set/search-close.txt: clear; equals the CLI output at this head, and the description states its moves.
  • File packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear; equals the CLI output at this head; the dropped deprecated entry is covered by the release note.
  • File packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear; equals the CLI output at this head, and the description states its moves.
  • File packages/cli/test/__golden__/no-icon-set/search-search.json: clear; only the match count changes.
  • File packages/cli/test/__golden__/no-icon-set/search-search.txt: clear; only the match count changes.
  • File packages/cli/test/icon-words.test.mjs: clear; fails 2 of 2 on the base with the file copied in, passes here.
  • File packages/core/src/Chat/ChatSendButton.doc.mjs: clear.
  • File packages/core/src/Chat/ChatToolCalls.doc.mjs: clear.
  • File packages/core/src/CheckboxInput/CheckboxInput.doc.mjs: clear.
  • File packages/core/src/ComplexSelector/ComplexSelector.doc.mjs: clear.
  • File packages/core/src/ContextMenu/ContextMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenu.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs: clear.
  • File packages/core/src/Field/Field.doc.mjs: clear.
  • File packages/core/src/Field/FieldLabel.doc.mjs: clear.
  • File packages/core/src/Icon/Icon.doc.mjs: clear; the openings carry the recipe, and the keywords sit outside the prose the test reads.
  • File packages/core/src/Icon/useIcon.doc.mjs: clear; the lookup wording matches the resolver order.
  • File packages/core/src/IconButton/IconButton.doc.mjs: clear; both openings carry the recipe.
  • File packages/core/src/InfoTip/InfoTip.doc.mjs: clear.
  • File packages/core/src/MoreMenu/MoreMenu.doc.mjs: clear.
  • File packages/core/src/MultiSelector/MultiSelector.doc.mjs: clear.
  • File packages/core/src/NumberInput/NumberInput.doc.mjs: clear.
  • File packages/core/src/PowerSearch/PowerSearch.doc.mjs: clear.
  • File packages/core/src/Selector/Selector.doc.mjs: clear.
  • File packages/core/src/Selector/SelectorOption.doc.mjs: clear.
  • File packages/core/src/SideNav/SideNavItem.doc.mjs: clear.
  • File packages/core/src/Switch/Switch.doc.mjs: clear.
  • File packages/core/src/TextArea/TextArea.doc.mjs: clear.
  • File packages/core/src/TextInput/TextInput.doc.mjs: clear.
  • File packages/core/src/Tokenizer/Tokenizer.doc.mjs: clear.
  • File packages/core/src/Typeahead/Typeahead.doc.mjs: clear.
  • File packages/core/src/theme/useThemeName.doc.mjs: clear.
  • File packages/richtext/src/RichTextEditor.doc.mjs: clear; the lookup matches the toolbar's resolver.

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 pending CI: required CI has not run on this head yet, because its commit carries [skip ci], so the required checks still have to run and pass before merge.

The restored icons-guide description keeps the new words, leaves every search sample unchanged and keeps main's top results for the query it was restored for; the docs, the wording test, the regenerated search samples and the release note still hold, and the published API surface is unchanged.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none
  • Release note: the Icon and IconButton answers now say in their opening paragraph how to draw an icon that is not built in, by passing any SVG component such as <Icon icon={TrashIcon} />: verified (Icon.doc.mjs:159, :311, :368; IconButton.doc.mjs:139, :211, :214; CLI output at this head).
  • Release note: component docs and astryx docs icons use "built-in meaning" and "theme icons", and a complete set is still typed IconRegistry: verified (the wording test passes; globalIconRegistry.tsx:115).
  • Release note: no API changes, with patch notes for core, cli and richtext: verified; the built API surfaces are identical and the changeset coverage check passes.
  • Release note, compatibility: the re-ranked icon set sample has no deprecated component in its top 20 and drops the three deprecated fields, while search still writes them for every deprecated component: verified (search-icon-set.json golden; packages/cli/api/search/_result.mjs:53; coverage check against 0.7.17).
  • Description: before this change the answers say Icon takes an SVG component but not where one comes from: verified on the base's CLI output.
  • Description: icon takes a name or an SVG component, IconButton's icon takes a node, and names resolve through the theme's icons with the type IconRegistry: verified (Icon.tsx:194, IconButton.tsx:34, globalIconRegistry.tsx:115, :223-247).
  • Description: the Icon openings (full, Chinese copy, dense) and IconButton openings (full, dense) keep their first sentences and add both routes: verified.
  • Description: neither opening names an import path: verified.
  • Description: registry wording becomes "theme icons" in the Icon, useIcon, InfoTip, MoreMenu, ChatSendButton and Rich Text docs and the icons guide, adding the registered and built-in fallbacks where the lookup is named: verified (resolver order in selectIconEntry).
  • Description: "semantic icon name" and its variants leave every component doc's prose, the listed lines are reworded as stated, and "semantic" for colors, text types and HTML elements stays: verified (the wording test passes; Icon's color prop keeps "Semantic values").
  • Description: Icon's opening points to astryx component Icon --props for the full list: verified; that read prints all 29 names.
  • Description: the Chinese copies use the new words: verified.
  • Description: Rich Text names theme icons, else a registered drawing, else the bundled SVG: verified (RichTextEditorToolbar.tsx:463-472, globalIconRegistry.tsx:401-410).
  • Description: Icon and the icons guide gain the old and new words as keywords, useIcon already had "icon registry", and Icon takes no "icon registry" keyword: verified (Icon.doc.mjs:18-25, icons.doc.mjs:12, useIcon.doc.mjs:12); build reads component keywords (packages/cli/api/build/kit/signals.mjs:119); the moved page request is the author's measurement.
  • Description: a search for "icon registry" still finds useIcon, the icons guide and Icon in its top five: verified (Icon is 5th).
  • Description: the astryx search top-five table: verified; every row reproduces on main and on this head.
  • Description: searches with the old words still find the same pages and the new words now find them: verified.
  • Description: no API name changes; source JSDoc, the theme guides and the icon-definitions guide keep their words: verified.
  • Description: stable output names no experimental command, and no golden names an icon set or an experimental surface: verified (the isolation suite's leak checks pass).
  • Description: the old-versus-new agent test: stated by the author, not reproduced.
  • Description: the astryx build labeled-request run (0 right to wrong, 0 wrong to right): stated by the author; the request set is not in the repository.
  • Description: the top three for the six queries a docs gate flagged are identical on main and this head, and the icons guide keeps its "available in the design system" description for the last one: verified (icons.doc.mjs:14; "status system event icon" returns ItemWithMetadata, icons, useInputStatusIcon on both).
  • Description: the new test fails on main (2 of 2) and passes here: verified (base with the head's test file: 2 failures).
  • Description: the test walks every string itself because the shared prose walker skips props, name, title and label: verified (packages/cli/foundation/discovery/copied-passages.mjs:62-84).
  • Description: the goldens move as listed (close 52 to 53 with Drawer 6th to 2nd, Icon and IconButton 8th and 9th, the two icons-guide sections leaving the top 20; search unchanged; icon set places 14 to 20; the docs-topics digest): verified; the goldens equal the CLI output at this head.
  • Description: the named suites pass (55 of 55; 32 of 32): verified.
  • Description: the scope lists the changed components, and the change is documentation only with no internal context: verified.
  • File .changeset/icon-docs-theme-icons.md: clear; the package list, the opening sentence and the Compatibility paragraph hold.
  • File packages/cli/assets/docs/icons.doc.mjs: clear; the keywords use the declared field, the lookup sentence matches the resolver order, and the restored description keeps the new words.
  • File packages/cli/test/__golden__/no-icon-set/docs-topics.json: clear; equals the CLI output at this head.
  • File packages/cli/test/__golden__/no-icon-set/search-close.json: clear; equals the CLI output at this head.
  • File packages/cli/test/__golden__/no-icon-set/search-close.txt: clear; equals the CLI output, and the description states its moves.
  • File packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear; equals the CLI output at this head.
  • File packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear; equals the CLI output, and the description states places 14 to 20.
  • File packages/cli/test/icon-words.test.mjs: clear; passes here and fails on the base (2 of 2).
  • File packages/core/src/Chat/ChatSendButton.doc.mjs: clear; the defaults come from the theme icons (arrowUp, stop).
  • File packages/core/src/Chat/ChatToolCalls.doc.mjs: clear.
  • File packages/core/src/CheckboxInput/CheckboxInput.doc.mjs: clear.
  • File packages/core/src/ComplexSelector/ComplexSelector.doc.mjs: clear.
  • File packages/core/src/ContextMenu/ContextMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenu.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs: clear.
  • File packages/core/src/Field/Field.doc.mjs: clear.
  • File packages/core/src/Field/FieldLabel.doc.mjs: clear.
  • File packages/core/src/Icon/Icon.doc.mjs: clear; the full, Chinese-copy and dense openings name both routes and no import path.
  • File packages/core/src/Icon/useIcon.doc.mjs: clear; the lookup wording matches the resolver order.
  • File packages/core/src/IconButton/IconButton.doc.mjs: clear; the full and dense openings name both routes.
  • File packages/core/src/InfoTip/InfoTip.doc.mjs: clear.
  • File packages/core/src/MoreMenu/MoreMenu.doc.mjs: clear; the trigger draws moreHorizontal through the theme icons.
  • File packages/core/src/MultiSelector/MultiSelector.doc.mjs: clear.
  • File packages/core/src/NumberInput/NumberInput.doc.mjs: clear.
  • File packages/core/src/PowerSearch/PowerSearch.doc.mjs: clear.
  • File packages/core/src/Selector/Selector.doc.mjs: clear.
  • File packages/core/src/Selector/SelectorOption.doc.mjs: clear.
  • File packages/core/src/SideNav/SideNavItem.doc.mjs: clear.
  • File packages/core/src/Switch/Switch.doc.mjs: clear.
  • File packages/core/src/TextArea/TextArea.doc.mjs: clear.
  • File packages/core/src/TextInput/TextInput.doc.mjs: clear.
  • File packages/core/src/Tokenizer/Tokenizer.doc.mjs: clear.
  • File packages/core/src/Typeahead/Typeahead.doc.mjs: clear.
  • File packages/core/src/theme/useThemeName.doc.mjs: clear.
  • File packages/richtext/src/RichTextEditor.doc.mjs: clear; the lookup matches the toolbar resolver.

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.

Changes requested: one description claim no longer matches the docs at this head; everything else holds, and the published API surface is unchanged.

  • The description says that where the new wording names the icon lookup it adds "else a registered or built-in drawing", but the icons guide's lookup sentence (packages/cli/assets/docs/icons.doc.mjs:23) now says only that built-in meanings "resolve through the theme icons", so narrow that bullet to the docs that still carry the fallback (useIcon and RichTextEditor) or restore the clause in the guide.

The earlier note about the icon set places 14 to 20 is fixed. Required CI has not run on this head yet, because its commit carries [skip ci].

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none
  • Release note: the Icon and IconButton answers now say in their opening paragraph how to draw an icon that is not built in, by passing any SVG component such as <Icon icon={TrashIcon} />: verified (Icon.doc.mjs:157, :309, :366; IconButton.doc.mjs:139, :211, :214; CLI output at this head).
  • Release note: component docs and astryx docs icons use "built-in meaning" and "theme icons", and a complete set is still typed IconRegistry: verified (the wording test passes; globalIconRegistry.tsx:115).
  • Release note: no API changes, with patch notes for core, cli and richtext: verified; the built API surfaces are identical.
  • Release note, compatibility: the re-ranked icon set sample has no deprecated component in its top 20 and drops the three deprecated fields, while search still writes them for every deprecated component: verified (search-icon-set.json golden; packages/cli/api/search/_result.mjs:53).
  • Description: before this change the answers say Icon takes an SVG component but not where one comes from: verified on the base's CLI output.
  • Description: icon takes a name or an SVG component, IconButton's icon takes a node, and names resolve through the theme's icons with the type IconRegistry: verified (Icon.tsx:171, :194; IconButton.tsx:34; globalIconRegistry.tsx:115, :223-247).
  • Description: the Icon openings (full, Chinese copy, dense) keep their first sentences, then say to pass a built-in meaning or any SVG from your icon library: verified.
  • Description: the IconButton openings (full, dense) keep their first sentences and show any SVG component, dense also the close example: verified.
  • Description: neither opening names an import path: verified.
  • Description: the change adds no indexed search length, Icon's entry keeps main's length, and the IconButton and icons-guide entries net to zero: verified (Icon 323 words on both; IconButton +6; guide sections +2, +5, -7, -6; total unchanged).
  • Description: registry wording becomes "theme icons" in the Icon, useIcon, InfoTip, MoreMenu, ChatSendButton and Rich Text docs and the icons guide: verified.
  • Description: where that wording names the lookup, it adds "else a registered or built-in drawing": false for the icons guide (icons.doc.mjs:23); verified for useIcon (useIcon.doc.mjs:24) and Rich Text (RichTextEditor.doc.mjs:294).
  • Description: "semantic icon name" and its variants leave every component doc's prose, the listed lines are reworded as stated, and "semantic" for colors, text types and HTML elements stays: verified (the wording test passes).
  • Description: the Chinese copies use the new words: verified.
  • Description: Rich Text names theme icons, else a registered drawing, else the bundled SVG: verified (RichTextEditorToolbar.tsx:463-472).
  • Description: Icon and the icons guide keep the old words as keywords, useIcon already had "icon registry", and Icon takes no "icon registry" keyword because build reads component keywords: verified (Icon.doc.mjs:21-22, icons.doc.mjs:12, useIcon.doc.mjs:12, packages/cli/api/build/kit/signals.mjs:119); the moved page request is the author's measurement.
  • Description: a search for "icon registry" still finds useIcon, the icons guide and Icon in its top five: verified (Icon is 5th).
  • Description: stable output names no experimental command: verified (the isolation suite's leak checks pass).
  • Description: the old-versus-new agent test: stated by the author, not reproduced.
  • Description: the astryx search top-five table: verified; every row reproduces on main and on this head.
  • Description: searches with the old words still find the same pages and the new words now find them: verified.
  • Description: the astryx build labeled-request run: stated by the author; the request set is not in the repository.
  • Description: the top three for the six queries a docs gate flagged are identical on main and this head, and the icons guide keeps its "available in the design system" description: verified (icons.doc.mjs:14).
  • Description: the new test checks the retired words and the openings, fails on main (2 of 2) and passes here: verified.
  • Description: the test walks every string itself because the shared prose walker skips props, name, title and label: verified (packages/cli/foundation/discovery/copied-passages.mjs:62-84).
  • Description: the goldens move as listed (close and search unchanged, icon set places 14 to 20, the icons topic digest) and none names an icon set or an experimental surface: verified; the isolation suite passes.
  • Description: the named suites pass (55 of 55; 32 of 32): verified.
  • Description: the scope lists the changed components, and the change is documentation only with no internal context: verified.
  • File .changeset/icon-docs-theme-icons.md: clear; the package list, the opening sentence and the Compatibility paragraph hold.
  • File packages/cli/assets/docs/icons.doc.mjs: finding: the lookup sentence (line 23) no longer adds the registered and built-in fallback the description says it adds; the keywords, the description and the other rewordings hold.
  • File packages/cli/test/__golden__/no-icon-set/docs-topics.json: clear; equals the CLI output at this head.
  • File packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear; equals the CLI output at this head.
  • File packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear; equals the CLI output, and the description states places 14 to 20.
  • File packages/cli/test/icon-words.test.mjs: clear; passes here and fails on the base (2 of 2).
  • File packages/core/src/Chat/ChatSendButton.doc.mjs: clear; the defaults come from the theme icons (arrowUp, stop).
  • File packages/core/src/Chat/ChatToolCalls.doc.mjs: clear.
  • File packages/core/src/CheckboxInput/CheckboxInput.doc.mjs: clear.
  • File packages/core/src/ComplexSelector/ComplexSelector.doc.mjs: clear.
  • File packages/core/src/ContextMenu/ContextMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenu.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs: clear.
  • File packages/core/src/Field/Field.doc.mjs: clear.
  • File packages/core/src/Field/FieldLabel.doc.mjs: clear.
  • File packages/core/src/Icon/Icon.doc.mjs: clear; the full, Chinese-copy and dense openings name both routes and no import path, and the indexed length equals main's.
  • File packages/core/src/Icon/useIcon.doc.mjs: clear; the name lookup wording matches the resolver order.
  • File packages/core/src/IconButton/IconButton.doc.mjs: clear; the full and dense openings show any SVG component.
  • File packages/core/src/InfoTip/InfoTip.doc.mjs: clear.
  • File packages/core/src/MoreMenu/MoreMenu.doc.mjs: clear.
  • File packages/core/src/MultiSelector/MultiSelector.doc.mjs: clear.
  • File packages/core/src/NumberInput/NumberInput.doc.mjs: clear.
  • File packages/core/src/PowerSearch/PowerSearch.doc.mjs: clear.
  • File packages/core/src/Selector/Selector.doc.mjs: clear.
  • File packages/core/src/Selector/SelectorOption.doc.mjs: clear.
  • File packages/core/src/SideNav/SideNavItem.doc.mjs: clear.
  • File packages/core/src/Switch/Switch.doc.mjs: clear.
  • File packages/core/src/TextArea/TextArea.doc.mjs: clear.
  • File packages/core/src/TextInput/TextInput.doc.mjs: clear.
  • File packages/core/src/Tokenizer/Tokenizer.doc.mjs: clear.
  • File packages/core/src/Typeahead/Typeahead.doc.mjs: clear.
  • File packages/core/src/theme/useThemeName.doc.mjs: clear.
  • File packages/richtext/src/RichTextEditor.doc.mjs: clear; the lookup matches the toolbar resolver.

Automated review (maintainer link)

Comment thread packages/cli/assets/docs/icons.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: required CI has not run on this head yet, because its commits carry [skip ci], so the required checks still have to run and pass before merge.

The description now limits the lookup-fallback claim to useIcon and RichTextEditor, which state it, so the last open point is fixed. The Icon and IconButton openings, the "built-in meaning" and "theme icons" wording in English and Chinese, the wording test, the regenerated search samples and the release note all hold, and the published API surface is unchanged.

Claims and files checked

Review mode: same-head; reason: none

  • changed rules (0): none
  • Release note: the Icon and IconButton answers now say in their opening paragraph how to draw an icon that is not built in, by passing any SVG component such as <Icon icon={TrashIcon} />: verified (Icon.doc.mjs:157, :309, :366; IconButton.doc.mjs:139, :211, :214; CLI output at this head).
  • Release note: component docs and astryx docs icons use "built-in meaning" and "theme icons", and a complete set is still typed IconRegistry: verified (the wording test passes; a retired-word scan of every component doc in every package finds none; globalIconRegistry.tsx:115).
  • Release note: no API changes, with patch notes for core, cli and richtext: verified; the API surfaces are identical, and those are the three packages whose files change.
  • Release note, compatibility: the re-ranked icon set sample has no deprecated component in its top 20 and drops the three deprecated fields, while search still writes them for every deprecated component, so scripts built on 0.7.17 keep working: verified (search-icon-set.json; packages/cli/api/search/_result.mjs:53; the CLI is 0.7.17).
  • Description: before this change the answers say Icon takes an SVG component but not where one comes from: verified on the base's CLI output.
  • Description: Icon's icon takes a name or an SVG component, IconButton's icon takes a node, and names resolve through the theme's icons with the type IconRegistry: verified (Icon.tsx:171, :194; IconButton.tsx:34; globalIconRegistry.tsx:115, :223-246).
  • Description: the Icon openings (full, Chinese copy, dense) keep their first sentences, then name a built-in meaning or any SVG from your icon library: verified.
  • Description: the IconButton openings (full, dense) keep their first sentences and show any SVG component, dense also the close example: verified.
  • Description: neither opening names an import path: verified.
  • Description: the change adds no indexed search length; Icon's entry keeps main's length and the IconButton and icons-guide entries net to zero: verified (Icon unchanged; total indexed length unchanged).
  • Description: registry wording becomes "theme icons" in the Icon, useIcon, InfoTip, MoreMenu, ChatSendButton and Rich Text docs and the icons guide: verified.
  • Description: useIcon and RichTextEditor, which name the full lookup, add the registered and built-in fallback in the resolver's order: verified (useIcon.doc.mjs:24; RichTextEditor.doc.mjs:294, which reads "else a registered drawing, falling back to a bundled inline SVG").
  • Description: the semantic-name wording leaves every component doc's prose, the listed lines are reworded as stated, and "semantic" for colors, text types and HTML elements stays: verified.
  • Description: the Chinese copies use the same words: verified.
  • Description: Rich Text names theme icons, else a registered drawing, else the bundled SVG: verified (RichTextEditorToolbar.tsx:462-471).
  • Description: Icon and the icons guide keep the old words as keywords, useIcon already had "icon registry", and Icon takes no "icon registry" keyword because build reads component keywords: verified (Icon.doc.mjs:21-22, icons.doc.mjs:12, useIcon.doc.mjs:12); the moved page request is the author's measurement.
  • Description: a search for "icon registry" still finds useIcon, the icons guide and Icon in its top five: verified (Icon is fifth).
  • Description: stable output names no experimental command: verified (the isolation suite's leak checks pass).
  • Description: the old-versus-new agent test: the author's measurement, not reproduced.
  • Description: the astryx search top-five table: verified; all five rows reproduce on the base and this head.
  • Description: searches with the old words still find the same pages and the new words now find them: verified.
  • Description: the astryx build labeled-request run: the author's measurement, not reproduced.
  • Description: the top three for the six queries a docs gate flagged are identical, and the icons guide keeps its "available in the design system" description: verified (icons.doc.mjs:14).
  • Description: the new test checks the retired words and the openings, fails on main (2 of 2) and passes here: verified.
  • Description: the test walks every string itself because the shared prose walker skips props, name, title and label: verified (packages/cli/foundation/discovery/copied-passages.mjs:62-84).
  • Description: the no-icon-set goldens move as listed (close and search unchanged, icon set places 14 to 20, the icons topic digest) and none names an icon set or an experimental surface: verified; the isolation suite passes here and with current main merged in.
  • Description: the named suites pass (55 of 55; 32 of 32): verified.
  • Description: the author's local preflight passed at this head: the author's statement, not reproduced; GitHub CI has not run on this head.
  • Description: the scope lists the changed components, and the change is documentation only with no internal context: verified.
  • File .changeset/icon-docs-theme-icons.md: clear; the package list, the opening sentence and the Compatibility paragraph hold.
  • File packages/cli/assets/docs/icons.doc.mjs: clear; the keywords, the description and the rewordings hold, and the description no longer claims the fallback for its lookup sentence.
  • File packages/cli/test/__golden__/no-icon-set/docs-topics.json: clear; equals the CLI output at this head.
  • File packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear; equals the CLI output at this head.
  • File packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear; equals the CLI output, and the description states places 14 to 20.
  • File packages/cli/test/icon-words.test.mjs: clear; passes here and fails on the base (2 of 2).
  • File packages/core/src/Chat/ChatSendButton.doc.mjs: clear; the defaults come from the theme icons (arrowUp, stop).
  • File packages/core/src/Chat/ChatToolCalls.doc.mjs: clear.
  • File packages/core/src/CheckboxInput/CheckboxInput.doc.mjs: clear.
  • File packages/core/src/ComplexSelector/ComplexSelector.doc.mjs: clear.
  • File packages/core/src/ContextMenu/ContextMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenu.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs: clear.
  • File packages/core/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs: clear.
  • File packages/core/src/Field/Field.doc.mjs: clear.
  • File packages/core/src/Field/FieldLabel.doc.mjs: clear.
  • File packages/core/src/Icon/Icon.doc.mjs: clear; the full, Chinese-copy and dense openings name both routes and no import path.
  • File packages/core/src/Icon/useIcon.doc.mjs: clear; the name lookup wording matches the resolver order.
  • File packages/core/src/IconButton/IconButton.doc.mjs: clear; the full and dense openings show any SVG component.
  • File packages/core/src/InfoTip/InfoTip.doc.mjs: clear.
  • File packages/core/src/MoreMenu/MoreMenu.doc.mjs: clear.
  • File packages/core/src/MultiSelector/MultiSelector.doc.mjs: clear.
  • File packages/core/src/NumberInput/NumberInput.doc.mjs: clear.
  • File packages/core/src/PowerSearch/PowerSearch.doc.mjs: clear.
  • File packages/core/src/Selector/Selector.doc.mjs: clear.
  • File packages/core/src/Selector/SelectorOption.doc.mjs: clear.
  • File packages/core/src/SideNav/SideNavItem.doc.mjs: clear.
  • File packages/core/src/Switch/Switch.doc.mjs: clear.
  • File packages/core/src/TextArea/TextArea.doc.mjs: clear.
  • File packages/core/src/TextInput/TextInput.doc.mjs: clear.
  • File packages/core/src/Tokenizer/Tokenizer.doc.mjs: clear.
  • File packages/core/src/Typeahead/Typeahead.doc.mjs: clear.
  • File packages/core/src/theme/useThemeName.doc.mjs: clear.
  • File packages/richtext/src/RichTextEditor.doc.mjs: clear; the lookup matches the toolbar resolver.

Automated review (maintainer link)

…"built-in meaning" and "theme icons"

[skip ci]
@josephfarina josephfarina changed the title docs(icons): Icon and IconButton say how to draw any icon; component docs say "built-in meaning" and "theme icons" docs(icons): the icon prop says how to draw any icon; prop text says "built-in meaning" and "theme icons" Nov 21, 2026
@josephfarina
josephfarina force-pushed the josephfarina/icon-words-core-docs branch from 8f694e4 to ed06489 Compare November 21, 2026 11:59

@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 icon prop text for Icon and IconButton now shows how to draw any icon, and the word swap stays out of everything search and build read, but the new test and one description sentence do not match what the pull request changes.

  • packages/cli/test/icon-words.test.mjs:82 reads only props, propDescriptions, params and returns, so the dense hook docs' paramDescriptions and returnDescriptions (useIcon's dense name line among them) are never checked, although the description says the test covers prop and parameter text in every dense hook doc; adding those two keys keeps the test green at this head.
  • The description says "guidance" keeps its words and lists InfoTip, MoreMenu, ChatToolCalls and RichTextEditor under prop and parameter text, but the head rewrites six best-practice lines (useIcon.doc.mjs:43, :53, :80, :90, useThemeName.doc.mjs:24, RichTextEditor.doc.mjs:294) and nine anatomy descriptions; please say that only the guidance search reads keeps its words and name the anatomy and best-practice edits.

Everything else checks out: the new test fails on main and passes here, the named doc suites and the isolation suite pass, and the search index and public API are unchanged.

Claims and files checked

Review mode: full; reason: history

Claims:

  • Changeset: the Icon and IconButton icon lines say first how to draw an icon that is not built in, such as icon={TrashIcon}: verified in both commands' output.
  • Changeset: component prop text uses "built-in meaning" and "theme icons", and a full set is still typed IconRegistry: verified by a scan of prop, parameter, return and anatomy text (no retired word) and globalIconRegistry.tsx:115.
  • Changeset: no API changes: verified, the built public surfaces are identical.
  • Icon's icon accepts a library component: verified, Icon.tsx:194 and :171.
  • IconButton's icon takes a node with an Icon element as its slot: verified, IconButton.tsx:34.
  • Names resolve through the theme's icons, then registered icons, then built-ins: verified, globalIconRegistry.tsx:223-247.
  • Icon's icon first sentence (full, Chinese, dense) and IconButton's (full, dense) read as described: verified, Icon.doc.mjs:76, :231, :430; IconButton.doc.mjs:24, :245.
  • useIcon's name adds the registered and built-in fallback: verified, useIcon.doc.mjs:24.
  • The listed docs' prop and parameter text uses the new words, in Chinese too: verified for prop and parameter text; the InfoTip, MoreMenu, ChatToolCalls and RichTextEditor edits are anatomy or best-practice text (second finding).
  • Only text that search and build do not read changes: verified, every indexed field of all 1,769 search entries is unchanged, and build reads only templates, component keywords and search.
  • Component descriptions, opening paragraphs, guidance, keywords and the icons guide keep their words: false for guidance (second finding); true for the rest.
  • The build comparison over the labeled requests shows no change: consistent with build's unchanged inputs; not rerun.
  • No search sample changes: verified, no sample file changes and the sample suites pass.
  • Documentation only, with no runtime, API or visual change and no internal context: verified.
  • The test covers prop and parameter text in every component and hook doc, full, Chinese and dense: false for dense hook parameter and return text (first finding).
  • The test checks that the Icon and IconButton first sentences name TrashIcon and "your icon library": verified, icon-words.test.mjs:108-121.
  • The test fails on main (2 of 2) and passes here: verified.
  • The isolation suite passes 55 of 55 and the six doc suites 30 of 30: verified at this head.

Files:

  • .changeset/icon-docs-theme-icons.md: clear.
  • packages/cli/test/icon-words.test.mjs: first finding.
  • packages/core/src/Icon/useIcon.doc.mjs, packages/core/src/theme/useThemeName.doc.mjs, packages/richtext/src/RichTextEditor.doc.mjs: text clear; their best-practice edits are the second finding.
  • packages/core/src/InfoTip/InfoTip.doc.mjs, packages/core/src/MoreMenu/MoreMenu.doc.mjs, packages/core/src/Chat/ChatToolCalls.doc.mjs: text clear; their anatomy-only edits are the second finding.
  • packages/core/src/Icon/Icon.doc.mjs, packages/core/src/IconButton/IconButton.doc.mjs, packages/core/src/Chat/ChatSendButton.doc.mjs: clear.
  • CheckboxInput, ComplexSelector, ContextMenuItem, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuItem, DropdownMenuRadioItem, DropdownMenuSubMenu, Field, FieldLabel, MultiSelector, NumberInput, PowerSearch, Selector, SelectorOption, SideNavItem, Switch, TextArea, TextInput, Tokenizer and Typeahead docs: clear.

Automated review (maintainer link)

Comment thread packages/cli/test/icon-words.test.mjs Resolved
Comment thread packages/core/src/Icon/useIcon.doc.mjs Resolved
…rds test reads dense parameter text

[skip ci]

@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 Icon and IconButton icon lines now show how to draw any icon, and both earlier findings are fixed. But the new fallback text misstates the icon lookup, and three description claims do not match the code.

  • ChatSendButton.doc.mjs:35, :49, :133, :134 and ChatToolCalls.doc.mjs:27 say the default comes from "theme icons, else built-in", but the resolver checks a registerIcons() entry between the two (globalIconRegistry.tsx:241-245), so please use "theme icons, else a registered or built-in drawing" as useIcon.doc.mjs:24 does.
  • The description says every line that names the lookup or a default icon adds the fallback, but MoreMenu.doc.mjs:15, the Chinese sendIcon and stopIcon lines (ChatSendButton.doc.mjs:116-117) and useIcon.doc.mjs:68 name only the theme icons, so please add the fallback there or narrow the claim.
  • Miss: the description says search reads only the first 10 guidance lines, but the lexical scorer reads every one (packages/cli/api/search/_candidate-score.mjs:560), so in a project that loads @astryxdesign/richtext the RichTextEditor.doc.mjs:294 edit drops RichTextEditor from registry results (#37 of 500 results with main's text); please keep that line for the follow-up or correct the claim.
  • Miss: the Testing bullet says the test covers every component and hook doc, but icon-words.test.mjs:22 reads only Core and Rich Text, which leaves the 54 Lab, Charts and Vega docs unchecked, so please add those roots (the test stays green) or narrow the bullet.

Everything else checks out: the new test fails on main and passes here, the doc and isolation suites pass, and the public API is unchanged.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none

Claims:

  • Changeset: the Icon and IconButton icon lines first say how to draw an icon that is not built in, such as icon={TrashIcon}: verified in both commands' output (Icon.doc.mjs:76, IconButton.doc.mjs:24).
  • Changeset: component prop text says "built-in meaning" and "theme icons", and a complete set is still typed IconRegistry: verified, the word test passes and globalIconRegistry.tsx:115.
  • Changeset: no API changes: verified, the built public surfaces of all ten packages are identical.
  • Icon's icon accepts a library component: verified, Icon.tsx:194.
  • IconButton's icon takes a node, with an Icon element as its slot: verified, IconButton.tsx:34.
  • Names resolve through the theme's icons, then registerIcons(), then the built-ins: verified, globalIconRegistry.tsx:223-247.
  • Icon's icon first sentence (full, Chinese, dense) and IconButton's (full, dense) read as described: verified, Icon.doc.mjs:76, :231, :430; IconButton.doc.mjs:24, :245.
  • The listed prop, parameter, anatomy and unindexed guidance text uses the new words, Chinese included: verified in the diff and by the word test.
  • Every line that names the lookup or a default icon adds the fallback: false (first and second findings).
  • Only text that search and build do not read changes, because search reads only the first 10 guidance lines: false for RichTextEditor.doc.mjs:294 (third finding).
  • Icon's opening, keywords and the icons guide keep their words: verified, none of them is in the diff.
  • The search index is identical to main's: verified for every indexed field, both at the repository root and in a project that loads the integrations.
  • The build comparison over the labeled requests shows no change: not rerun; every search input at the repository root is identical.
  • No search sample changes: verified, no sample file changes and the sample suite passes.
  • Documentation only, with no runtime, API or visual change and no internal context: verified.
  • The test checks prop and parameter text in every component and hook doc, with all six keys: the keys are verified (icon-words.test.mjs:82-89), but the coverage claim is false (fourth finding).
  • The test checks that the Icon and IconButton first sentences name TrashIcon and "your icon library": verified, icon-words.test.mjs:115-128.
  • The test fails on main (2 of 2) and passes here: verified.
  • The isolation suite passes 55 of 55 and the seven doc suites 32 of 32: verified at this head.

Files:

  • .changeset/icon-docs-theme-icons.md: clear.
  • packages/cli/test/icon-words.test.mjs: fourth finding.
  • packages/core/src/Chat/ChatSendButton.doc.mjs: first and second findings.
  • packages/core/src/Chat/ChatToolCalls.doc.mjs: first finding.
  • packages/core/src/MoreMenu/MoreMenu.doc.mjs: second finding.
  • packages/core/src/Icon/useIcon.doc.mjs: second finding (line 68); the rest is clear.
  • packages/richtext/src/RichTextEditor.doc.mjs: third finding.
  • packages/core/src/Icon/Icon.doc.mjs, packages/core/src/IconButton/IconButton.doc.mjs, packages/core/src/InfoTip/InfoTip.doc.mjs, packages/core/src/theme/useThemeName.doc.mjs: clear.
  • CheckboxInput, ComplexSelector, ContextMenuItem, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuItem, DropdownMenuRadioItem, DropdownMenuSubMenu, Field, FieldLabel, MultiSelector, NumberInput, PowerSearch, Selector, SelectorOption, SideNavItem, Switch, TextArea, TextInput, Tokenizer and Typeahead docs: clear.

Automated review (maintainer link)

Comment thread packages/cli/test/icon-words.test.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.

Changes requested: the Icon and IconButton icon lines show how to draw any icon, and the description now matches the dense useIcon name line, but two description claims still do not match the code.

  • Miss: the description says search does not read RichTextEditor's 16th guidance line and reads only a component's first 10 guidance lines, but the lexical scorer reads every guidance line (packages/cli/api/search/_candidate-score.mjs:560), so in a project that loads @astryxdesign/richtext the RichTextEditor.doc.mjs:294 edit drops RichTextEditor from registry results (#38 of 39 with main's text); please keep that line for the follow-up or correct the claim.
  • Miss: the Testing bullet says the test covers every component and hook doc, but icon-words.test.mjs:22 reads only Core and Rich Text, which leaves the 54 Lab, Charts and Vega docs unchecked, so please add those roots (none of them uses a retired word today) or narrow the bullet.

The doc and isolation suites pass at this head, and the public API is unchanged.

Claims and files checked

Review mode: same-head; reason: none

  • changed rules (0): none

Claims:

  • Changeset: the Icon and IconButton icon lines first say how to draw an icon that is not built in, such as icon={TrashIcon}: verified (Icon.doc.mjs:76, IconButton.doc.mjs:24).
  • Changeset: component prop text uses one set of icon words, and a complete set is still typed IconRegistry: verified, the word test passes and globalIconRegistry.tsx:115.
  • Changeset: no API changes: verified, the built public surfaces are identical.
  • Icon's icon accepts a library component: verified, Icon.tsx:194.
  • IconButton's icon takes a node, with an Icon element as its slot: verified, IconButton.tsx:34.
  • Names resolve through the theme's icons, then registerIcons(), then the built-ins: verified, globalIconRegistry.tsx:223-247.
  • Icon's icon first sentence (full, Chinese, dense) and IconButton's (full, dense) read as described: verified, Icon.doc.mjs:76, :231, :430; IconButton.doc.mjs:24, :245.
  • The listed prop, parameter, anatomy and guidance text uses the new words, Chinese included: verified in the diff and by the word test.
  • The lines that name the lookup or a default icon (useIcon's full name, ChatSendButton in every copy, ChatToolCalls, MoreMenu) name the whole order: verified, useIcon.doc.mjs:24, ChatSendButton.doc.mjs:35, :49, :116-117, :133-134, ChatToolCalls.doc.mjs:27, MoreMenu.doc.mjs:15.
  • The dense useIcon name line still names only the theme icons, as main's named only the same registry: verified, useIcon.doc.mjs:68 and main's line.
  • Only text that search and build do not read changes, and search reads a component's first 10 guidance lines: verified for the hook guidance and the prop and anatomy text; false for RichTextEditor.doc.mjs:294 (first finding).
  • Icon's opening, keywords and the icons guide keep their words: verified, none of them is in the diff.
  • The search index is identical to main's: verified, no indexed field changes.
  • The build comparison over the labeled requests shows no change: not rerun.
  • No search sample changes: verified, no sample file changes.
  • Documentation only, with no runtime, API, visual or policy change and no internal context: verified.
  • The test checks prop and parameter text in every component and hook doc, with all six keys: the keys are verified (icon-words.test.mjs:82-89), but the coverage claim is false (second finding).
  • The test checks that the Icon and IconButton first sentences name TrashIcon and "your icon library": verified, icon-words.test.mjs:115-128.
  • The test fails on main (2 of 2) and passes here: verified at this head.
  • The isolation suite passes 55 of 55 and the seven doc suites 32 of 32: verified at this head.

Files:

  • .changeset/icon-docs-theme-icons.md: clear.
  • packages/richtext/src/RichTextEditor.doc.mjs: first finding.
  • packages/cli/test/icon-words.test.mjs: second finding.
  • packages/core/src/Icon/useIcon.doc.mjs: clear; line 68 now matches the description.
  • packages/core/src/Chat/ChatSendButton.doc.mjs, packages/core/src/Chat/ChatToolCalls.doc.mjs, packages/core/src/MoreMenu/MoreMenu.doc.mjs: clear.
  • packages/core/src/Icon/Icon.doc.mjs, packages/core/src/IconButton/IconButton.doc.mjs, packages/core/src/InfoTip/InfoTip.doc.mjs, packages/core/src/theme/useThemeName.doc.mjs: clear.
  • CheckboxInput, ComplexSelector, ContextMenuItem, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuItem, DropdownMenuRadioItem, DropdownMenuSubMenu, Field, FieldLabel, MultiSelector, NumberInput, PowerSearch, Selector, SelectorOption, SideNavItem, Switch, TextArea, TextInput, Tokenizer and Typeahead docs: clear.

Automated review (maintainer link)

Comment thread packages/core/src/Icon/useIcon.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: required CI has not run on this head yet, because its commit carries [skip ci], so the required checks still have to run and pass before merge.

The Icon and IconButton icon lines now show how to draw any icon, both earlier points are addressed (the Rich Text guidance line is back to main's text, and the Testing bullet matches the test's roots), search answers as on main, and the public API is unchanged.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none

Claims:

  • Release note: the Icon and IconButton icon prop now says first how to draw an icon that is not built in, such as icon={TrashIcon}: verified (Icon.doc.mjs:76, IconButton.doc.mjs:24; CLI output at this head).
  • Release note: component prop text uses "built-in meaning" and "theme icons", and a complete set is still typed IconRegistry: verified (the word test passes; globalIconRegistry.tsx:115).
  • Release note: no API changes, with a patch note for core only: verified; only doc strings change, and the changeset coverage check passes naming core.
  • Reader impact: both answers' icon line names the icon-library route: verified (CLI output at this head).
  • Source of truth: Icon's icon accepts a library component, IconButton's icon takes a node, and names resolve through the theme icons, then registerIcons(), then the built-ins: verified (Icon.tsx:194, IconButton.tsx:34, globalIconRegistry.tsx:223-247).
  • Icon's icon first sentence (full, Chinese, dense) and IconButton's (full, dense) read as described: verified (Icon.doc.mjs:76, :231, :430; IconButton.doc.mjs:24, :245).
  • The listed prop, parameter, anatomy and hook-guidance text uses the new words, Chinese included: verified in the diff and by the word test.
  • The lines that name the lookup or a default icon name the whole order: verified (useIcon.doc.mjs:24, ChatSendButton.doc.mjs:35, :49, :116-117, :133-134, ChatToolCalls.doc.mjs:27, MoreMenu.doc.mjs:15).
  • The dense useIcon name line still names only the theme icons, as main's named only the same registry: verified (useIcon.doc.mjs:68 and main's line).
  • Only text that search and build do not read changes; Icon's opening, Rich Text's guidance and the icons guide keep their words: verified (search reads component descriptions, keywords and guidance and hook descriptions and keywords; RichTextEditor.doc.mjs matches main; none of the kept text is in the diff).
  • The search index and in-repo searches for the listed words match main: verified; the same searches from the repository root and from the docsite give identical results.
  • The build comparison over the labeled requests shows no change: not rerun; build reads search's catalog, whose inputs do not change.
  • No search sample changes: verified, no sample file changes.
  • Documentation only, with no runtime, API, visual or policy change and no internal context: verified.
  • The test checks prop and parameter text in every Core and Rich Text component and hook doc with the six keys, allows colour wording and skips code spans, and checks that the Icon and IconButton first sentences name TrashIcon and "your icon library": verified (icon-words.test.mjs:22, :24-34, :53-67, :78-93, :115-128).
  • The test fails on main (2 of 2) and passes here: verified on the base and at this head.
  • The isolation suite passes 55 of 55 and the seven doc suites 32 of 32: verified at this head.

Files:

  • .changeset/icon-docs-theme-icons.md: clear.
  • packages/cli/test/icon-words.test.mjs: clear.
  • packages/core/src/Icon/useIcon.doc.mjs: clear; line 68 matches the description.
  • packages/core/src/Chat/ChatSendButton.doc.mjs, packages/core/src/Chat/ChatToolCalls.doc.mjs, packages/core/src/MoreMenu/MoreMenu.doc.mjs: clear.
  • packages/core/src/Icon/Icon.doc.mjs, packages/core/src/IconButton/IconButton.doc.mjs, packages/core/src/InfoTip/InfoTip.doc.mjs, packages/core/src/theme/useThemeName.doc.mjs: clear.
  • CheckboxInput, ComplexSelector, ContextMenuItem, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuItem, DropdownMenuRadioItem, DropdownMenuSubMenu, Field, FieldLabel, MultiSelector, NumberInput, PowerSearch, Selector, SelectorOption, SideNavItem, Switch, TextArea, TextInput, Tokenizer and Typeahead docs: clear.

Automated review (maintainer link)

josephfarina added a commit that referenced this pull request Nov 21, 2026
- #12959 docs(icons): the icon prop says how to draw any icon; prop text says "built-in meaning" and "theme icons"
  Author: @josephfarina
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #13407.

@github-actions
github-actions Bot deleted the josephfarina/icon-words-core-docs branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — e150e7cb 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant