import { Box, Chip, Divider, Paper, Typography } from '@mui/material' import { CheckCircle2, ChevronRight, ClipboardCheck, XCircle } from 'lucide-react' import type { GateEvaluation } from '../../domain/signalPipeline' import { GateStatus, GATE_STATUS_LABELS, GATE_STATUS_COLORS } from '../../domain/signalPipeline' interface ReviewGatePanelProps { gate: GateEvaluation } export function ReviewGatePanel({ gate }: ReviewGatePanelProps) { const { bg, fg } = GATE_STATUS_COLORS[gate.status] const reviewerNotes = gate.checks.filter( c => c.value && c.label.toLowerCase().includes('review') ) return ( Review-Gate {gate.checks.map((check, i) => ( {check.passed ? : } {check.label} {check.value && ( {check.value} )} ))} {reviewerNotes.length > 0 && ( Reviewer-Informationen {reviewerNotes.map((note, i) => ( {note.label}: {note.value} ))} )} {gate.reason && ( {gate.reason} )} {gate.nextAction && gate.status !== GateStatus.PASSED && ( {gate.nextAction} )} ) }