Skip to content

Conversation

@sai6855
Copy link
Contributor

@sai6855 sai6855 commented Jun 2, 2025

This pull request refines type safety and improves code clarity in the GridEditSingleSelectCell component within the packages/x-data-grid package. The changes focus on enhancing type definitions and simplifying event handling.

@sai6855 sai6855 marked this pull request as draft June 2, 2025 11:52
@github-actions
Copy link

github-actions bot commented Jun 2, 2025

Thanks for adding a type label to the PR! 👍

@sai6855 sai6855 added scope: data grid Changes related to the data grid. typescript type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Jun 2, 2025
@mui-bot
Copy link

mui-bot commented Jun 2, 2025

Deploy preview: https://deploy-preview-18184--material-ui-x.netlify.app/

Bundle size report

Bundle Parsed Size Gzip Size
@mui/x-data-grid 🔺+11B(0.00%) 🔺+9B(+0.01%)
@mui/x-data-grid/DataGrid 🔺+11B(0.00%) 🔺+10B(+0.01%)
@mui/x-data-grid-pro 🔺+11B(0.00%) 🔺+8B(+0.01%)
@mui/x-data-grid-pro/DataGridPro 🔺+11B(0.00%) 🔺+9B(+0.01%)
@mui/x-data-grid-premium 🔺+11B(0.00%) 🔺+7B(0.00%)
@mui/x-data-grid-premium/DataGridPremium 🔺+11B(0.00%) 🔺+9B(+0.01%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against f6e4858

function isKeyboardEvent(event: any): event is React.KeyboardEvent {
return !!event.key;
function isKeyboardEvent(event: React.SyntheticEvent): event is React.KeyboardEvent {
return 'key' in event && !!event.key;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change requires to add run-time logic to remove any, If additional run-time is not required to remove any here, i can revert this change

Copy link
Member

Choose a reason for hiding this comment

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

The change seems fine to me. 👍🏼

@sai6855 sai6855 requested a review from romgrk June 2, 2025 12:10
@sai6855 sai6855 marked this pull request as ready for review June 24, 2025 11:27
@github-actions
Copy link

This pull request has been inactive for 30 days. Please remove the stale label or leave a comment to keep it open. Otherwise, it will be closed in 15 days.

@github-actions github-actions bot added the stale Inactive for 7 days (issues) or 30 days (PRs); closed after 5 or 15 more days if no update. label Jul 29, 2025
@sai6855 sai6855 requested a review from michelengelen July 30, 2025 03:51
@michelengelen michelengelen removed the stale Inactive for 7 days (issues) or 30 days (PRs); closed after 5 or 15 more days if no update. label Jul 30, 2025
Copy link
Member

@michelengelen michelengelen left a comment

Choose a reason for hiding this comment

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

LGTM

function isKeyboardEvent(event: any): event is React.KeyboardEvent {
return !!event.key;
function isKeyboardEvent(event: React.SyntheticEvent): event is React.KeyboardEvent {
return 'key' in event && !!event.key;
Copy link
Member

Choose a reason for hiding this comment

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

The change seems fine to me. 👍🏼

@michelengelen michelengelen enabled auto-merge (squash) July 30, 2025 10:04
@michelengelen michelengelen merged commit 68a2ad4 into mui:master Jul 30, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: data grid Changes related to the data grid. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants