Gobernanza: TEA · EEG tab with cluster check, reference data, training, baselines, reports, promotion, run monitor, analysis and result

This commit is contained in:
ulises
2026-11-23 09:29:33 -06:00
parent 6ade415f63
commit 0b22b3c309
60 changed files with 4759 additions and 4 deletions
@@ -0,0 +1,17 @@
/** The three validation report fields with the labels the model version dialog shows. */
import { ReportField } from '../../api/governance.types';
export const REPORT_FIELDS: { field: ReportField; label: string }[] = [
{ field: 'technical_validation_report_uri', label: 'Pruebas técnicas (MLD-01)' },
{ field: 'clinical_validation_report_uri', label: 'Validación clínica (MLD-01b)' },
{ field: 'interpretability_report_uri', label: 'Interpretabilidad (MLD-03)' },
];
/** The PATCH body from the form values; empty fields clear the tag. */
export function reportsBody(values: Record<ReportField, string>): Partial<Record<ReportField, string | null>> {
return {
technical_validation_report_uri: values.technical_validation_report_uri.trim() || null,
clinical_validation_report_uri: values.clinical_validation_report_uri.trim() || null,
interpretability_report_uri: values.interpretability_report_uri.trim() || null,
};
}