Skip to content

chore: 🤖 support asset aliases with centralised resolver configuration#873

Closed
punkbit wants to merge 12 commits intomainfrom
chore/support-asset-aliases
Closed

chore: 🤖 support asset aliases with centralised resolver configuration#873
punkbit wants to merge 12 commits intomainfrom
chore/support-asset-aliases

Conversation

@punkbit
Copy link
Collaborator

@punkbit punkbit commented Mar 5, 2026

Why?

Introduces a centralised asset configuration with unified aliases and deprecated name mappings. It inherits from the original resolver used for the deprecations, but we found that we may want to accept customisation via aliases. Because there are naming conventions to facilitate adding assets easily, the user might want to add custom aliases, e.g. for a case like c#, which has a # character, which is not a valid JavaScript identifier, the user might still want to use c# instead of c-sharp.

⚠️ Closed by #876

How?

  • Creates a common name resolver and an asset resolver factory for consistent name resolution across all asset systems
  • Makes retro active names fn redundant
  • Adapts the resolver pattern in Flags, Icons, Logos, and Payments systems

Preview?

demo-support-asset-aliases-carrot-svg.mov

@changeset-bot
Copy link

changeset-bot bot commented Mar 5, 2026

⚠️ No Changeset found

Latest commit: faed5fd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@workflow-authentication-public
Copy link
Contributor

📚 Storybook Preview Deployed

✅ Preview URL: https://click-hxfepjv7t-clickhouse.vercel.app

Built from commit: a69827f71ae075edc880fd7aa2c84efb1abd0914

@punkbit
Copy link
Collaborator Author

punkbit commented Mar 5, 2026

⚠️ Closed by #876

@punkbit punkbit closed this Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant