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

[Grid2] Rollout plan #43437

Open
10 tasks
oliviertassinari opened this issue Aug 25, 2024 · 2 comments
Open
10 tasks

[Grid2] Rollout plan #43437

oliviertassinari opened this issue Aug 25, 2024 · 2 comments
Assignees
Labels
component: Grid The React component. umbrella For grouping multiple issues to provide a holistic view v6.x migration

Comments

@oliviertassinari
Copy link
Member

oliviertassinari commented Aug 25, 2024

Summary

We recently made Grid v2 stable, #43054 so now it's time to look at the rollout plan, effectively to get completely get rid of the old one.

A possible action plan:

  • 0. Fix the migration experience
  • 0.a. There is no clear warning when doing <Grid2 item>. It says:
SCR-20241127-papu

I think we need a custom prop type instead, that clearly explain that this is a Grid v1 prop, that you can now remove the prop.

  • 0.b. There is no clear prop-type warning when doing <Grid2 xs={12}>. The attribute gets silently applied to the DOM:
SCR-20241127-pcfd

Motivation

Simplicity

@oliviertassinari oliviertassinari added umbrella For grouping multiple issues to provide a holistic view component: Grid The React component. status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 25, 2024
@siriwatknp siriwatknp added v6.x migration and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 26, 2024
@DiegoAndai
Copy link
Member

DiegoAndai commented Aug 28, 2024

The plan looks good overall, @oliviertassinari 👌🏼

The only step I'm not sure of is:

  1. Reexport Grid v2 from @mui/system/Grid2 getting one step closer to move everyone imports from @mui/material to mui/system [RFC] Remove @mui/material default theme and @mui/system, @pigment-css/react reexports #40594

I don't know the long-term vision for the system package, and we need to solve that before setting the goal of moving everyone to import Grid from it. This is not the issue to discuss this. @aarongarciah and @colmtuite should probably lead the discussion.

@oliviertassinari
Copy link
Member Author

oliviertassinari commented Nov 27, 2024

The only step I'm not sure of is: 2. Reexport Grid v2 from […]

@DiegoAndai Alright, I have removed that step.


Since this new Grid has been here for about 6 months but we haven't completed the work, and since we can't start anything new until we finish what we started (so we only start things we have the bandwidth to see through), I have tried to help a bit with step 3. in https://github.com/mui/mui-private/pull/685.

I have struggled a bit, it was frustrating, I think that we have clear opportunities to turn this into a great DX. I believe we need to do:

  • a. There is no clear warning when doing <Grid2 item>. It says:
SCR-20241127-papu

I think we need a custom prop type instead, that clearly explain that this is a Grid v1 prop, that you can now remove the prop.

  • b. There is no clear prop-type warning when doing <Grid2 xs={12}>. The attribute gets silently applied to the DOM:
SCR-20241127-pcfd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Grid The React component. umbrella For grouping multiple issues to provide a holistic view v6.x migration
Projects
None yet
Development

No branches or pull requests

3 participants