Skip to content

feat(cli): bundled templates pick each icon by meaning - #12767

Closed
josephfarina wants to merge 1 commit into
josephfarina/template-icons-migrate-4from
josephfarina/template-icons-by-meaning-rule
Closed

josephfarina wants to merge 1 commit into
josephfarina/template-icons-migrate-4from
josephfarina/template-icons-by-meaning-rule

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 changes

The rule that keeps bundled templates on icon placeholders (experimental), now that every bundled template imports its icons by meaning.

  • The template icon test fails when a bundled template imports an icon straight from Heroicons or Lucide. The fix line names the placeholder import and the migration script.
  • packages/cli/CONTRIBUTING.md, under "Adding a new template": pick each icon by meaning, the variant paths, what previews and copies draw, and what to do when no meaning fits. That means adding the definition and its table entry; a refined meaning names a fallback.
  • AST-084 FR9 and FR21 say bundled templates import every icon as a placeholder and declare no icons.

Unchanged on purpose:

  • The public template-authoring guide and the icons declaration rules for integration packages: their templates keep importing icon libraries.
  • The template grading rubric: it grades copied files, which import icon libraries as before.

Testing

  • vitest run --project node packages/cli/test/template-icon-declarations.test.mjs
  • pnpm check:knowledge, Prettier on the changed files

Writing rubric results

R1 narration: none; the added FR9 and FR21 sentences state what the system does, in the present tense.
R2 research: none in the record.
R3 evidence: verification cells name tests, not changes.
R4 rejected alternatives: none.
R5 change references: none.
R6 open questions: none.
R7 project status: none.

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

This pull request is not ready for approval yet: the spec:AST-084 rule it adds needs an engineering owner's decision, and a few small fixes are needed either way.

FR10 and FR21 now say that bundled Core templates import every icon by meaning from @astryxdesign/template-icons, never from an icon library, and declare no icons; on main, FR10 says every imported icon is declared, and FR21 does not exist yet. An engineering owner records the decision on that rule by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

  • packages/cli/CONTRIBUTING.md:203 says previews and copies draw the table's Heroicon, but icons imported from the /lucide path draw the table's Lucide icon in both, so it should say "a Heroicon, or a Lucide icon in the lucide look".
  • The same line's node scripts/generate-template-icons.mjs works only from packages/cli, while the section's other paths and the script's own messages use node packages/cli/scripts/generate-template-icons.mjs, so use that form.
  • FR6 in docs/specs/AST-084-icon-sets/spec.md still defines the --definitions templates count as bundled templates "whose icons name it", which the new FR10 sentence makes zero, so count placeholder imports too (FR21), as the code already does.
  • The description says FR9 states the new rule, but the changed sentence is in FR10 and FR9 is unchanged.
  • The description needs the ## Writing rubric results section that a pull request changing a knowledge record reports.
Claims and files checked

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

  • Changeset, bundled templates pick each icon by meaning: verified; no template imports from an icon library, and the icon test file passes 5 of 5.
  • Changeset, the test fails on an icon imported straight from an icon library: verified for named imports (a scratch import fails the new test); a default deep import fails only the undeclared-icon test, and a namespace import fails none.
  • Changeset, the failure names the command that moves the icon: verified; the fix line names the migration script, which exists.
  • Changeset, copies are unchanged: verified; no copy code or template changes.
  • Description, the fix line names the placeholder import and the migration script: verified.
  • Description, the contributing guide gains the rule under "Adding a new template": verified location; its lucide and script-path wording is wrong (above).
  • Description, FR9 and FR21 state the rule: false; the rule is in FR10 and FR21.
  • Description, the public template-authoring guide, the integration icons rules and the template grading rubric are unchanged: verified.
  • Description, the Vitest command passes: verified (5 of 5).
  • Description, the knowledge check and Prettier pass: verified.
  • .changeset/template-icons-by-meaning-rule.md: clear.
  • docs/specs/AST-084-icon-sets/spec.md: needs the owner decision; FR6 count finding.
  • packages/cli/CONTRIBUTING.md: two findings.
  • packages/cli/test/template-icon-declarations.test.mjs: clear.

Automated review (maintainer link)

Comment thread packages/cli/CONTRIBUTING.md Resolved
Comment thread docs/specs/AST-084-icon-sets/spec.md Resolved
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-4 branch from cae3a0f to f9fad8c Compare November 19, 2026 03:25
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-by-meaning-rule branch from d0e0e77 to d10cc5a Compare November 19, 2026 03: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.

This pull request is not ready for approval yet: the spec:AST-084 rule it adds needs an engineering owner's decision, and a few small fixes are needed either way.

FR10 and FR21 now say that bundled Core templates import every icon by meaning from @astryxdesign/template-icons, never from an icon library, and declare no icons; on main, FR10 says every imported icon is declared, and FR21 does not exist yet. An engineering owner records the decision on that rule by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

  • packages/cli/CONTRIBUTING.md:203 says previews and copies draw the table's Heroicon, but icons imported from the /lucide path draw the table's Lucide icon in both, so it should say "a Heroicon, or a Lucide icon in the lucide look".
  • The same line's node scripts/generate-template-icons.mjs works only from packages/cli, while the section's other paths and the script's own messages use node packages/cli/scripts/generate-template-icons.mjs, so use that form.
  • FR6 in docs/specs/AST-084-icon-sets/spec.md still defines the --definitions templates count as bundled templates "whose icons name it", which the new FR10 sentence makes zero, so count placeholder imports too (FR21), as the code already does.
  • The description says FR9 states the new rule, but the changed sentence is in FR10 and FR9 is unchanged.
  • The description needs the ## Writing rubric results section that a pull request changing a knowledge record reports.
Claims and files checked

Review mode: carry-forward; reason: none

  • Changeset, bundled templates pick each icon by meaning: verified; no template imports from an icon library, and the icon test file passes 5 of 5.
  • Changeset, the test fails on an icon imported straight from an icon library: verified for named imports (a scratch import fails the new test); a default deep import fails only the undeclared-icon test, and a namespace import fails none.
  • Changeset, the failure names the command that moves the icon: verified; the fix line names the migration script, which exists.
  • Changeset, copies are unchanged: verified; no copy code or template changes.
  • Description, the fix line names the placeholder import and the migration script: verified.
  • Description, the contributing guide gains the rule under "Adding a new template": verified location; its lucide and script-path wording is wrong (above).
  • Description, FR9 and FR21 state the rule: false; the rule is in FR10 and FR21.
  • Description, the public template-authoring guide, the integration icons rules and the template grading rubric are unchanged: verified.
  • Description, the Vitest command passes: verified (5 of 5).
  • Description, the knowledge check and Prettier pass: verified.
  • .changeset/template-icons-by-meaning-rule.md: clear.
  • docs/specs/AST-084-icon-sets/spec.md: needs the owner decision; FR6 count finding.
  • packages/cli/CONTRIBUTING.md: two findings.
  • packages/cli/test/template-icon-declarations.test.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-4 branch from f9fad8c to bdf0aab Compare November 19, 2026 04:47
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-by-meaning-rule branch from d10cc5a to 291f73e Compare November 19, 2026 04:47

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

This pull request is not ready for approval yet: the spec:AST-084 rule it adds needs an engineering owner's decision, and a few fixes are needed either way.

FR10 and FR21 now say that bundled Core templates import every icon by meaning from @astryxdesign/template-icons, never from an icon library, and declare no icons; on main, FR10 says every imported icon is declared, and FR21 does not exist yet. An engineering owner records the decision on that rule by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

  • packages/cli/CONTRIBUTING.md:203 says previews and copies draw the table's Heroicon, but icons imported from the /lucide path draw the table's Lucide icon in both, so it should say "a Heroicon, or a Lucide icon in the lucide look".
  • The same line's node scripts/generate-template-icons.mjs works only from packages/cli, while the guide's other commands and the script's own messages run from the repository root, so use node packages/cli/scripts/generate-template-icons.mjs.
  • FR6 in docs/specs/AST-084-icon-sets/spec.md still defines the --definitions templates count as bundled templates "whose icons name it", which the new FR10 sentence makes zero, so count placeholder imports too (FR21), as the code already does.
  • The description says FR9 states the new rule, but the changed sentence is in FR10 and FR9 is unchanged.
  • The description needs the ## Writing rubric results section that a pull request changing a knowledge record reports.
Claims and files checked

Review mode: full; reason: rebase

  • Changeset, bundled templates pick each icon by meaning: verified; no bundled page or block imports from an icon library, and the icon test file passes 5 of 5.
  • Changeset, the template icon test fails on an icon imported straight from an icon library: verified for named imports (the new test fails with its fix line) and default imports (the undeclared-icon test fails); a namespace import fails no test, a form no bundled template has used.
  • Changeset, the failure names the command that moves the icon: verified; the fix line names the migration script, which exists.
  • Changeset, copies are unchanged: verified; no copy code, icon table or template changes.
  • Description, the test fails on a direct Heroicons or Lucide import with a fix line naming the placeholder import and the migration script: verified, as above.
  • Description, the contributing guide gains the rule under "Adding a new template": verified location; its lucide and script-path wording is wrong (above).
  • Description, FR9 and FR21 state the rule: false; the rule is in FR10 and FR21.
  • Description, the public template-authoring guide, the integration icons rules and the template grading rubric are unchanged: verified; none of them changes.
  • Description, the Vitest command passes: verified (5 of 5).
  • Description, the knowledge check and Prettier pass: verified.
  • .changeset/template-icons-by-meaning-rule.md: clear.
  • docs/specs/AST-084-icon-sets/spec.md: needs the owner decision; FR6 count finding.
  • packages/cli/CONTRIBUTING.md: two findings.
  • packages/cli/test/template-icon-declarations.test.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-4 branch from bdf0aab to cba9cbc Compare November 19, 2026 05:10
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-by-meaning-rule branch from 291f73e to 1e0cefb Compare November 19, 2026 05:10
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-4 branch from cba9cbc to 6bfcdb4 Compare November 19, 2026 05:26
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-by-meaning-rule branch from 1e0cefb to 80b3af8 Compare November 19, 2026 05:26

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

This pull request is not ready for approval yet: the spec:AST-084 rule it adds needs an engineering owner's decision, and a few fixes are needed either way.

FR10 and FR21 now say that bundled Core templates import every icon by meaning from @astryxdesign/template-icons, never from an icon library, and declare no icons; on main, FR10 says every imported icon is declared, and FR21 does not exist yet. An engineering owner records the decision on that rule by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

  • packages/cli/CONTRIBUTING.md:203 says previews and copies draw the table's Heroicon, but icons imported from the /lucide path draw the table's Lucide icon in both, so it should say “a Heroicon, or a Lucide icon in the lucide variant”.
  • FR6 in docs/specs/AST-084-icon-sets/spec.md still defines the --definitions templates count as bundled templates “whose icons name it”, which the new FR10 sentence makes zero, so count placeholder imports too (FR21), as the code already does.
  • The description says FR9 states the new rule, but the changed sentence is in FR10 and FR9 is unchanged.
  • The description needs the ## Writing rubric results section that a pull request changing a knowledge record reports.

The node scripts/generate-template-icons.mjs path on the same guide line is now only a suggestion: that line's other path is relative to packages/cli, where the command works, though the script's own usage line writes it from the repository root.

Claims and files checked

Review mode: full; reason: rebase

  • Changeset, bundled templates pick each icon by meaning: verified; no bundled page or block imports from an icon library, and the icon test file passes 5 of 5.
  • Changeset, the template icon test fails on an icon imported straight from an icon library: verified for named imports (the new test fails with its fix line) and default imports (the undeclared-icon test fails); a namespace import fails no test, a form no bundled template has used.
  • Changeset, the failure names the command that moves the icon: verified; the fix line names the migration script, which exists.
  • Changeset, copies are unchanged: verified; no copy code, icon table or template changes.
  • Changeset, an experimental patch release note for the CLI: verified; the changeset check accepts it.
  • Description, the test fails on a direct Heroicons or Lucide import with a fix line naming the placeholder import and the migration script: verified, as above.
  • Description, the contributing guide covers picking by meaning, the variant paths, what previews and copies draw, and what to do when no meaning fits: verified location; its lucide wording is wrong (above).
  • Description, adding a meaning means adding the definition and its table entry, and a refined meaning names a fallback: verified.
  • Description, FR9 and FR21 state the rule: false; the rule is in FR10 and FR21.
  • Description, the public template-authoring guide and the integration icons rules are unchanged: verified; neither changes.
  • Description, the template grading rubric is unchanged and grades copied files: verified; it grades imports after the copy and does not change.
  • Description, the Vitest command passes: verified (5 of 5).
  • Description, the knowledge check and Prettier pass: verified.
  • .changeset/template-icons-by-meaning-rule.md: clear.
  • docs/specs/AST-084-icon-sets/spec.md: needs the owner decision; FR6 count finding.
  • packages/cli/CONTRIBUTING.md: lucide wording finding; script path suggestion.
  • packages/cli/test/template-icon-declarations.test.mjs: clear.

Automated review (maintainer link)

Comment thread packages/cli/CONTRIBUTING.md Resolved
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-4 branch from 6bfcdb4 to b9e6a5e Compare November 19, 2026 08:32
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-by-meaning-rule branch from 80b3af8 to 83db290 Compare November 19, 2026 08:32

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

This pull request is not ready for approval yet: the spec:AST-084 rule it adds needs an engineering owner's decision, and a few fixes are needed either way.

FR10 and FR21 now say that bundled Core templates import every icon by meaning from @astryxdesign/template-icons, never from an icon library, and declare no icons; on main, FR10 says every imported icon is declared, and FR21 does not exist yet. An engineering owner records the decision on that rule by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

  • packages/cli/CONTRIBUTING.md:203 says previews and copies draw the table's Heroicon, but icons imported from the /lucide path draw the table's Lucide icon in both, as FR22 now says, so it should say “a Heroicon, or a Lucide icon in the lucide variant”.
  • FR6 in docs/specs/AST-084-icon-sets/spec.md still defines the --definitions templates count as bundled templates “whose icons name it”, which the new FR10 sentence makes zero, so count placeholder imports too (FR21), as the code already does.
  • The description says FR9 states the new rule, but the changed sentence is in FR10 and FR9 is unchanged.
  • The description needs the ## Writing rubric results section that a pull request changing a knowledge record reports.

Optional: the guide's node scripts/generate-template-icons.mjs works only from packages/cli, while the script's own usage line writes it from the repository root.

Claims and files checked

Review mode: full; reason: merge-touches-pr-files

  • Changeset, bundled templates pick each icon by meaning: verified; no bundled page or block imports from an icon library, and the icon test file passes 5 of 5.
  • Changeset, the template icon test fails on an icon imported straight from an icon library: verified for named imports, declared or not (the new test fails with its fix line), and for default imports (the undeclared-icon test fails); a namespace import fails no test, a form no bundled template uses.
  • Changeset, the failure names the command that moves the icon: verified; the fix line names the migration script, which exists.
  • Changeset, copies are unchanged: verified; no copy code, icon table or template changes.
  • Changeset, an experimental patch release note for the CLI: verified; the changeset check accepts it.
  • Description, the test fails on a direct Heroicons or Lucide import with a fix line naming the placeholder import and the migration script: verified, as above.
  • Description, the contributing guide covers picking by meaning, the variant paths, what previews and copies draw, and what to do when no meaning fits: verified location; its lucide wording is wrong (above).
  • Description, adding a meaning means adding the definition and its table entry, and a refined meaning names a fallback: verified.
  • Description, FR9 and FR21 state the rule: false; the rule is in FR10 and FR21.
  • Description, the public template-authoring guide and the integration icons rules are unchanged: verified; neither changes.
  • Description, the template grading rubric is unchanged and grades copied files: verified; it does not change.
  • Description, the Vitest command passes: verified (5 of 5).
  • Description, the knowledge check and Prettier pass: verified.
  • .changeset/template-icons-by-meaning-rule.md: clear.
  • docs/specs/AST-084-icon-sets/spec.md: needs the owner decision; FR6 count finding.
  • packages/cli/CONTRIBUTING.md: lucide wording finding; script path suggestion.
  • packages/cli/test/template-icon-declarations.test.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-4 branch from b9e6a5e to c9d4dca Compare November 19, 2026 09:18
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-by-meaning-rule branch from 83db290 to 6549fa0 Compare November 19, 2026 09:18

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

This pull request is not ready for approval yet: the spec:AST-084 rule it adds needs an engineering owner's decision, and a few fixes are needed either way.

FR10 and FR21 now say that bundled Core templates import every icon by meaning from @astryxdesign/template-icons, never from an icon library, and declare no icons; on main, FR10 says every imported icon is declared, and FR21 does not exist yet. An engineering owner records the decision on that rule by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

  • packages/cli/CONTRIBUTING.md:203 says previews and copies draw the table's Heroicon, but icons imported from the /lucide path draw the table's Lucide icon in both, as FR22 says, so it should say “a Heroicon, or a Lucide icon in the lucide variant”.
  • FR6 in docs/specs/AST-084-icon-sets/spec.md still defines the --definitions templates count as bundled templates “whose icons name it”, which the new FR10 sentence makes zero, so count placeholder imports too (FR21), as the code already does.
  • The description says FR9 states the new rule, but the changed sentence is in FR10 and FR9 is unchanged.
  • The description needs the ## Writing rubric results section that a pull request changing a knowledge record reports.

Optional: the guide's node scripts/generate-template-icons.mjs works only from packages/cli, while the script's own usage line writes it from the repository root.

Claims and files checked

Review mode: full; reason: merge-touches-pr-files

  • Changeset, bundled templates pick each icon by meaning: verified; no bundled page or block imports from an icon library, and the icon test file passes 5 of 5.
  • Changeset, the template icon test fails on an icon imported straight from an icon library: verified for named imports, declared or not (the new test fails with its fix line), and for default and double-quoted imports (the undeclared-icon test fails, without the fix line); a namespace import fails no test, a form no bundled template uses.
  • Changeset, the failure names the command that moves the icon: verified; the fix line names the migration script, which exists.
  • Changeset, copies are unchanged: verified; no copy code, icon table or template changes.
  • Changeset, an experimental patch release note for the CLI: verified; the changeset check accepts it.
  • Description, the test fails on a direct Heroicons or Lucide import with a fix line naming the placeholder import and the migration script: verified, as above.
  • Description, the contributing guide covers picking by meaning, the variant paths, what previews and copies draw, and what to do when no meaning fits: verified location; its lucide wording is wrong (above).
  • Description, adding a meaning means adding the definition and its table entry, and a refined meaning names a fallback: verified.
  • Description, FR9 and FR21 state the rule: false; the rule is in FR10 and FR21.
  • Description, the public template-authoring guide and the integration icons rules are unchanged: verified; neither changes.
  • Description, the template grading rubric is unchanged and grades copied files, which import icon libraries: verified; the rubric grades the copied file, copies fill placeholders with library imports, and the rubric does not change.
  • Description, the Vitest command passes: verified (5 of 5).
  • Description, the knowledge check and Prettier pass: verified.
  • .changeset/template-icons-by-meaning-rule.md: clear.
  • docs/specs/AST-084-icon-sets/spec.md: needs the owner decision; FR6 count finding.
  • packages/cli/CONTRIBUTING.md: lucide wording finding; script path suggestion.
  • packages/cli/test/template-icon-declarations.test.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-4 branch from c9d4dca to 58728ae Compare November 19, 2026 11:23
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-by-meaning-rule branch from 6549fa0 to 7aac5c4 Compare November 19, 2026 11:23
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec aa7ab84

@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 are requested: the spec:AST-084 wording this pull request adds is now approved by an engineering owner for this head, and three documentation fixes remain.

  • packages/cli/CONTRIBUTING.md:203 says previews and copies draw the table's Heroicon, but icons imported from the /lucide path draw the table's Lucide icon in both, as FR22 says, so it should say “a Heroicon, or a Lucide icon in the lucide variant”.
  • FR6 in docs/specs/AST-084-icon-sets/spec.md still defines the --definitions templates count as bundled templates “whose icons name it”, which the new FR10 sentence makes zero, so count placeholder imports too (FR21), as the code already does.
  • The description and its R1 writing-rubric line say FR9 states the new rule, but the changed sentence is in FR10 and FR9 is unchanged.

Optional: the guide's node scripts/generate-template-icons.mjs works only from packages/cli, while the script's own usage line writes it from the repository root.

Claims and files checked

Review mode: full; reason: merge-touches-pr-files

  • Changeset, bundled templates pick each icon by meaning: verified; no bundled page or block imports from an icon library, and the icon test file passes 5 of 5.
  • Changeset, the template icon test fails on an icon imported straight from an icon library: verified for single-quoted named imports, declared or not (the new test fails with its fix line), and for double-quoted Heroicons imports (the undeclared-icon test fails, without the fix line); a namespace import fails no test, a form no bundled template uses.
  • Changeset, the failure names the command that moves the icon: verified; the fix line names the migration script, which exists.
  • Changeset, copies are unchanged: verified; no copy code, icon table or template changes.
  • Changeset, an experimental patch release note for the CLI: verified; the changeset check accepts it.
  • Description, it lands after the pull requests below it: verified; its base is the head of the draft below it, whose own stack line lists this pull request in a stack that lands as one.
  • Description, the test fails on a direct Heroicons or Lucide import with a fix line naming the placeholder import and the migration script: verified, as above.
  • Description, the contributing guide covers picking by meaning, the variant paths, what previews and copies draw, and what to do when no meaning fits: verified location; its lucide wording is wrong (above).
  • Description, adding a meaning means adding the definition and its table entry, and a refined meaning names a fallback: verified; the guide says both.
  • Description, FR9 and FR21 state the rule: false; the rule is in FR10 and FR21.
  • Description, the public template-authoring guide and the integration icons rules are unchanged: verified; neither changes.
  • Description, the template grading rubric is unchanged and grades copied files, which import icon libraries: verified; this pull request does not change the rubric.
  • Description, the Vitest command passes: verified (5 of 5).
  • Description, the knowledge check and Prettier pass: verified.
  • Description, writing rubric results R1 to R7: present; R2 to R7 verified against the added lines; R1 names FR9 for the FR10 sentence (above).
  • .changeset/template-icons-by-meaning-rule.md: clear.
  • docs/specs/AST-084-icon-sets/spec.md: FR10 and FR21 wording owner-approved for this head; FR6 count finding.
  • packages/cli/CONTRIBUTING.md: lucide wording finding; script path suggestion.
  • packages/cli/test/template-icon-declarations.test.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-by-meaning-rule branch from aa7ab84 to 6a07738 Compare November 19, 2026 18:14
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-4 branch from 1ee368e to 36a17c7 Compare November 19, 2026 18:14
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 6a07738

@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 are requested for one description fix: the spec:AST-084 FR10 and FR21 wording is approved by an engineering owner for this head, and the lucide wording and the FR6 template count from the last review are fixed.

  • The description and its R1 writing-rubric line say FR9 states the new rule, but the changed sentence is in FR10 and FR9 is unchanged, so say FR10 and FR21 in both places.

Optional: the guide's node scripts/generate-template-icons.mjs works only from packages/cli, while the script's own usage line writes it from the repository root.

Claims and files checked

Review mode: full; reason: rebase

  • Changeset, bundled templates pick each icon by meaning: verified; no bundled page or block imports from an icon library, and the icon test file passes 5 of 5.
  • Changeset, the template icon test fails on an icon imported straight from an icon library: verified for single-quoted named imports, declared or not (the new test fails with its fix line); a double-quoted Heroicons import fails the undeclared-icon test without the fix line, and a namespace import fails no test, forms no bundled template uses.
  • Changeset, the failure names the command that moves the icon: verified; the fix line names the migration script, which exists.
  • Changeset, copies are unchanged: verified; no copy code, icon table or template changes.
  • Changeset, an experimental patch release note for the CLI: verified; the changeset check accepts it.
  • Description, the stack line and that the stack lands as one: verified; every listed pull request carries the same line and each head contains the one below.
  • Description, the test fails on a direct Heroicons or Lucide import with a fix line naming the placeholder import and the migration script: verified, as above.
  • Description, the contributing guide covers picking by meaning, the variant paths, what previews and copies draw, and what to do when no meaning fits: verified; previews and copies now draw a Lucide icon for the lucide path, as the record says.
  • Description, adding a meaning means adding its definition and table entry, and a refined meaning names a fallback: verified; the guide says both.
  • Description, FR9 and FR21 state the rule: false; the rule is in FR10 and FR21.
  • Description, the public template-authoring guide and the integration icons rules are unchanged: verified; neither changes.
  • Description, the template grading rubric is unchanged and grades copied files: verified; the rubric grades imports after the copy and does not change.
  • Description, the Vitest command passes: verified (5 of 5).
  • Description, the knowledge check and Prettier pass: verified.
  • Description, writing rubric results R1 to R7: present; R2 to R7 verified against the added lines; R1 names FR9 for the FR10 sentence (above).
  • .changeset/template-icons-by-meaning-rule.md: clear.
  • docs/specs/AST-084-icon-sets/spec.md: FR10 and FR21 wording owner-approved for this head; clear.
  • packages/cli/CONTRIBUTING.md: clear; script path suggestion.
  • packages/cli/test/template-icon-declarations.test.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-4 branch from 36a17c7 to e560c99 Compare November 19, 2026 19:34
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-by-meaning-rule branch from 6a07738 to 5c4eb1b Compare November 19, 2026 19:34
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 5c4eb1b

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.

Changes are requested for one description fix; the spec:AST-084 FR10 and FR21 wording is approved by an engineering owner for this head.

  • The description and its R1 writing-rubric line say FR9 states the new rule, but the changed sentence is in FR10 and FR9 is unchanged, so say FR10 and FR21 in both places.

Optional: the guide's node scripts/generate-template-icons.mjs works only from packages/cli, while the script's own usage line writes it from the repository root.

Claims and files checked

Review mode: full; reason: rebase

  • Changeset, bundled templates pick each icon by meaning: verified; no bundled page or block imports from an icon library, and the icon test file passes 5 of 5.
  • Changeset, the template icon test fails on an icon imported straight from an icon library: verified for single-quoted named imports, declared or not; double-quoted and namespace imports miss the new test, forms no bundled template uses.
  • Changeset, the failure names the command that moves the icon: verified; the fix line names the migration script, which exists.
  • Changeset, copies are unchanged: verified; no copy code, icon table or template changes.
  • Changeset, an experimental patch release note for the CLI: verified; the changeset check accepts it.
  • Description, the stack line and that the stack lands as one: verified; every listed pull request carries the same line and each head contains the one below.
  • Description, the test fails on a direct Heroicons or Lucide import with a fix line naming the placeholder import and the migration script: verified, as above.
  • Description, the contributing guide covers picking by meaning, the variant paths, what previews and copies draw, and what to do when no meaning fits: verified.
  • Description, adding a meaning means adding its definition and table entry, and a refined meaning names a fallback: verified; the guide says both.
  • Description, FR9 and FR21 state the rule: false; the rule is in FR10 and FR21.
  • Description, the public template-authoring guide and the integration icons rules are unchanged: verified; neither changes.
  • Description, the template grading rubric is unchanged and grades copied files: verified; nothing in the rubric changes, and copies still fill placeholders with library imports.
  • Description, the Vitest command passes: verified (5 of 5).
  • Description, the knowledge check and Prettier pass: verified.
  • Description, writing rubric results R1 to R7: present; R2 to R7 verified against the added lines; R1 names FR9 for the FR10 sentence (above).
  • .changeset/template-icons-by-meaning-rule.md: clear.
  • docs/specs/AST-084-icon-sets/spec.md: FR10 and FR21 wording owner-approved for this head; clear.
  • packages/cli/CONTRIBUTING.md: clear; script path suggestion.
  • packages/cli/test/template-icon-declarations.test.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-4 branch from e560c99 to ac8cb53 Compare November 19, 2026 20:10
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-by-meaning-rule branch from 5c4eb1b to 190a5a7 Compare November 19, 2026 20:10
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 190a5a7

@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 are requested for one description fix; the spec:AST-084 FR10 and FR21 wording is approved by an engineering owner for this head.

  • The description and its R1 writing-rubric line say FR9 states the new rule, but the changed sentence is in FR10 and FR9 is unchanged, so say FR10 and FR21 in both places.

Optional: the guide's node scripts/generate-template-icons.mjs works only from packages/cli, while the script's own usage line writes it from the repository root.

Claims and files checked

Review mode: full; reason: rebase

  • Changeset, bundled templates pick each icon by meaning: verified; no bundled page or block imports from an icon library, and the icon test file passes 5 of 5.
  • Changeset, the template icon test fails on an icon imported straight from an icon library: verified for single-quoted named imports, declared or not; a double-quoted Heroicons import fails only the existing integration-check test, a form no bundled template uses.
  • Changeset, the failure names the command that moves the icon: verified; the fix line names the migration script, which exists.
  • Changeset, copies are unchanged: verified; no copy code, icon table or template changes.
  • Changeset, an experimental patch release note for the CLI: verified; the changeset check accepts it.
  • Description, the stack line and that the stack lands as one: verified; every listed pull request carries the same line and each head contains the one below.
  • Description, the test fails on a direct Heroicons or Lucide import with a fix line naming the placeholder import and the migration script: verified, as above.
  • Description, the contributing guide covers picking by meaning, the variant paths, what previews and copies draw, and what to do when no meaning fits: verified.
  • Description, adding a meaning means adding its definition and table entry, and a refined meaning names a fallback: verified; the guide says both.
  • Description, FR9 and FR21 state the rule: false; the rule is in FR10 and FR21.
  • Description, the public template-authoring guide and the integration icons rules are unchanged: verified; neither changes.
  • Description, the template grading rubric is unchanged and grades copied files: verified; nothing in the rubric changes, and copies still fill placeholders with library imports.
  • Description, the Vitest command passes: verified (5 of 5).
  • Description, the knowledge check and Prettier pass: verified.
  • Description, writing rubric results R1 to R7: present; R2 to R7 verified against the added lines; R1 names FR9 for the FR10 sentence (above).
  • .changeset/template-icons-by-meaning-rule.md: clear.
  • docs/specs/AST-084-icon-sets/spec.md: FR10 and FR21 wording owner-approved for this head; clear.
  • packages/cli/CONTRIBUTING.md: clear; script path suggestion.
  • packages/cli/test/template-icon-declarations.test.mjs: 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-by-meaning-rule branch November 20, 2026 06:05

This branch was successfully deployed

1 active deployment
Preview — 190a5a7c 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