-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update mui #395
Update mui #395
Conversation
@@ -31,7 +30,6 @@ | |||
"axios": "^1.7.9", | |||
"formik": "^2.4.6", | |||
"formik-mui": "5.0.0-alpha.0", | |||
"formik-mui-lab": "^1.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing some unused libraries
@@ -52,6 +50,7 @@ | |||
"yup": "^1.5.0" | |||
}, | |||
"devDependencies": { | |||
"@babel/plugin-proposal-private-property-in-object": "^7.21.11", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm gave me a warning that this was needed now.
<Router> | ||
<Router | ||
future={{ | ||
v7_startTransition: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These were recommended for react router during testing.
@@ -1321,7 +1321,7 @@ export const PluginsSelector = ({ | |||
id={`scan-features-${name}-header`} | |||
className={classes.pluginsSelectorAccordionSummary} | |||
> | |||
<Typography className={classes.heading}> | |||
<Typography component="div" className={classes.heading}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes a validateDOMNesting warning in React
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting this error when I resize the window to be smaller.
Running locally with npm start
:
http://localhost:3000/?repo=test-vs&submitContext=view&vcsOrg=goodVcs%2FgoodOrg
Uncaught runtime errors:
ResizeObserver loop completed with undelivered notifications.
at handleError (http://localhost:3000/static/js/bundle.js:120792:58)
at http://localhost:3000/static/js/bundle.js:120811:7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(not a blocker)
Getting a unit-test failure, but it appears to be a bug in Jest.
Here's what I'm getting when I run: npx react-scripts test --watchAll=false --env=jsdom --testPathPattern SearchPageMeta
:
RUNS src/custom/__tests__/SearchPageMeta.test.tsx
/home/zoogie/gitroot/artemis-ui/dev/node_modules/react-dom/cjs/react-dom.development.js:1564
return doc.body;
^
TypeError: Cannot read properties of null (reading 'body')
at getActiveElement (/home/zoogie/gitroot/artemis-ui/dev/node_modules/react-dom/cjs/react-dom.development.js:1731:16)
at getActiveElementDeep (/home/zoogie/gitroot/artemis-ui/dev/node_modules/react-dom/cjs/react-dom.development.js:8443:17)
at getSelectionInformation (/home/zoogie/gitroot/artemis-ui/dev/node_modules/react-dom/cjs/react-dom.development.js:8476:21)
at prepareForCommit (/home/zoogie/gitroot/artemis-ui/dev/node_modules/react-dom/cjs/react-dom.development.js:10912:26)
at commitBeforeMutationEffects (/home/zoogie/gitroot/artemis-ui/dev/node_modules/react-dom/cjs/react-dom.development.js:22980:27)
at commitRootImpl (/home/zoogie/gitroot/artemis-ui/dev/node_modules/react-dom/cjs/react-dom.development.js:26840:45)
at commitRoot (/home/zoogie/gitroot/artemis-ui/dev/node_modules/react-dom/cjs/react-dom.development.js:26721:5)
at finishConcurrentRender (/home/zoogie/gitroot/artemis-ui/dev/node_modules/react-dom/cjs/react-dom.development.js:26020:9)
at callback (/home/zoogie/gitroot/artemis-ui/dev/node_modules/react-dom/cjs/react-dom.development.js:25848:7)
at flushActQueue (/home/zoogie/gitroot/artemis-ui/dev/node_modules/react/cjs/react.development.js:2667:24)
at recursivelyFlushAsyncActWork (/home/zoogie/gitroot/artemis-ui/dev/node_modules/react/cjs/react.development.js:2633:9)
at Immediate.<anonymous> (/home/zoogie/gitroot/artemis-ui/dev/node_modules/react/cjs/react.development.js:2641:13)
at processImmediate (node:internal/timers:478:21)
jestjs/jest#12670 suggests that this is a Jest/jsdom issue, which is fixed in Jest 29.5.0.
Since the unit tests are completing successfully in CI, not treating this as a blocker.
I spent time digging into this and found that it can sometimes be masking another error, but sometimes not. I'll try running the tests again and see if I can reproduce it. That's the same file it was happening to me in. |
I cannot reproduce this. I can't find any code where we're using ResizeObserver directly. |
I ran tests again locally and got some errors about validateDOMNesting and keys not being passed into props properly. Going to take a look at those. No doc.body errors though. |
Related: webpack/webpack-dev-server#4812 & webpack/webpack-dev-server#4771 From what I can tell, this is a benign warning that can be ignored. I've added a backlog item to filter out the warning from the WDS overlay (after we've ejected from CRA). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the flaky test suite seems to running fine in CI, let's go ahead and get this merged. We can dig into the issues with that test suite later.
The code changes look good to me, and all of my manual UI testing has completed successfully (aside from the the benign ResizeObserver warnings).
Updating Material UI to latest version
How Has This Been Tested?
Tested in nonprod
Types of changes
Checklist
Pic