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] Update pricing table #41595

Merged
merged 5 commits into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 34 additions & 7 deletions docs/src/components/pricing/PricingTable.tsx
Copy link
Member Author

Choose a reason for hiding this comment

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

Should we list all the pickers' components in the expandable "Date and Time Pickers" section?

cc @flaviendelangle @LukasTy @joserodolfofreitas

Copy link
Member

Choose a reason for hiding this comment

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

Not sure it will improve the clarity that way. 🤔
WDYT about doing the following renaming?

  1. Date Picker -> Date and Time Pickers
  2. Date Range Picker -> Date and Time Range Pickers

Copy link
Member Author

Choose a reason for hiding this comment

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

It's better than the current version, although where should we link them?
Date and Time Pickers
Date and Time Range Pickers
Does this make sense?

Copy link
Member

Choose a reason for hiding this comment

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

If we need/want to add links, I'd say that they should lead to the most simple Picker components:
Date and Time Pickers
Date and Time Range Pickers
However, I'm not sure we need links here...
WDYT @joserodolfofreitas @flaviendelangle?

Copy link
Member

Choose a reason for hiding this comment

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

If we had to choose one component to link to, I would indeed choose DatePicker and DateRangePicker

But maybe we lack a section to actually link to...

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated 👍🏻

Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,15 @@ const rowHeaders: Record<string, React.ReactNode> = {
'data-grid/localization': (
<ColumnHead label="Localization" href="/x/react-data-grid/localization/" />
),
'date-picker/simple': <ColumnHead label="Date Picker" />,
'date-picker/range': <ColumnHead label="Date Range Picker" />,
'date-picker/simple': (
<ColumnHead label="Date and Time Pickers" href="/x/react-date-pickers/date-picker/" />
),
'date-picker/range': (
<ColumnHead
label="Date and Time Range Pickers"
href="/x/react-date-pickers/date-range-picker/"
/>
),

// -- charts - components --
'charts/line': <ColumnHead label="Line chart" href="/x/react-charts/lines/" />,
Expand Down Expand Up @@ -595,6 +602,13 @@ const rowHeaders: Record<string, React.ReactNode> = {
'charts/filter-interaction': <ColumnHead label="Row filtering" />,
'charts/selection-interaction': <ColumnHead label="Range selection" />,

'tree-view/simple-tree-view': (
<ColumnHead label="Simple Tree View" href="/x/react-tree-view/#simple-tree-view" />
),
'tree-view/rich-tree-view': (
<ColumnHead label="Rich Tree View" href="/x/react-tree-view/#rich-tree-view" />
),

'mui-x-production': <ColumnHead label="Perpetual use in production" />,
'mui-x-development': <ColumnHead label="Development license" tooltip="For active development" />,
'mui-x-development-perpetual': (
Expand Down Expand Up @@ -701,8 +715,8 @@ const communityData: Record<string, React.ReactNode> = {
// -- data grid - columns --
'data-grid/column-groups': yes,
'data-grid/column-spanning': yes,
'data-grid/column-resizing': no,
'data-grid/column-autosizing': no,
'data-grid/column-resizing': yes,
'data-grid/column-autosizing': yes,
'data-grid/column-reorder': no,
'data-grid/column-pinning': no,
// -- data grid - rows --
Expand Down Expand Up @@ -753,7 +767,7 @@ const communityData: Record<string, React.ReactNode> = {
'charts/scatter': yes,
'charts/pie': yes,
'charts/sparkline': yes,
'charts/gauge': pending,
'charts/gauge': yes,
'charts/treemap': pending,
'charts/heatmap': no,
'charts/radar': pending,
Expand All @@ -773,6 +787,9 @@ const communityData: Record<string, React.ReactNode> = {
'charts/filter-interaction': no,
'charts/selection-interaction': no,

'tree-view/simple-tree-view': yes,
'tree-view/rich-tree-view': yes,

// -- general --
'mui-x-production': yes,
'mui-x-updates': yes,
Expand Down Expand Up @@ -849,7 +866,7 @@ const proData: Record<string, React.ReactNode> = {
'charts/scatter': yes,
'charts/pie': yes,
'charts/sparkline': yes,
'charts/gauge': pending,
'charts/gauge': yes,
'charts/treemap': pending,
'charts/heatmap': pending,
'charts/radar': pending,
Expand All @@ -869,6 +886,9 @@ const proData: Record<string, React.ReactNode> = {
'charts/filter-interaction': pending,
'charts/selection-interaction': no,

'tree-view/simple-tree-view': yes,
'tree-view/rich-tree-view': yes,
Copy link
Member

Choose a reason for hiding this comment

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

@joserodolfofreitas we can prepare a follow up with upcoming tree view pro features


// -- general --
'mui-x-production': yes,
'mui-x-development': <Info value="1 year" />,
Expand Down Expand Up @@ -950,7 +970,7 @@ const premiumData: Record<string, React.ReactNode> = {
'charts/scatter': yes,
'charts/pie': yes,
'charts/sparkline': yes,
'charts/gauge': pending,
'charts/gauge': yes,
'charts/treemap': pending,
'charts/heatmap': pending,
'charts/radar': pending,
Expand All @@ -970,6 +990,9 @@ const premiumData: Record<string, React.ReactNode> = {
'charts/filter-interaction': pending,
'charts/selection-interaction': pending,

'tree-view/simple-tree-view': yes,
'tree-view/rich-tree-view': yes,

// -- general --
'mui-x-production': yes,
'mui-x-development': <Info value="1 year" />,
Expand Down Expand Up @@ -1565,6 +1588,10 @@ export default function PricingTable({
{renderNestedRow('charts/selection-interaction')}
</StyledCollapse>
{divider}
{renderRow('tree-view/simple-tree-view')}
{divider}
{renderRow('tree-view/rich-tree-view')}
{divider}
{renderRow('mui-x-production')}
{divider}
<PricingTableDevelopment renderRow={renderRow} />
Expand Down
Loading