Skip to content

docs(icons): icon-set guide's relatives line; template icons say icon component - #13473

Closed
josephfarina wants to merge 2 commits into
mainfrom
josephfarina/icon-guide-rewordings
Closed

josephfarina wants to merge 2 commits into
mainfrom
josephfarina/icon-guide-rewordings

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Reader impact

Two places in the icon guides say the wrong thing. The icon-set guide says a match "lists the other meanings of its group", but the text answer shows them only under the first match. And the template icons guide says "icon definition" where it means an icon component, which readers confuse with Astryx's list of icon meanings.

Correction

  • packages/cli/assets/docs/tree/icon-sets.doc.mjs, the relatives sentence: "In the JSON of astryx experimental icon, every match lists the other meanings of its group as relatives; the text answer names them only under the first match, at most four." Source: RELATED_SHOWN = 4 and the first-match check in packages/cli/clients/cli/commands/experimental/icon.mjs.
  • packages/cli/assets/docs/tree/template-icons.doc.mjs: "accept the icon component itself", "when an existing icon fits", "Export a compatible icon component" (was "icon definition" in each).
  • Nothing else changes.

Evidence

In-repo astryx search, main vs this change, top 4: "icon definitions" and "icon definition" no longer show the template-icons section "Use Astryx Icon" (it matched only through the wrong word); InfoTip, Icon and the icons guide lead as before. The other icon, template and relatives queries checked are unchanged. astryx build on sample build requests: no answer changes.

Scope

Docs: the icon-set guide and the template icons guide.

  • 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

  • experimental-isolation 55 of 55 (--update changes only the docs-tree snapshot, which quotes the three changed template-icons sentences).
  • Changeset coverage passes.

@vercel

vercel Bot commented Nov 21, 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 11:01pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 21, 2026, 11:07 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.

Approved pending CI: CI has not run on this head yet. The pull request is a draft, and its commit message carries [skip ci], which keeps GitHub from running pull-request CI on this head even after it is marked ready, so the checks need a push without it.

The rewordings match the finder and the icon-set record: the JSON answer of astryx experimental icon carries relatives on every match, and the text answer names at most four, under the first match only. "Icon component" is also the word Core uses for what an icon prop takes.

  • Optional: in the icon-set guide's intro (packages/cli/assets/docs/tree/icon-sets.doc.mjs, line 47), the sentence now says "one icon meaning per job" and the next one starts "A definition names no library", so "definition" arrives before the guide says what it is; "one icon definition per job", or adding "(an icon definition)", keeps the link.
Claims and files checked

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

  • Claim: the icon-set guide says Astryx ships one icon meaning per job: verified at icon-sets.doc.mjs:47.
  • Claim: related meanings show on every match in JSON and, in text, only under the first match, at most four: verified against icon.mjs:118 and :299-305, search.mjs:249-263, and the group test in icon-definition-groups.test.mjs.
  • Claim: the template icons guide says "icon component" or "icon" where it said "icon definition": verified at template-icons.doc.mjs:29, :47 and :60; Core's IconType is documented as the type for icon components.
  • Claim: nothing else changes: verified; the diff touches only those two guides, the changeset and one golden.
  • Claim: searches for "icon definition" and "icon definitions" no longer surface the template icons section, and the other icon queries are unchanged: verified by running search on base and head.
  • Claim: build answers do not change: consistent; build gives docs an empty kit, and four icon-related build requests answer identically on base and head.
  • Claim: the experimental-isolation suite passes and only the docs-tree golden changes: 54 of 55 tests pass here, including all three golden comparisons; the remaining test needs a git work tree and reads only searchable flags, which this change does not touch.
  • Claim: changeset coverage passes: verified; the changeset names @astryxdesign/cli, the only package whose shipped files change, and check:changesets passes.
  • Claim: docs only, with no runtime, API, visual or policy change and no internal context: verified.
  • File .changeset/icon-guide-rewordings.md: clear.
  • File packages/cli/assets/docs/tree/icon-sets.doc.mjs: one optional wording note (line 47).
  • File packages/cli/assets/docs/tree/template-icons.doc.mjs: clear.
  • File packages/cli/test/__golden__/no-icon-set/docs-tree.json: clear; it matches the test output at this head.

Automated review (maintainer link)

@josephfarina josephfarina changed the title docs(icons): icon-set guide's job and relatives lines; template icons say icon component docs(icons): icon-set guide's relatives line; template icons say icon component Nov 21, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet. The pull request is a draft, and the head commit message carries [skip ci], which GitHub honours for pull-request events, so the checks need a push without it once the pull request is ready.

The relatives sentence matches the finder: the JSON answer of astryx experimental icon carries relatives on every match, and the text answer names at most four, under the first match only. "Icon component" is the word Core uses for what an icon prop takes, and keeping the intro's "one icon definition per meaning" settles the earlier optional wording note.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules (0).
  • Claim: the icon-set guide's old sentence said every match lists relatives, while the text answer shows them only under the first match: verified against icon.mjs:299-305.
  • Claim: the template icons guide said "icon definition" where it meant an icon component: verified; Core documents IconType as the type for icon components (Icon.tsx:168-171), and some menu and navigation items take ReactNode | IconType.
  • Claim: related meanings show on every match in JSON and, in text, only under the first match, at most four (description and changeset): verified against icon.mjs:118, :125-133, :175-177, :299-305 and search.mjs:249-263, with the group test passing.
  • Claim: the template icons guide says "icon component" or "icon" where it said "icon definition" (description and changeset): verified at template-icons.doc.mjs:29, :47 and :60.
  • Claim: nothing else changes: verified; the diff touches only those two guides, the changeset and one golden, and the guide's intro line prints as it does on the base.
  • Claim: searches for "icon definition" and "icon definitions" no longer surface the template icons section, and InfoTip, Icon and the icons guide still lead: verified by running search on base and head.
  • Claim: the other icon, template and relatives queries are unchanged: verified for six other queries.
  • Claim: build answers do not change: verified; four icon-related build requests answer identically on base and head.
  • Claim: the experimental-isolation suite passes and only the docs-tree golden changes: 54 of 55 tests pass here, including every golden comparison; the remaining test lists files with git and needs a work tree, and it reads only searchable flags, which this change does not touch.
  • Claim: changeset coverage passes: verified; the changeset names @astryxdesign/cli, the only package whose shipped files change, and the changeset check passes.
  • Claim: docs only, with no runtime, API, visual or policy change and no internal context: verified.
  • File .changeset/icon-guide-rewordings.md: clear.
  • File packages/cli/assets/docs/tree/icon-sets.doc.mjs: clear; the earlier wording note at line 47 is resolved.
  • File packages/cli/assets/docs/tree/template-icons.doc.mjs: clear.
  • File packages/cli/test/__golden__/no-icon-set/docs-tree.json: clear; it matches the test output at this head.

Automated review (maintainer link)

@josephfarina
josephfarina marked this pull request as ready for review November 22, 2026 10:17
josephfarina added a commit that referenced this pull request Nov 22, 2026
- #13358 fix(cli): a theme family checks its compiled registries as plain Node loads them
  Author: @josephfarina
- #13388 fix(cli): --check reads a theme family's committed compiled registries
  Author: @josephfarina
- #13464 experimental theme: a resting background color, outline or shadow keeps a part's hover and keyboard focus visible
  Author: @josephfarina
- #13433 cli(icons): icon response types say "icon meaning" and "variant"
  Author: @josephfarina
- #13456 feat(templates): dashboard-scorecard shows two headline numbers per row on a phone when they fit
  Author: @josephfarina
- #13473 docs(icons): icon-set guide's relatives line; template icons say icon component
  Author: @josephfarina
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #13542.

@github-actions
github-actions Bot deleted the josephfarina/icon-guide-rewordings branch November 23, 2026 06:06

This branch was successfully deployed

1 active deployment
Preview — 794bf960 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