Governance: a version lists only the routines its run recorded

Not every model has each of the five routines, and the registry doesn't require them; the dialog showed the missing
ones as failures. It now lists the recorded ones and says so when there are none.

(cherry picked from commit b5bff7e0c6)
This commit is contained in:
2026-11-22 07:48:42 -06:00
parent ad4edbe2a1
commit 60c71bfc3d
2 changed files with 21 additions and 17 deletions
@@ -55,7 +55,10 @@ export class ModelVersionDialog {
private readonly version = inject<ModelVersion>(MAT_DIALOG_DATA);
private readonly dialog = inject(MatDialog);
readonly routineKinds = ROUTINES;
/** The routines the run recorded, in `ROUTINES`' order; the others aren't listed. */
recordedRoutines(routines: ModelLineage['routines']) {
return ROUTINES.filter((r) => routines[r.kind]).map((r) => ({ ...r, record: routines[r.kind]! }));
}
readonly lineage = signal<ModelLineage | null>(null);
readonly busy = signal(false);
readonly error = signal<string | null>(null);