Skip to content

cli(icons): icon response types say "icon meaning" and "variant" - #13433

Closed
josephfarina wants to merge 3 commits into
mainfrom
josephfarina/icon-words-9-response-types
Closed

josephfarina wants to merge 3 commits into
mainfrom
josephfarina/icon-words-9-response-types

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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 --variant and experimental.iconVariant already 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/api type declarations says "icon meaning" and "variant". The icon rows of the response-type docs change in source only (astryx docs leaves 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 --variant flag, so readers and agents guess the wrong word. Only description text changes.

Authority

spec:AST-017 FR22 (experimental surface, patch, [experimental] changeset).

Change and evidence

Descriptions only: every @property name and type is byte-identical (the look and definitions members keep their names).

Scope

Components: cli (icon response types)

  • This PR has one primary intent.
  • Independently removable deltas were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

CI=1 vitest run --project node over every CLI test file that mentions icons; the CLI API types check.

preflight: pass 3cbf4df

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]
@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 7:58pm 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, 8:05 PM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label 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.

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 docs response-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 reworded icon.* 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 main the 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 docs response-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.

Automated review (maintainer link)

Comment thread packages/cli/api/icon/icon.type.mjs Resolved
Comment thread packages/cli/api/icon/icon.type.mjs Resolved
Comment thread packages/cli/api/icon/icon.type.mjs Resolved
…enamed

The `icon map` help names its first argument `definition`, so printed
commands keep `<definition>` until that rename lands.

[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.

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 docs response-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 reworded icon.* 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 map argument 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: --variant and experimental.iconVariant already 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 docs response-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; the icon map command 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.

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: 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 the icon.newDefinition row 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 map argument 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; --help and the guides still say "icon definition").
  • Description: split from the API-docs part: verified (that sibling is an open draft).
  • Description: --variant and experimental.iconVariant already 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/api type 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 docs leaves experimental rows out: verified (the docs table and the README generator skip experimental rows; the response-type table prints no icon.* row).
  • Description: every property name and type is byte-identical, and the look and definitions members 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.

Automated review (maintainer link)

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.",

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.

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)".

@josephfarina
josephfarina marked this pull request as ready for review November 21, 2026 23:29
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.

cixzhang added a commit that referenced this pull request Nov 22, 2026
…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.
@github-actions
github-actions Bot deleted the josephfarina/icon-words-9-response-types branch November 23, 2026 06:06

This branch was successfully deployed

1 active deployment
Preview — 3cbf4df5 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