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
9 of 10 tasks
oliviertassinari opened this issue Aug 25, 2024 · 5 comments
Open
9 of 10 tasks

[Grid2] Rollout plan #43437

oliviertassinari opened this issue Aug 25, 2024 · 5 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

@siriwatknp
Copy link
Member

@DiegoAndai What's the checkboxes PR will cross?

I can help with the one that the PR hasn't addressed.

@DiegoAndai
Copy link
Member

DiegoAndai commented Feb 19, 2025

Hey @siriwatknp, #45304 will complete 0.a, 0.b, and 0.c. I've already started working on the other steps but need #45304 to be merged first. I'll let you know if I need help with any of these 👍🏼

@DiegoAndai
Copy link
Member

I'll move this issue out of the v7 milestone and into the v8 one. All work for v7 has been completed, the only thing missing from the tasks is to remove GridLegacy on v8.

@DiegoAndai DiegoAndai moved this from In progress to Selected in Material UI Feb 24, 2025
@DiegoAndai DiegoAndai moved this from Selected to Backlog in Material UI Feb 24, 2025
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
Status: Backlog
Development

No branches or pull requests

3 participants