Repository navigation
cli(icons): icon response types say "icon meaning" and "variant" - #13433
josephfarina wants to merge 3 commits into
Conversation
The JSDoc of the icon response types and the icon rows of the response type docs say "icon meaning" and "variant". Names and members do not change. [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.
Requesting changes. The code change itself is fine: only description text on the experimental icon response types changes, and every name and type stays the same. Two claims in the pull request description do not hold on main.
- The description says the
astryx docsresponse-type rows show "icon meaning" and "variant", but the docs renderer drops every experimental row (packages/cli/foundation/discovery/cli-self-docs.mjs:437-439), so no command prints the rewordedicon.*rows; please say that the hover text of the published type declarations changes and that the rows change in source only. - The description says readers learn "icon meaning" from the icon-set guides, but on
mainthe guides still say "icon definition" (packages/cli/assets/docs/tree/icon-sets.doc.mjs:47) until #13020 lands; please land this after #13020 (or declare the order) and say in the description that the guide wording comes from #13020.
Four optional wording suggestions are left inline.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Changeset: a CLI patch with an experimental note that the icon response types say "icon meaning" and "variant" and that names, members and JSON keys do not change: verified (changeset lines 2 and 5; every typedef and property tag is unchanged).
- Description: only descriptions change and every property name and type is byte-identical: verified (all typedef and property tags match the base).
- Description: the generated API reference uses the new words: verified (the emitted type declarations carry them).
- Description: the
astryx docsresponse-type rows use the new words: false (experimental rows are never printed). - Description: the icon-set guides already use "icon meaning": false on
main(the guides say "icon definition" until #13020 lands). - Description: the release spec's rule for experimental changes applies (patch bump, experimental changeset): verified.
- Description: the icon CLI tests and the API types check pass: verified (the icon test files and the JSON API typecheck pass at this head).
- Description: the scope is the CLI's icon response types only: verified (only the CLI and a changeset change).
.changeset/icon-words-response-types.md: clear.packages/cli/api/icon/icon.type.mjs: optional wording notes at lines 76, 120, 174 and 363.packages/cli/foundation/response/response-types.doc.mjs: the rows are never printed (first finding above); optional wording note at line 237.
…enamed The `icon map` help names its first argument `definition`, so printed commands keep `<definition>` until that rename lands. [skip ci]
There was a problem hiding this comment.
Requesting changes. The code change itself is fine: only description text on the experimental icon response types changes, and every name, type and JSON key stays the same. The updated description settles the earlier point about the icon-set guides, but one claim in it still does not hold.
- The description says the
astryx docsresponse-type rows show "icon meaning" and "variant", but the docs renderer leaves out every experimental row (packages/cli/foundation/discovery/cli-self-docs.mjs:436-439), so no command prints the rewordedicon.*rows; please say instead that the hover text of the published type declarations changes and that these rows change in source only.
The four optional wording suggestions left inline earlier still apply.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
- Changeset: a CLI patch with an experimental note: verified (changeset lines 2 and 5).
- Changeset: the icon response types and the icon rows of the response-type docs say "icon meaning" and "variant": verified (the remaining "definition" and "look" words are member names, flags, a folder name and the
icon mapargument placeholder). - Changeset and description: type names, members, JSON keys and shapes do not change, only descriptions: verified (every typedef and property tag and every response-type value matches the base).
- Description: the change rewords the JSDoc of the icon response types and the icon response-type rows: verified.
- Description: this is one part of a split rewording; the guides move in #13020 and other output in sibling parts, so words mix until all land: verified (#13020 is an open draft; the guides still say "icon definition").
- Description:
--variantandexperimental.iconVariantalready say "variant", and "definition" names both a data-file entry and what an icon stands for: verified. - Description: the generated API reference uses the new words: verified (the emitted type declarations carry them).
- Description: the
astryx docsresponse-type rows use the new words: false (experimental rows are never printed). - Description: the release rule for experimental changes applies (patch bump, experimental changeset): verified.
- Description: the scope is the CLI's icon response types, with no internal context in public text: verified.
- Description: the icon CLI tests and the API types check pass: verified (68 icon test files and the JSON API typecheck pass at this head).
.changeset/icon-words-response-types.md: clear.packages/cli/api/icon/icon.type.mjs: optional wording notes at lines 76, 120, 174 and 363; theicon mapcommand lines correctly keep the current argument name.packages/cli/foundation/response/response-types.doc.mjs: the rows are never printed (finding above); optional wording note at line 237.
…finition file [skip ci]
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. Only description text on the experimental icon response types changes, every name, type and JSON key stays the same, and the updated description now matches what readers see. Nothing else is required.
- Miss: optional wording at
packages/cli/foundation/response/response-types.doc.mjs:273, where theicon.newDefinitionrow calls the definition file it writes "the meaning" (the slip already fixed at line 237); "the meaning's definition file" would match.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
- Changeset: a CLI patch with an experimental note: verified (changeset lines 2 and 5).
- Changeset: the icon response types and the icon rows of the response-type docs say "icon meaning" and "variant": verified (the remaining "definition" and "look" words are member names, flags, a folder name, the
icon mapargument placeholder and the look words in library export names). - Changeset and description: type names, members, JSON keys and shapes do not change, only descriptions: verified (every typedef and property tag and every response-type value matches the base).
- Description: the change rewords the JSDoc of the icon response types and the icon response-type rows: verified.
- Description: this is one part of a split rewording; the guides move in #13020 and other CLI output in sibling parts, so words mix until all land: verified (the siblings are open drafts;
--helpand the guides still say "icon definition"). - Description: split from the API-docs part: verified (that sibling is an open draft).
- Description:
--variantandexperimental.iconVariantalready say "variant", and "definition" names both a data-file entry and what an icon is for: verified. - Description: the hover text of the published
@astryxdesign/cli/apitype declarations says "icon meaning" and "variant": verified (the emitted declarations carry the new words). - Description: the icon response-type rows change in source only, since
astryx docsleaves experimental rows out: verified (the docs table and the README generator skip experimental rows; the response-type table prints noicon.*row). - Description: every property name and type is byte-identical, and the
lookanddefinitionsmembers keep their names: verified. - Description: the release rule for experimental changes applies (patch bump, experimental changeset): verified.
- Description: one primary intent, scope limited to the CLI's icon response types, no internal context: verified.
- Description: the icon CLI tests and the API types check pass: verified (the JSON API typecheck passes; 73 of 74 icon test files pass, and the remaining one needs a git checkout, unrelated to this change).
.changeset/icon-words-response-types.md: clear.packages/cli/api/icon/icon.type.mjs: clear; the earlier wording notes at lines 76, 120, 174 and 363 are fixed.packages/cli/foundation/response/response-types.doc.mjs: the earlier point about the rows is settled by the description and the line 237 note is fixed; one optional note at line 273.
| stability: 'experimental', | ||
| description: | ||
| "An icon set's own icon definition: its name, the manifest file, the files written (the definition and, with --icon, the data file), and whether they were written or only planned.", | ||
| "An icon set's own icon meaning: its name, the manifest file, the files written (the meaning and, with --icon, the data file), and whether they were written or only planned.", |
There was a problem hiding this comment.
Optional (missed in the last review): "the files written (the meaning and, with --icon, the data file)" calls the definition doc that new-definition writes (definitions/<name>.doc.mjs) "the meaning", the same slip fixed at line 237. Suggested: "the files written (the meaning's definition file and, with --icon, the data file)".
- #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. |
…three doc spans match 0.7.17 Restores the response-type rename that main carries from #13542 (#13433) in icon.type.mjs to its 0.7.17 wording, and returns "with `variant`," and "the set's default variant" in the icon docs to the released text. The response-types changeset names only what still changes.
Primary intent
Reword the JSDoc of the icon response types (
api/icon/icon.type.mjs) and the icon rows of the response type docs. Part of one change split into small PRs that move the experimental icon surface to one vocabulary: "icon meaning" for an entry of Astryx's shared list of what icons are for, "variant" for a set's looks (the word--variantandexperimental.iconVariantalready use), "icon set", and "map … to". Each part rewords only its own strings: the icon-set guides move in #13020 and the rest of the CLI output in the sibling parts, so until they all land, help, output and guides mix the old and new words. Split from the API-docs part to keep each PR small.User or maintainer impact
The hover text of the published
@astryxdesign/cli/apitype declarations says "icon meaning" and "variant". The icon rows of the response-type docs change in source only (astryx docsleaves experimental rows out). Type names, members, JSON keys and shapes do not change; only descriptions do.Problem and solution fit
"Definition" names both a data-file entry and what an icon is for, and "look" sits beside a
--variantflag, so readers and agents guess the wrong word. Only description text changes.Authority
spec:AST-017FR22 (experimental surface, patch,[experimental]changeset).Change and evidence
Descriptions only: every
@propertyname and type is byte-identical (thelookanddefinitionsmembers keep their names).Scope
Components: cli (icon response types)
Testing
CI=1 vitest run --project nodeover every CLI test file that mentions icons; the CLI API types check.preflight: pass 3cbf4df