diff --git a/src/components/dashboard/ServiceCard.tsx b/src/components/dashboard/ServiceCard.tsx
index f795898..1d961c0 100644
--- a/src/components/dashboard/ServiceCard.tsx
+++ b/src/components/dashboard/ServiceCard.tsx
@@ -1,5 +1,5 @@
import React from "react";
-import { Service, Node } from "../../types";
+import { Service, Node, StatusPerTenant } from "../../types";
import Typography from "@mui/material/Typography";
import Card from "@mui/material/Card";
import CardContent from "@mui/material/CardContent";
@@ -9,6 +9,7 @@ import LaunchIcon from "@mui/icons-material/Launch";
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";
interface ServiceCardProps {
service: Service;
@@ -22,6 +23,8 @@ function normalizeServiceName(name: string): string {
.replace(/\b\w/g, (s) => s.toUpperCase());
}
+function TenantsStatusTooltip(tenantsStatus: StatusPerTenant) {}
+
interface ServiceNodePropps {
node: Node;
}
@@ -48,7 +51,19 @@ function ServiceNode({ node }: ServiceNodePropps) {
switch (okValues.length) {
case 0:
- tenantsStatus = ;
+ tenantsStatus = (
+
+ Tooltip with HTML
+ {"And here's"} {"some"} {"amazing content"}.{" "}
+ {"It's very engaging. Right?"}
+
+ }
+ >
+
+
+ );
break;
case tenantsHealth.length:
tenantsStatus = ;
diff --git a/src/scss/_common.scss b/src/scss/_common.scss
index 5de6906..6cb34a8 100644
--- a/src/scss/_common.scss
+++ b/src/scss/_common.scss
@@ -2,3 +2,8 @@ body {
margin: 0;
background-color: whitesmoke;
}
+
+.MuiTooltip-tooltip {
+ font-size: 1rem !important;
+ max-width: 500px !important;
+}
diff --git a/src/scss/_service-card.scss b/src/scss/_service-card.scss
index 0bc5578..7c97f47 100644
--- a/src/scss/_service-card.scss
+++ b/src/scss/_service-card.scss
@@ -44,3 +44,6 @@ $color-danger: #d32f2f;
}
}
}
+
+.MuiTooltip-tooltip .tenants-status-tooltip {
+}
diff --git a/src/types.tsx b/src/types.tsx
index f20bdcf..5ce4be5 100644
--- a/src/types.tsx
+++ b/src/types.tsx
@@ -4,7 +4,7 @@ export type EnvTab = {
dashboardEndpoint: string;
};
-type StatusPerTenant = { [tenantId: string]: boolean };
+export type StatusPerTenant = { [tenantId: string]: boolean };
type HealthCheckStatus = {
status_ok: boolean;