Some checks failed
Build + Deploy / build-admin-compliance (push) Successful in 1m45s
Build + Deploy / build-backend-compliance (push) Successful in 4m42s
Build + Deploy / build-ai-sdk (push) Successful in 46s
Build + Deploy / build-developer-portal (push) Successful in 1m6s
Build + Deploy / build-tts (push) Successful in 1m14s
Build + Deploy / build-document-crawler (push) Successful in 31s
Build + Deploy / build-dsms-gateway (push) Successful in 24s
CI / branch-name (push) Has been skipped
CI / guardrail-integrity (push) Has been skipped
CI / loc-budget (push) Failing after 15s
CI / secret-scan (push) Has been skipped
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / nodejs-build (push) Successful in 2m27s
CI / dep-audit (push) Has been skipped
CI / sbom-scan (push) Has been skipped
CI / test-go (push) Failing after 37s
CI / test-python-backend (push) Successful in 42s
CI / test-python-document-crawler (push) Successful in 25s
CI / test-python-dsms-gateway (push) Successful in 23s
CI / validate-canonical-controls (push) Successful in 18s
Build + Deploy / trigger-orca (push) Successful in 4m35s
Neues Modul das den regulatorischen Spielraum fuer KI-Use-Cases deterministisch berechnet und optimale Konfigurationen vorschlaegt. Kernfeatures: - 13-Dimensionen Constraint-Space (DSGVO + AI Act) - 3-Zonen-Analyse: Verboten / Eingeschraenkt / Erlaubt - Deterministische Optimizer-Engine (kein LLM im Kern) - 28 Constraint-Regeln aus DSGVO, AI Act, EDPB Guidelines - 28 Tests (Golden Suite + Meta-Tests) - REST API: /sdk/v1/maximizer/* (9 Endpoints) - Frontend: 3-Zonen-Visualisierung, Dimension-Form, Score-Gauges [migration-approved] Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
51 lines
1.9 KiB
TypeScript
51 lines
1.9 KiB
TypeScript
'use client'
|
|
|
|
interface ScoreCardProps {
|
|
safetyScore: number
|
|
utilityScore: number
|
|
compositeScore: number
|
|
deltaCount: number
|
|
}
|
|
|
|
function ScoreGauge({ value, label, color }: { value: number; label: string; color: string }) {
|
|
return (
|
|
<div className="flex flex-col items-center gap-1">
|
|
<div className="relative w-16 h-16">
|
|
<svg viewBox="0 0 36 36" className="w-16 h-16">
|
|
<path
|
|
d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"
|
|
fill="none" stroke="#e5e7eb" strokeWidth="3"
|
|
/>
|
|
<path
|
|
d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"
|
|
fill="none" stroke={color} strokeWidth="3"
|
|
strokeDasharray={`${value}, 100`}
|
|
strokeLinecap="round"
|
|
/>
|
|
</svg>
|
|
<span className="absolute inset-0 flex items-center justify-center text-sm font-bold text-gray-800">
|
|
{value}
|
|
</span>
|
|
</div>
|
|
<span className="text-xs text-gray-500">{label}</span>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export function OptimizationScoreCard({ safetyScore, utilityScore, compositeScore, deltaCount }: ScoreCardProps) {
|
|
return (
|
|
<div className="bg-white border border-gray-200 rounded-lg p-4">
|
|
<h4 className="text-sm font-medium text-gray-700 mb-3">Bewertung der optimierten Konfiguration</h4>
|
|
<div className="flex items-center gap-6">
|
|
<ScoreGauge value={safetyScore} label="Sicherheit" color="#22c55e" />
|
|
<ScoreGauge value={utilityScore} label="Business-Nutzen" color="#3b82f6" />
|
|
<ScoreGauge value={Math.round(compositeScore)} label="Gesamt" color="#8b5cf6" />
|
|
<div className="flex flex-col items-center gap-1">
|
|
<span className="text-2xl font-bold text-gray-800">{deltaCount}</span>
|
|
<span className="text-xs text-gray-500">Aenderungen</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|