-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Move addon-info
into addons panel
#1501
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1501 +/- ##
==========================================
- Coverage 35.74% 20.04% -15.7%
==========================================
Files 472 259 -213
Lines 10134 5887 -4247
Branches 1196 700 -496
==========================================
- Hits 3622 1180 -2442
+ Misses 5784 4157 -1627
+ Partials 728 550 -178
Continue to review full report at Codecov.
|
Awesome!! So excited to see the progress on this and it will be a huge benefit for Storybook! 🎉 A few thoughts:
|
Quick comment on the styling of the Info panel: I wouldn't make it so "boxy", and keep the padding to the minimum to leave as much screen size as possible. Is this planned for an upcoming release? |
+1 to deprecate (or, better yet, remove) inline support. It's one of the things that makes this (and potentially other) add-on difficult to use with, Angular, for example. |
I think this is an opportunity to move some UI into |
Reasons:
Reasons:
counter-argument: since we publish v3.2 it will be a "breaking" change. So I don't mind to revert it to the previous name. How to testCheck different options of "Addon info" from |
Known issues at this moment:
|
@usulpro how about instead of |
@shilman This name clearly reflects the type of data. But on the other hand, all other props are named in accordance with their purpose. e.g.: And why you don't like |
@usulpro i have a proposal for an updated addons API and I think it becomes confusing if we have the main property have the same name as the addon: https://gist.github.com/shilman/792dc25550daa9c2bf37238f4ef7a398#options-types We haven't discussed this proposal, and there might be other better proposals out there. But if the proposal goes through then it would be better to call it anything other than |
@shilman Let's take |
Closing this because there hasn't been any activity here for a while. Feel free to reopen when this is ready for discussion again. |
For me, it's a single point for all the reproductions. And given that we have nesting, I don't think that there's any issue with having more stories there. Especially after @danielduan has refactored each example scope into a separate file |
😢 |
@Hypnosphi I agree that this should be worked on but I closed this because there is a significant amount of work left and there hasn't been any progress here since almost 3 months ago. If you'd like to take over the PR, please do. I think you can branch off of this and create a new PR. |
I think it’s a thing that really needs to be done, but I’m not sure I’m able to do it properly. What should I do in that case? |
I don't think there is a right person for this but @usulpro definitely has more experience working in info than anyone else. I think the difficult part is coming to a consensus as to what the future info panel will look like and how it will function, much of which has been explored here. I think what's here is a very good start. The rest of the work looks like it's fixing merge conflicts and integrating the changes with ongoing development since the last commit here. Migrating the Storybook over shouldn't be too difficult. We can then discuss if the changes here are appropriate. Personally, I think the process of documenting a component could be even more automated such that we perhaps don't need to manually create entries for excluding and including certain components, etc and generating more documentation automatically. That's a separate discussion that can come after this major refactor. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 60 days. Thanks! |
Does anyone want to finish it for the v4 release? |
I think we don't need to hold this one open. Let's revisit the implementation/rationale in the future. |
Issue: #1147
What I did
withInfo()
puts info into Info paneldecoratorInfo()
keeps previous behaviorHow to test
run
cra-kitchen-sink
Todo
check out https://github.com/storybooks/storybook/labels/addon%3A%20info
find more complex examples to test Info Addon with full load
implement Add option to switch to a specific panel #811 for better stories organization
add tests
options clean-up
add full documentation
move some UI into
lib/components
restore markdown support