Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
fix: hide the tooltip if no description is provided (#133)
Glenn Latommef923b037e7dd
diff --git a/apps/web/src/components/tracker.tsx b/apps/web/src/components/tracker.tsxindex b5ebe7854..3d4eb3dfb 100644--- a/apps/web/src/components/tracker.tsx+++ b/apps/web/src/components/tracker.tsx@@ -70,7 +70,7 @@ export function Tracker({{count: 0,ok: 0,- },+ });const uptime =@@ -114,6 +114,11 @@ const MoreInfo = ({const [open, setOpen] = React.useState(false);const formattedURL = new URL(url);const link = `${formattedURL.host}${formattedURL.pathname}`;++ if (description == null && context !== "play") {+ return;+ }+return (<TooltipProvider><Tooltip open={open} onOpenChange={setOpen}>@@ -203,7 +208,7 @@ const Bar = ({// FIXME this is a temporary solutionconst getStatus = (- ratio: number,+ ratio: number): { label: string; variant: "up" | "degraded" | "down" } => {if (ratio >= 0.98) return { label: "Operational", variant: "up" };if (ratio >= 0.5) return { label: "Degraded", variant: "degraded" };