-
Notifications
You must be signed in to change notification settings - Fork 16
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
Start building out Storybook for the Penumbra UI library #1452
Conversation
|
packages/ui/.gitignore
Outdated
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.
This is the directory that Storybook will build to, and will be deployed to ui.penumbra.zone
Visit the preview URL for this PR (updated for commit 3882557): https://penumbra-ui-preview--pr1452-jessepinho-ui-librar-9680tnck.web.app (expires Wed, 24 Jul 2024 00:45:27 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 709d729610ef7a6369b23f1cb2b820a60cc685b1 |
4a55411
to
a307fdd
Compare
@jessepinho I pushed a new commit for CI workflows for storybook. You can see the bot is already helpfully adding ephemeral URLs. As the commit text describes, there are workflows for preview & stable channels, as well. |
b07f937
to
840c973
Compare
|
||
export default meta; | ||
|
||
export const Basic: StoryObj<typeof Icon> = { |
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.
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.
Will be built out over time, if we stick with styled-components
packages/ui/package.json
Outdated
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.
The reordering of this file is due to syncpack lint
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.
only new elements in this file are the dependencies on styled-components
, @storybook/manager-api
, and @storybook/theming
826b048
to
c4b199d
Compare
@jessepinho maybe we can get a demo of this during next weekly sync? |
Adds a deploy workflow for the new storybook ui static site, deploying to: * preview.ui.penumbra.zone, on merge to main * ui.penumbra.zone, on tag push Additionally, PRs will have an ephemeral URL for preview posted to them via a bot as a comment, so unmerged work can be viewed in an online context.
d2c2ec2
to
a3eb636
Compare
This PR is focused on laying the foundation and setting up Storybook to display our UI components. There are a couple basic implementations included here (using styled-components and creating an Icon component) that may be revised or removed later, but I needed something to put into Storybook :)
In this PR
ui.penumbra.zone
, B) merges tomain
topreview.ui.penumbra.zone
, and C) PR updates to ephemeral URLs.Icon
component to test Storybook with.