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

[docs] Use new edit API in the introduction demos #5728

Merged
merged 2 commits into from
Aug 10, 2022

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Aug 7, 2022

Considering how much we are burying the demo of the legacy editing API, and that the legacy API is buggy, e.g. with the Escape key:

Screen.Recording.2022-08-07.at.23.39.34.mov

https://mui.com/x/react-data-grid/#mit-version

I believe it would make more sense to demo it on the introduction demos. I believe these demos are used by developers to judge whether they will use or not the component.

One step in this direction #5606.

Preview: https://deploy-preview-5728--material-ui-x.netlify.app/x/introduction/

@oliviertassinari oliviertassinari added docs Improvements or additions to the documentation component: data grid This is the name of the generic UI component, not the React module! feature: Editing Related to the data grid Editing feature labels Aug 7, 2022
@mui-bot
Copy link

mui-bot commented Aug 7, 2022

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 248.2 418.9 341 333.16 71.191
Sort 100k rows ms 481.6 924.5 703.1 731.32 151.228
Select 100k rows ms 226.9 269.4 245.5 246.58 16.666
Deselect 100k rows ms 118.2 315.6 205.9 211.72 84.957

Generated by 🚫 dangerJS against 5d7455c

@m4theushw
Copy link
Member

Editing the Status column in https://deploy-preview-5728--material-ui-x.netlify.app/x/react-data-grid/demo/ is throwing an error because the API method changed and this is a custom edit component. I'll take care of this...

@oliviertassinari
Copy link
Member Author

@m4theushw Nice catch

Copy link
Member

@m4theushw m4theushw left a comment

Choose a reason for hiding this comment

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

I pushed 5d7455c fixing the custom edit component.

A follow up may be to also use the new API in the demo in https://mui.com/x/

@m4theushw m4theushw merged commit a86f761 into mui:master Aug 10, 2022
@oliviertassinari oliviertassinari deleted the document-new-editing-API branch August 10, 2022 12:58
alexfauquette pushed a commit to alexfauquette/mui-x that referenced this pull request Aug 26, 2022
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! docs Improvements or additions to the documentation feature: Editing Related to the data grid Editing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants