diff --git a/admin-compliance/app/sdk/document-crawler/_components/ComplianceRing.tsx b/admin-compliance/app/sdk/document-crawler/_components/ComplianceRing.tsx new file mode 100644 index 0000000..0c7e56d --- /dev/null +++ b/admin-compliance/app/sdk/document-crawler/_components/ComplianceRing.tsx @@ -0,0 +1,28 @@ +'use client' + +export function ComplianceRing({ score }: { score: number }) { + const radius = 50 + const circumference = 2 * Math.PI * radius + const offset = circumference - (score / 100) * circumference + const color = score >= 75 ? '#16a34a' : score >= 50 ? '#f59e0b' : '#dc2626' + + return ( +
| Datei | +Kategorie | +Konfidenz | +Groesse | +Archiv | +Aktionen | +
|---|---|---|---|---|---|
|
+ {doc.file_name}
+ {doc.source_name}
+ |
+ + + {doc.classification_corrected && ( + * + )} + | +
+ {doc.classification_confidence != null && (
+
+
+ )}
+
+
+
+
+ {(doc.classification_confidence * 100).toFixed(0)}%
+
+ |
+ {formatSize(doc.file_size_bytes)} | ++ {doc.archived ? ( + IPFS + ) : ( + - + )} + | ++ {!doc.archived && ( + + )} + | +
Kein Report vorhanden
+Fuehren Sie zuerst einen Crawl durch und generieren Sie dann einen Report.
+{gap.description}
+Keine Quellen konfiguriert
+Erstellen Sie eine Crawl-Quelle um Dokumente zu scannen.
+Keine Quellen konfiguriert
-Erstellen Sie eine Crawl-Quelle um Dokumente zu scannen.
-| Datei | -Kategorie | -Konfidenz | -Groesse | -Archiv | -Aktionen | -
|---|---|---|---|---|---|
|
- {doc.file_name}
- {doc.source_name}
- |
- - - {doc.classification_corrected && ( - * - )} - | -
- {doc.classification_confidence != null && (
-
-
- )}
-
-
-
-
- {(doc.classification_confidence * 100).toFixed(0)}%
-
- |
- {formatSize(doc.file_size_bytes)} | -- {doc.archived ? ( - IPFS - ) : ( - - - )} - | -- {!doc.archived && ( - - )} - | -
Kein Report vorhanden
-Fuehren Sie zuerst einen Crawl durch und generieren Sie dann einen Report.
-{gap.description}
-