- {checks.map((check, index) => (
-
-
{getStatusIcon(check.status)}
-
-
-
{check.name}
-
- {check.value}
-
-
-
{check.message}
+ {Object.entries(groupedChecks).map(([category, checks]) => (
+
+
+ {category}
+
+
+
+ {checks.map((check, index) => (
+
+
{getStatusIcon(check.status)}
+
+
+
{check.name}
+
+ {check.status}
+
+ {check.reason &&
{check.reason}
}
+ {check.details && (
+
+ {Object.entries(check.details).map(([key, value]) => {
+ if (key === "status" || key === "reason" || typeof value === "object") return null
+ return (
+
+ {key}: {String(value)}
+
+ )
+ })}
+
+ )}
- ))}
-
-
-
- ))}
+
+ ))}
+
+
+
+ ))}
+
+ {healthData.timestamp && (
+
+ Last updated: {new Date(healthData.timestamp).toLocaleString()}
+
+ )}