Repository navigation
docs(icons): icon-set guide's relatives line; template icons say icon component - #13473
josephfarina wants to merge 2 commits into
Conversation
…te icons' icon component [skip ci]
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
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:118and:299-305,search.mjs:249-263, and the group test inicon-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,:47and:60; Core'sIconTypeis 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
searchableflags, which this change does not touch. - Claim: changeset coverage passes: verified; the changeset names
@astryxdesign/cli, the only package whose shipped files change, andcheck:changesetspasses. - 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.
There was a problem hiding this comment.
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
IconTypeas the type for icon components (Icon.tsx:168-171), and some menu and navigation items takeReactNode | 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-305andsearch.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,:47and: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
searchableflags, 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.
- #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
|
Landed in #13542. |
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 ofastryx experimental icon, every match lists the other meanings of its group asrelatives; the text answer names them only under the first match, at most four." Source:RELATED_SHOWN = 4and the first-match check inpackages/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).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 buildon sample build requests: no answer changes.Scope
Docs: the icon-set guide and the template icons guide.
Testing
experimental-isolation55 of 55 (--updatechanges only the docs-tree snapshot, which quotes the three changed template-icons sentences).