chore(6937): migrate Snaps date/time pickers from MUI v4 → @mui/x-date-pickers v6#41956
chore(6937): migrate Snaps date/time pickers from MUI v4 → @mui/x-date-pickers v6#41956Copilot wants to merge 12 commits into
Conversation
…pickers) Agent-Logs-Url: https://github.com/MetaMask/metamask-extension/sessions/48e8cda0-8df8-4922-a149-15afc822cec0 Co-authored-by: MajorLift <34228073+MajorLift@users.noreply.github.com>
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
|
@metamaskbot update-policies |
✨ Files requiring CODEOWNER review ✨🫰 @MetaMask/core-platform (5 files, +712 -170)
📜 @MetaMask/policy-reviewers (12 files, +2588 -384)
Tip Follow the policy review process outlined in the LavaMoat Policy Review Process doc before expecting an approval from Policy Reviewers. 🧪 @MetaMask/qa (1 files, +17 -12)
|
|
Policies updated. Tip Follow the policy review process outlined in the LavaMoat Policy Review Process doc before expecting an approval from Policy Reviewers. 👀 lavamoat/browserify/beta/policy.json changes differ from main/policy.json policy changes |
Builds ready [f59a55b]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 8 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
…-date-time-pickers
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [b9896ff]
⚡ Performance Benchmarks (Total: 🟢 0 pass · 🟡 0 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
…-date-time-pickers
Builds ready [f9c83aa]
⚡ Performance Benchmarks (Total: 🟢 0 pass · 🟡 0 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
|
Policies updated. Tip Follow the policy review process outlined in the LavaMoat Policy Review Process doc before expecting an approval from Policy Reviewers. 👀 lavamoat/browserify/beta/policy.json changes differ from lavamoat/browserify/main/policy.json changes |
Builds ready [8fd8e1f]
⚡ Performance Benchmarks (Total: 🟢 0 pass · 🟡 0 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [505793c]
⚡ Performance Benchmarks (Total: 🟢 0 pass · 🟡 0 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [f289f3d]
⚡ Performance Benchmarks (Total: 🟢 0 pass · 🟡 0 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [0b168f0] [reused from 7868297]
⚡ Performance Benchmarks (Total: 🟢 0 pass · 🟡 0 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
|
Builds ready [7ffd09a]
⚡ Performance Benchmarks (Total: 🟢 15 pass · 🟡 10 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|



Replaces the legacy
@material-ui/pickers(MUI v4-era) dependency with@mui/x-date-pickers@6across the three Snaps date/time picker files.Dependency changes
@mui/x-date-pickers@^6.20.2,@mui/material@^5.18.0,@emotion/react@^11.14.0,@emotion/styled@^11.14.0@material-ui/pickers,@date-io/luxon(adapter now built into@mui/x-date-pickers)snap-ui-date-time-picker.tsx@material-ui/pickers→@mui/x-date-pickers/{DatePicker,DateTimePicker,TimePicker}makeStylesreplaced with a plainpickerInputSxconstant passed viaslotProps.textField.sxclearable,clearLabel,cancelLabel,okLabel); clear/cancel/accept restored viaslotProps.actionBar.actionsvariant: 'standard'withdisableUnderline: trueto preserve the original custom-border looksnap-ui-renderer.jsMuiPickersUtilsProvider+LuxonUtils→LocalizationProvider+AdapterLuxon(both from@mui/x-date-pickers)ThemeProviderimport moved from@material-ui/core/styles→@mui/material/stylesutils.tscreateTheme/ThemeOptionsmoved from@material-ui/core/styles→@mui/material/stylesMuiPickersOverridestype (MUI v4 only)muiPickerThememigrated from v4overrides→ v5components[X].styleOverrides, with component names updated (e.g.MuiPickersModal→MuiDialog,MuiPickersClock→MuiClock, slot keys updated throughout)Test snapshots updated to reflect new MUI v5 class names.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
ofcncog2cu-dsn.algolia.net/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/yarn add @mui/material@^5.18.0 ules��(dns block)/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/yarn add @emotion/react@^11.14.0 @emotion/styled@^11.14.0 it} --global s/.bin/node committer.email(dns block)If you need me to access, download, or install something from one of these locations, you can either: