Repository navigation
feat(core): add theme-defined Icon capabilities and build parity - #7214
rubyycheung 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.
|
14bbfa6 to
724d3f3
Compare
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewModified ComponentsIcon (@astryxdesign/core) · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: 1 accessibility violation(s) found — 1 serious. Icon - 1 issue(s)
Visual Regression23 of 446 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 3 more. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
There was a problem hiding this comment.
Approval waits on a maintainer decision: the new Icon appearance and weight requests, custom icon size names, adaptive theme artwork, theme icon dimensions and presentation, nested-theme policy inheritance and their theme-build transport need a maintainer to provide or identify the governing spec (the proposed path is AST-054 in #6891 with its projection in #7116). Whatever that decision, please fix these before this can land:
defineTheme({icons})andregisterIcons()now throwIcon: icon entries must contain plain data fields.for a module-namespace registry (import * as icons), which works today, soprepareIconEntriesshould accept namespaces as before, with regression tests.astryx theme buildnow fails on a theme that carriescomponentIconswhile runtimedefineThemeaccepts it, so build and runtime should agree again.- At 7,876 authored lines, please split the theme-compiler transport from the runtime contract, or record in the governing spec why they must land together.
- Please restore the released JSDoc removed from
globalIconRegistry.tsx, including theregisterIconsandgetExtendedIconexamples, since it is unrelated to this change.
[Automated review]
Draft status
This is a focused implementation draft based directly on current
main. It is reviewable and runs CI independently from the specification stack, but must not land until the corrected AST-054 specification in #6891 and its authority projection in #7116 are approved.fd7d3796caf8b65741b8dccf390bf3898bfaeb45b3d9a89e57User need
Theme authors need supplied icon artwork to vary independently by icon size, appearance, and weight without changing every component callsite or leaking library-specific properties onto the DOM.
What this PR implements
size,appearance, andweightrequests onIcon.Deliberately excluded
These remain separate focused PRs:
byState, and role-size overrides.This PR adds no component roles, no state presentation, no Button changes, no inventory product, no public resolver/inspection plumbing, and no ambiguous request-order overload.
Compatibility
registerIcons,getIcon,getExtendedIcon, anduseIconcall shapes remain unchanged.mduse the active theme dimension.Evidence completed before publication
The equivalent focused implementation commit (
14bbfa6673) passed:The code-only restack onto latest main applied without implementation conflicts. GitHub CI on this exact head is the current evidence source for the latest-main integration.
Pending and explicitly not claimed
IconEngine.stories.tsxChangeset
Patch release for
@astryxdesign/coreand@astryxdesign/cli: adds the capability engine and preserves its data through theme builds. This draft cannot release until #6891/#7116 are approved.Review focus
Please review only this boundary:
Adapter, component state, Button adoption, and inventory questions belong to their later PRs.