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

[codemod] Remove disableExtendRowFullWidth prop #7508

Merged

Conversation

MBilalShafi
Copy link
Member

@MBilalShafi MBilalShafi commented Jan 13, 2023

Part of #7086
Codemod for change done in #7373

  • Update README
  • Update Migration Guide

@MBilalShafi MBilalShafi added component: data grid This is the name of the generic UI component, not the React module! v6.x package: codemod Specific to @mui/codemod labels Jan 13, 2023
@MBilalShafi MBilalShafi self-assigned this Jan 13, 2023
@mui-bot
Copy link

mui-bot commented Jan 13, 2023

Messages
📖 Netlify deploy preview: https://deploy-preview-7508--material-ui-x.netlify.app/

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 620.6 1,012.3 629 774.94 155.683
Sort 100k rows ms 614.7 1,049.1 614.7 887.76 150.838
Select 100k rows ms 172.8 302.8 267.8 251.72 48.611
Deselect 100k rows ms 134.2 222.1 196.8 187.18 32.726

Generated by 🚫 dangerJS against 462a0c4

@@ -65,7 +65,7 @@ The minimum supported Node.js version has been changed from 12.0.0 to 14.0.0, si
The old behavior can be restored by using `apiRef.current.stopRowEditMode({ ignoreModifications: true })` or `apiRef.current.stopCellEditMode({ ignoreModifications: true })`.
- The `onColumnVisibilityChange` prop was removed. Use `onColumnVisibilityModelChange` instead.
- The `components.Header` slot was removed. Use `components.Toolbar` slot instead.
- The `disableExtendRowFullWidth` prop was removed.
- The `disableExtendRowFullWidth` prop was removed.
Copy link
Member

Choose a reason for hiding this comment

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

How does user reach the same behavior without this prop?

Copy link
Member Author

Choose a reason for hiding this comment

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

If the purpose is to show/hide the right border for last column/header cell, showCellVerticalBorder and showColumnVerticalBorder could be used to achieve that. disableExtendRowFullWidth was only adding a border to the right of last cell. We can try to have a proper fix for this if requested by some users.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe worth adding a small sentence like

You can reproduce the behavior by adding a right border to rows' last cell

Otherwise, as a user reading the breaking change, I see the prop has been removed, but I have no clue about the impact it has (especially if the dev how added it is not anymore in the team). Which is not good for the confidence dev have in the migration guide

@MBilalShafi MBilalShafi changed the title [codemod] Remove disableExtendRowFullWidth prop [codemod] Remove disableExtendRowFullWidth prop Jan 16, 2023
@MBilalShafi MBilalShafi reopened this Jan 17, 2023
@MBilalShafi MBilalShafi merged commit f9a86bf into mui:next Jan 18, 2023
@MBilalShafi MBilalShafi deleted the codemod-remove-disableExtendRowFullWidth-prop branch January 18, 2023 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! package: codemod Specific to @mui/codemod v6.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants