docs(storybook): update the storybook layout for patternfly-react to mimic Patternfly.org - #342
Conversation
Pull Request Test Coverage Report for Build 1362
💛 - Coveralls |
2f3daa6 to
8a738a3
Compare
|
fantastic!!! 👏 👏 👏 I clicked through the stories and the hierarchy looks great. I think it helps simplify the documentation so much more. LGTM |
|
@jgiardino @maryclarke @LHinson @serenamarie125 maybe you have additional thoughts? |
serenamarie125
left a comment
There was a problem hiding this comment.
This looks great ... i'd suggest 2 things:
1 - patternfly-react should be first
2 - I'm not sure @patternfly makes sense for the other entry "additional-react" maybe? that's kind of lame though
|
no additional thoughts, LGTM |
|
Sorry, I had overwritten my storybook with that from a different PR. What @maryclarke reviewed was likely not the result of this PR. This PR is now reflected there. |
|
This is great, and lgtm! I just have one question... Modal currently is grouped under Widgets on pf.org. But in this storybook I see it under Communication as Modal Overlay. Was that intentional? |
|
No. I guess I assumed Modal was under communication along with about modal and did not verify. I can fix that. |
8a738a3 to
c71eec9
Compare
c71eec9 to
ff8236e
Compare
|
@serenamarie125 @priley86 @maryclarke @jgiardino Could you please take another look? |
|
I see the Modal Overlay is under Widgets now 👍 I also noticed that the first node was relabeled as "patternfly\react-console" and moved to the end. I like having this at the end. I'll defer to others who are more familiar with the monorepo work regarding the label, but when I look at the slides Patrick pulled together, I'm seeing this instead "@patternfly/react-console". Some questions I have are:
|
|
Funny you should ask... If I use forward slash, then all packages become subdirectories. I like them better at the top level. |
|
With the monorepo updates, instead of importing from Since
This way, the core components are still first, and we are more consistent with the package name in that we include everything as written except |
|
You still need to import from |
|
yes, apologies for the confusion on this. I was planning to make mention of it next week in the Community meeting. In the breakaway sprint, we discussed just leaving the core package distributed |
|
Ooooh. My only suggestion is that the nodes in storybook are consistent with the naming consumers would use in the context of their project, to avoid potential confusion. And I think replacing the forward slash with a back slash could be confusing. Would something like this work?
Any other suggestions? Also, when I look at the storybook, I no longer see the updates that are shown in Jeff's previous comment. |
|
Sorry @jgiardino working on another story, we need to get storybook deploy to work per branch 😖 |
|
@jgiardino I can use that structure. The storybook link should be working correctly now. @priley86 Does that structure make sense to you? |
|
@jeff-phillips-18 This is what I see. Does that match your latest changes? |
|
I haven't updated to the latest suggestion yet. Coming shortly... |
…mimic Patternfly.org affects: patternfly-react ISSUES CLOSED: patternfly#304
ff8236e to
36e5ef9
Compare
|
I like how you labeled the "react-console (@patternfly)" node. If other packages start with a letter higher than "p", would they be listed before "patternfly-react"? If so, do you have any thoughts on how to avoid that? The only thing I could think of was to prefix it with "Core package:" but that still leaves packages that start with "a" and "b". On the other hand, maybe this isn't an issue if the plan is to move off of storybook. |
|
I assume they will all start with |
|
I like this approach for now if you are OK w/ it @jeff-phillips-18 and @jgiardino . What I was understanding before was that we'd like to mimic the PF Org website as close as possible for PF3 (like you do here). I agree that the "(@patternfly)" is useful for developers consuming the packages, but probably doesn't mean much to designers or folks just navigating the website. This approach should work fine for sorting purposes and allow us to add the label though. Maybe when we look at the new site template we can find a way to introduce tags or labels for the respective components/patterns/layouts and their respective package names. I think we should follow PF Next convention as close as possible... tagging @dmiller9911 and @dgutride for awareness - it looks like #352 is related (and not sure if they have any more suggestions)! This is exciting to be considering this now! |
|
The stable release for the next version of patternfly is end of the year to early next year. I don't think we want to be making assumptions or configuring the current patternfly-react release to something that will be changing over the next 6-8 months. |




affects: patternfly-react
ISSUES CLOSED: #304
Link to Storybook:
https://jeff-phillips-18.github.io/patternfly-react/