fix(ui): label run picker statuses with the shared status name

This commit is contained in:
sam committed 2026-10-18 23:48:47 +11:00
1 parent 1d4278c5d2
commit 912f5e99ff
1 file changed
+2 -1
+2 -1
View File
@@ -26,6 +26,7 @@ import StepRun from "./StepRun.vue";
import { restartAt, withRuns, workflowGraph } from "./workflow-graph";
import { api } from "@/lib/api";
import { ago } from "@/lib/format";
import { statusLabel } from "@/lib/task-meta";
import StepEditor from "./StepEditor.vue";
import WorkflowSettings from "./WorkflowSettings.vue";
import TriggerSettings from "./TriggerSettings.vue";
@@ -345,7 +346,7 @@ const runOptions = computed(() => [
{ value: "", label: "Current definition" },
...runs.value.map((run) => ({
value: String(run.id),
label: [`${run.source === "test" ? "Test" : "Run"} #${run.id}`, run.status, run.created_at ? ago(run.created_at) : ""].filter(Boolean).join(" · "),
label: [`${run.source === "test" ? "Test" : "Run"} #${run.id}`, run.status && statusLabel(run.status), run.created_at ? ago(run.created_at) : ""].filter(Boolean).join(" · "),
})),
]);
const lines = computed(() => yamlLines(yaml.value));