Skip to content

Feat/update mui resize#317

Merged
cristian-tamblay merged 16 commits into
developfrom
feat/update-mui-resize
Oct 2, 2025
Merged

Feat/update mui resize#317
cristian-tamblay merged 16 commits into
developfrom
feat/update-mui-resize

Conversation

@Creylay
Copy link
Copy Markdown
Collaborator

@Creylay Creylay commented Sep 30, 2025

Summary

Upgrade to MUI v7 to enable column resizing in Data Grid and align the codebase with the new package layout & APIs.

Key dependencies:

  • @mui/material, @mui/system, @mui/icons-material, @mui/utils: 7.x
  • @mui/x-data-grid: 7.x (enables column resize)
  • @mui/lab: 7.0.0-beta.x (only for LoadingButton and TabContext/TabPanel/TabList)
  • react-is: 18.3.1 (locked via Yarn resolutions for React 18)

Type of change

  • Front end new feature.
  • Refactoring.
  • Bug fix.

Changes

Data Grid

  • Enabled manual column resizing - Users can now drag column separators to adjust widths
  • Implemented initial auto width based on headerName length (respects minWidth/maxWidth)
  • Fixed header styling - Removed gray background, made headers transparent for consistency
  • Hidden resize separators by default - Only show on hover like previous behavior
  • Updated column definitions to MUI X v7 API:
    • Use valueGetter(value, row) instead of valueFormatter(params)
    • Dates use proper date handling with valueGetter returning valid Date objects
  • Removed deep imports and legacy aliases
  • Replaced deprecated APIs (e.g., StyledEngineProvider import path)
  • Grid layout migrated to new Grid: item + xs|sm|mdsize={{ xs, sm, md }}

@mui/lab usage

  • Kept only where needed: LoadingButton, TabContext/TabPanel/TabList

React Router

  • Opted into v7 future flags to silence warnings and smooth forward-compatibility:
    <BrowserRouter future={{ v7_relativeSplatPath: true, v7_startTransition: true }} />

How to Test

Install & run

yarn install
# Ensure package.json has:
# "resolutions": { "react-is": "18.3.1" }
yarn start

Screenshots

Before
image

After
image

- Update @mui/material, @mui/system, @mui/icons-material, @mui/utils to v7
- Upgrade @mui/x-data-grid to v7 (column resizing enabled by default)
- Add @mui/lab@7.0.0-beta.x for LoadingButton and Tabs context (TabContext/TabPanel/TabList)
- Pin react-is@18.3.1 via Yarn resolutions (React 18)
- Apply MUI codemods: deprecations/all, v7 grid-props, input-label-size-normal-medium
- Remove deep imports and any 'modern' aliases from bundler

BREAKING CHANGES:
- StyledEngineProvider must be imported from @mui/material/styles
- InputLabel size='normal' -> 'medium'
- Dialog/Modal onBackdropClick removed; use onClose(event, reason)
- Components still in @mui/lab (beta): LoadingButton, TabContext/TabPanel/TabList
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the codebase to MUI v7 to enable column resizing in DataGrid components and modernizes the package structure and APIs throughout the application.

  • Upgrades MUI packages to v7 and aligns with new API patterns including slotProps, valueGetter, and Grid size prop
  • Enables manual column resizing in DataGrid with improved styling and hover interactions
  • Migrates from deprecated InputProps/PaperProps to slotProps pattern across components

Reviewed Changes

Copilot reviewed 111 out of 112 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
DashAI/front/src/styles/theme.js Adds MuiDataGrid theme overrides for column resizing and header styling
DashAI/front/package.json Updates MUI dependencies to v7 and locks react-is version
DashAI/front/src/App.jsx Adds React Router v7 future flags for forward compatibility
Multiple component files Migrates Grid item prop to size object, Dialog PaperProps to slotProps, and InputProps to slotProps
DashAI/front/src/components/explorations/ExplorationRunner.jsx Updates LoadingButton import from @mui/lab to @mui/material

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread DashAI/front/src/components/datasets/ConverterTable.jsx
Comment thread DashAI/front/src/components/explorations/ExplorationRunner.jsx
Comment thread DashAI/front/src/components/datasets/ConvertDatasetModal.jsx
Comment thread DashAI/front/src/components/pipelines/PipelinesTable.jsx Outdated
Comment thread DashAI/front/src/components/pipelines/PipelinesTable.jsx Outdated
Comment thread DashAI/front/src/components/experiments/ExperimentsTable.jsx
Comment thread DashAI/front/src/components/custom/ItemSelectorWithInfo.jsx
@cristian-tamblay cristian-tamblay merged commit 2f46f5a into develop Oct 2, 2025
5 checks passed
@cristian-tamblay cristian-tamblay deleted the feat/update-mui-resize branch October 2, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants