Skip to content
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

Merged
merged 16 commits into from
Feb 19, 2025

Conversation

leecalcote
Copy link
Member

@leecalcote leecalcote commented Jan 28, 2025

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.

@github-actions github-actions bot added the component/ui User Interface label Jan 28, 2025
@leecalcote leecalcote added the pr/draft WIP/Draft pull request label Jan 28, 2025
@leecalcote leecalcote changed the title initiate move to dark "mode" provider ui [provider ui] initiate move to dark "mode" Jan 28, 2025
Copy link

github-actions bot commented Jan 28, 2025

@leecalcote
Copy link
Member Author

@FaheemOnHub will you kindly take over this PR and finish it off?

Signed-off-by: TheFaheem <[email protected]>
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
@sudhanshutech
Copy link
Member

sudhanshutech commented Feb 12, 2025

@FaheemOnHub i have complete your pr here itself and added fix which was needed. // @amitamrutiya
Will you guys take a look and review. If something needed to fix directly push here now.
{DA95597E-7073-4E0D-946B-6DA066C88142}

Signed-off-by: Sudhanshu Dasgupta <[email protected]>
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
Comment on lines 30 to 32
"isomorphic-unfetch": "^4.0.2",
"mui-datatables": "^4.3.0",
"next": "^13.5.4",
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Member

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.

Comment on lines 1 to 20
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>
);
};
Copy link
Contributor

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

Copy link
Contributor

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

@amitamrutiya
Copy link
Contributor

merge conflict.

Comment on lines 26 to 27
"@mui/icons-material": "^5.15.16",
"@mui/material": "^5.15.11",
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay no problem then

@FaheemOnHub
Copy link
Contributor

merge conflict.
not able to see conflict

@amitamrutiya
Copy link
Contributor

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.

@FaheemOnHub
Copy link
Contributor

@amitamrutiya import {ArrowDropDownIcon} from "@layer5/sistent" not present

@amitamrutiya
Copy link
Contributor

amitamrutiya commented Feb 18, 2025

use this icon @FaheemOnHub https://github.com/layer5io/sistent/blob/32f988ec6ff84df667a1794713858879efaf69f8/src/icons/DropDownIcon/DropDownIcon.tsx

@amitamrutiya
Copy link
Contributor

lint is failing @FaheemOnHub.

@FaheemOnHub
Copy link
Contributor

lint is failing @FaheemOnHub.

but in my pr , lint is fine. ?

@amitamrutiya amitamrutiya merged commit d6f3a2f into master Feb 19, 2025
9 checks passed
@amitamrutiya amitamrutiya deleted the leecalcote/provider-color/fix branch February 19, 2025 10:37
Copy link

END-TO-END TESTS

  • Testing started at: February 19th 2025, 10:50:04 am

📦 Test Result Summary

  • ✅ 29 passed
  • ❌ 1 failed
  • ⚠️ 5 flaked
  • ⏩ 0 skipped

Duration: 8 minutes and 7 seconds

Overall Result: 👎 Some tests failed.

[Show/Hide] Test Result Details
Test Browser Test Case Tags Result
1 chromium-meshery-provider Verify that UI components are displayed
2 chromium-meshery-provider Add a cluster connection by uploading kubeconfig file unstable ⚠️
3 chromium-meshery-provider Transition to disconnected state and then back to connected state unstable ⚠️
4 chromium-meshery-provider Transition to ignored state and then back to connected state unstable ⚠️
5 chromium-meshery-provider Transition to not found state and then back to connected state unstable ⚠️
6 chromium-meshery-provider Delete Kubernetes cluster connections unstable ⚠️
7 chromium-meshery-provider Compare test of a performance profile with load generator "fortio" and service mesh "None" unstable ⚠️
8 chromium-meshery-provider Delete a performance profile with load generator "fortio" and service mesh "None" unstable ⚠️
9 chromium-local-provider Add a cluster connection by uploading kubeconfig file unstable ⚠️
10 chromium-local-provider Transition to disconnected state and then back to connected state unstable ⚠️
11 chromium-local-provider Transition to ignored state and then back to connected state unstable ⚠️
12 chromium-local-provider Transition to not found state and then back to connected state unstable ⚠️
13 chromium-local-provider Delete Kubernetes cluster connections unstable ⚠️
14 chromium-local-provider Compare test of a performance profile with load generator "fortio" and service mesh "None" unstable ⚠️
15 chromium-local-provider Delete a performance profile with load generator "fortio" and service mesh "None" unstable ⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ui User Interface pr/draft WIP/Draft pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants