+ {/* Severity */}
+
+
+ Severity
+
+
+ {severityEntries.reverse().map(([key, value]) => {
+ const s = SEVERITY_LABELS[key] ?? {
+ label: key,
+ color: "text-muted-foreground",
+ bar: "bg-sky-200/50",
+ };
+ return (
+
+
+ {s.label}
+
+
+
+ {value}
+
+
+ );
+ })}
+
+
+
+ {/* Recommended Actions */}
+
+
+ Rekomendasi Tindakan
+
+
+ {actionEntries.map(([key, value]) => {
+ const a = ACTION_LABELS[key] ?? {
+ label: key,
+ color: "text-muted-foreground",
+ bar: "bg-sky-200/50",
+ };
+ return (
+
+
+ {a.label}
+
+
+
+ {value}
+
+
+ );
+ })}
+
+
+
+ {/* Footer metrics */}
+
+
+ Rerata confidence:{" "}
+ {(stats.avg_confidence * 100).toFixed(0)}%
+
+
+ Rerata score:{" "}
+ {(stats.avg_score * 100).toFixed(0)}%
+
+
+ Error:{" "}
+ {stats.analysis_errors}
+
+
+ Pending:{" "}
+
+ {stats.analysis_pending}
+
+
+
+
+