'use client' import { GCIMatrixResponse, getScoreColor } from '@/lib/sdk/gci/types' import { LoadingSpinner } from './GCIHelpers' export function MatrixTab({ matrix }: { matrix: GCIMatrixResponse | null }) { if (!matrix || !matrix.matrix) return const regulations = matrix.matrix.length > 0 ? Object.keys(matrix.matrix[0].regulations) : [] return (

Compliance-Matrix (Rollen x Regulierungen)

{regulations.map(r => ( ))} {matrix.matrix.map(entry => ( {regulations.map(r => ( ))} ))}
Rolle{r}Gesamt Module
{entry.role_name} {entry.regulations[r].toFixed(0)}% {entry.overall_score.toFixed(0)}% {entry.completed_modules}/{entry.required_modules}
) }