-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Added kitchen sink to sample app #1224
Conversation
Currently knobs show up, but editing the knobs does not update the URL properly
Codecov Report
@@ Coverage Diff @@
## master #1224 +/- ##
=======================================
Coverage 13.73% 13.73%
=======================================
Files 207 207
Lines 4638 4638
Branches 513 521 +8
=======================================
Hits 637 637
+ Misses 3557 3547 -10
- Partials 444 454 +10
Continue to review full report at Codecov.
|
- add centered to test-cra - add all to cra-storybook
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.
looks good, thanks!
import EventEmiter from 'eventemitter3'; | ||
|
||
import { storiesOf } from '@storybook/react'; | ||
import { action } from '@storybook/addon-actions'; | ||
import { linkTo } from '@storybook/addon-links'; | ||
import WithEvents from '@storybook/addon-events'; | ||
import { WithNotes } from '@storybook/addon-notes'; |
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.
out of scope of this PR, but we should standardize whether we do import withAddon
or import { withAddon }
.
#1238 Some cleaning I did on the propTypes :) |
Proposal based on what I've seen from both of you:
Happy to do all of this if you're good with it, except for (2) which I'd ask for help from @tmeasday |
I'm happy with this and happy to help. I'm not sure what the best naming is. I chose I think long term we want a RN kitchen sink too, and there's no reason not to use the same app for that. So maybe we should rename that app |
Ok, I understand How about:
|
Sounds good |
Issue: #1220
What I did
Added
notes
,info
,knobs
,options
to thetest-cra
andcra-storybook
examples.test-cra
tries to simulate what a user would see installing these packages but based on file linkscra-storybook
is useslerna bootstrap
to install the dependencies and is easier to develop onWhat I found
info
andknobs
are apparently broken.info
shows an error in the preview window. this also causes our test suite to fail (yay?!)knobs
shows up but editing is broken (URL is not updated properly)Update:
info
works on all platforms?knobs
is fixed based on @ndelangen 's fix belowWhat I need
events
,graphql
addonsHow to test