mui-x icon indicating copy to clipboard operation
mui-x copied to clipboard

[Tree View] Polish the default design & revise the simple version pages

Open danilo-leal opened this issue 2 years ago • 20 comments

As the title says! This PR hopefully closes https://github.com/mui/mui-x/issues/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 https://github.com/mui/material-ui/issues/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/

danilo-leal avatar Dec 28 '23 16:12 danilo-leal

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Jan 02 '24 08:01 github-actions[bot]

It was a hard one, particularly the disabled section and explaining the ContentProps stuff (which felt too obscure).

I'd like to rework this API which is not consistent with the rest of the X components (they are using slots).

flaviendelangle avatar Jan 02 '24 13:01 flaviendelangle

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?

mapache-salvaje avatar Jan 02 '24 14:01 mapache-salvaje

Is there a plan to eventually expand this content into multiple pages?

The doc has been split into several pages in #11059 which has just been merged I first migrated the doc from the core without modifying it and now we are enriching it and restructuring it :+1:

flaviendelangle avatar Jan 02 '24 15:01 flaviendelangle

@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! 🤙

danilo-leal avatar Jan 02 '24 17:01 danilo-leal

We can definitely work on revising the Rich-related pages afterward!

A lot of it it purely duplicate from SimpleTreeView so it should be an easy follow up :+1:

flaviendelangle avatar Jan 02 '24 18:01 flaviendelangle

IMHO the main benefit of the Box is on small demos, it allow to remove the sx prop from the preview And the TreeView is often close to the max length of the preview, so saving 1-2 lines helps a lot.

But for more complex demos which don't have preview anyway, I do agree they don't bring any value.

flaviendelangle avatar Jan 03 '24 07:01 flaviendelangle

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Jan 03 '24 15:01 github-actions[bot]

@flaviendelangle I'm assuming your last comment was more about @noraleonte's PR about the Tree View than this one, right? 😅 I just double-checked the changes I'm proposing and didn't find any sx prop added directly to the Tree View! :)

danilo-leal avatar Jan 09 '24 03:01 danilo-leal

Yes my bad, I commented on her PR yesterday, you can forget that one :+1:

flaviendelangle avatar Jan 09 '24 07:01 flaviendelangle

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Jan 16 '24 10:01 github-actions[bot]

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Jan 17 '24 07:01 github-actions[bot]

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Jan 17 '24 17:01 github-actions[bot]

:laughing: Polishing the Tree View doc is an hard task with Git conflict. Respect @danilo-leal :see_no_evil:

flaviendelangle avatar Jan 18 '24 08:01 flaviendelangle

🤣 I'm considering closing this PR and starting fresh from scratch, heh

danilo-leal avatar Jan 18 '24 11:01 danilo-leal

The doc structure should be pretty stable now :+1: We are mostly adding new doc sections

flaviendelangle avatar Jan 18 '24 12:01 flaviendelangle

I think this PR is good-to-go for a review whenever y'all can! 👍

danilo-leal avatar Jan 24 '24 23:01 danilo-leal

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Jan 26 '24 11:01 github-actions[bot]

Little bump on this one! :)

danilo-leal avatar Feb 06 '24 18:02 danilo-leal

Nice 👍


A likely follow-up: https://github.com/mui/mui-x/issues/11976.

oliviertassinari avatar Feb 07 '24 12:02 oliviertassinari

Follow-up PR opened above → https://github.com/mui/mui-x/pull/11979

danilo-leal avatar Feb 07 '24 13:02 danilo-leal