-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Tree View] Polish the default design & revise the simple version pages #11529
Conversation
Deploy preview: https://deploy-preview-11529--material-ui-x.netlify.app/ Updated pages: |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
I'd like to rework this API which is not consistent with the rest of the X components (they are using slots). |
I'm getting ready to do a line-by-line review, but from the jump it feels odd to me that this is the "Overview" page for the Tree View. All of the other products use the Overview page pattern to introduce the product and its key features at a high level—closer to marketing than documentation, really. Maybe that pattern isn't as useful in this case since there isn't as much to document, but it feels strange and out of step with the rest of the X docs nonetheless—it throws off my expectations as a reader. I'm not sure what the solution should be. Is there a plan to eventually expand this content into multiple pages? Or will it remain more like a Core-style component demo document? |
The doc has been split into several pages in #11059 which has just been merged |
@samuelsycamore — that makes sense! I merged this PR with master and pulled all the changes from Flavien's PR linked above. For the sake of not exploding this PR's scope even more, I have constrained myself to tackle only the Simple Tree View pages, also because they mostly house the content that was in the all-encompassing Overview page before. :) We can definitely work on revising the Rich-related pages afterward! 🤙 |
A lot of it it purely duplicate from |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
😆 Polishing the Tree View doc is an hard task with Git conflict. |
🤣 I'm considering closing this PR and starting fresh from scratch, heh |
The doc structure should be pretty stable now 👍 |
Signed-off-by: Danilo Leal <[email protected]>
I think this PR is good-to-go for a review whenever y'all can! 👍 |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Signed-off-by: Danilo Leal <[email protected]>
- `@mui/x-tree-view/TreeView`: for simpler use cases. | ||
- `@mui/x-tree-view/RichTreeView`: for more complex and larger uses of the Tree View component. |
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.
rather than saying "this one is simple" and "this one is complex", maybe we should provide some clarifying details? (How do I know if my use case is complex or large enough to warrant the Rich Tree View?)
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.
I actually think we can cut this part altogether given the following headings explain exactly that!
docs/data/tree-view/simple-tree-view/customization/customization.md
Outdated
Show resolved
Hide resolved
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.
Thank you for this effort! 🎉
Leaving some small suggestions for improvements 😄
Little bump on this one! :) |
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.
Looking great! Thanks for picking this up! 🎉 🍰
Nice 👍 A likely follow-up: #11976. |
Follow-up PR opened above → #11979 |
As the title says! This PR hopefully closes #11528, and it adds a small coat of polish to the default Tree View look & feel as well as a general revision to the Overview page, applying the latest page structure as described in mui/material-ui#39702. It was a hard one, particularly the disabled section and explaining the
ContentProps
stuff (which felt too obscure).https://deploy-preview-11529--material-ui-x.netlify.app/x/react-tree-view/