Skip to content
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

[website] X component section improvements #36598

Merged
merged 21 commits into from
Apr 20, 2023

Conversation

danilo-leal
Copy link
Contributor

@danilo-leal danilo-leal commented Mar 21, 2023

This PR consists of a few fine-tuning changes to the website's X component section. I mostly standardized Button styles and made the copy slightly more exciting (?!) for components that are either available as stable or in the lab (Date Picker & Tree View respectively).

👉 https://deploy-preview-36598--material-ui.netlify.app/x/

Date Range Picker

Before After
Screen Shot 2023-03-21 at 11 13 55 Screen Shot 2023-03-21 at 11 14 02

Tree View

Figured we don't need the email subscription here as it's already available for usage, regardless if it's in the lab. I'd leave it there only if it was a PNG preview.

Before After
Screen Shot 2023-03-21 at 11 14 14 Screen Shot 2023-03-21 at 11 14 20

@danilo-leal danilo-leal added the website Pages that are not documentation-related, marketing-focused. label Mar 21, 2023
@mui-bot
Copy link

mui-bot commented Mar 21, 2023

Netlify deploy preview

https://deploy-preview-36598--material-ui.netlify.app/

Bundle size report

No bundle size changes

Generated by 🚫 dangerJS against 0775531

Copy link
Member

@joserodolfofreitas joserodolfofreitas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking a look at this!

I updated a couple of demos so it displays the newer features.
I thought it'd be a small update, but seeing it now, it makes sense to break it down in another PR. I'll iterate over the demos in the next few days.

docs/src/components/productX/XDateRangeDemo.tsx Outdated Show resolved Hide resolved
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 10, 2023
Signed-off-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 11, 2023
@danilo-leal
Copy link
Contributor Author

@joserodolfofreitas let me know if this is good to go!

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 11, 2023
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Apr 17, 2023
Copy link
Member

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We likely need to update the x package to the latest release, there are some type issues going on. The changes in yarn.lock come as a dependencies of @mui/x-data-grid-generator. Probably someone on the X team can help.

@danilo-leal
Copy link
Contributor Author

@joserodolfofreitas not a priority by any means but it'd be cool for you to give double-check here once possible!

Copy link
Member

@joserodolfofreitas joserodolfofreitas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's good to go. Thank you!
I'll update the demos and x package versions on a separate PR.

edit: I just realized that we can't merge without fixing the type issues. So I'll take a look at that

@danilo-leal
Copy link
Contributor Author

I was just about to ask you that! Thanks 🙌

@joserodolfofreitas
Copy link
Member

@danilo-leal, now it's good to go ;)

@danilo-leal
Copy link
Contributor Author

@joserodolfofreitas sweet! Thanks for the work in resolving all of this 🙌

@danilo-leal danilo-leal merged commit ce06cb9 into master Apr 20, 2023
@danilo-leal danilo-leal deleted the x-components-website-section-tweaks branch April 20, 2023 21:25
@@ -174,13 +276,28 @@ export default function XHero() {
}),
]}
>
<DataGridPro
<DataGridPremium
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joserodolfofreitas I've submitted a follow-up PR for this demo: #37001

oliviertassinari added a commit that referenced this pull request Apr 28, 2023
URLs should be kebab-case. The issue originate from #36598. 

Also see https://answers.netlify.com/t/no-trailing-slash-when-using-proxies/48790/20 for why we don't have a proper 301 with MUI X pages.

Signed-off-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Comment on lines -100 to +173
href="/x/react-date-pickers/date-range-picker/"
<Button
variant="outlined"
href="/x/react-Date-pickers/Date-range-picker/"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 5530804

pageSize={5}
rowsPerPageOptions={[5]}
paginationModel={{ page: 0, pageSize: 5 }}
Copy link
Member

@oliviertassinari oliviertassinari May 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure about this change? Clicking on the page button no longer work: https://deploy-preview-36598--material-ui.netlify.app/material-ui/react-table/#data-table

Screenshot 2023-04-30 at 20 16 36

I'm coming from: https://mui-org.slack.com/archives/C041SDSF32L/p1682708252800599 cc @cherniavskii for guidance.

Copy link
Member

@cherniavskii cherniavskii May 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I'll submit a PR 👍 #37114

binh1298 pushed a commit to binh1298/material-ui that referenced this pull request May 17, 2023
URLs should be kebab-case. The issue originate from mui#36598. 

Also see https://answers.netlify.com/t/no-trailing-slash-when-using-proxies/48790/20 for why we don't have a proper 301 with MUI X pages.

Signed-off-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
website Pages that are not documentation-related, marketing-focused.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants