diff --git a/src/components/dashboard/ServiceCard.tsx b/src/components/dashboard/ServiceCard.tsx index 8cc94c0..59ca61f 100644 --- a/src/components/dashboard/ServiceCard.tsx +++ b/src/components/dashboard/ServiceCard.tsx @@ -10,6 +10,9 @@ import Tooltip from "@mui/material/Tooltip"; import Chip from "@mui/material/Chip"; import Grid from "@mui/material/Unstable_Grid2"; import Box from "@mui/material/Box"; +import Link from "@mui/material/Link"; +import Avatar from "@mui/material/Avatar"; +import { green, red } from "@mui/material/colors"; interface ServiceCardProps { service: Service; @@ -50,11 +53,15 @@ interface ServiceNodePropps { function ServiceNode({ node }: ServiceNodePropps) { const nodeName = node.health_check_status?.status_ok ? ( - + + {node.name} + ) : ( - + + {node.name} + ); @@ -88,21 +95,18 @@ function ServiceNode({ node }: ServiceNodePropps) { } } + const nodeUrl = node.url.replace("http://", "").replace("https://", ""); + return ( - - {nodeName} - + + {nodeName} + {node.app_details?.app_version || "no version"} - - - - - - - - {tenantsStatusContent} - - + + {nodeUrl} + + + ); } diff --git a/src/scss/_service-card.scss b/src/scss/_service-card.scss index 2dbc5da..27902bf 100644 --- a/src/scss/_service-card.scss +++ b/src/scss/_service-card.scss @@ -3,7 +3,7 @@ $color-warning: #ed6c02; $color-danger: #d32f2f; .service-card { - width: 400px; + width: 450px; .service-title-container { color: white; background-color: #15232d; @@ -29,8 +29,15 @@ $color-danger: #d32f2f; } .service-node { + align-items: center; + gap: 1rem; + .node-name { font-weight: bold; + border-radius: 10px; + } + .version { + font-weight: bold; } .status { display: flex; @@ -42,6 +49,9 @@ $color-danger: #d32f2f; margin-left: 0.5rem; } } + a { + font-family: Verdana, Geneva, Tahoma, sans-serif; + } } .MuiCardContent-root {