Wording: formal, precise, no narrative; the missing reports of a promotion in Spanish

This commit is contained in:
Roberto Treviño
2026-11-29 15:24:25 -06:00
parent bb506c3926
commit ca887c29ab
9 changed files with 32 additions and 30 deletions
+1 -1
View File
@@ -60,7 +60,7 @@
@if (models.isLoading()) {
<app-loading what="los modelos" />
} @else if (!models.value()?.length) {
<p class="muted empty">Este dominio todavía no tiene modelos entrenados.</p>
<p class="muted empty">Sin modelos entrenados en este dominio.</p>
}
@for (m of models.value() ?? []; track m.name) {
<div class="card model">
+10 -1
View File
@@ -160,7 +160,16 @@ export class Gobernanza {
this.refreshed.update((n) => n + 1);
} catch (e) {
const detail = e instanceof HttpErrorResponse ? e.error?.detail : undefined;
this.message.set(`No se promovió: ${detail ?? 'error'}`);
// "<model> v1 has no clinical_validation, interpretability": the reports it lacks
const missing = /has no (.+)$/.exec(String(detail ?? ''))?.[1];
this.message.set(
missing
? `No se promovió: faltan informes (${missing
.split(', ')
.map((r) => this.reportNames[r] ?? r)
.join(', ')}).`
: `No se promovió: ${detail ?? 'error de la plataforma'}`,
);
}
}