-
Notifications
You must be signed in to change notification settings - Fork 2
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
DE-6498: Add Storybook #12
Conversation
de27b25
to
4d414e5
Compare
Okay, I fixed the Jest config, now it's really ready for review :) |
Add Storybook as a framework to develop and document UI. So far this is groundwork, once the Storybook docs are finished, `./app` folder can be deleted. * FIXES Several small fixes to some components such as `Duration` and `CurrentTime`, fixes to the UI and some improvements to the API. * FEATURES Create `PlayPauseIndicator`. Add CSS classes `.pp-ui-layers` and `.pp-ui-layer` intended to stack layers of UI on top of each other (e.g. player and its overlay). * TOOLING In Jest remove `transformIgnorePatterns` of `@castlabs/prestoplay` because it is not being transformed anyway, because it is getting mocked instead.
4d414e5
to
c4bd691
Compare
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 such an great improvement of this documentation on these components, great job 💯
I left few comments, mostly related to docs.
Some additional extended descriptions for components in stories, when it makes (IMO) sense, some of the others may need another pass later and update even examples. (like spacer).
I also checked the followup ticket, and I am happy to help and do some work on some following updates and improvements on various components APIs. I would propose to schedule some planning session to flesh that plan furter.
@@ -35,3 +35,6 @@ npm run publish | |||
npm run test | |||
``` | |||
|
|||
## Docs |
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.
Can we add note how to run storybook?
Co-authored-by: doubeka <doubek.a@gmail.com>
Co-authored-by: doubeka <doubek.a@gmail.com>
Co-authored-by: doubeka <doubek.a@gmail.com>
Co-authored-by: doubeka <doubek.a@gmail.com>
Co-authored-by: doubeka <doubek.a@gmail.com>
Co-authored-by: doubeka <doubek.a@gmail.com>
Co-authored-by: doubeka <doubek.a@gmail.com>
Co-authored-by: doubeka <doubek.a@gmail.com>
Co-authored-by: doubeka <doubek.a@gmail.com>
Co-authored-by: doubeka <doubek.a@gmail.com>
Thanks! |
I Added storybook for API docs and development of the components.
Here I also did a few drive-by fixes of some bugs and the API, but more will come in DE-6506. There I will also fix the rest of the stories, bc. some of them currently do not work.