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

[blog] Add a post for the Tree View migration #38407

Merged
merged 15 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from 6 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
32 changes: 16 additions & 16 deletions docs/pages/blog/lab-date-pickers-to-mui-x.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
---
title: Date and time pickers are moving to MUI X
description: Migrate to the new package to start building with our powerful date and time pickers, now part of MUI X. Previously released MIT components will stay MIT.
title: Date and Time Pickers are moving to MUI X
description: Migrate to the new package to start building with our powerful Date and Time Pickers, now part of MUI X. Previously released MIT components will stay MIT.
date: 2022-04-03T00:00:00.000Z
authors: ['flaviendelangle']
tags: ['MUI X', 'News']
card: true
card: false
---

After more than 18 months in the lab, the date and time picker components have found a new home as part of MUI X.
After more than 18 months in the lab, the Date and Time Picker components have found a new home as part of MUI X.
This means we'll be dedicating even more time and effort to these complex components, to better meet the needs of both you and your users.

## TL;DR

- The date pickers are one step closer to a stable release.
- The Date and Time Pickers are one step closer to a stable release.
- **No surprise licenses changes**. We are staying true to [our promises](https://mui-org.notion.site/Stewardship-542a2226043d4f4a96dfb429d16cf5bd). What's MIT stays MIT, and we're going forward with our [plan announced over a year ago](https://v5-0-6.mui.com/components/date-range-picker/) to move the date range picker to the commercial license.
- Follow the [migration steps](/x/migration/migration-pickers-lab/)

## What are date and time pickers?
## What are Date and Time Pickers?

Date and time pickers are interface controls that enable the user to select a date (or time) from a menu.
Date and Time Pickers are interface controls that enable the user to select a date (or time) from a menu.

<img src="/static/blog/lab-date-pickers-to-mui-x/date-time-picker.png" style="width: 796px; margin-top: 16px;" alt="Date and time picker component" />
<img src="/static/blog/lab-date-pickers-to-mui-x/date-time-picker.png" style="width: 796px; margin-top: 16px;" alt="Date and Time Picker component" />

<p class="blog-description">Date and time pickers using the default Material UI design</p>
<p class="blog-description">Date and Time Pickers using the default Material UI design</p>

Common design patterns include text inputs, dropdown lists, calendars, timelines, and scrolling pickers on mobile devices.

Expand All @@ -39,17 +39,17 @@ MUI X components are available under two licenses:
- MUI X is MIT licensed, so free to use.
- MUI X Pro includes the most advanced features, and is commercially licensed.

## Why have the date and time pickers been moved to MUI X?
## Why have the Date and Time Pickers been moved to MUI X?

Date and time picker UI elements appear simple enough on the surface, but they are surprisingly complicated to engineer.
Date and Time Picker UI elements appear simple enough on the surface, but they are surprisingly complicated to engineer.

When the picker components were ready to leave the lab, we had a choice to make: would they live in the MUI Core library, or should they become a part of MUI X?
When the Date and Time Picker components were ready to leave the lab, we had a choice to make: would they live in the MUI Core library, or should they become a part of MUI X?

Given the complex nature of these components, we decided that they would benefit most from the dedicated attention that they would receive from the X team.

And by offering an even more advanced component package through our commercial license, we can continue to grow our team to better serve your needs.

The date and time picker components are now available in two packages:
The Date and Time Picker components are now available in two packages:

- `@mui/x-date-pickers` has a [MIT license](https://unpkg.com/browse/@mui/x-date-pickers/LICENSE), it contains all the open-source components
- `@mui/x-date-pickers-pro` has a [commercial license](https://unpkg.com/browse/@mui/x-date-pickers-pro/LICENSE), it contains all the MIT and commercially licensed components
Expand All @@ -58,7 +58,7 @@ The date and time picker components are now available in two packages:

The date range components can only be used with a commercial license.

All other date and time picker components are available in `mui/x-date-pickers` and will remain MIT licensed and free forever.
All other Date and Time Picker components are available in `mui/x-date-pickers` and will remain MIT licensed and free forever.

## How do I purchase a commercial license?

Expand Down Expand Up @@ -87,11 +87,11 @@ We have prepared a codemod to help you migrate your codebase from `@mui/lab` to
npx @mui/codemod v5.0.0/date-pickers-moved-to-x <path>
```

## Where is the date and time picker documentation?
## Where is the Date and Time Picker documentation?

You can find the documentation for the picker components in the [MUI X docs](/x/react-date-pickers/getting-started/).

## What's next for the date and time pickers?
## What's next for the Date and Time Pickers?

For now, `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` are in alpha.
Our next goal is to work on the stability and API consistency of these components to prepare a stable release.
7 changes: 7 additions & 0 deletions docs/pages/blog/lab-tree-view-to-mui-x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import * as React from 'react';
import TopLayoutBlog from 'docs/src/modules/components/TopLayoutBlog';
import { docs } from './lab-tree-view-to-mui-x.md?@mui/markdown';

export default function Page() {
return <TopLayoutBlog docs={docs} />;
}
83 changes: 83 additions & 0 deletions docs/pages/blog/lab-tree-view-to-mui-x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---
title: The Tree View is moving to MUI X
description: Migrate to the new package to start building with our powerful Tree View, now part of MUI X. Previously released MIT components will stay MIT.
date: 2023-08-21T00:00:00.000Z
authors: ['flaviendelangle']
tags: ['MUI X', 'News']
card: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
card: true
card: false

unless you will add card later?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed 👍

Copy link
Member

Choose a reason for hiding this comment

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

---

After more than 4 years in the lab, the [Tree View](https://mui.com/x/react-tree-view/) components have found a new home as part of MUI X.
This means we'll be dedicating even more time and effort to these complex components, to better meet the needs of both you and your users.

## TL;DR

- The Tree View is one step closer to a stable release.
- **No surprise licenses changes**. We are staying true to [our promises](https://mui-org.notion.site/Stewardship-542a2226043d4f4a96dfb429d16cf5bd).
What's MIT stays MIT.
Therefore, all the existing features and future features of the Tree View will remain MIT and free to use.
- Follow the [migration steps](/x/migration/migration-tree-view-lab/)

## What is the Tree View?

The Tree View is a component to represent hierarchical data presented as nodes in a tree-like format.

The component allows to select one or multiple nodes.

<video preload="metadata" style="margin-bottom: 16px;" autoplay muted loop>
<source src="/static/blog/lab-tree-view-to-mui-x/treeview.mov" type="video/mp4">
</video>

## What is MUI X?

[MUI X](/x/) is a collection of advanced components built for complex use cases.

As opposed to the MUI Core library, which leans on the open-source community for support, MUI X components require several full-time developers dedicated to engineering and ongoing maintenance.

MUI X components are available under two licenses:
flaviendelangle marked this conversation as resolved.
Show resolved Hide resolved

- MUI X is MIT licensed, so it's free to use.
flaviendelangle marked this conversation as resolved.
Show resolved Hide resolved
- MUI X Pro includes the most advanced features and is commercially licensed.
flaviendelangle marked this conversation as resolved.
Show resolved Hide resolved

## Why did the Tree View move to MUI X?
Copy link
Member

Choose a reason for hiding this comment

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

I think one of the reasons we could raise is that we want to go beyond what's offered in the MIT space.

I would perhaps argue like this:

"Once a component is ready to leave the lab, it can either go to MUI X or MUI Core libraries.
Given the nature of the Treeview components, it was a clear choice to group it with the other advanced components.
Besides, we plan to improve it beyond what's offered in the MIT space with extra fine-tuned features for enterprise and data-rich applications."


When the Tree View component was ready to leave the lab, we had a choice to make: live in the MUI Core library or become a part of MUI X?
flaviendelangle marked this conversation as resolved.
Show resolved Hide resolved

This component would greatly benefit from advanced features such as virtualization of drag and drop.
flaviendelangle marked this conversation as resolved.
Show resolved Hide resolved

Given the complex nature of these features, we decided that it would benefit most from the dedicated attention that they would receive from the X team.
flaviendelangle marked this conversation as resolved.
Show resolved Hide resolved

The Tree View components is now available in the `@mui/x-tree-view` package which has a [MIT license](https://unpkg.com/browse/@mui/x-tree-view/LICENSE).
flaviendelangle marked this conversation as resolved.
Show resolved Hide resolved

## How do I migrate?

Follow the [migration steps](/x/migration/migration-tree-view-lab/) by updating the package name and change from a default export to a named export:

```diff
-import TreeView from '@mui/lab/TreeView';
+import { TreeView } from '@mui/x-tree-view/TreeView';

-import { TreeView, TreeItem } from '@mui/lab';
+import { TreeView, TreeItem } from '@mui/x-tree-view';
```

We have prepared a codemod to help you migrate your codebase from `@mui/lab` to `@mui/x-tree-view`:

```bash
npx @mui/codemod v5.0.0/tree-view-moved-to-x <path>
```

## Where is the Tree View documentation?

You can find the documentation for the Tree View component in the [MUI X docs](/x/react-tree-view/).

## What's next for the Tree View?

For now, `@mui/x-tree-view` is in alpha.
Our next goal is to work on the stability and API consistency of its components to prepare a stable release on the next few months.

Please feel free to try out the component and provide any feedback you may have.

We also have a dedicated channel in our [Discord Server](https://mui.com/r/discord/) for you to provide any feedback or concerns you have with Tree View.

Happy building!
Binary file not shown.