Repository navigation
feat(cli): twenty-one refined icon meanings that fall back to the meaning templates used before - #12748
feat(cli): twenty-one refined icon meanings that fall back to the meaning templates used before#12748josephfarina wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
158a7e4 to
e8388a7
Compare
d021ba4 to
20567e8
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the proposed AST-084 FR23 (a template icon meaning may fall back to a broader one), including which icon a copy draws when the main set maps only the fallback and a backup maps the refined meaning. An engineering owner records it by commenting /approve-spec <full head SHA>, and the author may do this as an engineering owner. These fixes are needed whatever the decision:
- A copied template tries the fallback in the main set before it tries the refined meaning in a backup (
template-icons.mjs:1018,:1036), so a backup that mapsverifiedloses to the main set'ssuccessicon, against FR9's first-set-in-the-list rule and FR23's own text; please try every listed set for the meaning before any fallback and add a main-plus-backup test. - The title and description say twenty meanings, 20 definitions and 21 declarations, but the head adds 21 meanings and definitions (
reviewincluded), moves 22 declarations and changes the icon thatinfodraws, and the changeset's "leave it out" holds only when the set maps the fallback.
Non-blocking: FR23's "draws, in every set, the icon it drew before" does not hold for a set that maps the refined meaning, and FR13's definition of the unmapped list needs the same exception as FR15.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- Changeset, 21 new meanings, each with a fallback: verified (the table and 21 definition files).
- Changeset, a set that does not map a new meaning draws the same icon as before: verified for one set (the FR23 mapping test).
- Changeset, the set's unmapped template meanings leave the new meaning out: false when the set maps neither the meaning nor its fallback (
template-icon-meanings.mjs:93-100). - Changeset,
infodraws the information circle again: verified against the base (template-icons.json:343-345). - Changeset, the form wizard's review banner keeps its badge through
review, which sets draw asinfo: verified (its descriptor andform-wizard-vertical-review-icon.test.mjs). - Title and body, twenty refined meanings and 20 definitions: false (21,
reviewincluded). - Body, 14 templates drew a different icon than the table: verified (each moved icon differs from the base table's icon for its old meaning; the form wizard's through the
infochange). - Body, each new meaning falls back to the meaning its template declared before: verified (all 22 declarations).
- Body, with every icon set a copy draws the same icon as before: verified for today's sets; once a backup maps a refined meaning, the main set's fallback wins (finding above).
- Body, unmapped meanings leave out a meaning whose fallback the set maps, so no set's checks get new warnings: verified (template meanings never count or fail, FR15).
- Body, 21 declarations in 14 descriptors: false (22).
- Body, no template source changes, so copies without an icon set are unchanged: verified (no template source changed, and none imports the placeholder package).
- Body, FR23 describes the fallback: verified, but its list rule differs from the code (finding above).
- Body, the listed suites and new tests pass, and
pnpm check:knowledgeand Prettier pass: verified on the head.
Files:
.changeset/template-icon-meanings-fallback.md: finding (wording).docs/specs/AST-084-icon-sets/spec.md: FR23 held for an owner; non-blocking wording notes.packages/cli/foundation/discovery/template-icons.mjs: finding (list order).packages/cli/foundation/discovery/template-placeholders.mjs: clear.packages/cli/foundation/discovery/template-icon-meanings.mjs: clear (behaviour held with FR23).packages/cli/foundation/discovery/template-icons.test.mjs: clear (covers one set only).packages/cli/foundation/discovery/template-placeholders.test.mjs,template-icon-meanings.test.mjs,packages/cli/api/template/form-wizard-vertical-review-icon.test.mjs: clear.packages/cli/assets/icons/template-icons.json: clear.packages/cli/assets/icons/definitions/alert, block, channel, checklist, columnSettings, copyText, create, currency, groupRows, halftone, help, house, listView, media, moveToFolder, paste, review, schedule, signal, team, verified (.doc.mjs): clear.- Template descriptors ButtonGroupShowcase, useIconHookUsage, ToolbarTableFilter, canvas-editor, editor, file-explorer, form-wizard-vertical, kanban-board, messaging-shell, settings-dialog, shell-top-nav, table-filter, table-inbox, table: clear (each moved icon's fallback is its old meaning); canvas-editor has a non-blocking note on existing template-rubric deductions.
packages/template-icons/index.js and index.d.ts for the root,16/solid,20/solid,24/solidandlucide: clear (generated; equal to the table).
e8388a7 to
ff74d57
Compare
20567e8 to
fdfc229
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the proposed AST-084 FR23 (a template icon meaning may fall back to a broader one), including which icon a copy draws when the main set maps only the fallback and a backup maps the refined meaning. An engineering owner records it by commenting /approve-spec <full head SHA>, and the author may do this as an engineering owner. The rebase leaves this pull request's own changes as they were, so these fixes are still needed whatever the decision:
- A copied template tries the fallback in the main set before it tries the refined meaning in a backup (
template-icons.mjs:1018,:1036), so a backup that mapsverifiedloses to the main set'ssuccessicon, against FR9's first-set-in-the-list rule and FR23's own text; please try every listed set for the meaning before any fallback and add a main-plus-backup test. - The title and description say twenty meanings, 20 definitions and 21 declarations, but the head adds 21 meanings and definitions (
reviewincluded), moves 22 declarations and changes the icon thatinfodraws, and the changeset's "leave it out" holds only when the set maps the fallback.
Non-blocking: FR23's "draws, in every set, the icon it drew before" does not hold for a set that maps the refined meaning, and FR13's definition of the unmapped list needs the same exception as FR15.
Claims and files checked
Review mode: carry-forward; reason: none
Claims:
- Changeset, 21 new meanings, each with a fallback: verified (the table and 21 definition files).
- Changeset, a set that does not map a new meaning draws the same icon as before: verified for one set (the FR23 mapping test).
- Changeset, the set's unmapped template meanings leave the new meaning out: false when the set maps neither the meaning nor its fallback (
template-icon-meanings.mjs:93-100). - Changeset,
infodraws the information circle again: verified against the base (template-icons.json:343-345). - Changeset, the form wizard's review banner keeps its badge through
review, which sets draw asinfo: verified (its descriptor andform-wizard-vertical-review-icon.test.mjs). - Title and body, twenty refined meanings and 20 definitions: false (21,
reviewincluded). - Body, 14 templates drew a different icon than the table: verified (each moved icon differs from the base table's icon for its old meaning; the form wizard's through the
infochange). - Body, each new meaning falls back to the meaning its template declared before: verified (all 22 declarations).
- Body, with every icon set a copy draws the same icon as before: verified for today's sets; once a backup maps a refined meaning, the main set's fallback wins (finding above).
- Body, unmapped meanings leave out a meaning whose fallback the set maps, so no set's checks get new warnings: verified (template meanings never count or fail, FR15).
- Body, 21 declarations in 14 descriptors: false (22).
- Body, no template source changes, so copies without an icon set are unchanged: verified (no template source changed, and none imports the placeholder package).
- Body, FR23 describes the fallback: verified, but its list rule differs from the code (finding above).
- Body, the listed suites and new tests pass, and
pnpm check:knowledgeand Prettier pass: verified on the same changes before the rebase.
Files:
.changeset/template-icon-meanings-fallback.md: finding (wording).docs/specs/AST-084-icon-sets/spec.md: FR23 held for an owner; non-blocking wording notes.packages/cli/foundation/discovery/template-icons.mjs: finding (list order).packages/cli/foundation/discovery/template-placeholders.mjs: clear.packages/cli/foundation/discovery/template-icon-meanings.mjs: clear (behaviour held with FR23).packages/cli/foundation/discovery/template-icons.test.mjs: clear (covers one set only).packages/cli/foundation/discovery/template-placeholders.test.mjs,template-icon-meanings.test.mjs,packages/cli/api/template/form-wizard-vertical-review-icon.test.mjs: clear.packages/cli/assets/icons/template-icons.json: clear.packages/cli/assets/icons/definitions/alert, block, channel, checklist, columnSettings, copyText, create, currency, groupRows, halftone, help, house, listView, media, moveToFolder, paste, review, schedule, signal, team, verified (.doc.mjs): clear.- Template descriptors ButtonGroupShowcase, useIconHookUsage, ToolbarTableFilter, canvas-editor, editor, file-explorer, form-wizard-vertical, kanban-board, messaging-shell, settings-dialog, shell-top-nav, table-filter, table-inbox, table: clear (each moved icon's fallback is its old meaning); canvas-editor has a non-blocking note on existing template-rubric deductions.
packages/template-icons/index.js and index.d.ts for the root,16/solid,20/solid,24/solidandlucide: clear (generated; equal to the table).
ff74d57 to
05d384a
Compare
fdfc229 to
6d0b64c
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the proposed AST-084 FR23, which lets a template icon meaning fall back to a broader one, including which icon a copy draws when the main icon set maps only the fallback and a backup maps the refined meaning. An engineering owner records the decision by commenting /approve-spec with the full head SHA, and the author may do this as an engineering owner.
These fixes are needed whatever the decision:
- A backup set that maps a refined meaning loses to the main set's fallback icon (
template-icons.mjs:1018, set loop at:1036), which contradicts AST-084 FR9's rule that the first set in the list that has the meaning wins, so try the declared meaning in every listed set before any fallback and add a main-plus-backup case to the FR23 test. - The changeset says a set's unmapped template meanings leave a new meaning out, but
unmappedTemplateMeaningsdoes so only when the set maps its fallback, so say "leave it out when the set maps its fallback". - Miss: the changeset says the
infomeaning draws the information circle "again", but no release ever drew it any other way, so drop "again". - The title says twenty refined icon meanings, but the change adds twenty-one.
Non-blocking: FR23's "in every set, the icon it drew before" and FR13's definition of the unmapped list each need the refined-meaning exception.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Title: twenty refined meanings. False: the head adds 21 definitions and 21 table entries.
- Twenty-one experimental refined meanings are added, under the 21 names the body lists. Verified: 21 definition files and table entries with matching names.
- Fourteen templates drew a different icon for a meaning than the table, such as Copy and the verified badge. Verified: 14 descriptors change, and each moved icon differs from the old meaning's table icon.
infodraws the information circle. Verified:template-icons.json:343-345.- The form wizard's review banner keeps its badge-check through
review, which falls back toinfo. Verified: the descriptor, the table entry andform-wizard-vertical-review-icon.test.mjs. - Each new meaning falls back to the meaning its template declared before. Verified for all 22 moved declarations.
- When no set in the list maps a new meaning, the icon maps by its fallback, so every set draws the same icon as before. False for a main set plus a backup: the main set's fallback wins (
template-icons.mjs:1036). - A set's unmapped template meanings leave out a meaning whose fallback it maps, so no check gains warnings. Verified:
template-icon-meanings.mjs:93-101; the list is never counted. - The placeholder package is regenerated from the table. Verified: the package-equals-table test passes.
- 22 declarations in 14 descriptors move to the new meanings. Verified.
- No template source changes, so copies without an icon set are unchanged. Verified: no template
.tsxchanges, and no template imports the placeholder package. - AST-084 FR23 describes the fallback. Verified:
spec.md:820-826. - The named CLI suites pass, and the new tests exist as described. Verified: 156 test files and 2,230 tests pass at the head, including the three new test groups.
- The knowledge check passes. Verified.
- Changeset: twenty-one experimental meanings; a set that does not map one draws the same icon as before. Verified for a single set.
- Changeset: the set's unmapped template meanings leave the new meaning out. False when the set maps neither meaning.
- Changeset:
infodraws the information circle again. False: no release drew it another way. - Changeset: the banner keeps its badge through
review, which icon sets draw asinfo. Verified while no set mapsreview.
Files:
.changeset/template-icon-meanings-fallback.md: two wording findings.docs/specs/AST-084-icon-sets/spec.md: FR23 waits on owner approval; non-blocking wording notes.packages/cli/foundation/discovery/template-icons.mjs: list-order finding.packages/cli/foundation/discovery/template-icons.test.mjs: needs the main-plus-backup case with the order fix.packages/cli/foundation/discovery/template-placeholders.mjs,template-placeholders.test.mjs,template-icon-meanings.mjs,template-icon-meanings.test.mjs: clear.packages/cli/api/template/form-wizard-vertical-review-icon.test.mjs: clear.packages/cli/assets/icons/template-icons.json: clear.packages/cli/assets/icons/definitions/alert,block,channel,checklist,columnSettings,copyText,create,currency,groupRows,halftone,help,house,listView,media,moveToFolder,paste,review,schedule,signal,team,verified(.doc.mjs): clear.- Block descriptors
ButtonGroupShowcase.doc.mjs,useIconHookUsage.doc.mjs,ToolbarTableFilter.doc.mjs: clear. - Page descriptors (
template.doc.mjs) ofcanvas-editor,editor,file-explorer,form-wizard-vertical,kanban-board,messaging-shell,settings-dialog,shell-top-nav,table-filter,table-inbox,table: clear.canvas-editoralready grades below 75 on the template rubric, and this change does not lower it. packages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clear; it matches the CLI output.packages/template-icons/index,16/solid/index,20/solid/index,24/solid/index,lucide/index(.jsand.d.ts): clear; generated from the table.
05d384a to
f6d559e
Compare
6d0b64c to
ece53d2
Compare
f6d559e to
edc576a
Compare
ece53d2 to
5ca2b96
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the proposed AST-084 FR23, which lets a template icon meaning fall back to a broader one, including which icon a copy draws when the main icon set maps only the fallback and a backup maps the refined meaning. An engineering owner records the decision by commenting /approve-spec with the full head SHA, and the author may do this as an engineering owner.
These fixes are needed whatever the decision:
- A backup set that maps a refined meaning loses to the main set's fallback icon (
template-icons.mjs:1018, set loop at:1036), which contradicts AST-084 FR9's rule that the first set in the list that has the meaning wins, so try the declared meaning in every listed set before any fallback and add a main-plus-backup case to the FR23 test. - The changeset says a set's unmapped template meanings leave a new meaning out, but
unmappedTemplateMeaningsdoes so only when the set maps its fallback, so say "leave it out when the set maps its fallback". - Miss: the changeset says the
infomeaning draws the information circle "again", but no release ever drew it any other way, so drop "again". - The title says twenty refined icon meanings, but the change adds twenty-one.
Non-blocking: FR23's "in every set, the icon it drew before" and FR13's definition of the unmapped list each need the refined-meaning exception.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Title: twenty refined meanings. False: the change adds 21 definitions and 21 table entries.
- Twenty-one experimental refined meanings are added under the 21 names the description lists. Verified: 21 definition files and table entries with matching names.
- Fourteen templates drew a different icon for a meaning, such as the Copy button and the verified badge. Verified: 14 descriptors change; 21 of the 22 moved icons differ from the old meaning's table icon, and the form wizard's badge was the table's own
infoicon, which this change moves. infodraws the information circle. Verified:template-icons.json:343-345.- The form wizard's review banner keeps its badge through
review, which falls back toinfo. Verified: the descriptor, the table entry andform-wizard-vertical-review-icon.test.mjs. - Each new meaning falls back to the meaning its template declared before. Verified for all 22 moved declarations.
- When no set in the list maps a new meaning, the icon maps by its fallback, so every set draws the same icon as before. False for a main set plus a backup: the code falls back inside the main set before it tries the backup (
template-icons.mjs:1036). - A set's unmapped template meanings leave out a meaning whose fallback it maps, so no check gains warnings. Verified:
template-icon-meanings.mjs:93-101; the list is never counted. - The placeholder package is regenerated from the table. Verified: the package-equals-table test passes.
- 22 declarations in 14 descriptors move to the new meanings. Verified.
- No template source changes, so copies without an icon set are unchanged. Verified: no template
.tsxchanges, and no template imports the placeholder package. - AST-084 FR23 describes the fallback. Verified:
spec.md:820-826. - The named CLI suites pass, and the new tests exist as described. Verified: 174 test files and 2,436 tests pass at the head, including the three new test groups.
- The knowledge check and Prettier pass on the changed files. Verified for the authored files; the snapshot golden is test-runner output and was not Prettier-formatted before this change either.
- Changeset: twenty-one experimental meanings; a set that does not map one draws the same icon as before. Verified.
- Changeset: the set's unmapped template meanings leave the new meaning out. False when the set maps neither meaning.
- Changeset:
infodraws the information circle again. False: no release drew it another way. - Changeset: the banner keeps its badge through
review, which icon sets draw asinfo. Verified while no set mapsreview.
Files:
.changeset/template-icon-meanings-fallback.md: two wording findings.docs/specs/AST-084-icon-sets/spec.md: FR23 waits on owner approval; non-blocking wording notes.packages/cli/foundation/discovery/template-icons.mjs: list-order finding.packages/cli/foundation/discovery/template-icons.test.mjs: needs the main-plus-backup case with the order fix.packages/cli/foundation/discovery/template-placeholders.mjs,template-placeholders.test.mjs,template-icon-meanings.mjs,template-icon-meanings.test.mjs: clear.packages/cli/api/template/form-wizard-vertical-review-icon.test.mjs: clear.packages/cli/assets/icons/template-icons.json: clear.packages/cli/assets/icons/definitions/alert,block,channel,checklist,columnSettings,copyText,create,currency,groupRows,halftone,help,house,listView,media,moveToFolder,paste,review,schedule,signal,team,verified(.doc.mjs): clear.- Block descriptors
ButtonGroupShowcase.doc.mjs,useIconHookUsage.doc.mjs,ToolbarTableFilter.doc.mjs: clear. - Page descriptors (
template.doc.mjs) ofcanvas-editor,editor,file-explorer,form-wizard-vertical,kanban-board,messaging-shell,settings-dialog,shell-top-nav,table-filter,table-inbox,table: clear.canvas-editoralready grades below 75 on the template rubric, and this change does not lower it. packages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clear; it matches the CLI output.packages/template-icons/index,16/solid/index,20/solid/index,24/solid/index,lucide/index(.jsand.d.ts): clear; generated from the table.
edc576a to
4ff7839
Compare
|
/approve-spec adb5c7f |
There was a problem hiding this comment.
Changes requested: one sentence in the description needs a fix. An engineering owner's /approve-spec for this head settles the AST-084 changes (FR21, FR22, FR23 and their amendments).
- Miss: the description says a copy draws the same icon as before with every icon set that does not declare one of the 21 new names, but a set that maps one of them (for example
verified) without declaring it draws that icon instead, so say "with every icon set that maps none of these 21 names", as the changeset and FR23 do.
Non-blocking: FR23 calls a fallback "another meaning that draws the same icon", though every refined meaning draws a different icon from its fallback; the FR22 and FR23 verification rows fail in cases their requirements allow; the --definitions fallback assertion in icon-template-meanings.test.mjs cannot fail with its fixture set; and the icon-sets guide still describes set order and placeholders without fallbacks. This pull request is reviewed on its own, because the Stack line's entries from #12754 up target other branches rather than main.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Title: twenty-one refined meanings that fall back to the meaning templates used before. Verified: 21 definition files, and each fallback in the table is the meaning
maindeclares for that icon. - Fourteen templates drew their own picture for a common meaning; 22 declarations in 14 descriptors move to the new meanings. Verified in the descriptor diffs.
- The table draws
infoas the information circle, and the form wizard banner keeps its badge throughreview, which falls back toinfo. Verified in the table and the banner test. - Each set in the project's list tries the meaning, then its fallback, before the next set. Verified in the mapping code and its main-and-backup test.
- A copy draws the same icon as before with every set that does not declare one of the 21 names. False: a set that maps one of them draws it (probe).
- The unmapped template meanings leave out a meaning whose fallback the set maps, sets without these names get no new warnings, and a set's own definition with one of these names gets the shadowed warning. Verified: only informational lists grow.
--definitionsmarks a definition drawn by its fallback and reportsfallback, and does not count it as unmapped. Verified in the code; its test assertion cannot fail.- No template source changes, so copies without an icon set are unchanged. Verified: no page or block source changes and no bundled template imports the placeholder package.
- FR23 describes the fallback and its order. Verified.
- The listed tests exist and pass, and the knowledge check and formatting pass. Verified: the CLI suites pass, the knowledge check passes, and the changed source and Markdown files are formatted.
- Stack line: each pull request's own change is its top commit. Verified for this pull request.
- Changeset, form wizard banner: declared
review, drawn asinfoby icon sets, a main set that wraps Heroicons keeps the badge, copies without a set unchanged. Verified. - Changeset, refined meanings: 21 meanings, each with a fallback; a set that does not map or declare one draws the same icon; the unmapped list leaves one out when the set maps its fallback. Verified.
- Changeset, placeholder copies:
astryx template, the showcase source and build's setup notes fill placeholder imports; no bundled template uses them yet. Verified. - Changeset, table and package: the CLI ships the table, the private package is generated from it, no template uses it yet. Verified: the table is under the published
assetsand the generator's check passes.
Files:
docs/specs/AST-084-icon-sets/spec.md: owner-approved at this head; non-blocking FR23 wording and the FR22 and FR23 verification rows.template-icons.mjs,template-placeholders.mjs,template-icon-meanings.mjs,template-adapter.mjs,definitions.mjs,experimental/icon.mjs,icon.type.mjs,validate-integration.type.mjs, the build, component and icon adapters,showcase.mjs: clear.template-icons.test.mjs,template-placeholders.test.mjs,template-icon-meanings.test.mjs,form-wizard-vertical-review-icon.test.mjs, theno-icon-setsnapshot: clear.icon-template-meanings.test.mjs: non-blocking, the fallback assertion cannot fail.template-icons.json, the 21 icon definitions,generate-template-icons.mjs, the generatedpackages/template-iconsmodules, README and manifest, the CLI and docs site manifests,pnpm-lock.yaml: clear.- The descriptors of
canvas-editor,editor,file-explorer,form-wizard-vertical,kanban-board,messaging-shell,settings-dialog,shell-top-nav,table-filter,table-inbox,tableand theButtonGroupShowcase,useIconHookUsageandToolbarTableFilterblocks: clear; canvas-editor keeps its existing template-rubric deductions, not lowered here. - The four changesets: clear; non-blocking
[fix]tag on the form wizard note, where FR0 asks for[experimental].
adb5c7f to
b4da748
Compare
|
/approve-spec b4da748 |
There was a problem hiding this comment.
Changes requested: one sentence in the description still needs a fix. An engineering owner's /approve-spec for this head settles the AST-084 changes (FR21, FR22, FR23 and their amendments).
- The description says a copy draws the same icon as before with every icon set that does not declare one of the 21 new names, but a set that maps one of them (for example
verified) without declaring it draws that icon instead, so say "with every icon set that maps none of these 21 names", as the changeset and FR23 do.
Non-blocking: FR23 calls a fallback "another meaning that draws the same icon", though every refined meaning draws a different icon from its fallback; the FR22 and FR23 verification rows fail in cases their requirements allow; the --definitions fallback assertion in icon-template-meanings.test.mjs cannot fail with its fixture set; and the icon-sets guide still describes set order and placeholders without fallbacks. This pull request is reviewed on its own, because the Stack line's entries from #12754 up target other branches rather than main.
Claims and files checked
Review mode: full; reason: history
Claims:
- Title: twenty-one refined meanings that fall back to the meaning templates used before. Verified: 21 definition files, and each fallback in the table is the meaning
maindeclares for that icon. - Fourteen templates drew their own picture for a common meaning; 22 declarations in 14 descriptors move to the new meanings. Verified in the descriptor diffs.
- The table draws
infoas the information circle, and the form wizard banner keeps its badge throughreview, which falls back toinfo. Verified in the table and the banner test. - Each set in the project's list tries the meaning, then its fallback, before the next set. Verified in the mapping code and its main-and-backup test.
- A copy draws the same icon as before with every set that does not declare one of the 21 names. False: a set that maps one of them draws it (probe).
- The unmapped template meanings leave out a meaning whose fallback the set maps, sets without these names get no new warnings, and a set's own definition with one of these names gets the shadowed warning. Verified: only informational lists grow.
--definitionsmarks a definition drawn by its fallback and reportsfallback, and does not count it as unmapped. Verified in the code; its test assertion cannot fail.- No template source changes, so copies without an icon set are unchanged. Verified: no page or block source changes, and no bundled template imports the placeholder package.
- FR23 describes the fallback and its order. Verified.
- The listed tests exist and pass, and the knowledge check and formatting pass. Verified: the CLI suites pass, the knowledge check passes, and only the test-written snapshot differs from Prettier, as on
main. - Stack line: each pull request's own change is its top commit. Verified for this pull request.
- Writing rubric results: no temporary status in the added record text. Verified.
- Changeset, form wizard banner: declared
review, drawn asinfoby icon sets, a main set that wraps Heroicons keeps the badge, copies without a set unchanged. Verified. - Changeset, refined meanings: 21 meanings, each with a fallback; a set that does not map or declare one draws the same icon; the unmapped list leaves one out when the set maps its fallback. Verified.
- Changeset, placeholder copies:
astryx template, the showcase source and build's setup notes fill placeholder imports under the same name. Verified. - Changeset, table and package: the CLI ships the table, and the private package generated from it lets template sources import icons by meaning with previews drawing the same icons. Verified: the table is under the published
assets, and the generator's check passes.
Files:
docs/specs/AST-084-icon-sets/spec.md: owner-approved at this head; non-blocking FR23 wording and the FR22 and FR23 verification rows.template-icons.mjs,template-placeholders.mjs,template-icon-meanings.mjs,template-adapter.mjs,definitions.mjs,experimental/icon.mjs,icon.type.mjs,validate-integration.type.mjs, the build, component and icon adapters,showcase.mjs: clear.template-icons.test.mjs,template-placeholders.test.mjs,template-icon-meanings.test.mjs,form-wizard-vertical-review-icon.test.mjs, theno-icon-setsnapshot: clear.icon-template-meanings.test.mjs: non-blocking, the fallback assertion cannot fail.template-icons.json, the 21 icon definitions,generate-template-icons.mjs, the generatedpackages/template-iconsmodules, README and manifest, the CLI and docs site manifests,pnpm-lock.yaml: clear.- The descriptors of
canvas-editor,editor,file-explorer,form-wizard-vertical,kanban-board,messaging-shell,settings-dialog,shell-top-nav,table-filter,table-inbox,tableand theButtonGroupShowcase,useIconHookUsageandToolbarTableFilterblocks: clear; canvas-editor keeps its existing template-rubric deductions, not lowered here. - The four changesets: clear; non-blocking
[fix]tag on the form wizard note, where FR0 asks for[experimental].
b4da748 to
4aa8826
Compare
|
/approve-spec 4aa8826 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this draft head yet, and an engineering owner's /approve-spec for this head settles the AST-084 changes (FR21, FR22, FR23 and their amendments).
The description change requested earlier is not needed: an icon set that loads on main cannot map one of the 21 names without declaring it, so the sentence saying such sets draw the same icon as before holds.
Non-blocking: FR23 calls a fallback "another meaning that draws the same icon", though each refined meaning draws a different icon from its fallback; the FR22 and FR23 verification rows fail in cases their requirements allow; the --definitions fallback assertion in icon-template-meanings.test.mjs cannot fail with its fixture set; the icon-sets guide still describes set order and placeholders without fallbacks; and the form wizard changeset keeps a [fix] tag where FR0 asks for [experimental]. This pull request is reviewed on its own, because the Stack line's entries from #12754 up target other branches rather than main.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Title: twenty-one refined meanings that fall back to the meaning templates used before. Verified: 21 definition files, and each fallback in the table is the meaning
maindeclares for that icon. - Fourteen templates drew their own picture for a meaning; 22 declarations in 14 descriptors move to the new meanings. Verified in the descriptor diffs; each of the 22 icons differs from the table's icon for its old meaning, though the
tablepage shares itserroricon with the useIcon block (non-blocking wording). - The table draws
infoas the information circle, and the form wizard banner keeps its badge throughreview, which falls back toinfo. Verified in the table and the banner test. - Each set in the project's list tries the meaning, then its fallback, before the next set. Verified in the mapping loop and its main-and-backup test.
- A copy draws the same icon as before with every set that does not declare one of the 21 names. Verified:
mainwithdraws a set that maps one of them without declaring it, and a set valid onmaincopies the same icon on both (probe). - The unmapped template meanings leave out a meaning whose fallback the set maps, sets without these names get no new warnings, and a set's own definition with one of these names gets the shadowed warning. Verified: only never-counted lists grow.
--definitionsmarks a definition drawn by its fallback and reportsfallback, and does not count it as unmapped. Verified in the code and a probe; its test assertion cannot fail.- No template source changes, so copies without an icon set are unchanged. Verified: no page or block source changes, and no bundled template imports the placeholder package.
- FR23 describes the fallback and its order. Verified.
- The listed tests exist and pass, and the knowledge check and formatting pass. Verified: the CLI suites pass apart from one test that needs git and fails the same way on
mainhere, the knowledge check passes, and only the test-written snapshot differs from Prettier, as onmain. - Stack line: each pull request's own change is its top commit. Verified for this pull request.
- Writing rubric results: no temporary status in the added record text. Verified.
- Changeset, form wizard banner: declared
review, drawn asinfoby icon sets, copies without a set unchanged. Verified; tag[fix](non-blocking). - Changeset, refined meanings: 21 meanings, each with a fallback; a set that does not map or declare one draws the same icon; the unmapped list leaves one out when the set maps its fallback. Verified.
- Changeset, placeholder copies:
astryx template, the showcase source and build's setup notes fill placeholder imports under the same name. Verified. - Changeset, table and package: the CLI ships the table, and the private package generated from it lets template sources import icons by meaning with previews drawing the same icons. Verified: the table is under the published
assets, and the generator's check passes.
Files:
docs/specs/AST-084-icon-sets/spec.md: owner-approved at this head; non-blocking FR23 wording and the FR22 and FR23 verification rows.template-icons.mjs,template-placeholders.mjs,template-icon-meanings.mjs,template-adapter.mjs,definitions.mjs,experimental/icon.mjs,icon.type.mjs,validate-integration.type.mjs, the build, component and icon adapters,showcase.mjs: clear.template-icons.test.mjs,template-placeholders.test.mjs,template-icon-meanings.test.mjs,form-wizard-vertical-review-icon.test.mjs, theno-icon-setsnapshot: clear.icon-template-meanings.test.mjs: non-blocking, the fallback assertion cannot fail.template-icons.json, the 21 icon definitions,generate-template-icons.mjs, the generatedpackages/template-iconsmodules, README and manifest, the CLI and docs site manifests,pnpm-lock.yaml: clear.- The descriptors of
canvas-editor,editor,file-explorer,form-wizard-vertical,kanban-board,messaging-shell,settings-dialog,shell-top-nav,table-filter,table-inbox,tableand theButtonGroupShowcase,useIconHookUsageandToolbarTableFilterblocks: clear; canvas-editor keeps its existing template-rubric deductions, not lowered here. - The four changesets: clear; non-blocking
[fix]tag on the form wizard note.
| --- | ||
|
|
||
| [fix] The `form-wizard-vertical` template declares its review banner icon as `info`, the meaning the banner shows, instead of `checkDouble`. A project whose icon set draws template icons by meaning now gets that set's info icon in the banner. A project whose main set wraps `@heroicons/react` keeps the check badge unless it picks a variant, and copies without an icon set are unchanged. | ||
| [fix] The `form-wizard-vertical` template declares its review banner icon as `review`, which icon sets draw as `info`, the meaning the banner shows, instead of `checkDouble`. A project whose icon set draws template icons by meaning now gets that set's info icon in the banner. A project whose main set wraps `@heroicons/react` keeps the check badge unless it picks a variant, and copies without an icon set are unchanged. |
There was a problem hiding this comment.
Non-blocking: this note now describes the experimental review meaning, but it keeps the [fix] tag, while AST-084 FR0 says every icon-set change ships as an [experimental] patch Changeset. Retag it [experimental], or fold the banner sentence into template-icon-meanings-fallback.md, which already says the banner keeps its badge through review.
…n that draws them [skip ci]
…ning templates used before [skip ci]
4aa8826 to
b86c47b
Compare
|
/approve-spec b86c47b |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this draft head yet. An engineering owner's /approve-spec for this head settles the AST-084 changes (FR21, FR22, FR23 and their amendments), and no blocking finding remains.
Non-blocking points that are still open in the inline threads:
- The icon-sets guide (
packages/cli/assets/docs/tree/icon-sets.doc.mjs) still says each icon comes from the first set that maps its meaning, with no fallback. - The
--definitionsfallback assertion inicon-template-meanings.test.mjscannot fail, because its fixture set maps none of the fallbacks; mappingsuccessthere would make it checkverified. - FR23 says a fallback "draws the same icon", but each refined meaning draws a different icon from its fallback.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- 21 experimental refined meanings are added: verified (21 definition files, 21 table entries with a fallback).
- Fourteen templates drew a different icon for a meaning than every other template: loose, since two templates drew the no-symbol icon for errors; what holds is that each moved icon differs from the table's icon for its old meaning (non-blocking).
- A Copy button drew the clipboard document and a verified badge drew the badge check where others draw stacked sheets and a check circle: verified.
infodraws the information circle, and the review banner keeps its badge throughreview, which falls back toinfo: verified (table).- Each new meaning falls back to the meaning its template declared before: verified for all 22 moved declarations.
- Each set tries the meaning, then its fallback, before the next set: verified (
matchIconand the set loop; the main-plus-backup test). - A copy draws the same icon as before with every set that does not declare one of the 21 names: verified (
mainrefuses a map key that is neither an Astryx definition nor declared). - Unmapped template meanings leave out a meaning whose fallback the set maps, so such sets get no new warnings, and a set that declares one of the names gets
icon_definition_shadowed: verified. - Definitions, table fallbacks and the regenerated package: verified (the generator check passes).
- The form wizard changeset names
review: verified. experimental icon --definitionsmarksdrawn as <fallback>, reports JSONfallback, and stops counting such a definition: verified (code and a probe).- 22 declarations in 14 descriptors move, no template source changes, and copies without a set are unchanged: verified.
- FR23 describes the fallback and its order: verified.
- The named test suites pass apart from environment-only failures: verified for the suites run here (one test that needs git fails on
mainthe same way). - The new tests listed exist and pass: verified.
- Knowledge check and Prettier: verified (only the test-written snapshot differs, as on
main). - The record text carries no narration, research, rejected alternatives, open questions or project status: verified.
- Changeset, refined meanings: verified. Changeset, the copy step fills placeholders, and the showcase and setup notes do the same: verified. Changeset, the CLI ships the table and a private generated package: verified (the CLI's published
assetsinclude the table).
Files:
.changeset/template-icon-meanings-fallback.md,.changeset/template-icon-placeholders-copy.md,.changeset/template-icon-placeholders-module.md: clear.changeset/form-wizard-review-icon-info.md: text clear;[fix]tag where FR0 asks for[experimental](non-blocking)docs/specs/AST-084-icon-sets/spec.md: owner-approved; FR23 "same icon" wording, the DEC-11 reason and the FR22 row (non-blocking)packages/cli/foundation/discovery/template-icons.mjs,template-icon-meanings.mjs,template-placeholders.mjs,template-adapter.mjs: clearpackages/cli/api/icon/definitions/definitions.mjs,api/icon/_adapter.mjs,api/icon/icon.type.mjs,api/integration/validate-integration.type.mjs,clients/cli/commands/experimental/icon.mjs: clearpackages/cli/api/build/_adapter.mjs,api/component/_adapter.mjs,api/component/detail/showcase/showcase.mjs(formatting around a one-line change): clearpackages/cli/clients/cli/commands/icon-template-meanings.test.mjs: the--definitionsfallback loop cannot fail (non-blocking)packages/cli/foundation/discovery/template-icons.test.mjs,template-placeholders.test.mjs,template-icon-meanings.test.mjs,packages/cli/api/template/form-wizard-vertical-review-icon.test.mjs: clearpackages/cli/test/__golden__/no-icon-set/validate-installed-set.json: clear (test-written snapshot)packages/cli/assets/icons/template-icons.jsonandpackages/cli/scripts/generate-template-icons.mjs: clearpackages/template-icons/(package.json,README.md, andindex.js/index.d.tsat the root,24/solid,20/solid,16/solidandlucide): clear, equal to the generated files- The 21 definition files under
packages/cli/assets/icons/definitions/: clear - The 14 template descriptors (
ButtonGroupShowcase,useIconHookUsage,ToolbarTableFilter, and the canvas-editor, editor, file-explorer, form-wizard-vertical, kanban-board, messaging-shell, settings-dialog, shell-top-nav, table-filter, table-inbox and table pages): clear; canvas-editor keeps its existing template-rubric deductions (non-blocking) packages/cli/package.json,apps/docsite/package.json,pnpm-lock.yaml: 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 adds
Twenty-one refined icon meanings (experimental), so the templates that drew their own icon for a meaning keep that icon when templates import icons by meaning.
Fourteen templates drew a different icon for a meaning than every other template: for example, a Copy button drew the clipboard-document icon where other templates draw two stacked sheets, and a verified badge drew the badge-check where other templates draw a check circle. One icon per meaning cannot draw both, so each of these icons gets its own meaning, and its template declares it:
copyText,paste,block,verified,alert,create,media,listView,currency,checklist,channel,team,schedule,help,signal,house,moveToFolder,columnSettings,halftone,groupRows,review.infodraws the information circle, as every icon set does. The form wizard's review banner keeps its badge-check throughreview, which falls back toinfo.Each new meaning names a
fallbackin the template icon table: the meaning its template declared before (verifiedfalls back tosuccess). Each set in the project's list, in order, maps the icon by its meaning and then by its fallback before the next set is tried, so one set draws each icon. A copy therefore draws the same icon as before with every icon set that does not declare one of these 21 names itself. An icon set's unmapped template meanings leave out a meaning whose fallback it maps, so a set that does not declare these names gets no new warnings; a set that declares its own definition with one of these names getsicon_definition_shadowed, as for any shared definition.fallback; the regenerated placeholder package.review, which icon sets draw asinfo.experimental icon --definitions: a definition the set does not map but whose fallback it maps is markeddrawn as <fallback>(JSONfallback), and is not counted as a placeholder.Testing
vitest run --project nodeon packages/cli/api/template, api/icon, api/docs, authoring/doctypes/icon-definition, foundation/discovery, foundation/integrations and the template icon declarations test. Everything passes except three tests that also fail on the base in this environment (two locale examples that need full ICU data, one doctor validate case).reviewandverified) map by their own meanings; every fallback is a table meaning and a definition; a meaning whose fallback the set maps is not unmapped.pnpm check:knowledge, Prettier on the changed filesWriting rubric results
R1 narration: none; FR23 states what the system does, in the present tense.
R2 research: none in the record.
R3 evidence: the verification row names tests, not changes.
R4 rejected alternatives: none.
R5 change references: none.
R6 open questions: none.
R7 project status: none; no "yet", "follow-up" or "phase" in the added text.