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

[docs] Add plan in the nav bar for pro-only and premium-only pages #4591

Merged
merged 3 commits into from
Apr 22, 2022

Conversation

flaviendelangle
Copy link
Member

@flaviendelangle flaviendelangle commented Apr 21, 2022

@flaviendelangle flaviendelangle added the docs Improvements or additions to the documentation label Apr 21, 2022
@flaviendelangle flaviendelangle self-assigned this Apr 21, 2022
@@ -86,7 +88,7 @@ const pages = [
{ pathname: '/x/react-date-pickers/time-picker' },
{
pathname: '/x/api/date-pickers',
title: 'API Reference',
title: 'API Reference',
Copy link
Member Author

Choose a reason for hiding this comment

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

I prefer without it but I can add it back if you want

@@ -256,7 +255,7 @@ function AppWrapper(props) {
<PageContext.Provider value={{ activePage, pages: productPages }}>
<ThemeProvider>
<DocsStyledEngineProvider cacheLtr={emotionCache}>
<XWrapper>{children}</XWrapper>
{children}
Copy link
Member Author

Choose a reason for hiding this comment

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

The pro / premium icon CSS is now defined on the core

@mui-bot
Copy link

mui-bot commented Apr 21, 2022

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 257.1 476.4 389.1 354.22 84.629
Sort 100k rows ms 424.9 978.7 714.2 686.86 186.217
Select 100k rows ms 104.8 190.8 151.4 147.32 29.583
Deselect 100k rows ms 91.3 141.5 141.5 121.64 19.264

Generated by 🚫 dangerJS against 0514585

@flaviendelangle flaviendelangle marked this pull request as ready for review April 21, 2022 11:29
Copy link
Member

@m4theushw m4theushw left a comment

Choose a reason for hiding this comment

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

The "Date range picker" also needs the Pro icon.

image

@oliviertassinari
Copy link
Member

oliviertassinari commented Apr 23, 2022

We have an issue with the side nav. On https://master--material-ui-x.netlify.app/x/react-data-grid/tree-data/ the navigation is closed

Actual

Screenshot 2022-04-23 at 19 07 55

Expected

Screenshot 2022-04-23 at 19 07 58

The current expand/collapse logic relies on the URL prefixed structured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[docs] Add plan icon for pro-only and premium-only pages on navigation bar
4 participants