@if (state() === "loading") {

{{ "status.loading" | t }}

} @if (state() === "error") {

{{ "status.apiUnreachable" | t }}

{{ "ops.loadError" | t }}

} @if (state() === "ok") {

{{ "ops.timeline.picker" | t }}

@if (jobs().length === 0) {

{{ "ops.timeline.noJobs" | t }} @if (snapshots().length) { ({{ snapshots().length }}) }

} @else { @if (orphans() > 0) {

{{ orphans() }} {{ "ops.timeline.noJobId" | t }}

} @if (timeline().length === 0) {

{{ "ops.timeline.empty" | t }}

} @else {
@for (s of timeline(); track s.snapshot_id) { }
{{ "ops.timeline.caption" | t }}
{{ "ops.snap.col.marker" | t }} {{ "ops.snap.col.started" | t }} {{ "ops.snap.col.id" | t }} {{ "ops.snap.col.run" | t }} {{ "ops.snap.col.runtime" | t }} {{ "ops.snap.col.duration" | t }} {{ "ops.snap.col.input" | t }} {{ "ops.snap.col.output" | t }} {{ "ops.snap.col.failure" | t }} {{ "ops.snap.col.provenance" | t }} {{ "ops.timeline.select" | t }}
{{ formatIso(s.started_at) }} {{ s.snapshot_id }} {{ s.run_id ?? "—" }} {{ s.runtime ?? "—" }} {{ fmtNum(s.duration_s) }} {{ fmtNum(s.input_bytes) }} {{ fmtNum(s.output_bytes) }} @if (s.failure === true) { {{ "ops.snap.failure.yes" | t }} } @else if (s.failure === false) { {{ "ops.snap.failure.no" | t }} } @else { {{ "ops.snap.failure.unknown" | t }} } {{ s.provenance }}
} }
@if (selectedSnapshot(); as snap) {

{{ "ops.cmp.title" | t }} — {{ snap.snapshot_id }}

@if (needsReference()) {
@if ( compareForm.controls.referenceId.invalid && compareForm.controls.referenceId.touched ) { }
}
@if (compareState() === "loading") {

{{ "ops.cmp.running" | t }}

} @if (compareState() === "error") { } @if (compareState() === "ok" && compareResult(); as res) { }
} }