Repository navigation
docs(cli): experimental icon sets — explain the icon model in one place - #12688
josephfarina wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
/approve-spec b5c777a |
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Approved pending CI: the CI tests have not run on this head, because the run was cancelled when the CI ceiling was full; re-run all jobs or push again so they run.
The rewritten "How it works" section matches the icon-set spec, and each ranking and ownership statement holds when run against the CLI at this head. One optional wording suggestion is left inline: the sentence about where a set's own definition shows up should name astryx docs cli/experimental/icon-definitions, since astryx experimental icon --definitions lists only Astryx's definitions.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Changeset: an
[experimental]patch release note for@astryxdesign/cli— verified (the changeset check passes). - Changeset: the guide opens with the icon model in one place — verified: it is the first section after the experimental notice.
- Astryx owns generic meanings, each a camelCase name, one sentence and a few words that name no library or drawing — verified against the definition doc type and files.
- A library maps its icons in its own or its existing integration package, with no add-on and no change to Astryx — verified against the icon-set spec.
- A missing meaning is added in that package with
experimental icon new-definitionoradd --new-definition, and answers to its name and words — verified with a fixture run. astryx experimental icon <words>returns the set's icon for the named meaning first, main set before backups, with related icons after;searchandfind in documentbehave as described — verified with a fixture run.- Only the "How it works" section changes, and stable output is unchanged — verified (the diff; the experimental-isolation and guide tests pass).
- The cited tests pass and Prettier is clean — verified.
- The run against a Lucide-based set and the no-context reader test — the author's own evidence, not reproduced.
- File
.changeset/icon-model-overview.md— clear. - File
packages/cli/assets/docs/tree/icon-sets.doc.mjs— one non-blocking wording suggestion (line 53).
| }, | ||
| { | ||
| type: 'prose', | ||
| text: 'When your library draws something no definition covers, add the meaning in the same package: `astryx experimental icon new-definition <name> --description ... --words ... --icon <id>`, or `--new-definition` on `experimental icon add`. It hooks in like an Astryx definition: `astryx experimental icon` answers to its name and words, and once the package is installed the definitions list shows it with the package that ships it. It maps only within your set; to offer it to every set, see Share a definition with every set.', |
There was a problem hiding this comment.
Non-blocking: "the definitions list shows it with the package that ships it" holds for astryx docs cli/experimental/icon-definitions, but astryx experimental icon --definitions (which this guide calls the list of every definition) leaves a set's own definitions out, so an author who checks there will not find theirs. Suggested wording: "once the package is installed, astryx docs cli/experimental/icon-definitions lists it with the package that ships it".
- #12618 fix(cli): search's text icons label + icon-ask wording Author: @josephfarina - #12688 docs(cli): experimental icon sets — explain the icon model in one place Author: @josephfarina - #12123 fix(core): MultiSelector search trigger no longer carries aria-required Author: @josephfarina
|
Landed in #12844. |
Reader impact
People who make an icon set, and agents that pick icons, had the mechanics (
new-set,add,map,new-definition, the finder) spread over many sections ofastryx docs cli/experimental/icon-sets, but no one place said what the model is. After this change, the guide's first content section says it in four short paragraphs:experimental icon new-definition, or--new-definitiononadd), and it hooks in like an Astryx definition.astryx experimental icon <words>puts the icon a set maps to the matching definition first (main set before backups), while related icons stay findable by their own words (searchvsfind in document).Source of truth
AST-084 FR4 (definitions are typed doc files; a set's own definition needs no change to Astryx and maps only within that set), FR6 (definition match scores 100; equal scores follow set order; an icon answers to the name and words of every definition it draws), FR8 (main set and backups), FR9 (templates declare definitions).
Correction
The "How it works" section of the icon-sets guide is rewritten to state the model above; the existing paragraph "The CLI knows no icon library…" stays. No other section, page or route changes. Experimental docs only (AST-017 FR27): no stable command's output changes.
Evidence
experimental icon search→ the set'ssearchicon first (reason: definition "search");experimental icon "find in document"→ the icon mapped todocumentSearchfirst. Both match the paragraph's example.astryx docs …against this branch, answered two questions.new-set/add/map, re-export the generated module,new-definitionfor a missing meaning that maps only within the set, PR to share it. Correct.experimental icon search(set's search icon first) vsexperimental icon "find in document"(documentSearchfirst), main set before backups, take the first match and paste its import. Correct.Scope
Components: cli (docs)
Testing
CI=1 pnpm exec vitest run --project node packages/cli/test/core-doc-quality.test.mjs packages/cli/clients/cli/commands/docs.icon-set.test.mjs packages/cli/api/docs— 20 files, 214 tests pass. Prettier clean.