Skip to content

feat(cli): twenty-one refined icon meanings that fall back to the meaning templates used before - #12748

Closed
josephfarina wants to merge 3 commits into
mainfrom
josephfarina/template-icons-new-meanings
Closed

josephfarina wants to merge 3 commits into
mainfrom
josephfarina/template-icons-new-meanings

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Stack: #12741 → #12747 → #12748 → #12754 → #12756 → #12759 → #12762 → #12767 (lands as one; each PR's own change is its top commit)

What it adds

Twenty-one refined icon meanings (experimental), so the templates that drew their own icon for a meaning keep that icon when templates import icons by meaning.

Fourteen templates drew a different icon for a meaning than every other template: for example, a Copy button drew the clipboard-document icon where other templates draw two stacked sheets, and a verified badge drew the badge-check where other templates draw a check circle. One icon per meaning cannot draw both, so each of these icons gets its own meaning, and its template declares it:

copyText, paste, block, verified, alert, create, media, listView, currency, checklist, channel, team, schedule, help, signal, house, moveToFolder, columnSettings, halftone, groupRows, review.

info draws the information circle, as every icon set does. The form wizard's review banner keeps its badge-check through review, which falls back to info.

Each new meaning names a fallback in the template icon table: the meaning its template declared before (verified falls back to success). Each set in the project's list, in order, maps the icon by its meaning and then by its fallback before the next set is tried, so one set draws each icon. A copy therefore draws the same icon as before with every icon set that does not declare one of these 21 names itself. An icon set's unmapped template meanings leave out a meaning whose fallback it maps, so a set that does not declare these names gets no new warnings; a set that declares its own definition with one of these names gets icon_definition_shadowed, as for any shared definition.

  • 21 icon definitions; table entries with fallback; the regenerated placeholder package.
  • The form wizard changeset names the banner's final meaning, review, which icon sets draw as info.
  • The fallback rule in the template icon mapping, in the unmapped-meanings count, and in experimental icon --definitions: a definition the set does not map but whose fallback it maps is marked drawn as <fallback> (JSON fallback), and is not counted as a placeholder.
  • 22 declarations in 14 template descriptors move to the new meanings. No template source changes, so copies without an icon set are unchanged.
  • AST-084 FR23 describes the fallback and its order.

Testing

  • vitest run --project node on packages/cli/api/template, api/icon, api/docs, authoring/doctypes/icon-definition, foundation/discovery, foundation/integrations and the template icon declarations test. Everything passes except three tests that also fail on the base in this environment (two locale examples that need full ICU data, one doctor validate case).
  • New tests: a meaning no set maps draws its fallback's icon, and the output equals today's; a main set's fallback wins over a backup's refined meaning; two placeholders that one library icon draws (review and verified) map by their own meanings; every fallback is a table meaning and a definition; a meaning whose fallback the set maps is not unmapped.
  • pnpm check:knowledge, Prettier on the changed files

Writing rubric results

R1 narration: none; FR23 states what the system does, in the present tense.
R2 research: none in the record.
R3 evidence: the verification row names tests, not changes.
R4 rejected alternatives: none.
R5 change references: none.
R6 open questions: none.
R7 project status: none; no "yet", "follow-up" or "phase" in the added text.

@vercel

vercel Bot commented Nov 19, 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 19, 2026 8:23pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 19, 2026
@astracat-bot

astracat-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 19, 2026, 8:32 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.

Approval waits on an engineering owner's decision on the proposed AST-084 FR23 (a template icon meaning may fall back to a broader one), including which icon a copy draws when the main set maps only the fallback and a backup maps the refined meaning. An engineering owner records it by commenting /approve-spec <full head SHA>, and the author may do this as an engineering owner. These fixes are needed whatever the decision:

  • A copied template tries the fallback in the main set before it tries the refined meaning in a backup (template-icons.mjs:1018, :1036), so a backup that maps verified loses to the main set's success icon, against FR9's first-set-in-the-list rule and FR23's own text; please try every listed set for the meaning before any fallback and add a main-plus-backup test.
  • The title and description say twenty meanings, 20 definitions and 21 declarations, but the head adds 21 meanings and definitions (review included), moves 22 declarations and changes the icon that info draws, and the changeset's "leave it out" holds only when the set maps the fallback.

Non-blocking: FR23's "draws, in every set, the icon it drew before" does not hold for a set that maps the refined meaning, and FR13's definition of the unmapped list needs the same exception as FR15.

Claims and files checked

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

Claims:

  • Changeset, 21 new meanings, each with a fallback: verified (the table and 21 definition files).
  • Changeset, a set that does not map a new meaning draws the same icon as before: verified for one set (the FR23 mapping test).
  • Changeset, the set's unmapped template meanings leave the new meaning out: false when the set maps neither the meaning nor its fallback (template-icon-meanings.mjs:93-100).
  • Changeset, info draws the information circle again: verified against the base (template-icons.json:343-345).
  • Changeset, the form wizard's review banner keeps its badge through review, which sets draw as info: verified (its descriptor and form-wizard-vertical-review-icon.test.mjs).
  • Title and body, twenty refined meanings and 20 definitions: false (21, review included).
  • Body, 14 templates drew a different icon than the table: verified (each moved icon differs from the base table's icon for its old meaning; the form wizard's through the info change).
  • Body, each new meaning falls back to the meaning its template declared before: verified (all 22 declarations).
  • Body, with every icon set a copy draws the same icon as before: verified for today's sets; once a backup maps a refined meaning, the main set's fallback wins (finding above).
  • Body, unmapped meanings leave out a meaning whose fallback the set maps, so no set's checks get new warnings: verified (template meanings never count or fail, FR15).
  • Body, 21 declarations in 14 descriptors: false (22).
  • Body, no template source changes, so copies without an icon set are unchanged: verified (no template source changed, and none imports the placeholder package).
  • Body, FR23 describes the fallback: verified, but its list rule differs from the code (finding above).
  • Body, the listed suites and new tests pass, and pnpm check:knowledge and Prettier pass: verified on the head.

Files:

  • .changeset/template-icon-meanings-fallback.md: finding (wording).
  • docs/specs/AST-084-icon-sets/spec.md: FR23 held for an owner; non-blocking wording notes.
  • packages/cli/foundation/discovery/template-icons.mjs: finding (list order).
  • packages/cli/foundation/discovery/template-placeholders.mjs: clear.
  • packages/cli/foundation/discovery/template-icon-meanings.mjs: clear (behaviour held with FR23).
  • packages/cli/foundation/discovery/template-icons.test.mjs: clear (covers one set only).
  • packages/cli/foundation/discovery/template-placeholders.test.mjs, template-icon-meanings.test.mjs, packages/cli/api/template/form-wizard-vertical-review-icon.test.mjs: clear.
  • packages/cli/assets/icons/template-icons.json: clear.
  • packages/cli/assets/icons/definitions/ alert, block, channel, checklist, columnSettings, copyText, create, currency, groupRows, halftone, help, house, listView, media, moveToFolder, paste, review, schedule, signal, team, verified (.doc.mjs): clear.
  • Template descriptors ButtonGroupShowcase, useIconHookUsage, ToolbarTableFilter, canvas-editor, editor, file-explorer, form-wizard-vertical, kanban-board, messaging-shell, settings-dialog, shell-top-nav, table-filter, table-inbox, table: clear (each moved icon's fallback is its old meaning); canvas-editor has a non-blocking note on existing template-rubric deductions.
  • packages/template-icons/ index.js and index.d.ts for the root, 16/solid, 20/solid, 24/solid and lucide: clear (generated; equal to the table).

Automated review (maintainer link)

Comment thread docs/specs/AST-084-icon-sets/spec.md Resolved

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

Approval waits on an engineering owner's decision on the proposed AST-084 FR23 (a template icon meaning may fall back to a broader one), including which icon a copy draws when the main set maps only the fallback and a backup maps the refined meaning. An engineering owner records it by commenting /approve-spec <full head SHA>, and the author may do this as an engineering owner. The rebase leaves this pull request's own changes as they were, so these fixes are still needed whatever the decision:

  • A copied template tries the fallback in the main set before it tries the refined meaning in a backup (template-icons.mjs:1018, :1036), so a backup that maps verified loses to the main set's success icon, against FR9's first-set-in-the-list rule and FR23's own text; please try every listed set for the meaning before any fallback and add a main-plus-backup test.
  • The title and description say twenty meanings, 20 definitions and 21 declarations, but the head adds 21 meanings and definitions (review included), moves 22 declarations and changes the icon that info draws, and the changeset's "leave it out" holds only when the set maps the fallback.

Non-blocking: FR23's "draws, in every set, the icon it drew before" does not hold for a set that maps the refined meaning, and FR13's definition of the unmapped list needs the same exception as FR15.

Claims and files checked

Review mode: carry-forward; reason: none

Claims:

  • Changeset, 21 new meanings, each with a fallback: verified (the table and 21 definition files).
  • Changeset, a set that does not map a new meaning draws the same icon as before: verified for one set (the FR23 mapping test).
  • Changeset, the set's unmapped template meanings leave the new meaning out: false when the set maps neither the meaning nor its fallback (template-icon-meanings.mjs:93-100).
  • Changeset, info draws the information circle again: verified against the base (template-icons.json:343-345).
  • Changeset, the form wizard's review banner keeps its badge through review, which sets draw as info: verified (its descriptor and form-wizard-vertical-review-icon.test.mjs).
  • Title and body, twenty refined meanings and 20 definitions: false (21, review included).
  • Body, 14 templates drew a different icon than the table: verified (each moved icon differs from the base table's icon for its old meaning; the form wizard's through the info change).
  • Body, each new meaning falls back to the meaning its template declared before: verified (all 22 declarations).
  • Body, with every icon set a copy draws the same icon as before: verified for today's sets; once a backup maps a refined meaning, the main set's fallback wins (finding above).
  • Body, unmapped meanings leave out a meaning whose fallback the set maps, so no set's checks get new warnings: verified (template meanings never count or fail, FR15).
  • Body, 21 declarations in 14 descriptors: false (22).
  • Body, no template source changes, so copies without an icon set are unchanged: verified (no template source changed, and none imports the placeholder package).
  • Body, FR23 describes the fallback: verified, but its list rule differs from the code (finding above).
  • Body, the listed suites and new tests pass, and pnpm check:knowledge and Prettier pass: verified on the same changes before the rebase.

Files:

  • .changeset/template-icon-meanings-fallback.md: finding (wording).
  • docs/specs/AST-084-icon-sets/spec.md: FR23 held for an owner; non-blocking wording notes.
  • packages/cli/foundation/discovery/template-icons.mjs: finding (list order).
  • packages/cli/foundation/discovery/template-placeholders.mjs: clear.
  • packages/cli/foundation/discovery/template-icon-meanings.mjs: clear (behaviour held with FR23).
  • packages/cli/foundation/discovery/template-icons.test.mjs: clear (covers one set only).
  • packages/cli/foundation/discovery/template-placeholders.test.mjs, template-icon-meanings.test.mjs, packages/cli/api/template/form-wizard-vertical-review-icon.test.mjs: clear.
  • packages/cli/assets/icons/template-icons.json: clear.
  • packages/cli/assets/icons/definitions/ alert, block, channel, checklist, columnSettings, copyText, create, currency, groupRows, halftone, help, house, listView, media, moveToFolder, paste, review, schedule, signal, team, verified (.doc.mjs): clear.
  • Template descriptors ButtonGroupShowcase, useIconHookUsage, ToolbarTableFilter, canvas-editor, editor, file-explorer, form-wizard-vertical, kanban-board, messaging-shell, settings-dialog, shell-top-nav, table-filter, table-inbox, table: clear (each moved icon's fallback is its old meaning); canvas-editor has a non-blocking note on existing template-rubric deductions.
  • packages/template-icons/ index.js and index.d.ts for the root, 16/solid, 20/solid, 24/solid and lucide: clear (generated; equal to the table).

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.

Approval waits on an engineering owner's decision on the proposed AST-084 FR23, which lets a template icon meaning fall back to a broader one, including which icon a copy draws when the main icon set maps only the fallback and a backup maps the refined meaning. An engineering owner records the decision by commenting /approve-spec with the full head SHA, and the author may do this as an engineering owner.

These fixes are needed whatever the decision:

  • A backup set that maps a refined meaning loses to the main set's fallback icon (template-icons.mjs:1018, set loop at :1036), which contradicts AST-084 FR9's rule that the first set in the list that has the meaning wins, so try the declared meaning in every listed set before any fallback and add a main-plus-backup case to the FR23 test.
  • The changeset says a set's unmapped template meanings leave a new meaning out, but unmappedTemplateMeanings does so only when the set maps its fallback, so say "leave it out when the set maps its fallback".
  • Miss: the changeset says the info meaning draws the information circle "again", but no release ever drew it any other way, so drop "again".
  • The title says twenty refined icon meanings, but the change adds twenty-one.

Non-blocking: FR23's "in every set, the icon it drew before" and FR13's definition of the unmapped list each need the refined-meaning exception.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Title: twenty refined meanings. False: the head adds 21 definitions and 21 table entries.
  • Twenty-one experimental refined meanings are added, under the 21 names the body lists. Verified: 21 definition files and table entries with matching names.
  • Fourteen templates drew a different icon for a meaning than the table, such as Copy and the verified badge. Verified: 14 descriptors change, and each moved icon differs from the old meaning's table icon.
  • info draws the information circle. Verified: template-icons.json:343-345.
  • The form wizard's review banner keeps its badge-check through review, which falls back to info. Verified: the descriptor, the table entry and form-wizard-vertical-review-icon.test.mjs.
  • Each new meaning falls back to the meaning its template declared before. Verified for all 22 moved declarations.
  • When no set in the list maps a new meaning, the icon maps by its fallback, so every set draws the same icon as before. False for a main set plus a backup: the main set's fallback wins (template-icons.mjs:1036).
  • A set's unmapped template meanings leave out a meaning whose fallback it maps, so no check gains warnings. Verified: template-icon-meanings.mjs:93-101; the list is never counted.
  • The placeholder package is regenerated from the table. Verified: the package-equals-table test passes.
  • 22 declarations in 14 descriptors move to the new meanings. Verified.
  • No template source changes, so copies without an icon set are unchanged. Verified: no template .tsx changes, and no template imports the placeholder package.
  • AST-084 FR23 describes the fallback. Verified: spec.md:820-826.
  • The named CLI suites pass, and the new tests exist as described. Verified: 156 test files and 2,230 tests pass at the head, including the three new test groups.
  • The knowledge check passes. Verified.
  • Changeset: twenty-one experimental meanings; a set that does not map one draws the same icon as before. Verified for a single set.
  • Changeset: the set's unmapped template meanings leave the new meaning out. False when the set maps neither meaning.
  • Changeset: info draws the information circle again. False: no release drew it another way.
  • Changeset: the banner keeps its badge through review, which icon sets draw as info. Verified while no set maps review.

Files:

  • .changeset/template-icon-meanings-fallback.md: two wording findings.
  • docs/specs/AST-084-icon-sets/spec.md: FR23 waits on owner approval; non-blocking wording notes.
  • packages/cli/foundation/discovery/template-icons.mjs: list-order finding.
  • packages/cli/foundation/discovery/template-icons.test.mjs: needs the main-plus-backup case with the order fix.
  • packages/cli/foundation/discovery/template-placeholders.mjs, template-placeholders.test.mjs, template-icon-meanings.mjs, template-icon-meanings.test.mjs: clear.
  • packages/cli/api/template/form-wizard-vertical-review-icon.test.mjs: clear.
  • packages/cli/assets/icons/template-icons.json: clear.
  • packages/cli/assets/icons/definitions/ alert, block, channel, checklist, columnSettings, copyText, create, currency, groupRows, halftone, help, house, listView, media, moveToFolder, paste, review, schedule, signal, team, verified (.doc.mjs): clear.
  • Block descriptors ButtonGroupShowcase.doc.mjs, useIconHookUsage.doc.mjs, ToolbarTableFilter.doc.mjs: clear.
  • Page descriptors (template.doc.mjs) of canvas-editor, editor, file-explorer, form-wizard-vertical, kanban-board, messaging-shell, settings-dialog, shell-top-nav, table-filter, table-inbox, table: clear. canvas-editor already grades below 75 on the template rubric, and this change does not lower it.
  • packages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clear; it matches the CLI output.
  • packages/template-icons/ index, 16/solid/index, 20/solid/index, 24/solid/index, lucide/index (.js and .d.ts): clear; generated from the table.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-copy-step branch from 05d384a to f6d559e Compare November 19, 2026 05:09
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-new-meanings branch from 6d0b64c to ece53d2 Compare November 19, 2026 05:09
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-copy-step branch from f6d559e to edc576a Compare November 19, 2026 05:25
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-new-meanings branch from ece53d2 to 5ca2b96 Compare November 19, 2026 05:25

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

Approval waits on an engineering owner's decision on the proposed AST-084 FR23, which lets a template icon meaning fall back to a broader one, including which icon a copy draws when the main icon set maps only the fallback and a backup maps the refined meaning. An engineering owner records the decision by commenting /approve-spec with the full head SHA, and the author may do this as an engineering owner.

These fixes are needed whatever the decision:

  • A backup set that maps a refined meaning loses to the main set's fallback icon (template-icons.mjs:1018, set loop at :1036), which contradicts AST-084 FR9's rule that the first set in the list that has the meaning wins, so try the declared meaning in every listed set before any fallback and add a main-plus-backup case to the FR23 test.
  • The changeset says a set's unmapped template meanings leave a new meaning out, but unmappedTemplateMeanings does so only when the set maps its fallback, so say "leave it out when the set maps its fallback".
  • Miss: the changeset says the info meaning draws the information circle "again", but no release ever drew it any other way, so drop "again".
  • The title says twenty refined icon meanings, but the change adds twenty-one.

Non-blocking: FR23's "in every set, the icon it drew before" and FR13's definition of the unmapped list each need the refined-meaning exception.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Title: twenty refined meanings. False: the change adds 21 definitions and 21 table entries.
  • Twenty-one experimental refined meanings are added under the 21 names the description lists. Verified: 21 definition files and table entries with matching names.
  • Fourteen templates drew a different icon for a meaning, such as the Copy button and the verified badge. Verified: 14 descriptors change; 21 of the 22 moved icons differ from the old meaning's table icon, and the form wizard's badge was the table's own info icon, which this change moves.
  • info draws the information circle. Verified: template-icons.json:343-345.
  • The form wizard's review banner keeps its badge through review, which falls back to info. Verified: the descriptor, the table entry and form-wizard-vertical-review-icon.test.mjs.
  • Each new meaning falls back to the meaning its template declared before. Verified for all 22 moved declarations.
  • When no set in the list maps a new meaning, the icon maps by its fallback, so every set draws the same icon as before. False for a main set plus a backup: the code falls back inside the main set before it tries the backup (template-icons.mjs:1036).
  • A set's unmapped template meanings leave out a meaning whose fallback it maps, so no check gains warnings. Verified: template-icon-meanings.mjs:93-101; the list is never counted.
  • The placeholder package is regenerated from the table. Verified: the package-equals-table test passes.
  • 22 declarations in 14 descriptors move to the new meanings. Verified.
  • No template source changes, so copies without an icon set are unchanged. Verified: no template .tsx changes, and no template imports the placeholder package.
  • AST-084 FR23 describes the fallback. Verified: spec.md:820-826.
  • The named CLI suites pass, and the new tests exist as described. Verified: 174 test files and 2,436 tests pass at the head, including the three new test groups.
  • The knowledge check and Prettier pass on the changed files. Verified for the authored files; the snapshot golden is test-runner output and was not Prettier-formatted before this change either.
  • Changeset: twenty-one experimental meanings; a set that does not map one draws the same icon as before. Verified.
  • Changeset: the set's unmapped template meanings leave the new meaning out. False when the set maps neither meaning.
  • Changeset: info draws the information circle again. False: no release drew it another way.
  • Changeset: the banner keeps its badge through review, which icon sets draw as info. Verified while no set maps review.

Files:

  • .changeset/template-icon-meanings-fallback.md: two wording findings.
  • docs/specs/AST-084-icon-sets/spec.md: FR23 waits on owner approval; non-blocking wording notes.
  • packages/cli/foundation/discovery/template-icons.mjs: list-order finding.
  • packages/cli/foundation/discovery/template-icons.test.mjs: needs the main-plus-backup case with the order fix.
  • packages/cli/foundation/discovery/template-placeholders.mjs, template-placeholders.test.mjs, template-icon-meanings.mjs, template-icon-meanings.test.mjs: clear.
  • packages/cli/api/template/form-wizard-vertical-review-icon.test.mjs: clear.
  • packages/cli/assets/icons/template-icons.json: clear.
  • packages/cli/assets/icons/definitions/ alert, block, channel, checklist, columnSettings, copyText, create, currency, groupRows, halftone, help, house, listView, media, moveToFolder, paste, review, schedule, signal, team, verified (.doc.mjs): clear.
  • Block descriptors ButtonGroupShowcase.doc.mjs, useIconHookUsage.doc.mjs, ToolbarTableFilter.doc.mjs: clear.
  • Page descriptors (template.doc.mjs) of canvas-editor, editor, file-explorer, form-wizard-vertical, kanban-board, messaging-shell, settings-dialog, shell-top-nav, table-filter, table-inbox, table: clear. canvas-editor already grades below 75 on the template rubric, and this change does not lower it.
  • packages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clear; it matches the CLI output.
  • packages/template-icons/ index, 16/solid/index, 20/solid/index, 24/solid/index, lucide/index (.js and .d.ts): clear; generated from the table.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-copy-step branch from edc576a to 4ff7839 Compare November 19, 2026 08:32
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec adb5c7f

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

Changes requested: one sentence in the description needs a fix. An engineering owner's /approve-spec for this head settles the AST-084 changes (FR21, FR22, FR23 and their amendments).

  • Miss: the description says a copy draws the same icon as before with every icon set that does not declare one of the 21 new names, but a set that maps one of them (for example verified) without declaring it draws that icon instead, so say "with every icon set that maps none of these 21 names", as the changeset and FR23 do.

Non-blocking: FR23 calls a fallback "another meaning that draws the same icon", though every refined meaning draws a different icon from its fallback; the FR22 and FR23 verification rows fail in cases their requirements allow; the --definitions fallback assertion in icon-template-meanings.test.mjs cannot fail with its fixture set; and the icon-sets guide still describes set order and placeholders without fallbacks. This pull request is reviewed on its own, because the Stack line's entries from #12754 up target other branches rather than main.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Title: twenty-one refined meanings that fall back to the meaning templates used before. Verified: 21 definition files, and each fallback in the table is the meaning main declares for that icon.
  • Fourteen templates drew their own picture for a common meaning; 22 declarations in 14 descriptors move to the new meanings. Verified in the descriptor diffs.
  • The table draws info as the information circle, and the form wizard banner keeps its badge through review, which falls back to info. Verified in the table and the banner test.
  • Each set in the project's list tries the meaning, then its fallback, before the next set. Verified in the mapping code and its main-and-backup test.
  • A copy draws the same icon as before with every set that does not declare one of the 21 names. False: a set that maps one of them draws it (probe).
  • The unmapped template meanings leave out a meaning whose fallback the set maps, sets without these names get no new warnings, and a set's own definition with one of these names gets the shadowed warning. Verified: only informational lists grow.
  • --definitions marks a definition drawn by its fallback and reports fallback, and does not count it as unmapped. Verified in the code; its test assertion cannot fail.
  • No template source changes, so copies without an icon set are unchanged. Verified: no page or block source changes and no bundled template imports the placeholder package.
  • FR23 describes the fallback and its order. Verified.
  • The listed tests exist and pass, and the knowledge check and formatting pass. Verified: the CLI suites pass, the knowledge check passes, and the changed source and Markdown files are formatted.
  • Stack line: each pull request's own change is its top commit. Verified for this pull request.
  • Changeset, form wizard banner: declared review, drawn as info by icon sets, a main set that wraps Heroicons keeps the badge, copies without a set unchanged. Verified.
  • Changeset, refined meanings: 21 meanings, each with a fallback; a set that does not map or declare one draws the same icon; the unmapped list leaves one out when the set maps its fallback. Verified.
  • Changeset, placeholder copies: astryx template, the showcase source and build's setup notes fill placeholder imports; no bundled template uses them yet. Verified.
  • Changeset, table and package: the CLI ships the table, the private package is generated from it, no template uses it yet. Verified: the table is under the published assets and the generator's check passes.

Files:

  • docs/specs/AST-084-icon-sets/spec.md: owner-approved at this head; non-blocking FR23 wording and the FR22 and FR23 verification rows.
  • template-icons.mjs, template-placeholders.mjs, template-icon-meanings.mjs, template-adapter.mjs, definitions.mjs, experimental/icon.mjs, icon.type.mjs, validate-integration.type.mjs, the build, component and icon adapters, showcase.mjs: clear.
  • template-icons.test.mjs, template-placeholders.test.mjs, template-icon-meanings.test.mjs, form-wizard-vertical-review-icon.test.mjs, the no-icon-set snapshot: clear. icon-template-meanings.test.mjs: non-blocking, the fallback assertion cannot fail.
  • template-icons.json, the 21 icon definitions, generate-template-icons.mjs, the generated packages/template-icons modules, README and manifest, the CLI and docs site manifests, pnpm-lock.yaml: clear.
  • The descriptors of canvas-editor, editor, file-explorer, form-wizard-vertical, kanban-board, messaging-shell, settings-dialog, shell-top-nav, table-filter, table-inbox, table and the ButtonGroupShowcase, useIconHookUsage and ToolbarTableFilter blocks: clear; canvas-editor keeps its existing template-rubric deductions, not lowered here.
  • The four changesets: clear; non-blocking [fix] tag on the form wizard note, where FR0 asks for [experimental].

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-new-meanings branch from adb5c7f to b4da748 Compare November 19, 2026 18:14
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec b4da748

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

Changes requested: one sentence in the description still needs a fix. An engineering owner's /approve-spec for this head settles the AST-084 changes (FR21, FR22, FR23 and their amendments).

  • The description says a copy draws the same icon as before with every icon set that does not declare one of the 21 new names, but a set that maps one of them (for example verified) without declaring it draws that icon instead, so say "with every icon set that maps none of these 21 names", as the changeset and FR23 do.

Non-blocking: FR23 calls a fallback "another meaning that draws the same icon", though every refined meaning draws a different icon from its fallback; the FR22 and FR23 verification rows fail in cases their requirements allow; the --definitions fallback assertion in icon-template-meanings.test.mjs cannot fail with its fixture set; and the icon-sets guide still describes set order and placeholders without fallbacks. This pull request is reviewed on its own, because the Stack line's entries from #12754 up target other branches rather than main.

Claims and files checked

Review mode: full; reason: history

Claims:

  • Title: twenty-one refined meanings that fall back to the meaning templates used before. Verified: 21 definition files, and each fallback in the table is the meaning main declares for that icon.
  • Fourteen templates drew their own picture for a common meaning; 22 declarations in 14 descriptors move to the new meanings. Verified in the descriptor diffs.
  • The table draws info as the information circle, and the form wizard banner keeps its badge through review, which falls back to info. Verified in the table and the banner test.
  • Each set in the project's list tries the meaning, then its fallback, before the next set. Verified in the mapping code and its main-and-backup test.
  • A copy draws the same icon as before with every set that does not declare one of the 21 names. False: a set that maps one of them draws it (probe).
  • The unmapped template meanings leave out a meaning whose fallback the set maps, sets without these names get no new warnings, and a set's own definition with one of these names gets the shadowed warning. Verified: only informational lists grow.
  • --definitions marks a definition drawn by its fallback and reports fallback, and does not count it as unmapped. Verified in the code; its test assertion cannot fail.
  • No template source changes, so copies without an icon set are unchanged. Verified: no page or block source changes, and no bundled template imports the placeholder package.
  • FR23 describes the fallback and its order. Verified.
  • The listed tests exist and pass, and the knowledge check and formatting pass. Verified: the CLI suites pass, the knowledge check passes, and only the test-written snapshot differs from Prettier, as on main.
  • Stack line: each pull request's own change is its top commit. Verified for this pull request.
  • Writing rubric results: no temporary status in the added record text. Verified.
  • Changeset, form wizard banner: declared review, drawn as info by icon sets, a main set that wraps Heroicons keeps the badge, copies without a set unchanged. Verified.
  • Changeset, refined meanings: 21 meanings, each with a fallback; a set that does not map or declare one draws the same icon; the unmapped list leaves one out when the set maps its fallback. Verified.
  • Changeset, placeholder copies: astryx template, the showcase source and build's setup notes fill placeholder imports under the same name. Verified.
  • Changeset, table and package: the CLI ships the table, and the private package generated from it lets template sources import icons by meaning with previews drawing the same icons. Verified: the table is under the published assets, and the generator's check passes.

Files:

  • docs/specs/AST-084-icon-sets/spec.md: owner-approved at this head; non-blocking FR23 wording and the FR22 and FR23 verification rows.
  • template-icons.mjs, template-placeholders.mjs, template-icon-meanings.mjs, template-adapter.mjs, definitions.mjs, experimental/icon.mjs, icon.type.mjs, validate-integration.type.mjs, the build, component and icon adapters, showcase.mjs: clear.
  • template-icons.test.mjs, template-placeholders.test.mjs, template-icon-meanings.test.mjs, form-wizard-vertical-review-icon.test.mjs, the no-icon-set snapshot: clear. icon-template-meanings.test.mjs: non-blocking, the fallback assertion cannot fail.
  • template-icons.json, the 21 icon definitions, generate-template-icons.mjs, the generated packages/template-icons modules, README and manifest, the CLI and docs site manifests, pnpm-lock.yaml: clear.
  • The descriptors of canvas-editor, editor, file-explorer, form-wizard-vertical, kanban-board, messaging-shell, settings-dialog, shell-top-nav, table-filter, table-inbox, table and the ButtonGroupShowcase, useIconHookUsage and ToolbarTableFilter blocks: clear; canvas-editor keeps its existing template-rubric deductions, not lowered here.
  • The four changesets: clear; non-blocking [fix] tag on the form wizard note, where FR0 asks for [experimental].

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-new-meanings branch from b4da748 to 4aa8826 Compare November 19, 2026 19:34
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 19, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 4aa8826

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 19, 2026
josephfarina added a commit that referenced this pull request Nov 19, 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 draft head yet, and an engineering owner's /approve-spec for this head settles the AST-084 changes (FR21, FR22, FR23 and their amendments).

The description change requested earlier is not needed: an icon set that loads on main cannot map one of the 21 names without declaring it, so the sentence saying such sets draw the same icon as before holds.

Non-blocking: FR23 calls a fallback "another meaning that draws the same icon", though each refined meaning draws a different icon from its fallback; the FR22 and FR23 verification rows fail in cases their requirements allow; the --definitions fallback assertion in icon-template-meanings.test.mjs cannot fail with its fixture set; the icon-sets guide still describes set order and placeholders without fallbacks; and the form wizard changeset keeps a [fix] tag where FR0 asks for [experimental]. This pull request is reviewed on its own, because the Stack line's entries from #12754 up target other branches rather than main.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Title: twenty-one refined meanings that fall back to the meaning templates used before. Verified: 21 definition files, and each fallback in the table is the meaning main declares for that icon.
  • Fourteen templates drew their own picture for a meaning; 22 declarations in 14 descriptors move to the new meanings. Verified in the descriptor diffs; each of the 22 icons differs from the table's icon for its old meaning, though the table page shares its error icon with the useIcon block (non-blocking wording).
  • The table draws info as the information circle, and the form wizard banner keeps its badge through review, which falls back to info. Verified in the table and the banner test.
  • Each set in the project's list tries the meaning, then its fallback, before the next set. Verified in the mapping loop and its main-and-backup test.
  • A copy draws the same icon as before with every set that does not declare one of the 21 names. Verified: main withdraws a set that maps one of them without declaring it, and a set valid on main copies the same icon on both (probe).
  • The unmapped template meanings leave out a meaning whose fallback the set maps, sets without these names get no new warnings, and a set's own definition with one of these names gets the shadowed warning. Verified: only never-counted lists grow.
  • --definitions marks a definition drawn by its fallback and reports fallback, and does not count it as unmapped. Verified in the code and a probe; its test assertion cannot fail.
  • No template source changes, so copies without an icon set are unchanged. Verified: no page or block source changes, and no bundled template imports the placeholder package.
  • FR23 describes the fallback and its order. Verified.
  • The listed tests exist and pass, and the knowledge check and formatting pass. Verified: the CLI suites pass apart from one test that needs git and fails the same way on main here, the knowledge check passes, and only the test-written snapshot differs from Prettier, as on main.
  • Stack line: each pull request's own change is its top commit. Verified for this pull request.
  • Writing rubric results: no temporary status in the added record text. Verified.
  • Changeset, form wizard banner: declared review, drawn as info by icon sets, copies without a set unchanged. Verified; tag [fix] (non-blocking).
  • Changeset, refined meanings: 21 meanings, each with a fallback; a set that does not map or declare one draws the same icon; the unmapped list leaves one out when the set maps its fallback. Verified.
  • Changeset, placeholder copies: astryx template, the showcase source and build's setup notes fill placeholder imports under the same name. Verified.
  • Changeset, table and package: the CLI ships the table, and the private package generated from it lets template sources import icons by meaning with previews drawing the same icons. Verified: the table is under the published assets, and the generator's check passes.

Files:

  • docs/specs/AST-084-icon-sets/spec.md: owner-approved at this head; non-blocking FR23 wording and the FR22 and FR23 verification rows.
  • template-icons.mjs, template-placeholders.mjs, template-icon-meanings.mjs, template-adapter.mjs, definitions.mjs, experimental/icon.mjs, icon.type.mjs, validate-integration.type.mjs, the build, component and icon adapters, showcase.mjs: clear.
  • template-icons.test.mjs, template-placeholders.test.mjs, template-icon-meanings.test.mjs, form-wizard-vertical-review-icon.test.mjs, the no-icon-set snapshot: clear. icon-template-meanings.test.mjs: non-blocking, the fallback assertion cannot fail.
  • template-icons.json, the 21 icon definitions, generate-template-icons.mjs, the generated packages/template-icons modules, README and manifest, the CLI and docs site manifests, pnpm-lock.yaml: clear.
  • The descriptors of canvas-editor, editor, file-explorer, form-wizard-vertical, kanban-board, messaging-shell, settings-dialog, shell-top-nav, table-filter, table-inbox, table and the ButtonGroupShowcase, useIconHookUsage and ToolbarTableFilter blocks: clear; canvas-editor keeps its existing template-rubric deductions, not lowered here.
  • The four changesets: clear; non-blocking [fix] tag on the form wizard note.

Automated review (maintainer link)

---

[fix] The `form-wizard-vertical` template declares its review banner icon as `info`, the meaning the banner shows, instead of `checkDouble`. A project whose icon set draws template icons by meaning now gets that set's info icon in the banner. A project whose main set wraps `@heroicons/react` keeps the check badge unless it picks a variant, and copies without an icon set are unchanged.
[fix] The `form-wizard-vertical` template declares its review banner icon as `review`, which icon sets draw as `info`, the meaning the banner shows, instead of `checkDouble`. A project whose icon set draws template icons by meaning now gets that set's info icon in the banner. A project whose main set wraps `@heroicons/react` keeps the check badge unless it picks a variant, and copies without an icon set are unchanged.

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.

Non-blocking: this note now describes the experimental review meaning, but it keeps the [fix] tag, while AST-084 FR0 says every icon-set change ships as an [experimental] patch Changeset. Retag it [experimental], or fold the banner sentence into template-icon-meanings-fallback.md, which already says the banner keeps its badge through review.

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-new-meanings branch from 4aa8826 to b86c47b Compare November 19, 2026 20:10
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec b86c47b

@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 draft head yet. An engineering owner's /approve-spec for this head settles the AST-084 changes (FR21, FR22, FR23 and their amendments), and no blocking finding remains.

Non-blocking points that are still open in the inline threads:

  • The icon-sets guide (packages/cli/assets/docs/tree/icon-sets.doc.mjs) still says each icon comes from the first set that maps its meaning, with no fallback.
  • The --definitions fallback assertion in icon-template-meanings.test.mjs cannot fail, because its fixture set maps none of the fallbacks; mapping success there would make it check verified.
  • FR23 says a fallback "draws the same icon", but each refined meaning draws a different icon from its fallback.
Claims and files checked

Review mode: full; reason: rebase

Claims:

  • 21 experimental refined meanings are added: verified (21 definition files, 21 table entries with a fallback).
  • Fourteen templates drew a different icon for a meaning than every other template: loose, since two templates drew the no-symbol icon for errors; what holds is that each moved icon differs from the table's icon for its old meaning (non-blocking).
  • A Copy button drew the clipboard document and a verified badge drew the badge check where others draw stacked sheets and a check circle: verified.
  • info draws the information circle, and the review banner keeps its badge through review, which falls back to info: verified (table).
  • Each new meaning falls back to the meaning its template declared before: verified for all 22 moved declarations.
  • Each set tries the meaning, then its fallback, before the next set: verified (matchIcon and the set loop; the main-plus-backup test).
  • A copy draws the same icon as before with every set that does not declare one of the 21 names: verified (main refuses a map key that is neither an Astryx definition nor declared).
  • Unmapped template meanings leave out a meaning whose fallback the set maps, so such sets get no new warnings, and a set that declares one of the names gets icon_definition_shadowed: verified.
  • Definitions, table fallbacks and the regenerated package: verified (the generator check passes).
  • The form wizard changeset names review: verified.
  • experimental icon --definitions marks drawn as <fallback>, reports JSON fallback, and stops counting such a definition: verified (code and a probe).
  • 22 declarations in 14 descriptors move, no template source changes, and copies without a set are unchanged: verified.
  • FR23 describes the fallback and its order: verified.
  • The named test suites pass apart from environment-only failures: verified for the suites run here (one test that needs git fails on main the same way).
  • The new tests listed exist and pass: verified.
  • Knowledge check and Prettier: verified (only the test-written snapshot differs, as on main).
  • The record text carries no narration, research, rejected alternatives, open questions or project status: verified.
  • Changeset, refined meanings: verified. Changeset, the copy step fills placeholders, and the showcase and setup notes do the same: verified. Changeset, the CLI ships the table and a private generated package: verified (the CLI's published assets include the table).

Files:

  • .changeset/template-icon-meanings-fallback.md, .changeset/template-icon-placeholders-copy.md, .changeset/template-icon-placeholders-module.md: clear
  • .changeset/form-wizard-review-icon-info.md: text clear; [fix] tag where FR0 asks for [experimental] (non-blocking)
  • docs/specs/AST-084-icon-sets/spec.md: owner-approved; FR23 "same icon" wording, the DEC-11 reason and the FR22 row (non-blocking)
  • packages/cli/foundation/discovery/template-icons.mjs, template-icon-meanings.mjs, template-placeholders.mjs, template-adapter.mjs: clear
  • packages/cli/api/icon/definitions/definitions.mjs, api/icon/_adapter.mjs, api/icon/icon.type.mjs, api/integration/validate-integration.type.mjs, clients/cli/commands/experimental/icon.mjs: clear
  • packages/cli/api/build/_adapter.mjs, api/component/_adapter.mjs, api/component/detail/showcase/showcase.mjs (formatting around a one-line change): clear
  • packages/cli/clients/cli/commands/icon-template-meanings.test.mjs: the --definitions fallback loop cannot fail (non-blocking)
  • packages/cli/foundation/discovery/template-icons.test.mjs, template-placeholders.test.mjs, template-icon-meanings.test.mjs, packages/cli/api/template/form-wizard-vertical-review-icon.test.mjs: clear
  • packages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clear (test-written snapshot)
  • packages/cli/assets/icons/template-icons.json and packages/cli/scripts/generate-template-icons.mjs: clear
  • packages/template-icons/ (package.json, README.md, and index.js/index.d.ts at the root, 24/solid, 20/solid, 16/solid and lucide): clear, equal to the generated files
  • The 21 definition files under packages/cli/assets/icons/definitions/: clear
  • The 14 template descriptors (ButtonGroupShowcase, useIconHookUsage, ToolbarTableFilter, and the canvas-editor, editor, file-explorer, form-wizard-vertical, kanban-board, messaging-shell, settings-dialog, shell-top-nav, table-filter, table-inbox and table pages): clear; canvas-editor keeps its existing template-rubric deductions (non-blocking)
  • packages/cli/package.json, apps/docsite/package.json, pnpm-lock.yaml: clear

Automated review (maintainer link)

josephfarina added a commit that referenced this pull request Nov 19, 2026
- #12741 feat(cli): template icon table and the template-icons placeholder package
  Author: @josephfarina
- #12747 feat(cli): template copies write icon placeholders as the library icon that draws them
  Author: @josephfarina
- #12748 feat(cli): twenty-one refined icon meanings that fall back to the meaning templates used before
  Author: @josephfarina
- #12754 feat(cli): page templates ai-chat to kanban-board import icons by meaning
  Author: @josephfarina
- #12756 feat(cli): page templates library to work-item-detail import icons by meaning
  Author: @josephfarina
- #12759 feat(cli): block templates AlertDialog to MultiSelector import icons by meaning
  Author: @josephfarina
- #12762 feat(cli): block templates NavHeadingMenu to VStack import icons by meaning
  Author: @josephfarina
- #12767 feat(cli): bundled templates pick each icon by meaning
  Author: @josephfarina
- #13001 test(cli): the swizzle proof renders Lab's MediaPlayer with its required label
  Author: @josephfarina
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #12965.

@github-actions
github-actions Bot deleted the josephfarina/template-icons-new-meanings branch November 20, 2026 06:06

This branch was successfully deployed

1 active deployment
Preview — b86c47b4 Deployed Nov 19, 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