-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Storybook: Story for reviewing Lucide icons #20631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: nielslyngsoe <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a Storybook story that displays all Lucide icons available in the library, highlighting which ones are already registered in the CMS icon registry versus those that are unregistered. This helps developers discover icons that could potentially be added to the CMS.
Key Changes:
- Created a new Storybook story that dynamically compares registered icons from
icon-dictionary.jsonwith all available Lucide icons - Added static file serving configuration in Storybook to access Lucide icon assets
- Implemented visual differentiation between registered and unregistered icons using border styling
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/Umbraco.Web.UI.Client/src/packages/core/icon-registry/available-lucide-icons.stories.ts | New story that fetches and displays all Lucide icons with registration status and statistics |
| src/Umbraco.Web.UI.Client/.storybook/main.ts | Added configuration to serve lucide-static directory as static assets in Storybook |
src/Umbraco.Web.UI.Client/src/packages/core/icon-registry/available-lucide-icons.stories.ts
Outdated
Show resolved
Hide resolved
src/Umbraco.Web.UI.Client/src/packages/core/icon-registry/available-lucide-icons.stories.ts
Show resolved
Hide resolved
Pull request was converted to draft
Description
This PR adds a new Storybook story that displays all Lucide icons. This makes it easy for developers to discover which icons are available in the Lucide library but haven't been added to the CMS yet.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
iojs.orgcurl -q --fail --compressed -L -s REDACTED -o -(dns block)storybook.js.orgnode /home/REDACTED/work/Umbraco-CMS/Umbraco-CMS/src/Umbraco.Web.UI.Client/node_modules/.bin/storybook dev -p 6006(dns block)uui.umbraco.comnode /home/REDACTED/work/Umbraco-CMS/Umbraco-CMS/src/Umbraco.Web.UI.Client/node_modules/.bin/storybook dev -p 6006(dns block)If you need me to access, download, or install something from one of these locations, you can either: