Repository navigation
feat(cli): template icon table and the template-icons placeholder package - #12741
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.
Approval waits on an engineering owner's decision on the new requirement this pull request adds to the icon-set record (AST-084 FR21, template icon placeholders). An engineering owner records it by commenting /approve-spec <full head SHA> on the pull request, and the author may do so as an engineering owner. Four fixes are also needed:
- FR21 puts a Heroicons and Lucide table in the CLI while the same record's Intent and DEC-4 still say the CLI never encodes an icon library, so amend both to name this table as the exception, or keep the map out of the CLI.
- "Each icon is the one the templates use for that meaning today" is false for 19 meanings that bundled templates draw with different icons (for example
info:CheckBadgeIconin form-wizard-vertical,QuestionMarkCircleIconin settings-dialog), so correct the description, README and changeset, or give those icons their own meanings before templates move. generate-template-icons.mjsre-implements the look rules thattemplate-placeholders.mjsowns (drawnBy()and the hard-coded'24/outline'), so export one helper there and import it withDEFAULT_PLACEHOLDER_LOOK.- The package README says
astryx templaterewrites these imports to the app's pack or to Heroicons, which no code does yet, so drop that sentence until the copy step lands.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: the CLI ships the template icon table. Verified: the CLI package's files list includes
assets. - Claim: the table names an icon for each meaning a bundled template draws. Verified: every declared meaning has an entry.
- Claim: each table icon is the one the templates use for that meaning today. False for 19 meanings (finding above).
- Claim: a private package generated from the table re-exports each icon as
<Meaning>Icon. Verified: the generator's--checkpasses and the package test passes. - Claim: the import path names the look (root is 24 outline; 24, 20 and 16 solid; lucide). Verified in the package's exports map.
- Claim: the docs site, template viewer and sandbox depend on the package, so previews need no extra step. Verified: the dependencies are present, the frozen install passes, and all five entry points resolve from each app.
- Claim:
--checkfails when the package is out of date. Verified in the code (exit 1 on a stale file); it exits 0 at this head. - Claim: the lookup module reads the look, the meaning and the library import. Verified by its six tests.
- Claim: the icon-set record gains a requirement describing the placeholders. Verified; it awaits approval.
- Claim: no template uses the package yet and no output changes. Verified: nothing imports it outside the package, the generator and the lookup module, and the template icon command tests pass.
- Claim: the listed tests and checks pass. Verified for the placeholder test, 15 related test files, the knowledge check, the template-docs typecheck and Prettier. The full
packages/cli/testrun was not repeated. .changeset/template-icon-placeholders-module.md: finding (same-icon wording).apps/docsite/package.json,apps/sandbox/package.json,apps/template-viewer/package.json: clear.docs/specs/AST-084-icon-sets/spec.md: finding (FR21 versus the Intent and DEC-4; needs owner approval).packages/cli/assets/icons/template-icons.json: finding (19 meanings collapse to one icon).packages/cli/foundation/discovery/template-placeholders.mjs: clear.packages/cli/foundation/discovery/template-placeholders.test.mjs: clear.packages/cli/scripts/generate-template-icons.mjs: finding (duplicated look rules).packages/template-icons/README.md: finding (same-icon wording; copy-step sentence).packages/template-icons/package.json: clear (generated, private).packages/template-icons/index.js,index.d.ts,24/solid/*,20/solid/*,16/solid/*,lucide/*(10 generated files): clear.pnpm-lock.yaml: clear (workspace links only).
b6cb3f7 to
d9b2621
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the requirement this pull request adds to the icon-set record (AST-084 FR21, template icon placeholders). An engineering owner records it by commenting /approve-spec <full head SHA> on the pull request, and the author may do so as an engineering owner. Four fixes are also needed:
- FR21 puts a Heroicons and Lucide table in the CLI while the same record's Intent and DEC-4 still say the CLI never encodes an icon library, so amend both to name this table as the exception, or keep the map out of the CLI.
- "Each icon is the one the templates use for that meaning today" is false for 19 meanings that bundled templates draw with different icons (for example
info:CheckBadgeIconin form-wizard-vertical,QuestionMarkCircleIconin settings-dialog), so correct the description, README and changeset, or give those icons their own meanings before templates move. generate-template-icons.mjsre-implements the look rules thattemplate-placeholders.mjsowns (drawnBy()and the literal'24/outline'), so export one helper there and import it withDEFAULT_PLACEHOLDER_LOOK.- The package README says
astryx templaterewrites these imports to the app's pack or to Heroicons, which no code does yet, so drop that sentence until the copy step lands.
Claims and files checked
Review mode: full; reason: history
- Claim: the CLI ships the template icon table. Verified: the CLI package's
fileslist includesassets. - Claim: the table names an icon for each meaning a bundled template draws. Verified: the 172 meanings templates declare equal the table's 172.
- Claim: each table icon is the one the templates use for that meaning today. False for 19 meanings (finding above).
- Claim: a private package generated from the table re-exports each icon as
<Meaning>Icon. Verified: the generator's--checkexits 0 and the package test passes. - Claim: the import path names the look (root is 24 outline; 24, 20 and 16 solid; lucide). Verified in the package's exports map.
- Claim: the docs site, template viewer and sandbox depend on the package, so previews need no extra step. Verified: the dependencies are present, a frozen install passes, and all five entry points resolve from each app.
- Claim:
--checkfails when the package is out of date. Verified in the code (exit 1 on a stale file). - Claim: the lookup module reads the look, the meaning and the library import. Verified by its six tests.
- Claim: AST-084 gains a requirement describing the placeholders. Verified; it awaits an engineering owner's approval.
- Claim: no template uses the package yet and no output changes. Verified: nothing imports it outside the package, the generator and the lookup module, and the template icon tests pass.
- Claim (changeset): the CLI ships the table and previews draw the same icons. Verified, apart from "the Heroicon that draws it" (19 meanings, finding above).
- Claim (README): a copied template is rewritten to the app's pack or to Heroicons. False at this head (finding above).
- Claim: the listed tests and checks pass with no new failures. Verified: the placeholder test, the knowledge check, the template-docs typecheck and Prettier pass, and the CLI test folder gives the same result on the base and the head.
.changeset/template-icon-placeholders-module.md: finding (same-icon wording).apps/docsite/package.json,apps/sandbox/package.json,apps/template-viewer/package.json: clear.docs/specs/AST-084-icon-sets/spec.md: finding (FR21 versus the Intent and DEC-4; needs owner approval).packages/cli/assets/icons/template-icons.json: finding (19 meanings collapse to one icon).packages/cli/foundation/discovery/template-placeholders.mjs: clear.packages/cli/foundation/discovery/template-placeholders.test.mjs: clear.packages/cli/scripts/generate-template-icons.mjs: finding (duplicated look rules).packages/template-icons/README.md: finding (same-icon wording; copy-step sentence).packages/template-icons/package.json: clear (generated, private).packages/template-icons/index.js,index.d.ts,24/solid/*,20/solid/*,16/solid/*,lucide/*(10 generated files): clear.pnpm-lock.yaml: clear (workspace links only).
e8f7d07 to
2878c6f
Compare
d9b2621 to
742734c
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the requirement this pull request adds to the icon-set record (AST-084 FR21, template icon placeholders). An engineering owner records it by commenting /approve-spec <full head SHA> on the pull request, and the author may do so as an engineering owner. These fixes are also needed:
- FR21 puts a Heroicons and Lucide table in the CLI while the same record's Intent and DEC-4 still say the CLI never encodes an icon library, so amend both to name this table as the exception, or keep the map out of the CLI.
- Miss: FR21 lets bundled templates import the private package and says only template sources import it, while FR10 and DEC-11 copy templates unchanged without an icon set, so say in FR21 what a copy writes for a meaning import and amend FR10 and DEC-11 to name that exception.
- "Each icon is the one the templates use for that meaning today" is false for 19 meanings that bundled templates draw with different icons (for example
info:CheckBadgeIconin form-wizard-vertical,QuestionMarkCircleIconin settings-dialog), so correct the description, README and changeset, or give those icons their own meanings before templates move. generate-template-icons.mjsre-implements the look rules thattemplate-placeholders.mjsowns (drawnBy()and the literal'24/outline'), so export one helper there and import it withDEFAULT_PLACEHOLDER_LOOK.- The package README says
astryx templaterewrites these imports to the app's pack or to Heroicons, which no code does yet, so drop that sentence until the copy step lands. - Miss: the description has no
## Writing rubric resultssection, which every pull request that changes a knowledge record reports, so add one line for each rubric item R1 to R7.
Claims and files checked
Review mode: full; reason: rebase
- Claim: the CLI ships the template icon table. Verified: the CLI package's
fileslist includesassets. - Claim: the table names an icon for each meaning a bundled template draws. Verified: the 172 meanings templates declare equal the table's 172.
- Claim: each table icon is the one the templates use for that meaning today. False for 19 meanings (finding above).
- Claim: a private package generated from the table re-exports each icon as
<Meaning>Icon. Verified: the generator's--checkexits 0 and the package test passes. - Claim: the import path names the look (root is 24 outline; 24, 20 and 16 solid; lucide). Verified in the package's exports map.
- Claim: the docs site, template viewer and sandbox depend on the package, so previews need no extra step. Verified: the dependencies are present, a frozen install passes, and all five entry points resolve from each app.
- Claim:
--checkfails when the package is out of date. Verified in the code (exit 1 on a stale file). - Claim: the lookup module reads the look, the meaning and the library import. Verified by its six tests.
- Claim: the copy step uses the lookup module later. Not checkable at this head; nothing calls it yet.
- Claim: AST-084 gains a requirement describing the placeholders. Verified; it awaits an engineering owner's approval.
- Claim: no template uses the package yet and no output changes. Verified: nothing imports it outside the package, the generator and the lookup module, and the template icon tests pass.
- Claim: the listed tests and checks pass with no new failures. Verified: the placeholder test, the knowledge check, the template-docs typecheck and Prettier pass, and the CLI test folder gives the same result on the base and the head (one failing test and one file that needs git, not three tests).
- Claim (changeset): the CLI ships the table and previews draw the same icons. Verified, apart from "the Heroicon that draws it" (19 meanings, finding above).
- Claim (README): a copied template is rewritten to the app's pack or to Heroicons. False at this head (finding above).
.changeset/template-icon-placeholders-module.md: finding (same-icon wording).apps/docsite/package.json,apps/sandbox/package.json,apps/template-viewer/package.json: clear.docs/specs/AST-084-icon-sets/spec.md: findings (FR21 versus the Intent, DEC-4, FR10 and DEC-11; needs owner approval; rubric results missing from the description).packages/cli/assets/icons/template-icons.json: finding (19 meanings collapse to one icon).packages/cli/foundation/discovery/template-placeholders.mjs: clear (non-blocking note on its header).packages/cli/foundation/discovery/template-placeholders.test.mjs: clear.packages/cli/scripts/generate-template-icons.mjs: finding (duplicated look rules).packages/template-icons/README.md: findings (same-icon wording; copy-step sentence).packages/template-icons/package.json: clear (generated, private).packages/template-icons/index.js,index.d.ts,24/solid/*,20/solid/*,16/solid/*,lucide/*(10 generated files): clear.pnpm-lock.yaml: clear (workspace links only).
2878c6f to
04ea9ac
Compare
742734c to
6a088fc
Compare
6a088fc to
125d2b3
Compare
04ea9ac to
2d79c5e
Compare
125d2b3 to
81eabcd
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the requirement this pull request adds to the icon-set record (AST-084 FR21, template icon placeholders). An engineering owner records it by commenting /approve-spec <full head SHA> on the pull request, and the author may do so as an engineering owner. These fixes are also needed:
- FR21 puts a Heroicons and Lucide table in the CLI while the same record's Intent and DEC-4 still say the CLI never encodes an icon library, so amend both to name this table as the exception, or keep the map out of the CLI.
- Miss: FR21 lets bundled templates import the private package and says only template sources import it, while FR10 and DEC-11 copy templates unchanged without an icon set, so say in FR21 what a copy writes for a meaning import and amend FR10 and DEC-11 to name that exception.
- "Each icon is the one the templates use for that meaning today" is false for 19 meanings that bundled templates draw with different icons (for example
info:CheckBadgeIconin form-wizard-vertical,QuestionMarkCircleIconin settings-dialog), so correct the description, README and changeset, or give those icons their own meanings before templates move. generate-template-icons.mjsre-implements the variant rules thattemplate-placeholders.mjsowns (drawnBy()and the literal'24/outline'), so export one helper there and import it withDEFAULT_PLACEHOLDER_LOOK.- The package README says
astryx templaterewrites these imports to the app's icon set or to Heroicons, which no code does yet, so drop that sentence until the copy step lands. - Miss: the description has no
## Writing rubric resultssection, which every pull request that changes a knowledge record reports, so add one line for each rubric item R1 to R7.
The rewording to "variant" in this revision leaves the table key and the code on "look"; one word throughout would read more easily.
Claims and files checked
Review mode: full; reason: rebase
- Claim: the CLI ships the template icon table. Verified: the CLI package's
fileslist includesassets. - Claim: the table names an icon for each meaning a bundled template draws. Verified: the 172 meanings templates declare equal the table's 172.
- Claim: each table icon is the one the templates use for that meaning today. False for 19 meanings (finding above).
- Claim: a private package generated from the table re-exports each icon as
<Meaning>Icon. Verified: the generator's--checkexits 0 and an independent rebuild of the modules matches. - Claim: the import path names the variant (root is 24 outline; 24, 20 and 16 solid; lucide). Verified in the package's exports map.
- Claim: the docs site, template viewer and sandbox depend on the package, so previews need no extra step. Verified: the dependencies are present, a frozen install passes, and all five entry points resolve from each app.
- Claim:
--checkfails when the package is out of date. Verified in the code (exit 1 on a stale file). - Claim: the lookup module reads the variant, the meaning and the library import. Verified by its six tests.
- Claim: the copy step uses the lookup module in the next pull request. Not checkable here; nothing calls it at this revision.
- Claim: AST-084 gains a requirement describing the placeholders. Verified; it awaits an engineering owner's approval.
- Claim: no template uses the package yet and no output changes. Verified: nothing imports it outside the package, the generator and the lookup module, and the template icon tests pass.
- Claim: the listed tests and checks pass with no new failures. Verified: the placeholder test, the knowledge check, the template-docs typecheck and Prettier pass, and the CLI test folder gives the same result on the base and this revision (one file that needs git, not three tests).
- Claim: the pull request lands with the two stacked above it. Not checked; it is reviewed on its own.
- Claim (changeset): the CLI ships the table and previews draw the same icons. Verified, apart from "the Heroicon that draws it" (19 meanings, finding above).
- Claim (README): each export draws the Heroicon the template uses for it. False for 19 meanings (finding above).
- Claim (README): a copied template is rewritten to the app's icon set or to Heroicons. False at this revision (finding above).
.changeset/template-icon-placeholders-module.md: finding (same-icon wording).apps/docsite/package.json,apps/sandbox/package.json,apps/template-viewer/package.json: clear.docs/specs/AST-084-icon-sets/spec.md: findings (FR21 versus the Intent, DEC-4, FR10 and DEC-11; needs owner approval; rubric results missing from the description).packages/cli/assets/icons/template-icons.json: finding (19 meanings collapse to one icon).packages/cli/foundation/discovery/template-placeholders.mjs: clear (non-blocking notes on its header and the look/variant naming).packages/cli/foundation/discovery/template-placeholders.test.mjs: clear.packages/cli/scripts/generate-template-icons.mjs: finding (duplicated variant rules).packages/template-icons/README.md: findings (same-icon wording; copy-step sentence).packages/template-icons/package.json: clear (generated, private).packages/template-icons/index.js,index.d.ts,24/solid/*,20/solid/*,16/solid/*,lucide/*(10 generated files): clear.pnpm-lock.yaml: clear (workspace links only).
81eabcd to
6cfde60
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the requirement this pull request adds to the icon-set record (AST-084 FR21, template icon placeholders) and on the new Intent and DEC-4 sentences that make the template icon table the CLI's one exception to encoding no icon library. An engineering owner records it by commenting /approve-spec <full head SHA> on the pull request (the author may, as an engineering owner); these fixes are also needed:
- Miss: FR21 lets bundled templates import the private package and DEC-4 now says a copy with no set keeps its pictures, while FR10 and DEC-11 still copy templates unchanged without a set, so state the copy rule in FR21 and amend FR10 and DEC-11 to name it.
- The new Intent and DEC-4 sentences say meaning imports keep today's pictures, but 21 icon declarations in 14 bundled templates draw a different icon for 19 meanings (for example
info:QuestionMarkCircleIconin settings-dialog,CheckBadgeIconin the table), so say what the table guarantees or bring the refined meanings into this pull request. - The package README says
astryx templatealready rewrites these imports and that a bundled-template test keeps undrawable imports out, but neither the copy step nor that test exists in this pull request, so describe only what the package does here.
The Intent and DEC-4 amendments, the generator's reuse of the lookup helpers and the writing rubric results settle earlier points. "Variant" in the prose against "look" in the table key and code is a small naming split worth one word throughout.
Claims and files checked
Review mode: full; reason: history
- Claim: the CLI ships the template icon table. Verified: the CLI package's
fileslist includesassets. - Claim: the table names an icon for each meaning a bundled template draws. Verified: the 172 meanings templates declare equal the table's 172.
- Claim: for most meanings it is the icon every template draws. Verified: 153 of 172 meanings; 19 differ in 14 templates.
- Claim: those fourteen templates get their own meanings in a later pull request, so the top of the stack differs nowhere. Not checked; this pull request is reviewed on its own.
- Claim: a private package generated from the table re-exports each icon as
<Meaning>Icon. Verified: the generator's check passes and the placeholder test compares every file. - Claim: the import path names the variant (root is 24 outline; 24, 20 and 16 solid; lucide). Verified in the package's exports map.
- Claim: the docs site, template viewer and sandbox depend on the package, so previews need no extra step. Verified: all five entry points import from each app.
- Claim:
--checkfails when the package is out of date. Verified in the code (exit 1 on a stale file). - Claim: the lookup module reads the variant, the meaning and the library import. Verified by its tests.
- Claim: the copy step uses the lookup module in the next pull request. Not checkable here; nothing copies with it at this revision.
- Claim: the record describes the placeholders, and the Intent and DEC-4 name the table as the one exception. Verified; FR10 and DEC-11 are left unamended (finding above).
- Claim: the generator reads variant paths, export names and drawn icons through the lookup module. Verified in its imports.
- Claim: no template uses the package and no output changes. Verified: nothing imports it outside the package, the generator and the lookup module.
- Claim: the listed tests and checks pass with no new failures. Verified: the placeholder test, the knowledge check, the template-docs typecheck and Prettier pass, and the CLI test folder gives the same result on the base and this revision (one file that needs git).
- Claim: the writing rubric finds nothing for R1 to R7. Verified against the added record text.
- Claim: the pull request lands with the two stacked above it. Not checked; it is reviewed on its own.
- Claim (changeset): the CLI ships the table and a private package generated from it; no template uses it and no output changes. Verified.
- Claim (README): each export draws the table's icon for its meaning in the named variant. Verified.
- Claim (README):
astryx templaterewrites placeholder imports and a bundled-template test keeps undrawable imports out. False at this revision (finding above). .changeset/template-icon-placeholders-module.md: clear.apps/docsite/package.json,apps/sandbox/package.json,apps/template-viewer/package.json: clear.docs/specs/AST-084-icon-sets/spec.md: findings (owner approval; FR10 and DEC-11; same-pictures sentences).packages/cli/assets/icons/template-icons.json: finding (19 meanings collapse to one icon each, behind the same-pictures sentences).packages/cli/foundation/discovery/template-placeholders.mjs: clear (non-blocking look/variant naming).packages/cli/foundation/discovery/template-placeholders.test.mjs: clear.packages/cli/scripts/generate-template-icons.mjs: clear.packages/template-icons/README.md: finding (copy-step sentences).packages/template-icons/package.json: clear (generated, private).packages/template-icons/index.js,index.d.ts,24/solid/*,20/solid/*,16/solid/*,lucide/*(10 generated files): clear.pnpm-lock.yaml: clear (workspace links only).
|
Owner decision (icon plan owner under the approved plan, recorded by the engineering owner): the template icon module FR21–23 stand as written in this stack. Every bundled template names its icons through the template icon module's placeholder imports, and a copy turns each into the app's icon set import, or into aliased Heroicons for an app with no icon set (meaning names, same pictures); FR23 order (b); the definitions' additive |
|
/approve-spec 667dbaf |
There was a problem hiding this comment.
Changes requested for one record fix, now that an engineering owner has approved AST-084 FR21 and its Intent and DEC-4 exception at this head.
Blocking finding:
- Miss: FR21 lets bundled templates import the private
@astryxdesign/template-icons, but FR10 and DEC-11 still copy a template's imports unchanged (andastryx templatekeeps every@astryxdesign/*import), so the first template that uses it would be copied with an import no app can install; state the copy rule in FR21 and amend FR10 and DEC-11 to name it, or move FR21's permission into the pull request that adds the copy step.
The Stack line does not make this a stack review, because its last five entries target other pull requests' branches instead of main, so this pull request is judged on its own. Two file headers also describe a copy step this head does not have, which is a small non-blocking follow-up.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Changeset: the CLI ships the template icon table, with the Heroicon (or the Lucide icon for the lucide variant) for each meaning a bundled template draws. Verified: the CLI's
filesincludesassets, and every one of the 662 template icon declarations names a meaning the table draws in the library its import comes from. - Changeset: a private workspace package is generated from the table. Verified:
private: true, and the generator's--checkpasses. - Changeset: template sources can import icons by meaning and previews draw them. Verified: every variant path resolves from a template folder, from the docs site and from its generated showcase folder.
- Changeset: no template uses it yet, and no output changes. Verified: nothing imports the package, and the API surface compare finds no rows.
- Description: the table names the Heroicon for each meaning, and the Lucide icon for the Lucide templates. Verified: 172 meanings, 134 Heroicons and 85 Lucide icons.
- Description: for most meanings the table names the icon every template draws, and fourteen templates draw a different one. Verified: 21 declarations across 19 meanings in 14 templates; their refined meanings belong to a later pull request.
- Description: exports are
<Meaning>Icon; the root draws 24 outline, and/24/solid,/20/solid,/16/solidand/lucidedraw the others. Verified: the packageexportsmap and the generated modules. - Description: the CLI dev dependency is where a template source resolves the package, and a test resolves every variant from a template folder. Verified:
template-placeholders.test.mjsand the resolution probe. - Description: the generator writes the package, and
--checkfails when it is out of date. Verified:main()exits 1 on any stale file, and--checkpasses at this head. - Description:
template-placeholders.mjsreads the variant, the meaning and the library import. Verified: the module and its tests. - Description: FR21 describes the placeholders, and the Intent and DEC-4 name the table as the one exception. Verified, and approved by an engineering owner at this head.
- Description: the generator reads its rules through
template-placeholders.mjs. Verified: its imports. - Description (why): copies should draw the app's icon set, or the same Heroicons with no set. Not at this head: nothing rewrites a meaning import yet, which is the blocking finding.
- Description (testing): the placeholder tests pass, the CLI suite has no new failures, and the knowledge check, template-docs typecheck and Prettier pass. Verified: 7 of 7 placeholder tests, 587 CLI tests (one suite needs a git checkout and fails the same way on
main), and the three checks. - Description (writing rubric): the added record text states no project status. Verified.
- Description (stack): the pull requests land as one. Not verified: the Stack line does not hold, so this pull request is reviewed alone.
Files:
.changeset/template-icon-placeholders-module.md: clear.apps/docsite/package.json: clear.docs/specs/AST-084-icon-sets/spec.md: the blocking finding.packages/cli/assets/icons/template-icons.json: clear.packages/cli/foundation/discovery/template-placeholders.mjs: non-blocking header note.packages/cli/foundation/discovery/template-placeholders.test.mjs: clear.packages/cli/package.json: clear.packages/cli/scripts/generate-template-icons.mjs: non-blocking header note.packages/template-iconsindex modules (10 files) andpackage.json: clear; generated and equal to the table.packages/template-icons/README.md: clear.pnpm-lock.yaml: clear.
667dbaf to
24e1994
Compare
|
/approve-spec 24e1994 |
There was a problem hiding this comment.
Changes requested for one record fix; an engineering owner has approved AST-084 FR21 and its Intent and DEC-4 exception at this head, so the direction is settled.
Blocking finding:
- Miss: FR21 lets bundled templates import the private
@astryxdesign/template-icons, but FR10 and DEC-11 still copy a template's imports unchanged (andastryx templatekeeps every@astryxdesign/*import), so the first template that uses it would be copied with an import no app can install; state the copy rule in FR21 and amend FR10 and DEC-11 to name it, or move FR21's permission into the pull request that adds the copy step.
This head changes only one changeset sentence, so the finding from the last review stands. The Stack line does not make this a stack review, because its last five entries target other pull requests' branches instead of main, so this pull request is judged on its own. Two file headers also describe a copy step this head does not have, a small non-blocking follow-up noted inline.
Claims and files checked
Review mode: full; reason: history
Claims:
- Changeset: the CLI ships the template icon table, with the Heroicon (or the Lucide icon for the lucide variant) for each meaning a bundled template draws. Verified: the CLI's
filesincludesassets, the table covers exactly the 172 meanings that the 662 template icon declarations name, and each entry is an icon some template draws for that meaning. - Changeset: a private workspace package is generated from the table. Verified:
private: true, and the generator's--checkpasses. - Changeset: template sources can import icons by meaning and previews draw them. Verified: every variant path resolves from template folders, from the docs site and from its generated block folders; sandbox template pages re-export the template source in place.
- Description: this pull request adds what meaning imports resolve to; no template uses it yet, and no output changes. Verified: nothing imports the package, and the built API surface compare of every published package finds no rows.
- Description: the table names the Heroicon for each meaning, and the Lucide icon for the Lucide templates. Verified: 172 meanings, 134 Heroicons and 85 Lucide icons.
- Description: for most meanings the table names the icon every template draws, and fourteen templates draw a different one. Verified: 21 declarations across 19 meanings in 14 templates; their refined meanings belong to a later pull request.
- Description: exports are
<Meaning>Icon; the root draws 24 outline, and/24/solid,/20/solid,/16/solidand/lucidedraw the others. Verified: the packageexportsmap and the generated modules (134 exports per Heroicons variant, 85 in Lucide). - Description: the CLI dev dependency is where a template source resolves the package, and a test resolves every variant from a template folder. Verified:
devDependenciesandtemplate-placeholders.test.mjs. - Description: the generator writes the package, and
--checkfails when it is out of date. Verified:main()exits 1 on any stale file, and--checkpasses at this head. - Description:
template-placeholders.mjsreads the variant, the meaning and the library import. Verified: the module and its tests; the copy step that would use it is not in this pull request. - Description: FR21 describes the placeholders, and the Intent and DEC-4 name the table as the one exception. Verified, and approved by an engineering owner at this head.
- Description: the generator reads its rules through
template-placeholders.mjs. Verified: it imports the export-name, module and source helpers. - Description (why): copies should draw the app's icon set, or the same Heroicons with no set. Not at this head: nothing rewrites a meaning import yet, which is the blocking finding.
- Description (testing): the placeholder tests pass, the CLI suite has no new failures, and the knowledge check, template-docs typecheck and Prettier pass. Verified: 7 of 7 placeholder tests; 587 CLI tests pass, and one suite that needs a git checkout fails the same way without this change; the three checks pass.
- Description (writing rubric): the added record text states no project status. Verified.
- Description (stack): the pull requests land as one. Not verified: the Stack line does not hold, so this pull request is reviewed alone.
Files:
.changeset/template-icon-placeholders-module.md: clear.apps/docsite/package.json: clear.docs/specs/AST-084-icon-sets/spec.md: the blocking finding.packages/cli/assets/icons/template-icons.json: clear.packages/cli/foundation/discovery/template-placeholders.mjs: non-blocking header note.packages/cli/foundation/discovery/template-placeholders.test.mjs: clear.packages/cli/package.json: clear.packages/cli/scripts/generate-template-icons.mjs: non-blocking header note.packages/template-iconsindex modules (10 files) andpackage.json: clear; generated and equal to the table.packages/template-icons/README.md: clear.pnpm-lock.yaml: clear.
| * those icons, so previews draw them as they are; the CLI reads the same table | ||
| * when it copies a template. |
There was a problem hiding this comment.
Non-blocking: nothing at this head copies a template with this table; only the generator and its test read it. Drop "the CLI reads the same table when it copies a template" here (and "read by the template copy step" in @position) until the copy step lands.
| * look. This script writes `packages/template-icons`: one module per look, | ||
| * each re-exporting that icon as `<Meaning>Icon`. Template sources import | ||
| * from it, so every preview draws the template's icons with no extra step. | ||
| * The CLI reads the same table when it copies a template. |
There was a problem hiding this comment.
Non-blocking: no copy step reads the table at this head, so this sentence describes code that is not here yet. Add it with the copy step.
24e1994 to
335de51
Compare
|
/approve-spec 335de51 |
There was a problem hiding this comment.
Changes requested for one record fix; an engineering owner has approved AST-084 FR21 and its Intent and DEC-4 exception at this head, so the direction is settled.
Blocking finding:
- Miss: FR21 lets bundled templates import the private
@astryxdesign/template-icons, but FR10 and DEC-11 still copy a template's imports unchanged (andastryx templatekeeps every@astryxdesign/*import), so the first template that uses it would be copied with an import no app can install; state the copy rule in FR21 and amend FR10 and DEC-11 to name it, or move FR21's permission into the pull request that adds the copy step.
This head rebases onto a newer main without changing the pull request's own lines, so the finding from the last review stands. The Stack line does not make this a stack review, because its last five entries target other pull requests' branches instead of main, so this pull request is judged on its own. Two file headers still describe a copy step this head does not have, a small non-blocking follow-up already noted inline.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Changeset: the CLI ships the template icon table, with the Heroicon (or the Lucide icon for the lucide variant) for each meaning a bundled template draws. Verified: the CLI's
filesincludesassets, the table covers exactly the 172 meanings that the 662 template icon declarations name, and each entry is an icon some template draws for that meaning. - Changeset: a private workspace package is generated from the table. Verified:
private: true, and the generator's--checkpasses. - Changeset: template sources can import icons by meaning and previews draw them. Verified: every variant path resolves from template folders, from the docs site and from its generated block folders; sandbox template pages re-export the template source in place.
- Description: this pull request adds what meaning imports resolve to; no template uses it yet, and no output changes. Verified: nothing imports the package, and the built API surface compare of every published package finds no rows.
- Description: the table names the Heroicon for each meaning, and the Lucide icon for the Lucide templates. Verified: 172 meanings, 134 Heroicons and 85 Lucide icons.
- Description: for most meanings the table names the icon every template draws, and fourteen templates draw a different one. Verified: 21 declarations across 19 meanings in 14 templates; their refined meanings belong to a later pull request.
- Description: exports are
<Meaning>Icon; the root draws 24 outline, and/24/solid,/20/solid,/16/solidand/lucidedraw the others. Verified: the packageexportsmap and the generated modules (134 exports per Heroicons variant, 85 in Lucide). - Description: the CLI dev dependency is where a template source resolves the package, and a test resolves every variant from a template folder. Verified:
devDependenciesandtemplate-placeholders.test.mjs. - Description: the generator writes the package, and
--checkfails when it is out of date. Verified:main()exits 1 on any stale file, and--checkpasses at this head. - Description:
template-placeholders.mjsreads the variant, the meaning and the library import. Verified: the module and its tests; the copy step that would use it is not in this pull request. - Description: FR21 describes the placeholders, and the Intent and DEC-4 name the table as the one exception. Verified, and approved by an engineering owner at this head.
- Description: the generator reads its rules through
template-placeholders.mjs. Verified: it imports the module, export-name, module-path and source helpers. - Description (why): copies should draw the app's icon set, or the same Heroicons with no set. Not at this head: nothing rewrites a meaning import yet, which is the blocking finding.
- Description (testing): the placeholder tests pass, the CLI suite has no new failures, and the knowledge check, template-docs typecheck and Prettier pass. Verified: 7 of 7 placeholder tests; 587 CLI tests pass, and the three failing test files fail the same way without this change; the three checks pass.
- Description (writing rubric): the added record text states no project status. Verified.
- Description (stack): the pull requests land as one, and no template declaration differs from the table at the top of the stack. Not verified: the Stack line does not hold, so this pull request is reviewed alone.
Files:
.changeset/template-icon-placeholders-module.md: clear.apps/docsite/package.json: clear.docs/specs/AST-084-icon-sets/spec.md: the blocking finding.packages/cli/assets/icons/template-icons.json: clear.packages/cli/foundation/discovery/template-placeholders.mjs: non-blocking header note.packages/cli/foundation/discovery/template-placeholders.test.mjs: clear.packages/cli/package.json: clear.packages/cli/scripts/generate-template-icons.mjs: non-blocking header note.packages/template-iconsindex modules (10 files) andpackage.json: clear; generated and equal to the table.packages/template-icons/README.md: clear.pnpm-lock.yaml: clear.
335de51 to
eaef433
Compare
|
/approve-spec eaef433 |
There was a problem hiding this comment.
Changes requested for one record fix and one small code fix; an engineering owner has approved AST-084 FR21 and its Intent and DEC-4 exception at this head, so the direction is settled.
Blocking findings:
- Miss: FR21 lets bundled templates import the private
@astryxdesign/template-icons, but FR10 and DEC-11 still copy a template's imports unchanged (andastryx templatekeeps every@astryxdesign/*import), so the first template that uses it would be copied with an import no app can install; state the copy rule in FR21 and amend FR10 and DEC-11 to name it, or move FR21's permission into the pull request that adds the copy step. - Regression:
placeholderExportName()intemplate-placeholders.mjsrestates the meaning-to-export-name rule thaticonExportName()now applies toexperimental icon's meaning imports onmain, and the two already disagree for a name ending inIcon, so have it calliconExportName()(or move the rule into one helper both use) and delete the copy.
This head rebases onto a newer main without changing the pull request's own lines, and that main added the meaning-import naming the second finding points to. The Stack line does not make this a stack review, because its last five entries target other pull requests' branches instead of main, so this pull request is judged on its own. Two file headers still describe a copy step this head does not have, a small non-blocking follow-up already noted inline.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Changeset: the CLI ships the template icon table, with the Heroicon (or the Lucide icon for the lucide variant) for each meaning a bundled template draws. Verified: the CLI's
filesincludesassets, and the table's 172 meanings are exactly the meanings the bundled templates' icon declarations name, each entry an icon some template draws for that meaning. - Changeset: a private workspace package is generated from the table. Verified:
private: true, and the generator's--checkpasses. - Changeset: template sources can import icons by meaning and previews draw them. Verified: every variant path resolves from page and block template folders and from the docs site.
- Description: this pull request adds what meaning imports resolve to; no template uses it yet, and no output changes. Verified: nothing imports the package, and the built API surface compare of every published package finds no rows.
- Description: the table names the Heroicon for each meaning, and the Lucide icon for the Lucide templates. Verified: 134 Heroicons and 85 Lucide icons across 172 meanings.
- Description: for most meanings the table names the icon every template draws, fourteen templates draw a different one and get refined meanings later in the stack, and at the top of the stack no template declaration differs from the table. Verified: 21 declarations across 19 meanings in 14 templates differ here; at the top of the declared stack every template icon import is a meaning the table draws, and each of those 21 icons has its own meaning.
- Description: exports are
<Meaning>Icon; the root draws 24 outline, and/24/solid,/20/solid,/16/solidand/lucidedraw the others. Verified: the packageexportsmap and the generated modules (134 exports per Heroicons variant, 85 in Lucide). - Description: the CLI dev dependency is where a template source resolves the package, and a test resolves every variant from a template folder. Verified:
devDependenciesandtemplate-placeholders.test.mjs. - Description: the generator writes the package, and
--checkfails when it is out of date. Verified:main()exits 1 on any stale file, and--checkpasses at this head. - Description:
template-placeholders.mjsreads the variant, the meaning and the library import, for the copy step in the next pull request. Verified: the module and its tests; nothing else calls it at this head. - Description: FR21 describes the placeholders, and the Intent and DEC-4 name the table as the one exception. Verified, and approved by an engineering owner at this head.
- Description: the generator reads its rules through
template-placeholders.mjs, so the rules live in one place. Verified for the generator; the export-name rule also lives iniconExportName(), which is the second blocking finding. - Description (why): copies should draw the app's icon set, or the same Heroicons with no set. Not at this head: nothing rewrites a meaning import yet, which is the first blocking finding.
- Description (testing): the placeholder tests pass, the CLI suite has no new failures, and the knowledge check, template-docs typecheck and Prettier pass. Verified: 7 of 7 placeholder tests; 587 CLI tests pass, and the three failing test files fail the same way without this change; the three checks pass.
- Description (writing rubric): the added record text states no project status. Verified.
- Description (stack): the pull requests land as one. Not a stack review: the Stack line does not hold, so this pull request is reviewed alone.
Files:
.changeset/template-icon-placeholders-module.md: clear.apps/docsite/package.json: clear.docs/specs/AST-084-icon-sets/spec.md: the first blocking finding.packages/cli/assets/icons/template-icons.json: clear.packages/cli/foundation/discovery/template-placeholders.mjs: the second blocking finding; non-blocking header note.packages/cli/foundation/discovery/template-placeholders.test.mjs: clear.packages/cli/package.json: clear.packages/cli/scripts/generate-template-icons.mjs: re-exports the copied naming function (second blocking finding); non-blocking header note.packages/template-iconsindex modules (10 files) andpackage.json: clear; generated and equal to the table.packages/template-icons/README.md: clear.pnpm-lock.yaml: clear.
| export function placeholderExportName(meaning) { | ||
| return `${meaning[0].toUpperCase()}${meaning.slice(1)}Icon`; | ||
| } |
There was a problem hiding this comment.
This restates the rule iconExportName() owns (packages/cli/foundation/discovery/icon-set-writer.mjs:93-102), which main now uses to name a meaning's import in experimental icon answers (api/icon/search/search.mjs:129-133). The two agree on every current definition but already differ for a name ending in Icon (appIcon gives AppIcon there and AppIconIcon here), so a fix to one silently misses the other. Call iconExportName(meaning) here, or move the rule into one helper both import, and drop the copy (and its re-export from generate-template-icons.mjs:32).
- #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 adds
The first piece of template icon placeholders (experimental). Bundled template sources will import icons by meaning,
import {DeleteIcon} from '@astryxdesign/template-icons', instead of from an icon library. This PR adds what those imports resolve to; no template uses it yet, and no output changes.packages/cli/assets/icons/template-icons.json: one table that names, for each icon meaning a bundled template draws, the Heroicon that draws it (and the Lucide icon for the few templates drawn with Lucide). For most meanings it is the icon every template draws; the fourteen templates that drew a different icon for a meaning get their own refined meaning in feat(cli): twenty-one refined icon meanings that fall back to the meaning templates used before #12748, so at the top of the stack no template declaration differs from the table.packages/template-icons: a private workspace package generated from the table. Each export is<Meaning>Iconand re-exports the table's icon. The import path names the variant: the root is 24 outline, and/24/solid,/20/solid,/16/solidand/lucidedraw the others. The CLI package carries it as a dev dependency, which is where a bundled template source resolves its imports, so previews draw the same icons with no extra step; a test resolves every variant path from a template directory.packages/cli/scripts/generate-template-icons.mjswrites the package from the table (--checkfails when it is out of date).foundation/discovery/template-placeholders.mjsreads the table: the variant from an import path, the meaning from an export name, and the library import that draws it. The copy step uses it in the next PR.template-placeholders.mjs, so the rules live in one place.Why
Copies of a template should draw the app's icon set, and the same Heroicons as today with no icon set. When the template names each icon by its meaning in its own import, the copy step only rewrites import lines, and an icon set switch is a mechanical rename.
Testing
vitest run --project node packages/cli/foundation/discovery/template-placeholders.test.mjs(meanings are definitions; every icon exists in its library in every variant; the package matches the table; variant and meaning parsing)vitest run --project node packages/cli/testand the template icon tests: no new failures (three tests that also fail on the base, in this environment only)pnpm check:knowledge,typecheck:template-docs, Prettier on the changed filesWriting rubric results
R1 narration: none; FR21 and the Intent/DEC-4 exception 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.