Skip to content

feat(cli): page templates library to work-item-detail import icons by meaning - #12756

Closed
josephfarina wants to merge 1 commit into
josephfarina/template-icons-migrate-1from
josephfarina/template-icons-migrate-2
Closed

josephfarina wants to merge 1 commit into
josephfarina/template-icons-migrate-1from
josephfarina/template-icons-migrate-2

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

What it changes

The second batch of the template icon move (experimental): 25 page templates, library through work-item-detail, import their icons by meaning from @astryxdesign/template-icons. Copies draw the same icons as before, with and without an icon set.

  • Same script and rules as the first batch: each icon's declared meaning, the variant its old path drew, and a stop when the table draws that meaning with another icon.
  • The script now checks every template before it writes any file, so a stopped run leaves the tree as it was.
  • The template icon table's wallet entry gains a Heroicons drawing (WalletIcon) beside its Lucide Wallet, 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 node on 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).
  • Three runs of the script from clean trees give identical files, and a fourth run changes nothing.
  • Prettier on the changed files

@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 19, 2026 8:28pm UTC

Request Review

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

astracat-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟡 Reviewed (for maintainers only) Nov 19, 2026, 8:28 PM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the 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 as astryx template does.
  • 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 wallet for templates that draw it is inaccurate, since wallet already existed and no template draws the new Heroicons WalletIcon.
  • Under the template rubric's self-contained-imports item, login-card, login-split, payment-form and product-detail drop below their main score; 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.tsx files 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, wallet already 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; --check 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, assets/icons/template-icons.json and the 8 generated packages/template-icons files: the wallet claim finding; the generated files match the table.
  • Files, scripts/migrate-template-icons.mjs: clear.
  • Files, .changeset/template-icons-migrate-2.md: the claim finding.

Automated review (maintainer link)

Comment thread .changeset/template-icons-migrate-2.md Resolved
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-1 branch from 753d10e to b0b468b Compare November 19, 2026 03:25
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-2 branch from 5b1e810 to 34284fd Compare November 19, 2026 03:25

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 as astryx template does.
  • 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 wallet for templates that draw it is inaccurate, since wallet already existed and no template draws the new Heroicons WalletIcon.
  • Under the template rubric's self-contained-imports item, login-card, login-split, payment-form and product-detail drop below their main score; 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.tsx files 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, wallet already 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; --check 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, assets/icons/template-icons.json and the 8 generated packages/template-icons files: the wallet claim finding; the generated files match the table.
  • Files, scripts/migrate-template-icons.mjs: clear.
  • Files, .changeset/template-icons-migrate-2.md: the claim finding.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-1 branch from b0b468b to 53c9c8f Compare November 19, 2026 04:47
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-2 branch from 34284fd to a684da8 Compare November 19, 2026 04:47
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-1 branch from 53c9c8f to cc94fd6 Compare November 19, 2026 05:09
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-2 branch from a684da8 to 2a30b3b Compare November 19, 2026 05:09
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-1 branch from cc94fd6 to b83519e Compare November 19, 2026 05:26
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-2 branch from 2a30b3b to 57f519c Compare November 19, 2026 05:26

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 as astryx template does.
  • 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 wallet for templates that draw it is inaccurate, since wallet already existed and no template draws the new Heroicons WalletIcon.
  • Under the template rubric's self-contained-imports item, login-card, login-split, payment-form and product-detail drop below their main score; 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.tsx files imports only placeholder icons.
  • Claim, copies draw the same icons with and without an icon set: verified for astryx template with 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, wallet already 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.json and the 8 generated packages/template-icons files: the wallet claim finding; the generated files match the table.
  • Files, scripts/migrate-template-icons.mjs: clear.
  • Files, .changeset/template-icons-migrate-2.md: the claim finding.

Automated review (maintainer link)

});

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 () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-1 branch from b83519e to 7e0d5e2 Compare November 19, 2026 08:32
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-2 branch from 57f519c to fb8b79f Compare November 19, 2026 08:32

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 as astryx template does.
  • 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 wallet for templates that draw it is inaccurate, since wallet already existed and no template draws the new Heroicons WalletIcon.
  • 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 main score; 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.tsx files imports only placeholder icons.
  • Claim, copies draw the same icons with and without an icon set: verified for astryx template with 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, wallet already 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.json and the 8 generated packages/template-icons files: the wallet claim finding; the generated files match the table.
  • Files, scripts/migrate-template-icons.mjs: clear.
  • Files, .changeset/template-icons-migrate-2.md: the claim finding.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-1 branch from 7e0d5e2 to 5cd0f3e Compare November 19, 2026 09:18
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-2 branch from fb8b79f to 8f303d7 Compare November 19, 2026 09:18

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 as astryx template does.
  • 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 wallet for templates that draw it is inaccurate, since wallet already existed and no template draws the new Heroicons WalletIcon.
  • 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 main score; 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.tsx files imports only placeholder icons.
  • Claim, copies draw the same icons with and without an icon set: verified for astryx template with 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, wallet already 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.json and the 8 generated packages/template-icons files: the wallet claim finding; the generated files match the table.
  • Files, scripts/migrate-template-icons.mjs: clear.
  • Files, .changeset/template-icons-migrate-2.md: the claim finding.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 template now writes all 25 pages with aliased imports and experimental-isolation.test.mjs builds its expectation with that same fill, so add the fill to FR27's named exceptions in this stack, beside its existing icon-set discover exception, 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.tsx files 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 wallet entry 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, wallet drawn 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.json and the 8 generated packages/template-icons files: clear. The generated files match the table.
  • Files, scripts/migrate-template-icons.mjs: clear.
  • Files, .changeset/template-icons-migrate-2.md: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-1 branch from 84b17fe to 71f83af Compare November 19, 2026 18:14
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-2 branch from 629f8bf to 1d56533 Compare November 19, 2026 18:14
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 1d56533

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: one 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 template now writes all 25 pages with aliased imports and experimental-isolation.test.mjs builds its expectation with that same fill, so add the fill to FR27's named exceptions in this stack, beside its existing icon-set discover exception, 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.tsx files 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 wallet entry 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, wallet drawn 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.json and the 8 generated packages/template-icons files: clear. The generated files match the table.
  • Files, scripts/migrate-template-icons.mjs: clear.
  • Files, .changeset/template-icons-migrate-2.md: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-2 branch from 1d56533 to 5627d01 Compare November 19, 2026 19:34
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-1 branch from 71f83af to 27a3781 Compare November 19, 2026 19:34
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 5627d01

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: 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 template now writes 24 of these pages with aliased imports and experimental-isolation.test.mjs builds 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.tsx files 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, wallet gains 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, wallet drawn 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.json and the 8 generated packages/template-icons files: clear; the generated files match the table.
  • Files, scripts/migrate-template-icons.mjs: clear.
  • Files, .changeset/template-icons-migrate-2.md: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-2 branch from 5627d01 to b4222af Compare November 19, 2026 20:10
@josephfarina
josephfarina force-pushed the josephfarina/template-icons-migrate-1 branch from 27a3781 to 7ac2f55 Compare November 19, 2026 20:10
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec b4222af

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: 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 template now writes 24 of these pages with aliased imports and experimental-isolation.test.mjs builds 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.tsx files 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, wallet gains 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, wallet drawn 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.json and the 8 generated packages/template-icons files: clear; the generated files match the table.
  • Files, scripts/migrate-template-icons.mjs: clear.
  • Files, .changeset/template-icons-migrate-2.md: clear.

Automated review (maintainer link)

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

Copy link
Copy Markdown
Contributor Author

Landed in #12965.

@github-actions
github-actions Bot deleted the josephfarina/template-icons-migrate-2 branch November 20, 2026 06:05

This branch was successfully deployed

1 active deployment
Preview — b4222af1 Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant