Repository navigation
feat(cli): block templates AlertDialog to MultiSelector import icons by meaning - #12759
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 icon-set record's template placeholder requirements, and one fix is needed:
- The docs site still shows each migrated block's raw source (
apps/docsite/scripts/generate-data.mjs:1602-1612), so for all 51 blocks the Code tab, its copy button and Open in Playground hand out imports from the private@astryxdesign/template-iconspackage and the ShadCN registry drops their 51 install routes; run the displayed and ShadCN block source throughfillTemplatePlaceholders, asastryx templatedoes, before these blocks move.
This batch removes the blocks' icons declarations, which AST-084 FR9 requires on main, and relies on FR21–FR23, which are proposed in #12741, #12747 and #12748 and not yet approved. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. The astryx template copies check out: every icon keeps its Heroicon and meaning, and the script reproduces this diff exactly.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim (changeset): fifty-one block templates in the AppShell to MultiSelector range import their icons by meaning. Verified: 51 sources import placeholders, none in that range still imports Heroicons, and the two AlertDialog blocks import no icons.
- Claim (changeset and description): copies draw the same icons as before, with and without an icon set. Verified for
astryx template, showcase and build copies: each placeholder draws the base Heroicon in the same look and names the meaning the base descriptor declared. False for docs-site copies (Code tab, Open in Playground, ShadCN install); see the finding above. - Claim: same script and rules as the earlier batches. Verified: running the script from the base files reproduces all 102 template files byte for byte.
- Claim: the script formats a changed file only when it was formatted before. Verified:
migrate-template-icons.mjs:302-307, and the same 15 descriptors are unformatted at base and head. - Claim: the diff is only icon imports, icon names and removed
iconsdeclarations. Verified: outside the imports, only identifiers change, plus the line wrapping that follows from them. - Claim: the named node test projects pass except two locale examples. Verified: 140 files and 1,634 tests pass here, with no locale failures in this environment.
- Claim: repeated runs give identical files, and a later run changes nothing. Verified: a second run moves 0 templates, and
--checkexits 0. - File
.changeset/template-icons-migrate-3.md: its copy claim is false for docs-site copies (finding above). - File
packages/cli/scripts/migrate-template-icons.mjs: clear. - Block sources and descriptors, by folder (sources + descriptors): AppShell 5+5, BaseTypeahead 2+2, BottomSheet 1+1, BreadcrumbItem 1+1, Breadcrumbs 2+2, Button 2+2, ButtonGroup 1+1, Center 2+2, ChatComposer 3+3, ChatComposerDrawer 2+2, ChatMessageMetadata 2+2, ChatSendButton 2+2, ChatSystemMessage 2+2, ContextMenu 1+1, DropdownMenu 2+2, EmptyState 4+4, Hooks 4+4, HoverCard 2+2, Icon 1+1, IconButton 1+1, Item 2+2, MobileNav 3+3, MoreMenu 3+3, MultiSelector 1+1. The icon mapping is clear in every file; every source is affected by the docs-site finding; ContextMenuBottomSheet and MoreMenuBottomSheet keep their existing rubric deductions (non-blocking).
5b1e810 to
34284fd
Compare
6c9eda5 to
408267f
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the icon-set record's template placeholder requirements, and one fix is needed:
- The docs site still shows each migrated block's raw source (
apps/docsite/scripts/generate-data.mjs:1602-1612), so for all 51 blocks the Code tab, its copy button and Open in Playground hand out imports from the private@astryxdesign/template-iconspackage and the ShadCN registry drops their 51 install routes; run the displayed and ShadCN block source throughfillTemplatePlaceholders, asastryx templatedoes, before these blocks move.
This batch removes the blocks' icons declarations, which AST-084 FR9 requires on main, and relies on FR21–FR23, which are proposed in #12741, #12747 and #12748 and not yet approved. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. The astryx template copies check out: every icon keeps its Heroicon and meaning, and the script reproduces this diff exactly.
Claims and files checked
Review mode: carry-forward; reason: none
- Claim (changeset): fifty-one block templates in the AppShell to MultiSelector range import their icons by meaning. Verified: 51 sources import placeholders, none in that range still imports Heroicons, and the two AlertDialog blocks import no icons.
- Claim (changeset and description): copies draw the same icons as before, with and without an icon set. Verified for
astryx template, showcase and build copies: each placeholder draws the base Heroicon in the same look and names the meaning the base descriptor declared. False for docs-site copies (Code tab, Open in Playground, ShadCN install); see the finding above. - Claim: same script and rules as the earlier batches. Verified: running the script from the base files reproduces all 102 template files byte for byte.
- Claim: the script formats a changed file only when it was formatted before. Verified:
migrate-template-icons.mjs:302-307, and the same 15 descriptors are unformatted at base and head. - Claim: the diff is only icon imports, icon names and removed
iconsdeclarations. Verified: outside the imports, only identifiers change, plus the line wrapping that follows from them. - Claim: the named node test projects pass except two locale examples. Verified: 140 files and 1,634 tests pass here, with no locale failures in this environment.
- Claim: repeated runs give identical files, and a later run changes nothing. Verified: a second run moves 0 templates, and
--checkexits 0. - File
.changeset/template-icons-migrate-3.md: its copy claim is false for docs-site copies (finding above). - File
packages/cli/scripts/migrate-template-icons.mjs: clear. - Block sources and descriptors, by folder (sources + descriptors): AppShell 5+5, BaseTypeahead 2+2, BottomSheet 1+1, BreadcrumbItem 1+1, Breadcrumbs 2+2, Button 2+2, ButtonGroup 1+1, Center 2+2, ChatComposer 3+3, ChatComposerDrawer 2+2, ChatMessageMetadata 2+2, ChatSendButton 2+2, ChatSystemMessage 2+2, ContextMenu 1+1, DropdownMenu 2+2, EmptyState 4+4, Hooks 4+4, HoverCard 2+2, Icon 1+1, IconButton 1+1, Item 2+2, MobileNav 3+3, MoreMenu 3+3, MultiSelector 1+1. The icon mapping is clear in every file; every source is affected by the docs-site finding; ContextMenuBottomSheet and MoreMenuBottomSheet keep their existing rubric deductions (non-blocking).
34284fd to
a684da8
Compare
408267f to
3ab2034
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the icon-set record's template placeholder requirements, and one fix is needed:
- The docs site still shows each migrated block's raw source (
apps/docsite/scripts/generate-data.mjs:1602-1612), so for all 51 blocks the Code tab, its copy button and Open in Playground hand out imports from the private@astryxdesign/template-iconspackage and the ShadCN registry drops their 51 install routes; run the displayed and ShadCN block source throughfillTemplatePlaceholders, asastryx templatedoes, before these blocks move.
This batch removes the blocks' icons declarations, which AST-084 FR9 requires on main, and relies on FR21–FR23 (placeholder imports, copies filling them, meaning fallbacks), which are proposed in #12741, #12747 and #12748 and not yet approved. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. The astryx template copies check out: every icon keeps its Heroicon and meaning, and the script reproduces this diff exactly.
Claims and files checked
Review mode: full; reason: rebase
- Claim (changeset and title): fifty-one block templates in the AlertDialog to MultiSelector range import their icons by meaning. Verified: 51 sources import placeholders, none in that range still imports an icon library, and the two AlertDialog blocks import no icons.
- Claim (changeset and description): copies draw the same icons as before, with and without an icon set. Verified for
astryx templateand showcase copies and for Storybook's rendered block: each placeholder draws the base Heroicon in the same look and names the meaning the base descriptor declared. False for docs-site copies (Code tab, Open in Playground, ShadCN install); see the finding above. - Claim: same script and rules as the earlier batches. Verified: running the script from the base files reproduces all 102 template files byte for byte.
- Claim: the script formats a changed file only when it was formatted before. Verified:
migrate-template-icons.mjs:302-307, and the same 15 descriptors are unformatted at base and head. - Claim: the diff is only icon imports, icon names and removed
iconsdeclarations. Verified: outside the imports only identifiers change, plus the line wrapping that follows from them. - Claim: the named node test projects pass except two locale examples. Verified: 140 files and 1,635 tests pass here, with no locale failures in this environment.
- Claim: repeated runs give identical files, and a later run changes nothing. Verified: a second run moves 0 templates, and
--checkexits 0. - File
.changeset/template-icons-migrate-3.md: its copy claim is false for docs-site copies (finding above). - File
packages/cli/scripts/migrate-template-icons.mjs: clear. - Block sources and descriptors, by folder (sources + descriptors): AppShell 5+5, BaseTypeahead 2+2, BottomSheet 1+1, BreadcrumbItem 1+1, Breadcrumbs 2+2, Button 2+2, ButtonGroup 1+1, Center 2+2, ChatComposer 3+3, ChatComposerDrawer 2+2, ChatMessageMetadata 2+2, ChatSendButton 2+2, ChatSystemMessage 2+2, ContextMenu 1+1, DropdownMenu 2+2, EmptyState 4+4, Hooks 4+4, HoverCard 2+2, Icon 1+1, IconButton 1+1, Item 2+2, MobileNav 3+3, MoreMenu 3+3, MultiSelector 1+1. The icon mapping is clear in every file; every source is affected by the docs-site finding; ContextMenuBottomSheet and MoreMenuBottomSheet keep their existing template-rubric deductions (non-blocking).
a684da8 to
2a30b3b
Compare
3ab2034 to
63b9626
Compare
2a30b3b to
57f519c
Compare
63b9626 to
52b291e
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the icon-set record's template placeholder requirements, and one fix is needed:
- The docs site still shows each migrated block's raw source (
apps/docsite/scripts/generate-data.mjs:1602-1612), so for all 51 blocks the Code tab, its copy button and Open in Playground hand out imports from the private@astryxdesign/template-iconspackage and the ShadCN registry drops their 51 install routes; run the displayed and ShadCN block source throughfillTemplatePlaceholders, asastryx templatedoes, before these blocks move.
This batch removes the blocks' icons declarations, which AST-084 FR9 and FR10 require on main, and relies on FR21–FR23 (placeholder imports, copies filling them, meaning fallbacks), which are proposed in #12741, #12747 and #12748 and not yet approved. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. The astryx template copies check out: every icon keeps its Heroicon and look, the rendered blocks checked are pixel-identical, and the script reproduces this diff exactly.
Claims and files checked
Review mode: full; reason: rebase
- Claim (changeset and title): fifty-one block templates in the AlertDialog to MultiSelector range import their icons by meaning. Verified: 51 sources import placeholders, no source in that range still imports an icon library, and the two AlertDialog blocks import no icons.
- Claim (changeset and description): copies draw the same icons as before, with and without an icon set. Verified for
astryx templateand showcase copies and for blocks rendered in Storybook: each of the 138 placeholder imports draws the base Heroicon in the same look and names the meaning the base descriptor declared. False for docs-site copies (Code tab, Open in Playground, ShadCN install); see the finding above. - Claim: same script and rules as the earlier batches. Verified: running the script from the base files reproduces all 102 template files byte for byte.
- Claim: the script formats a changed file only when it was formatted before. Verified:
migrate-template-icons.mjs:294-307, and the same 15 descriptors are unformatted at base and head. - Claim: the diff is only icon imports, icon names and removed
iconsdeclarations. Verified: outside the imports only identifiers change, plus the line wrapping that follows from them. - Claim: the named node test projects pass except two locale examples. Verified: 140 files and 1,635 tests pass here, with no locale failures in this environment.
- Claim: repeated runs give identical files, and a later run changes nothing. Verified: a second run moves 0 templates, and
--checkexits 0. - File
.changeset/template-icons-migrate-3.md: its copy claim is false for docs-site copies (finding above). - File
packages/cli/scripts/migrate-template-icons.mjs: clear. - Block sources and descriptors, by folder (sources + descriptors): AppShell 5+5, BaseTypeahead 2+2, BottomSheet 1+1, BreadcrumbItem 1+1, Breadcrumbs 2+2, Button 2+2, ButtonGroup 1+1, Center 2+2, ChatComposer 3+3, ChatComposerDrawer 2+2, ChatMessageMetadata 2+2, ChatSendButton 2+2, ChatSystemMessage 2+2, ContextMenu 1+1, DropdownMenu 2+2, EmptyState 4+4, Hooks 4+4, HoverCard 2+2, Icon 1+1, IconButton 1+1, Item 2+2, MobileNav 3+3, MoreMenu 3+3, MultiSelector 1+1. The icon mapping is clear in every file; every source is affected by the docs-site finding; ContextMenuBottomSheet and MoreMenuBottomSheet keep their existing template-rubric deductions (non-blocking).
57f519c to
fb8b79f
Compare
52b291e to
9d6f83e
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the icon-set record's template placeholder requirements, and one fix is needed:
- The docs site still shows each migrated block's raw source (
apps/docsite/scripts/generate-data.mjs:1602-1612), so for all 51 blocks the Code tab, its copy button and Open in Playground hand out imports from the private@astryxdesign/template-iconspackage and the ShadCN registry drops their 51 install routes; run the displayed and ShadCN block source throughfillTemplatePlaceholders, asastryx templatedoes, before these blocks move.
This batch removes the blocks' icons declarations, which AST-084 FR9 and FR10 require on main, and relies on FR21–FR23 (placeholder imports, copies filling them, meaning fallbacks), which are proposed in #12741, #12747 and #12748 and not yet approved. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. The astryx template copies check out: all 138 icons keep their Heroicon and look, the rendered blocks checked are pixel-identical, and the script reproduces this diff exactly.
Claims and files checked
Review mode: full; reason: rebase
- Claim (title and changeset): fifty-one block templates in the AlertDialog to MultiSelector range import their icons by meaning. Verified: 51 sources import placeholders, no source in that range still imports an icon library, and the AlertDialog blocks import no icons.
- Claim (changeset and description): copies draw the same icons as before, with and without an icon set. Verified for
astryx templateand showcase copies and for blocks rendered in Storybook: every one of the 138 imports draws the base Heroicon in the same look and names the meaning the base descriptor declared. False for docs-site copies (Code tab, Open in Playground, ShadCN install); see the finding above. - Claim: same script and rules as the earlier batches. Verified: running the script from the base files reproduces all 102 template files byte for byte.
- Claim: the script formats a changed file only when it was formatted before. Verified:
migrate-template-icons.mjs:298-311, and the same 15 descriptors are unformatted at base and head. - Claim: the diff is only icon imports, icon names and removed
iconsdeclarations. Verified: outside the imports only identifiers change, plus the line wrapping that follows from them. - Claim: the named node test projects pass except two locale examples. Verified: 140 files and 1,639 tests pass here, with no locale failures in this environment.
- Claim: repeated runs give identical files, and a later run changes nothing. Verified: a second run moves 0 templates, and
--checkexits 0. - File
.changeset/template-icons-migrate-3.md: its copy claim is false for docs-site copies (finding above). - File
packages/cli/scripts/migrate-template-icons.mjs: clear. - Block sources and descriptors, by folder (sources + descriptors): AppShell 5+5, BaseTypeahead 2+2, BottomSheet 1+1, BreadcrumbItem 1+1, Breadcrumbs 2+2, Button 2+2, ButtonGroup 1+1, Center 2+2, ChatComposer 3+3, ChatComposerDrawer 2+2, ChatMessageMetadata 2+2, ChatSendButton 2+2, ChatSystemMessage 2+2, ContextMenu 1+1, DropdownMenu 2+2, EmptyState 4+4, Hooks 4+4, HoverCard 2+2, Icon 1+1, IconButton 1+1, Item 2+2, MobileNav 3+3, MoreMenu 3+3, MultiSelector 1+1. The icon mapping is clear in every file; every source is affected by the docs-site finding; ContextMenuBottomSheet keeps its existing template-rubric deductions (non-blocking), and MoreMenuBottomSheet grades below
mainonly because this branch predatesmain's rewrite of its wrapper, which a rebase keeps.
fb8b79f to
8f303d7
Compare
9d6f83e to
69bc598
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the icon-set record's template placeholder requirements, and one fix is needed:
- The docs site still shows each migrated block's raw source (
apps/docsite/scripts/generate-data.mjs:1602-1612), so for all 51 blocks the Code tab, its copy button and Open in Playground hand out imports from the private@astryxdesign/template-iconspackage and the ShadCN registry drops their 51 install routes; run the displayed and ShadCN block source throughfillTemplatePlaceholders, asastryx templatedoes, before these blocks move.
This batch removes the blocks' icons declarations, which AST-084 FR9 and FR10 require on main, and relies on FR21–FR23 (placeholder imports, copies filling them, meaning fallbacks), which are proposed in #12741, #12747 and #12748 and not yet approved. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. The astryx template copies check out: all 138 icons keep their Heroicon and look, the rendered blocks checked are pixel-identical, and the script reproduces this diff exactly.
Claims and files checked
Review mode: carry-forward; reason: none
- Claim (title and changeset): fifty-one block templates in the AlertDialog to MultiSelector range import their icons by meaning. Verified: 51 sources import placeholders, no source in that range still imports an icon library, and the AlertDialog blocks import no icons.
- Claim (changeset and description): copies draw the same icons as before, with and without an icon set. Verified for
astryx templateand showcase copies and for blocks rendered in Storybook: every one of the 138 imports draws the base Heroicon in the same look and names the meaning the base descriptor declared. False for docs-site copies (Code tab, Open in Playground, ShadCN install); see the finding above. - Claim: same script and rules as the earlier batches. Verified: running the script from the base files reproduces all 102 template files byte for byte.
- Claim: the script formats a changed file only when it was formatted before. Verified:
migrate-template-icons.mjs:298-311, and the same 15 descriptors are unformatted at base and head. - Claim: the diff is only icon imports, icon names and removed
iconsdeclarations. Verified: outside the imports only identifiers change, plus the line wrapping that follows from them. - Claim: the named node test projects pass except two locale examples. Verified: 140 files and 1,639 tests pass here, with no locale failures in this environment.
- Claim: repeated runs give identical files, and a later run changes nothing. Verified: a second run moves 0 templates, and
--checkexits 0. - File
.changeset/template-icons-migrate-3.md: its copy claim is false for docs-site copies (finding above). - File
packages/cli/scripts/migrate-template-icons.mjs: clear. - Block sources and descriptors, by folder (sources + descriptors): AppShell 5+5, BaseTypeahead 2+2, BottomSheet 1+1, BreadcrumbItem 1+1, Breadcrumbs 2+2, Button 2+2, ButtonGroup 1+1, Center 2+2, ChatComposer 3+3, ChatComposerDrawer 2+2, ChatMessageMetadata 2+2, ChatSendButton 2+2, ChatSystemMessage 2+2, ContextMenu 1+1, DropdownMenu 2+2, EmptyState 4+4, Hooks 4+4, HoverCard 2+2, Icon 1+1, IconButton 1+1, Item 2+2, MobileNav 3+3, MoreMenu 3+3, MultiSelector 1+1. The icon mapping is clear in every file; every source is affected by the docs-site finding; ContextMenuBottomSheet keeps its existing template-rubric deductions (non-blocking), and MoreMenuBottomSheet grades below
mainonly because this branch predatesmain's rewrite of its wrapper, which a rebase keeps.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
An engineering owner approved the icon-set record's template placeholder requirements (FR21–FR23) for this head, which settles the earlier spec question, and nothing in this batch needs fixing. All 138 icons in the 51 copies keep their Heroicon and look, the docs site shows the filled source, and the ChatSendButton custom send icon now mirrors once in right-to-left pages.
- Non-blocking:
ContextMenuBottomSheetkeeps its existing template-rubric deductions (three raw tags and six inline style properties, lines 45–56); this batch does not change them.
Claims and files checked
Review mode: full; reason: rebase
- Claim (title and changeset): the 51 block templates from AlertDialog to MultiSelector import their icons by meaning. Verified: 51 sources import placeholders, no block in that range still imports an icon library, and the AlertDialog blocks import no icons.
- Claim (changeset and description): copies draw the same icons as before, with and without an icon set. Verified: all 51
astryx templatecopies print the same 138 Heroicons imports as the base and keep no placeholder, and each placeholder names the meaning the base descriptor declared, so an icon set maps it the same way. - Claim (changeset and description): the ChatSendButton custom-icon block's send arrow mirrors in right-to-left pages, as other send icons do. Verified: the right-to-left frame shows it mirrored once (
ChatSendButtonCustomIcon.tsx:27-29), and the inbox page template onmainalready mirrors the same icon. - Claim: the chain lands as one, and this pull request's own change is its top commit. Verified: it is one commit on its base.
- Claim: same script and rules as the earlier batches. Verified: running the script on the base reproduces 101 of the 102 template files byte for byte.
- Claim: the script formats a changed file only when it was formatted before. Verified:
migrate-template-icons.mjs:296-301, and the same 15 descriptors are unformatted at base and head. - Claim: the diff is icon imports, icon names and removed
iconsdeclarations plus the named mirror, with the runner registry entry moved to the first batch. Verified: the only template line outside the move is the mirror, and the registry entry comes from the first page batch and is not in this diff. - Claim: the named node test projects pass except two locale examples that need full ICU data. Verified: 149 files and 1,845 tests pass here on a Node with full ICU data, the locale examples included, as the claim predicts.
- Claim: repeated clean runs give identical files, and a later run changes nothing. Verified: a clean run matches the head, a second run moves 0 templates, and
--checkexits 0. - File
.changeset/template-icons-migrate-3.md: clear. - File
packages/cli/scripts/migrate-template-icons.mjs: clear. - Block sources and descriptors, by folder (sources + descriptors): AppShell 5+5, BaseTypeahead 2+2, BottomSheet 1+1, BreadcrumbItem 1+1, Breadcrumbs 2+2, Button 2+2, ButtonGroup 1+1, Center 2+2, ChatComposer 3+3, ChatComposerDrawer 2+2, ChatMessageMetadata 2+2, ChatSendButton 2+2, ChatSystemMessage 2+2, ContextMenu 1+1, DropdownMenu 2+2, EmptyState 4+4, Hooks 4+4, HoverCard 2+2, Icon 1+1, IconButton 1+1, Item 2+2, MobileNav 3+3, MoreMenu 3+3, MultiSelector 1+1. The icon mapping is clear in every file. ContextMenuBottomSheet keeps its existing template-rubric deductions (non-blocking).
629f8bf to
1d56533
Compare
36d5e54 to
049e36b
Compare
|
/approve-spec 049e36b |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
An engineering owner approved the icon-set record's template placeholder requirements (FR21–FR23) for this head, which settles the earlier spec question, and nothing in this batch needs fixing. All 138 icons in the 51 copies keep their Heroicon and look, the docs site shows the filled source, and the ChatSendButton custom send icon now mirrors once in right-to-left pages.
- Non-blocking:
ContextMenuBottomSheetkeeps its existing template-rubric deductions (three raw tags and six inline style properties, lines 45–56); this batch does not change them.
Claims and files checked
Review mode: carry-forward; reason: none
- Claim (title and changeset): the 51 block templates from AlertDialog to MultiSelector import their icons by meaning. Verified: 51 sources import placeholders, no block in that range still imports an icon library, and the AlertDialog blocks import no icons.
- Claim (changeset and description): copies draw the same icons as before, with and without an icon set. Verified: all 51
astryx templatecopies print the same 138 Heroicons imports as the base and keep no placeholder, and each placeholder names the meaning the base descriptor declared, so an icon set maps it the same way. - Claim (changeset and description): the ChatSendButton custom-icon block's send arrow mirrors in right-to-left pages, as other send icons do. Verified: the right-to-left frame shows it mirrored once (
ChatSendButtonCustomIcon.tsx:27-29), and the inbox page template onmainalready mirrors the same icon. - Claim: the chain lands as one, and this pull request's own change is its top commit. Verified: it is one commit on its base.
- Claim: same script and rules as the earlier batches. Verified: running the script on the base reproduces 101 of the 102 template files byte for byte.
- Claim: the script formats a changed file only when it was formatted before. Verified:
migrate-template-icons.mjs:296-301, and the same 15 descriptors are unformatted at base and head. - Claim: the diff is icon imports, icon names and removed
iconsdeclarations plus the named mirror, with the runner registry entry moved to the first batch. Verified: the only template line outside the move is the mirror, and the registry entry comes from the first page batch and is not in this diff. - Claim: the named node test projects pass except two locale examples that need full ICU data. Verified: 149 files and 1,845 tests pass here on a Node with full ICU data, the locale examples included, as the claim predicts.
- Claim: repeated clean runs give identical files, and a later run changes nothing. Verified: a clean run matches the head, a second run moves 0 templates, and
--checkexits 0. - File
.changeset/template-icons-migrate-3.md: clear. - File
packages/cli/scripts/migrate-template-icons.mjs: clear. - Block sources and descriptors, by folder (sources + descriptors): AppShell 5+5, BaseTypeahead 2+2, BottomSheet 1+1, BreadcrumbItem 1+1, Breadcrumbs 2+2, Button 2+2, ButtonGroup 1+1, Center 2+2, ChatComposer 3+3, ChatComposerDrawer 2+2, ChatMessageMetadata 2+2, ChatSendButton 2+2, ChatSystemMessage 2+2, ContextMenu 1+1, DropdownMenu 2+2, EmptyState 4+4, Hooks 4+4, HoverCard 2+2, Icon 1+1, IconButton 1+1, Item 2+2, MobileNav 3+3, MoreMenu 3+3, MultiSelector 1+1. The icon mapping is clear in every file. ContextMenuBottomSheet keeps its existing template-rubric deductions (non-blocking).
1d56533 to
5627d01
Compare
049e36b to
6776994
Compare
|
/approve-spec 6776994 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
An engineering owner approved the icon-set record's template placeholder requirements (FR21–FR23) for this head, which settles the earlier spec question, and nothing in this batch needs fixing. All 138 icons in the 51 copies keep their Heroicon and look, the docs site shows the filled source, and the ChatSendButton custom send icon now mirrors once in right-to-left pages.
- Non-blocking:
ContextMenuBottomSheetkeeps its existing template-rubric deductions (three raw tags and six inline style properties, lines 45–55); this batch does not change them.
Claims and files checked
Review mode: full; reason: rebase
- Claim (title and changeset): the 51 block templates from AlertDialog to MultiSelector import their icons by meaning. Verified: 51 sources import placeholders, no block in that range still imports an icon library or declares
icons, and the AlertDialog blocks import no icons. - Claim (changeset and description): copies draw the same icons as before, with and without an icon set. Verified: all 51
astryx templatecopies print the same 138 Heroicons imports as the base and keep no placeholder import, and each placeholder names the meaning the base descriptor declared, in the same look, so an icon set maps it the same way. - Claim (changeset and description): the ChatSendButton custom-icon block's send arrow mirrors in right-to-left pages, as other send icons do. Verified: the right-to-left frame shows the send icon mirrored once and nothing else changed (
ChatSendButtonCustomIcon.tsx:27-29), and the inbox page template already mirrors the same icon. - Claim: the chain lands as one, and this pull request's own change is its top commit. Verified: it is one commit on its base.
- Claim: same script and rules as the earlier batches. Verified: running the head's script on the base reproduces 101 of the 102 template files byte for byte; the 102nd differs only by the named mirror.
- Claim: the script formats a changed file only when it was formatted before, and unformatted descriptors keep every line the move does not change. Verified:
migrate-template-icons.mjs:296-301, and the same 15 descriptors are unformatted at base and head. - Claim: the diff is icon imports, icon names and removed
iconsdeclarations plus the named mirror, with the runner registry entry for the script's Prettier load in the first batch. Verified: the only template line outside the move is the mirror, and the registry entry comes from the first page batch and is not in this diff. - Claim: the named node test projects pass except two locale examples that need full ICU data. Verified: 147 files and 1,709 tests pass here on a Node with full ICU data, the locale examples included, as the claim predicts.
- Claim: repeated clean runs give identical files, and a later run changes nothing. Verified: a clean run matches the head, a second run moves 0 templates, and
--checkexits 0. - File
.changeset/template-icons-migrate-3.md: clear. - File
packages/cli/scripts/migrate-template-icons.mjs: clear. - Block sources and descriptors, by folder (sources + descriptors): AppShell 5+5, BaseTypeahead 2+2, BottomSheet 1+1, BreadcrumbItem 1+1, Breadcrumbs 2+2, Button 2+2, ButtonGroup 1+1, Center 2+2, ChatComposer 3+3, ChatComposerDrawer 2+2, ChatMessageMetadata 2+2, ChatSendButton 2+2, ChatSystemMessage 2+2, ContextMenu 1+1, DropdownMenu 2+2, EmptyState 4+4, Hooks 4+4, HoverCard 2+2, Icon 1+1, IconButton 1+1, Item 2+2, MobileNav 3+3, MoreMenu 3+3, MultiSelector 1+1. The icon mapping is clear in every file. ContextMenuBottomSheet keeps its existing template-rubric deductions (non-blocking).
…by meaning [skip ci]
6776994 to
9795a88
Compare
5627d01 to
b4222af
Compare
|
/approve-spec 9795a88 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
An engineering owner approved the icon-set record's template placeholder requirements (FR21–FR23) for this head, which settles the spec question, and nothing in this batch needs fixing. All 138 icons in the 51 copies keep their Heroicon and look, and the ChatSendButton custom send icon now mirrors once in right-to-left pages.
- Non-blocking:
ContextMenuBottomSheetkeeps its existing template-rubric deductions (three raw tags and six inline style properties, lines 45–55); this batch does not change them.
Claims and files checked
Review mode: full; reason: rebase
- Claim (title and changeset): the 51 block templates from AlertDialog to MultiSelector import their icons by meaning. Verified: 51 sources import placeholders, no block in that range still imports an icon library or declares
icons, and the AlertDialog blocks import no icons. - Claim (changeset and description): copies draw the same icons as before, with and without an icon set. Verified: all 51
astryx templatecopies print the same 138 Heroicons imports as the base and keep no placeholder import, and each placeholder names the meaning the base descriptor declared, in the same look, so an icon set maps it the same way. - Claim (changeset and description): the ChatSendButton custom-icon block's send arrow mirrors in right-to-left pages, as other send icons do. Verified: the right-to-left frame shows the send icon mirrored once and nothing else changed (
ChatSendButtonCustomIcon.tsx:27-29), and the inbox page template mirrors the same icon (table-inbox/page.tsx:2024-2028). - Claim: the chain lands as one, and this pull request's own change is its top commit. Verified: it is one commit on its base.
- Claim: same script and rules as the earlier batches. Verified: running the head's script on the base reproduces 101 of the 102 template files byte for byte; the 102nd differs only by the named mirror.
- Claim: the script formats a changed file only when it was formatted before, and unformatted descriptors keep every line the move does not change. Verified:
migrate-template-icons.mjs:296-301, and the same 15 descriptors are unformatted at base and head. - Claim: the diff is icon imports, icon names and removed
iconsdeclarations plus the named mirror, with the runner registry entry for the script's Prettier load in the first batch. Verified: the only template line outside the move is the mirror, and the registry entry comes from the first page batch and is not in this diff. - Claim: the named node test projects pass except two locale examples that need full ICU data. Verified: 148 files and 1,713 tests pass on a Node with full ICU data, the locale examples included, as the claim predicts.
- Claim: repeated clean runs give identical files, and a later run changes nothing. Verified: a clean run matches the head, a second run moves 0 templates, and
--checkexits 0. - File
.changeset/template-icons-migrate-3.md: clear. - File
packages/cli/scripts/migrate-template-icons.mjs: clear. - Block sources and descriptors, by folder (sources + descriptors): AppShell 5+5, BaseTypeahead 2+2, BottomSheet 1+1, BreadcrumbItem 1+1, Breadcrumbs 2+2, Button 2+2, ButtonGroup 1+1, Center 2+2, ChatComposer 3+3, ChatComposerDrawer 2+2, ChatMessageMetadata 2+2, ChatSendButton 2+2, ChatSystemMessage 2+2, ContextMenu 1+1, DropdownMenu 2+2, EmptyState 4+4, Hooks 4+4, HoverCard 2+2, Icon 1+1, IconButton 1+1, Item 2+2, MobileNav 3+3, MoreMenu 3+3, MultiSelector 1+1. The icon mapping is clear in every file. ContextMenuBottomSheet keeps its existing template-rubric deductions (non-blocking).
- #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 third batch of the template icon move (experimental): 51 block templates,
AlertDialogthroughMultiSelector, import their icons by meaning from@astryxdesign/template-icons. Copies draw the same icons as before, with and without an icon set.iconsdeclarations, plus two named changes: the ChatSendButton custom-icon block's send arrow mirrors in right-to-left pages, and the doc-loads registry lists the script's Prettier load (moved to the first batch).Testing
vitest run --project nodeon packages/cli/api/template, api/component, 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).