Repository navigation
feat(cli): bundled templates pick each icon by meaning - #12767
josephfarina wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
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:203says previews and copies draw the table's Heroicon, but icons imported from the/lucidepath 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.mjsworks only frompackages/cli, while the section's other paths and the script's own messages usenode packages/cli/scripts/generate-template-icons.mjs, so use that form. - FR6 in
docs/specs/AST-084-icon-sets/spec.mdstill defines the--definitionstemplatescount as bundled templates "whoseiconsname 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 resultssection 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
iconsrules 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.
cae3a0f to
f9fad8c
Compare
d0e0e77 to
d10cc5a
Compare
There was a problem hiding this comment.
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:203says previews and copies draw the table's Heroicon, but icons imported from the/lucidepath 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.mjsworks only frompackages/cli, while the section's other paths and the script's own messages usenode packages/cli/scripts/generate-template-icons.mjs, so use that form. - FR6 in
docs/specs/AST-084-icon-sets/spec.mdstill defines the--definitionstemplatescount as bundled templates "whoseiconsname 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 resultssection 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
iconsrules 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.
f9fad8c to
bdf0aab
Compare
d10cc5a to
291f73e
Compare
There was a problem hiding this comment.
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:203says previews and copies draw the table's Heroicon, but icons imported from the/lucidepath 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.mjsworks only frompackages/cli, while the guide's other commands and the script's own messages run from the repository root, so usenode packages/cli/scripts/generate-template-icons.mjs. - FR6 in
docs/specs/AST-084-icon-sets/spec.mdstill defines the--definitionstemplatescount as bundled templates "whoseiconsname 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 resultssection 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
iconsrules 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.
bdf0aab to
cba9cbc
Compare
291f73e to
1e0cefb
Compare
cba9cbc to
6bfcdb4
Compare
1e0cefb to
80b3af8
Compare
There was a problem hiding this comment.
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:203says previews and copies draw the table's Heroicon, but icons imported from the/lucidepath 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.mdstill defines the--definitionstemplatescount as bundled templates “whoseiconsname 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 resultssection 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
iconsrules 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.
6bfcdb4 to
b9e6a5e
Compare
80b3af8 to
83db290
Compare
There was a problem hiding this comment.
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:203says previews and copies draw the table's Heroicon, but icons imported from the/lucidepath 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.mdstill defines the--definitionstemplatescount as bundled templates “whoseiconsname 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 resultssection 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
iconsrules 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.
b9e6a5e to
c9d4dca
Compare
83db290 to
6549fa0
Compare
There was a problem hiding this comment.
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:203says previews and copies draw the table's Heroicon, but icons imported from the/lucidepath 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.mdstill defines the--definitionstemplatescount as bundled templates “whoseiconsname 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 resultssection 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
iconsrules 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.
c9d4dca to
58728ae
Compare
6549fa0 to
7aac5c4
Compare
|
/approve-spec aa7ab84 |
There was a problem hiding this comment.
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:203says previews and copies draw the table's Heroicon, but icons imported from the/lucidepath 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.mdstill defines the--definitionstemplatescount as bundled templates “whoseiconsname 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
iconsrules 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.
aa7ab84 to
6a07738
Compare
1ee368e to
36a17c7
Compare
|
/approve-spec 6a07738 |
There was a problem hiding this comment.
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
iconsrules 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.
36a17c7 to
e560c99
Compare
6a07738 to
5c4eb1b
Compare
|
/approve-spec 5c4eb1b |
There was a problem hiding this comment.
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
iconsrules 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.
e560c99 to
ac8cb53
Compare
5c4eb1b to
190a5a7
Compare
|
/approve-spec 190a5a7 |
There was a problem hiding this comment.
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
iconsrules 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.
- #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
|
Landed in #12965. |
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.
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.icons.Unchanged on purpose:
iconsdeclaration rules for integration packages: their templates keep importing icon libraries.Testing
vitest run --project node packages/cli/test/template-icon-declarations.test.mjspnpm check:knowledge, Prettier on the changed filesWriting 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.