-
-
Notifications
You must be signed in to change notification settings - Fork 4
Client Core MUI Isolation and Storybook UI #7583
Conversation
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.
Seeing some bugs that hopefully only require minor fixes:
-
There's a purplish border on some button on the admin pages. Here's a screenshot from /admin/projects; the three big buttons at the top and the Refresh Github Repo Access button have this border:

-
/admin/routes is throwing this:
Warning: Styled(input) contains an input of type checkbox with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components
at input
at O2 (https://localhost:3000/node_modules/.vite/deps/chunk-SGXG4WFK.js?v=09e9b42f:1066:6)
at span
at O2 (https://localhost:3000/node_modules/.vite/deps/chunk-SGXG4WFK.js?v=09e9b42f:1066:6)
at ButtonBase2 (https://localhost:3000/node_modules/.vite/deps/chunk-LNA6ROTB.js?v=09e9b42f:10261:17)
at O2 (https://localhost:3000/node_modules/.vite/deps/chunk-SGXG4WFK.js?v=09e9b42f:1066:6)
at SwitchBase2 (https://localhost:3000/node_modules/.vite/deps/@mui_material.js?v=09e9b42f:9195:5)
at O2 (https://localhost:3000/node_modules/.vite/deps/chunk-SGXG4WFK.js?v=09e9b42f:1066:6)
at Checkbox2 (https://localhost:3000/node_modules/.vite/deps/@mui_material.js?v=09e9b42f:9483:17)
at Checkbox
at td
at O2 (https://localhost:3000/node_modules/.vite/deps/chunk-SGXG4WFK.js?v=09e9b42f:1066:6)
at TableCell2 (https://localhost:3000/node_modules/.vite/deps/@mui_material.js?v=09e9b42f:29670:17)
at TableCell (https://localhost:3000/@fs/home/kyle/Development/Forks/xrengine/packages/ui/src/TableCell/index.tsx:3:22)
<snip>
- /admin/avatars is throwing the same error about checkboxes, and also:
Uncaught TypeError: Cannot read properties of undefined (reading 'state')
at getRendererSceneMetadataState (WebGLRendererSystem.ts:323:59)
at ShadowSystem.ts:107:37
at renderWithHooks (react-reconciler.development.js:7478:18)
at mountIndeterminateComponent (react-reconciler.development.js:11247:13)
<snip>
- /admin/bots is throwing this:
react.development.js:209 Warning: Failed prop type: Invalid prop `className` of type `object` supplied to `ForwardRef(Dialog2)`, expected `string`.
at Dialog2 (https://localhost:3000/node_modules/.vite/deps/@mui_material.js?v=09e9b42f:10511:17)
at Dialog (https://localhost:3000/@fs/home/kyle/Development/Forks/xrengine/packages/ui/src/Dialog/index.tsx:6:19)
at div
at UpdateBot (https://localhost:3000/@fs/home/kyle/Development/Forks/xrengine/packages/client-core/src/admin/components/Bots/UpdateBot.tsx:19:22)
at div
at DisplayBots (https://localhost:3000/@fs/home/kyle/Development/Forks/xrengine/packages/client-core/src/admin/components/Bots/DisplayBots.tsx:19:35)
<snip>
- On /admin/locations, when I click on the 'View' button for a location, or click on the Create Location button, I get this:
Uncaught TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at index.tsx:79:30
at commitHookEffectListMount (react-dom.development.js:23150:26)
at commitPassiveMountOnFiber (react-dom.development.js:24931:11)
index.tsx is in the stack trace is client-core/src/common/components/InputText/index.tsx
- /admin/users is now throwing
Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of `ForwardRef(Tooltip2)`.
at Icon (https://localhost:3000/@fs/home/kyle/Development/Forks/xrengine/packages/ui/src/Icon/index.tsx:135:17)
at Tooltip2 (https://localhost:3000/node_modules/.vite/deps/@mui_material.js?v=4635a9a8:25885:17)
at Tooltip
at div
at O2 (https://localhost:3000/node_modules/.vite/deps/chunk-SGXG4WFK.js?v=c28205d6:1066:6)
at Box3 (https://localhost:3000/node_modules/.vite/deps/chunk-GF2L3GBV.js?v=c28205d6:2052:19)
at Box (https://localhost:3000/@fs/home/kyle/Development/Forks/xrengine/packages/ui/src/Box/index.tsx:3:16)
- On /admin/settings, the icons next to each setting type is the EE Chevron instead of an individualized icon.
|
Icons should be fixed. @barankyle there are several of these types of errors that need to be fixed. But are unrelated to this PR. Can you check dev and create issues for these? |
I've updated the list with what I currently see, but how are some of these things not related to this PR if they didn't appear before it? |
|
On running Also how to run storybook on my end. I tried running |
|
I also faced the issues which Kyle mentioned, specially the purple border around buttons and icon on |
|
@barankyle @hanzlamateen thanks for the thorough review! It appears that this PR depends on another one #7614 So, let's get that other PR reviewed and merged in first, as some of the issues we are seeing here may originate in the React Router upgrade. |
This is most likely an incompatibly with Node / openssl. I'm on version 16. Newer versions are much more strict on allowing insecure servers. There's a --openssl-legacy-provider flag to ignore this. |





Summary
UI Package with storybook integration. Absorbed all MUI components from client-core to /packages/UI
References
closes #7500