diff --git a/src/components/dashboard/ServiceCard.tsx b/src/components/dashboard/ServiceCard.tsx index 77e80bd..58a0c2e 100644 --- a/src/components/dashboard/ServiceCard.tsx +++ b/src/components/dashboard/ServiceCard.tsx @@ -3,6 +3,10 @@ import { Service, Node } from "../../types"; import Typography from "@mui/material/Typography"; import Card from "@mui/material/Card"; import CardContent from "@mui/material/CardContent"; +import Stack from "@mui/material/Stack"; +import IconButton from "@mui/material/IconButton"; +import LaunchIcon from "@mui/icons-material/Launch"; +import Tooltip from "@mui/material/Tooltip"; import Grid from "@mui/material/Unstable_Grid2"; interface ServiceCardProps { @@ -17,13 +21,39 @@ function normalizeServiceName(name: string): string { .replace(/\b\w/g, (s) => s.toUpperCase()); } -function ServiceNode(node: Node) { - return {node.name}; +interface ServiceNodePropps { + node: Node; +} + +function ServiceNode({ node }: ServiceNodePropps) { + return ( + + + + {node.name} + + + + {node.app_details?.app_version || "no version"} + + + + + + + + + + ); } export default function ServiceCard({ service }: ServiceCardProps) { const nodes = service.nodes.map((node) => { - return ServiceNode(node); + return ( + <> + + + ); }); return ( @@ -32,7 +62,7 @@ export default function ServiceCard({ service }: ServiceCardProps) { {normalizeServiceName(service.name)} - {nodes} + {nodes} );