-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[provider ui] initiate move to dark "mode" #13390
Conversation
Signed-off-by: Lee Calcote <[email protected]>
|
@FaheemOnHub will you kindly take over this PR and finish it off? |
Signed-off-by: TheFaheem <[email protected]>
Signed-off-by: TheFaheem <[email protected]>
…o leecalcote/provider-color/fix
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
@FaheemOnHub i have complete your pr here itself and added fix which was needed. // @amitamrutiya |
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
"isomorphic-unfetch": "^4.0.2", | ||
"mui-datatables": "^4.3.0", | ||
"next": "^13.5.4", |
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.
is there any need of adding mui-datatables library @FaheemOnHub
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.
basically when i added @layer5/sistent package , it started giving error and told to install mui-database package
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.
its peer dependency inside sistent that's why i guess it needed to install.
import React from "react"; | ||
import { useTheme } from "@mui/material/styles"; | ||
import { SistentThemeProviderWithoutBaseLine } from "@layer5/sistent"; | ||
|
||
export const UsesSistent = ({ children }) => { | ||
const theme = useTheme(); | ||
const mode = theme.palette.type; | ||
if (mode === "dark") { | ||
return ( | ||
<SistentThemeProviderWithoutBaseLine initialMode={mode}> | ||
{children} | ||
</SistentThemeProviderWithoutBaseLine> | ||
); | ||
} | ||
return ( | ||
<SistentThemeProviderWithoutBaseLine initialMode={mode}> | ||
{children} | ||
</SistentThemeProviderWithoutBaseLine> | ||
); | ||
}; |
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.
We don't need this wrap the root component with the SistentThemeProvider only
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.
Ohh you already did, remove this file
merge conflict. |
provider-ui/package.json
Outdated
"@mui/icons-material": "^5.15.16", | ||
"@mui/material": "^5.15.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.
@FaheemOnHub try if you we are able to remove @mui/material library from the provider UI. use only @layer5/sistent instead of the mui/material
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.
what about NoSsr and ClickAwayListener
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.
Okay no problem then
|
Signed-off-by: Amit Amrutiya <[email protected]>
I resolved the merge conflict @FaheemOnHub. I added new component like nossr to sistent and made a sistent release. Now you are able to get all of the component from the sistent. so remove @mui/material and @mui/icons-material library completely and try to remove the emotion library as well if possible. |
@amitamrutiya import {ArrowDropDownIcon} from "@layer5/sistent" not present |
Signed-off-by: TheFaheem <[email protected]>
Signed-off-by: TheFaheem <[email protected]>
lint is failing @FaheemOnHub. |
but in my pr , lint is fine. ? |
[provider ui] initiate move to dark "mode"
END-TO-END TESTS
📦 Test Result Summary
⌛ Duration: 8 minutes and 7 seconds Overall Result: 👎 Some tests failed. [Show/Hide] Test Result Details
|
Signed-off-by: Lee Calcote [email protected]
This PR initiates a dark "mode" version of the provider UI, which modernizes the UI and starts users off in what is the default mode inside of measure UI anyway: dark mode.
Notes for reviewers:
HELP WANTED: This PR is incomplete and is in need of assistance from anyone who's willing. The there are just a few other Font and component colors to change so that the right contrast is in place for this new dark colored theme.