Repository navigation
feat(cli): page templates library to work-item-detail import icons by meaning - #12756
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 template icon placeholder requirements this pull request relies on (AST-084 FR21 to FR23, proposed in #12741, #12747 and #12748), and on fixes for the findings below. Those requirements let page templates import icons from the private @astryxdesign/template-icons package without an icons declaration, which the current FR9 and FR10 do not allow. An engineering owner records the decision by commenting /approve-spec <full head SHA> on the pull request that proposes them, and the author may do so as an engineering owner; the same decision should say whether the template rubric's self-contained-imports item accepts that package.
- The docsite's shadcn registry skips all 25 migrated pages because they import an unpublished package (
apps/docsite/scripts/generate-shadcn-registry.mjs:101-112), so they stop being installable and the canary route-lock check fails; fill placeholders in the page item's source asastryx templatedoes. - The docsite playground draws these templates, including its built-in Theme showcase, with no icons, because the placeholder modules are not in the playground scope (
apps/docsite/src/app/playground/preview/runner.ts:85-101); fill placeholders in the template registry's source or add the modules to the scope. - The changeset's claim that copies draw the same icons does not hold for the shadcn copy, and the claim that the table adds
walletfor templates that draw it is inaccurate, sincewalletalready existed and no template draws the new HeroiconsWalletIcon. - Under the template rubric's self-contained-imports item, login-card, login-split, payment-form and product-detail drop below their
mainscore; this clears only if the owners accept the placeholder import.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim, 25 templates (library to work-item-detail) import icons by meaning: verified, every one of the 25
page.tsxfiles imports only placeholder icons. - Claim, copies draw the same icons with and without an icon set: verified for
astryx template(all 25, no set and a set mapping every meaning); false for the shadcn Install item, which no longer offers these pages. - Claim, same script and rules as the first batch, stopping when the table draws a meaning with another icon: verified, the stop message reproduces at the head.
- Claim, the script checks every template before writing, so a stopped run leaves the tree as it was: verified, the base writes the first template before it stops and the head writes none.
- Claim, the table adds
wallet(Heroicons and Lucide) for templates that draw it: false,walletalready had its Lucide icon and no template draws the new Heroicons icon. - Claim, with this batch every page template imports icons by meaning: verified, no page source imports Heroicons or Lucide directly.
- Claim, the node tests for the template, scripts, discovery and declarations pass: verified (132 files, 1,573 tests).
- Claim, repeated script runs give identical files and a further run changes nothing: not rerun;
--checkreports no page left. - Claim, the changed files are Prettier-formatted: verified.
- Files, 25
pages/*/page.tsx: registry and playground findings for all; rubric finding for login-card, login-split, payment-form and product-detail. - Files, 25
pages/*/template.doc.mjs: clear apart from the spec decision. - Files,
assets/icons/template-icons.jsonand the 8 generatedpackages/template-iconsfiles: thewalletclaim finding; the generated files match the table. - Files,
scripts/migrate-template-icons.mjs: clear. - Files,
.changeset/template-icons-migrate-2.md: the claim finding.
753d10e to
b0b468b
Compare
5b1e810 to
34284fd
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the template icon placeholder requirements this pull request relies on (AST-084 FR21 to FR23, proposed in #12741, #12747 and #12748), and on fixes for the findings below. Those requirements let page templates import icons from the private @astryxdesign/template-icons package without an icons declaration, which the current FR9 and FR10 do not allow. An engineering owner records the decision by commenting /approve-spec <full head SHA> on the pull request that proposes them, and the author may do so as an engineering owner; the same decision should say whether the template rubric's self-contained-imports item accepts that package.
- The docsite's shadcn registry skips all 25 migrated pages because they import an unpublished package (
apps/docsite/scripts/generate-shadcn-registry.mjs:101-112), so they stop being installable and the canary route-lock check fails; fill placeholders in the page item's source asastryx templatedoes. - The docsite playground draws these templates, including its built-in Theme showcase, with no icons, because the placeholder modules are not in the playground scope (
apps/docsite/src/app/playground/preview/runner.ts:85-101); fill placeholders in the template registry's source or add the modules to the scope. - The changeset's claim that copies draw the same icons does not hold for the shadcn copy, and the claim that the table adds
walletfor templates that draw it is inaccurate, sincewalletalready existed and no template draws the new HeroiconsWalletIcon. - Under the template rubric's self-contained-imports item, login-card, login-split, payment-form and product-detail drop below their
mainscore; this clears only if the owners accept the placeholder import.
Claims and files checked
Review mode: carry-forward; reason: none
- Claim, 25 templates (library to work-item-detail) import icons by meaning: verified, every one of the 25
page.tsxfiles imports only placeholder icons. - Claim, copies draw the same icons with and without an icon set: verified for
astryx template(all 25, no set and a set mapping every meaning); false for the shadcn Install item, which no longer offers these pages. - Claim, same script and rules as the first batch, stopping when the table draws a meaning with another icon: verified, the stop message reproduces at the head.
- Claim, the script checks every template before writing, so a stopped run leaves the tree as it was: verified, the base writes the first template before it stops and the head writes none.
- Claim, the table adds
wallet(Heroicons and Lucide) for templates that draw it: false,walletalready had its Lucide icon and no template draws the new Heroicons icon. - Claim, with this batch every page template imports icons by meaning: verified, no page source imports Heroicons or Lucide directly.
- Claim, the node tests for the template, scripts, discovery and declarations pass: verified (132 files, 1,573 tests).
- Claim, repeated script runs give identical files and a further run changes nothing: not rerun;
--checkreports no page left. - Claim, the changed files are Prettier-formatted: verified.
- Files, 25
pages/*/page.tsx: registry and playground findings for all; rubric finding for login-card, login-split, payment-form and product-detail. - Files, 25
pages/*/template.doc.mjs: clear apart from the spec decision. - Files,
assets/icons/template-icons.jsonand the 8 generatedpackages/template-iconsfiles: thewalletclaim finding; the generated files match the table. - Files,
scripts/migrate-template-icons.mjs: clear. - Files,
.changeset/template-icons-migrate-2.md: the claim finding.
b0b468b to
53c9c8f
Compare
34284fd to
a684da8
Compare
53c9c8f to
cc94fd6
Compare
a684da8 to
2a30b3b
Compare
cc94fd6 to
b83519e
Compare
2a30b3b to
57f519c
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the template icon placeholder requirements this pull request relies on (AST-084 FR21 to FR23, proposed in #12741, #12747 and #12748), and on fixes for the findings below. Those requirements let page templates import icons from the private @astryxdesign/template-icons package without an icons declaration, which the current FR9 and FR10 do not allow, and they change what astryx template prints in a project with no icon opt-in (aliased imports, which the updated isolation test now expects), which AST-017 FR27 does not allow without a named exception. An engineering owner records the decision by commenting /approve-spec <full head SHA> on the pull requests that propose them, and the author may do so as an engineering owner; the same decision should say whether FR27 admits the copy change and whether the template rubric's self-contained-imports item accepts that package.
- The docsite's shadcn registry skips all 25 migrated pages because they import an unpublished package (
apps/docsite/scripts/generate-shadcn-registry.mjs:101-114), so they stop being installable and the canary route-lock check fails; fill placeholders in the page item's source asastryx templatedoes. - The docsite playground draws these templates, including its built-in Theme showcase, with no icons, because the placeholder modules are not in the playground scope (
apps/docsite/src/app/playground/preview/runner.ts:86-104); fill placeholders in the template registry's source or add the modules to the scope. - The changeset's claim that copies draw the same icons does not hold for the shadcn copy, and the claim that the table adds
walletfor templates that draw it is inaccurate, sincewalletalready existed and no template draws the new HeroiconsWalletIcon. - Under the template rubric's self-contained-imports item, login-card, login-split, payment-form and product-detail drop below their
mainscore; this clears only if the owners accept the placeholder import.
Claims and files checked
Review mode: full; reason: rebase
- Claim, 25 templates (library to work-item-detail) import icons by meaning: verified, each of the 25
page.tsxfiles imports only placeholder icons. - Claim, copies draw the same icons with and without an icon set: verified for
astryx templatewith no icon set (all 25 resolve to the same library icons); with a set not rerun on this revision; false for the shadcn Install item, which no longer offers these pages. - Claim, same script and rules as the first batch, stopping when the table draws a meaning with another icon: verified, the stop message reproduces.
- Claim, the script checks every template before writing, so a stopped run leaves the tree as it was: verified, the base writes the first template before it stops and this revision writes none.
- Claim, the table adds
wallet(Heroicons and Lucide) for templates that draw it: false,walletalready had its Lucide icon and no template draws the new Heroicons icon. - Claim, with this batch every page template imports icons by meaning: verified, no page source imports Heroicons or Lucide directly.
- Claim, the node tests for the template, scripts, discovery and declarations pass apart from two locale examples: verified, all pass here (130 files, 1,551 tests), including the isolation test.
- Claim, repeated script runs give identical files and a further run changes nothing: not rerun; the check mode reports no page left.
- Claim, the changed files are Prettier-formatted: verified.
- Files, 25
pages/*/page.tsx: registry and playground findings for all; rubric finding for login-card, login-split, payment-form and product-detail. - Files, 25
pages/*/template.doc.mjs: clear apart from the spec decision. - Files,
test/experimental-isolation.test.mjs: clear apart from the spec decision; it now expects the changed copy text. - Files,
assets/icons/template-icons.jsonand the 8 generatedpackages/template-iconsfiles: thewalletclaim finding; the generated files match the table. - Files,
scripts/migrate-template-icons.mjs: clear. - Files,
.changeset/template-icons-migrate-2.md: the claim finding.
| }); | ||
|
|
||
| it('a template that declares icons prints and copies as it always has', async () => { | ||
| it('a template with icons prints and copies as it always has', async () => { |
There was a problem hiding this comment.
This test guarded that a template prints and copies exactly as authored when the project has no icon opt-in (AST-017 FR27). Filling the expected source with the same fillTemplatePlaceholders the CLI runs makes it pass for whatever the fill writes, and settings-dialog's printed source now differs from main's in 86 lines (aliased imports). That needs the engineering owners' decision on FR27 together with AST-084 FR21 to FR23; with a decision recorded, an exception in FR27 would keep this test honest.
b83519e to
7e0d5e2
Compare
57f519c to
fb8b79f
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the template icon placeholder requirements this pull request relies on (AST-084 FR21 to FR23, proposed in #12741, #12747 and #12748), and on fixes for the findings below. Those requirements let page templates import icons from the private @astryxdesign/template-icons package without an icons declaration, which the current FR9 and FR10 do not allow, and they change what astryx template prints in a project with no icon opt-in (aliased imports, which the updated isolation test now expects), which AST-017 FR27 does not allow without a named exception. An engineering owner records the decision by commenting /approve-spec <full head SHA> on the pull requests that propose them, and the author may do so as an engineering owner; the same decision should say whether FR27 admits the copy change and whether the template rubric's self-contained-imports item accepts that package.
- The docsite's shadcn registry skips all 25 migrated pages because they import an unpublished package (
apps/docsite/scripts/generate-shadcn-registry.mjs:101-114), so they stop being installable; fill placeholders in the page item's source asastryx templatedoes. - The docsite playground draws these templates, including its built-in Theme showcase, with no icons, because the placeholder modules are not in the playground scope (
apps/docsite/src/app/playground/preview/runner.ts:86-104); fill placeholders in the template registry's source or add the modules to the scope. - The changeset's claim that copies draw the same icons does not hold for the shadcn copy, and the claim that the table adds
walletfor templates that draw it is inaccurate, sincewalletalready existed and no template draws the new HeroiconsWalletIcon. - Under the template rubric's self-contained-imports item, login-card, login-split, payment-form and product-detail drop further below 75 and below their
mainscore; this clears only if the owners accept the placeholder import.
main now mirrors the reset, reply and send icons in settings-dialog and table-inbox, and this branch conflicts with it there; keep that mirroring when the chain is rebased.
Claims and files checked
Review mode: full; reason: rebase
- Claim, 25 templates (library to work-item-detail) import icons by meaning: verified, each of the 25
page.tsxfiles imports only placeholder icons. - Claim, copies draw the same icons with and without an icon set: verified for
astryx templatewith no icon set (every icon in all 25 copies resolves to the same library export as on the base); with a set not rerun; false for the shadcn Install item, which no longer offers these pages. - Claim, same script and rules as the first batch, stopping when the table draws a meaning with another icon: verified from the script.
- Claim, the script checks every template before writing, so a stopped run leaves the tree as it was: verified, the stops are collected and the script exits before the first write.
- Claim, the table adds
wallet(Heroicons and Lucide) for templates that draw it: false,walletalready had its Lucide icon and no template draws the new Heroicons icon. - Claim, with this batch every page template imports icons by meaning: verified, no page source imports Heroicons or Lucide directly and the script's check mode lists only blocks.
- Claim, the node tests for the template, scripts, discovery and declarations pass apart from two locale examples: verified, all pass here, including the isolation and declarations tests.
- Claim, repeated script runs give identical files and a further run changes nothing: not rerun; the check mode reports no page left.
- Claim, the changed files are Prettier-formatted: verified.
- Files, 25
pages/*/page.tsx: registry and playground findings for all; rubric finding for login-card, login-split, payment-form and product-detail; rebase note for settings-dialog and table-inbox. - Files, 25
pages/*/template.doc.mjs: clear apart from the spec decision. - Files,
test/experimental-isolation.test.mjs: clear apart from the spec decision; it now expects the changed copy text. - Files,
assets/icons/template-icons.jsonand the 8 generatedpackages/template-iconsfiles: thewalletclaim finding; the generated files match the table. - Files,
scripts/migrate-template-icons.mjs: clear. - Files,
.changeset/template-icons-migrate-2.md: the claim finding.
7e0d5e2 to
5cd0f3e
Compare
fb8b79f to
8f303d7
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the template icon placeholder requirements this pull request relies on (AST-084 FR21 to FR23, proposed in #12741, #12747 and #12748), and on fixes for the findings below. Those requirements let page templates import icons from the private @astryxdesign/template-icons package without an icons declaration, which the current FR9 and FR10 do not allow, and they change what astryx template prints in a project with no icon opt-in (aliased imports, which the updated isolation test now expects), which AST-017 FR27 does not allow without a named exception. An engineering owner records the decision by commenting /approve-spec <full head SHA> on the pull requests that propose them, and the author may do so as an engineering owner; the same decision should say whether FR27 admits the copy change and whether the template rubric's self-contained-imports item accepts that package.
- The docsite's shadcn registry skips all 25 migrated pages because they import an unpublished package (
apps/docsite/scripts/generate-shadcn-registry.mjs:101-114), so they stop being installable; fill placeholders in the page item's source asastryx templatedoes. - The docsite playground draws these templates, including its built-in Theme showcase, with no icons, because the placeholder modules are not in the playground scope (
apps/docsite/src/app/playground/preview/runner.ts:86-104); fill placeholders in the template registry's source or add the modules to the scope. - The changeset's claim that copies draw the same icons does not hold for the shadcn copy, and the claim that the table adds
walletfor templates that draw it is inaccurate, sincewalletalready existed and no template draws the new HeroiconsWalletIcon. - Under the template rubric's self-contained-imports item, login-card, login-split, payment-form and product-detail drop further below 75 and below their
mainscore; this clears only if the owners accept the placeholder import.
main now mirrors the reset, reply and send icons in settings-dialog and table-inbox, and this branch conflicts with it there; keep that mirroring when the chain is rebased.
Claims and files checked
Review mode: carry-forward; reason: none
- Claim, 25 templates (library to work-item-detail) import icons by meaning: verified, each of the 25
page.tsxfiles imports only placeholder icons. - Claim, copies draw the same icons with and without an icon set: verified for
astryx templatewith no icon set (every icon in all 25 copies resolves to the same library export as on the base); with a set not rerun; false for the shadcn Install item, which no longer offers these pages. - Claim, same script and rules as the first batch, stopping when the table draws a meaning with another icon: verified from the script.
- Claim, the script checks every template before writing, so a stopped run leaves the tree as it was: verified, the stops are collected and the script exits before the first write.
- Claim, the table adds
wallet(Heroicons and Lucide) for templates that draw it: false,walletalready had its Lucide icon and no template draws the new Heroicons icon. - Claim, with this batch every page template imports icons by meaning: verified, no page source imports Heroicons or Lucide directly and the script's check mode lists only blocks.
- Claim, the node tests for the template, scripts, discovery and declarations pass apart from two locale examples: verified with this same patch before the rebase, including the isolation and declarations tests.
- Claim, repeated script runs give identical files and a further run changes nothing: not rerun; the check mode reports no page left.
- Claim, the changed files are Prettier-formatted: verified.
- Files, 25
pages/*/page.tsx: registry and playground findings for all; rubric finding for login-card, login-split, payment-form and product-detail; rebase note for settings-dialog and table-inbox. - Files, 25
pages/*/template.doc.mjs: clear apart from the spec decision. - Files,
test/experimental-isolation.test.mjs: clear apart from the spec decision; it now expects the changed copy text. - Files,
assets/icons/template-icons.jsonand the 8 generatedpackages/template-iconsfiles: thewalletclaim finding; the generated files match the table. - Files,
scripts/migrate-template-icons.mjs: clear. - Files,
.changeset/template-icons-migrate-2.md: the claim finding.
There was a problem hiding this comment.
Changes requested: one current spec record still forbids a change this pull request makes.
The engineering owner approved AST-084 FR21 to FR23. That approval covers the placeholder imports, the dropped icons declarations, the wallet table entry and the template rubric's import item, so the earlier spec and rubric findings are resolved.
- AST-017 FR27 says an omitted opt-in must leave stable output unchanged and names no exception for the placeholder fill, yet with no icon opt-in
astryx templatenow writes all 25 pages with aliased imports andexperimental-isolation.test.mjsbuilds its expectation with that same fill, so add the fill to FR27's named exceptions in this stack, beside its existing icon-setdiscoverexception, and have an engineering owner approve that head with/approve-spec <full head SHA>.
Non-blocking: login-card, product-detail, login-split and payment-form score below 75 on the template rubric, with the same deductions they have on main. Ten pages remain over about 1,000 lines. This pull request changes neither.
Claims and files checked
Review mode: full; reason: rebase
- Claim, 25 templates (library to work-item-detail) import icons by meaning: verified. Each of the 25
page.tsxfiles imports only placeholder icons. - Claim, copies draw the same icons as before, with and without an icon set: verified. With no set, every copy imports and renders the same library exports as the base at every use. With a set, 21 copies are byte-identical and four differ only in line wrapping.
- Claim, same script and rules as the first batch, with a stop when the table draws a meaning with another icon: verified. The script, run over the base's templates, writes exactly these page files.
- Claim, the script checks every template before writing, so a stopped run leaves the tree as it was: verified. It collects the stops and exits before the first write (
migrate-template-icons.mjs:294-326). - Claim, the
walletentry gains a Heroicons drawing so every variant draws it, and theme-showcase keeps Lucide: verified (template-icons.json:648,theme-showcase/page.tsx:29). - Claim, with this batch every page template imports icons by meaning: verified. The script's check mode lists only blocks.
- Claim, the named node tests pass apart from two locale examples: verified. All pass here, the locale examples included.
- Claim, repeated script runs give identical files and a further run changes nothing: verified. A run from a clean base tree writes exactly the head's page files, and a second run moves nothing.
- Claim, the changed files are Prettier-formatted: verified.
- Claim, the changeset's three statements (25 more templates, the same icons with and without a set,
walletdrawn in every variant): verified. - Files, 25
pages/*/page.tsx: the FR27 finding applies to their copies. They also carry the rubric notes for login-card, login-split, payment-form and product-detail, and the size note for ten pages. Right-to-left mirroring is kept. - Files, 25
pages/*/template.doc.mjs: clear. - Files,
test/experimental-isolation.test.mjs: FR27 finding. - Files,
assets/icons/template-icons.jsonand the 8 generatedpackages/template-iconsfiles: clear. The generated files match the table. - Files,
scripts/migrate-template-icons.mjs: clear. - Files,
.changeset/template-icons-migrate-2.md: clear.
84b17fe to
71f83af
Compare
629f8bf to
1d56533
Compare
|
/approve-spec 1d56533 |
There was a problem hiding this comment.
Changes requested: one current spec record still forbids a change this pull request makes.
The engineering owner's approval of AST-084 FR21 to FR23, now also given at this head, covers the placeholder imports, the dropped icons declarations, the wallet table entry and the template rubric's import item.
- AST-017 FR27 says an omitted opt-in must leave stable output unchanged and names no exception for the placeholder fill, yet with no icon opt-in
astryx templatenow writes all 25 pages with aliased imports andexperimental-isolation.test.mjsbuilds its expectation with that same fill, so add the fill to FR27's named exceptions in this stack, beside its existing icon-setdiscoverexception, and have an engineering owner approve that head with/approve-spec <full head SHA>.
Non-blocking: login-card, product-detail, login-split and payment-form stay below 75 on the template rubric and ten pages stay over about 1,000 lines, as on main; this pull request changes neither.
Claims and files checked
Review mode: carry-forward; reason: none
- Claim, 25 templates (library to work-item-detail) import icons by meaning: verified. Each of the 25
page.tsxfiles imports only placeholder icons. - Claim, copies draw the same icons as before, with and without an icon set: verified. With no set, every copy imports and renders the same library exports as the base at every use. With a set, 21 copies are byte-identical and four differ only in line wrapping.
- Claim, same script and rules as the first batch, with a stop when the table draws a meaning with another icon: verified. The script, run over the base's templates, writes exactly these page files.
- Claim, the script checks every template before writing, so a stopped run leaves the tree as it was: verified. It collects the stops and exits before the first write (
migrate-template-icons.mjs:290-326). - Claim, the
walletentry gains a Heroicons drawing so every variant draws it, and theme-showcase keeps Lucide: verified (template-icons.json:648,theme-showcase/page.tsx:29). - Claim, with this batch every page template imports icons by meaning: verified. The script's check mode lists only blocks.
- Claim, the named node tests pass apart from two locale examples: verified. They pass on this patch, the locale examples included.
- Claim, repeated script runs give identical files and a further run changes nothing: verified. A run from a clean base tree writes exactly the head's page files, and a second run moves nothing.
- Claim, the changed files are Prettier-formatted: verified.
- Claim, the changeset's three statements (25 more templates, the same icons with and without a set,
walletdrawn in every variant): verified. - Files, 25
pages/*/page.tsx: the FR27 finding applies to their copies. They also carry the rubric notes for login-card, login-split, payment-form and product-detail, and the size note for ten pages. Right-to-left mirroring is kept. - Files, 25
pages/*/template.doc.mjs: clear. - Files,
test/experimental-isolation.test.mjs: FR27 finding. - Files,
assets/icons/template-icons.jsonand the 8 generatedpackages/template-iconsfiles: clear. The generated files match the table. - Files,
scripts/migrate-template-icons.mjs: clear. - Files,
.changeset/template-icons-migrate-2.md: clear.
1d56533 to
5627d01
Compare
71f83af to
27a3781
Compare
|
/approve-spec 5627d01 |
There was a problem hiding this comment.
Changes requested: two current spec records still forbid a change this pull request makes.
The engineering owner's approval of AST-084 FR21 to FR23, given again at this head, covers the placeholder imports, the dropped icons declarations, the wallet table entry and the template rubric's import item.
- AST-017 FR27 and AST-084 DEC-6 say an omitted opt-in leaves stable output unchanged and name no exception for the placeholder fill, yet with no icon opt-in
astryx templatenow writes 24 of these pages with aliased imports andexperimental-isolation.test.mjsbuilds its expectation with that same fill, so add the fill to FR27's named exceptions and to DEC-6's exception in this stack and have an engineering owner approve that head with/approve-spec <full head SHA>.
Non-blocking: login-card, product-detail, login-split and payment-form stay below 75 on the template rubric and ten pages stay over about 1,000 lines, as on main; this pull request changes neither.
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
- Claim, 25 page templates (library to work-item-detail) import their icons by meaning: verified. Each of the 25
page.tsxfiles imports only placeholder icons. - Claim, copies draw the same icons as before, with and without an icon set: verified. With no set, every copy renders the same library exports as the base at every use; with a set, 21 copies are byte-identical and four differ only in line wrapping.
- Claim, same script and rules as the first batch, with a stop when the table draws a meaning with another icon: verified. The script run over the base's templates writes exactly these page files.
- Claim, the script checks every template before it writes, so a stopped run leaves the tree as it was: verified (
migrate-template-icons.mjs:290-326). - Claim,
walletgains a Heroicons drawing so every variant draws it, and theme-showcase keeps Lucide: verified (template-icons.json:648, theme-showcase imports from/lucide). - Claim, with this batch every page template imports its icons by meaning: verified. The script's check mode lists no page template.
- Claim, the named node tests pass apart from two locale examples: verified. They pass, the locale examples included.
- Claim, repeated script runs give identical files and a further run changes nothing: verified. A run from the base writes the head's page files, and a second run moves nothing.
- Claim, the changed files are Prettier-formatted: verified.
- Claim, the changeset's three statements (25 more templates, the same icons with and without a set,
walletdrawn in every variant): verified. - Files, 25
pages/*/page.tsx: the FR27 finding applies to their copies; rubric notes for login-card, login-split, payment-form and product-detail and the size note for ten pages; right-to-left mirroring kept. - Files, 25
pages/*/template.doc.mjs: clear. - Files,
test/experimental-isolation.test.mjs: FR27 finding. - Files,
assets/icons/template-icons.jsonand the 8 generatedpackages/template-iconsfiles: clear; the generated files match the table. - Files,
scripts/migrate-template-icons.mjs: clear. - Files,
.changeset/template-icons-migrate-2.md: clear.
… meaning [skip ci]
5627d01 to
b4222af
Compare
27a3781 to
7ac2f55
Compare
|
/approve-spec b4222af |
There was a problem hiding this comment.
Changes requested: two current spec records still forbid a change this pull request makes.
The engineering owner's approval of AST-084 FR21 to FR23, given again at this head, covers the placeholder imports, the dropped icons declarations, the wallet table entry and the template rubric's import item.
- AST-017 FR27 and AST-084 DEC-6 say an omitted opt-in leaves stable output unchanged and name no exception for the placeholder fill, yet with no icon opt-in
astryx templatenow writes 24 of these pages with aliased imports andexperimental-isolation.test.mjsbuilds its expectation with that same fill, so add the fill to FR27's named exceptions and to DEC-6's exception in this stack and have an engineering owner approve that head with/approve-spec <full head SHA>.
Non-blocking: login-card, product-detail, login-split and payment-form stay below 75 on the template rubric and ten pages stay over about 1,000 lines, as on main; this pull request changes neither.
Claims and files checked
Review mode: full; reason: rebase
- Claim, 25 page templates (library to work-item-detail) import their icons by meaning: verified. Each of the 25
page.tsxfiles imports only placeholder icons. - Claim, copies draw the same icons as before, with and without an icon set: verified. With no set, every copy renders the same library exports as the base at every use; with a set, 21 copies are byte-identical and four differ only in line wrapping.
- Claim, same script and rules as the first batch, with a stop when the table draws a meaning with another icon: verified. The script run over the base's templates writes exactly these 50 template files, and a mismatched meaning stops it.
- Claim, the script checks every template before it writes, so a stopped run leaves the tree as it was: verified (
migrate-template-icons.mjs:318-322; a stopped run left the other named template untouched). - Claim,
walletgains a Heroicons drawing so every variant draws it, and theme-showcase keeps Lucide: verified (template-icons.json:648; theme-showcase imports from/lucide). - Claim, with this batch every page template imports its icons by meaning: verified. The script's check mode lists no page template.
- Claim, the named node tests pass apart from two locale examples: verified. They pass, the locale examples included; one unrelated assertion that lists files through git cannot run without a repository.
- Claim, repeated script runs give identical files and a further run changes nothing: verified. A run from the base writes the head's template files, and a second run moves nothing.
- Claim, the changed files are Prettier-formatted: verified.
- Claim, the changeset's three statements (25 more templates, the same icons with and without a set,
walletdrawn in every variant): verified. - Files, 25
pages/*/page.tsx: the FR27 finding applies to their copies; rubric notes for login-card, login-split, payment-form and product-detail and the size note for ten pages; right-to-left mirroring kept. - Files, 25
pages/*/template.doc.mjs: clear. - Files,
test/experimental-isolation.test.mjs: FR27 finding. - Files,
assets/icons/template-icons.jsonand the 8 generatedpackages/template-iconsfiles: clear; the generated files match the table. - Files,
scripts/migrate-template-icons.mjs: clear. - Files,
.changeset/template-icons-migrate-2.md: 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 second batch of the template icon move (experimental): 25 page templates,
librarythroughwork-item-detail, import their icons by meaning from@astryxdesign/template-icons. Copies draw the same icons as before, with and without an icon set.walletentry gains a Heroicons drawing (WalletIcon) beside its LucideWallet, so every variant draws it; the one template that draws a wallet (theme-showcase) keeps Lucide.With this batch every page template imports its icons by meaning.
Testing
vitest run --project nodeon packages/cli/api/template, scripts, foundation/discovery and the template icon declarations test. All pass except two locale examples that need a Node with full ICU data (they fail the same way on the base).