'use client' export interface QualityMetric { id: string name: string category: 'accuracy' | 'fairness' | 'robustness' | 'explainability' | 'performance' score: number threshold: number trend: 'up' | 'down' | 'stable' last_measured: string ai_system: string | null } export function MetricCard({ metric, onEdit }: { metric: QualityMetric; onEdit: (m: QualityMetric) => void }) { const isAboveThreshold = metric.score >= metric.threshold const categoryColors = { accuracy: 'bg-blue-100 text-blue-700', fairness: 'bg-purple-100 text-purple-700', robustness: 'bg-green-100 text-green-700', explainability: 'bg-yellow-100 text-yellow-700', performance: 'bg-orange-100 text-orange-700', } const categoryLabels = { accuracy: 'Genauigkeit', fairness: 'Fairness', robustness: 'Robustheit', explainability: 'Erklaerbarkeit', performance: 'Performance', } return (
{metric.ai_system}
}