chore(icons): add workflow icons generator - #6572
Conversation
|
📚 Branch Preview Links🔍 Gen1 Visual Regression Test ResultsWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
Deployed to Azure Blob Storage: If the changes are expected, update the |
9f272c0 to
5f7a3ac
Compare
d68ef6c to
5f7a3ac
Compare
5f7a3ac to
0ffc6bf
Compare
0ffc6bf to
7ecaa90
Compare
7ecaa90 to
1f31550
Compare
Description
Adds
scripts/generate-workflow-icons.mjs: converts A4U workflow SVGs into a per-icon function (StarIcon(): string) and a per-icon element (<swc-icon-star>extendingIconBase), reusing Phase 0's sharedicon-source/utils/. Staged inswc/components/workflow-icons/for now; packaging into@adobe/spectrum-wc-iconsis Phase 4. Filename regex (S2_Icon_<Name>_20_N.svg) is derived from a public sibling repo's manifest, not a confirmed real A4U sample, flagged as such in the file header. Validated against synthetic fixtures only; no real icon art is included or committed.Motivation and context
Implements Phase 3 of the icon RFC (SWC-2442): public workflow icons as a Lit-free function plus a custom element.
Related issue(s)
Screenshots (if appropriate)
N/A — build script only, no UI.
Author's checklist
Reviewer's checklist
patch,minor, ormajorfeaturesManual review test cases
S2_Icon_Star_20_N.svg,--iconPrimaryfill) intoicon-source/workflow/, runyarn generate:workflow-icons, confirm both output files are generated, fill is rewritten tovar(--swc-icon-color, currentColor), and lint/prettier pass. Delete the fixture and output after.icon-source/workflow/throws instead of deleting anything.Device review
Accessibility testing checklist
IconBase(existing, already-tested a11y contract: decorative by default,role="img"+aria-labelwhenaccessible-labelis set); no new behavior introduced.