fix(ui): repair settings editing and workflow diagnostics

This commit is contained in:
sam committed 2026-10-16 23:55:58 +11:00
1 parent 3229de9b3b
commit 41cd938748
46 files changed
+708 -240

No files matched your search

+3 -1
View File
@@ -127,6 +127,7 @@ const startedAt = computed(() => {
timeLimit
}}</span>
</div>
<p v-if="attempt.error" role="alert" class="mb-3 whitespace-pre-wrap break-words text-sm text-danger">{{ attempt.error }}</p>
<ol
v-if="stages.length"
:aria-label="`Stages recorded in attempt ${attempt.attempt}`"
@@ -143,7 +144,8 @@ const startedAt = computed(() => {
</ol>
<Empty v-else>
<EmptyHeader>
<EmptyTitle>No stages</EmptyTitle>
<EmptyTitle>No workflow steps recorded</EmptyTitle>
<EmptyDescription>This attempt has no recorded workflow step execution.</EmptyDescription>
</EmptyHeader>
</Empty>
</div>
+3 -3
View File
@@ -4,7 +4,7 @@ import { ArrowUpRight } from "@lucide/vue";
import { ago, compact } from "@/lib/format";
import { cn } from "@/lib/utils";
import { statusKind, statusLabel } from "@/lib/task-meta";
import { stageStatusMeta } from "./stage-rail";
import StageRail from "./StageRail.vue";
import { STATUS_FILL } from "@/lib/status";
import { useTaskRun } from "./use-task-run";
@@ -15,7 +15,7 @@ import { duration } from "./timeline-event";
const run = useTaskRun();
const attempts = computed(() => [...(run.attempts?.attempts ?? [])].reverse());
const dot = (status?: string) => STATUS_FILL[statusKind(status ?? "")];
const dot = (status?: string) => STATUS_FILL[stageStatusMeta(status).kind];
const heading = "mb-2 text-[11px] font-medium tracking-[0.06em] text-fg-subtle uppercase";
</script>
@@ -38,7 +38,7 @@ const heading = "mb-2 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
>
<span class="size-2 shrink-0 rounded-full" :class="dot(a.status)" aria-hidden="true" />
<span class="flex-1">Attempt {{ a.attempt }}</span>
<span class="text-xs text-fg-subtle">{{ a.status ? statusLabel(a.status) : "" }}</span>
<span class="text-xs text-fg-subtle">{{ a.status ? stageStatusMeta(a.status).label : "" }}</span>
</button>
<p v-if="a.started_at" class="px-3 pb-1 pl-7 text-xs text-fg-subtle">
{{ ago(a.started_at) }}<template v-if="a.duration_ms"> · {{ duration(a.duration_ms) }}</template>
+3 -2
View File
@@ -10,6 +10,7 @@
* the agent's report rather than as archie's verdict.
*/
import type { StatusKind } from "@/lib/status";
import { statusKind, statusLabel } from "@/lib/task-meta";
import { describeTimelineEvent, type TimelineLine } from "./timeline-event";
import type { TaskEvent } from "./task-run";
@@ -25,12 +26,12 @@ const STAGE_STATUS: Record<string, StageStatusMeta> = {
interrupted: { label: "interrupted", kind: "warn" },
running: { label: "running", kind: "info" },
skipped: { label: "skipped", kind: "idle" },
unknown: { label: "unknown", kind: "idle" },
unknown: { label: "Outcome not recorded", kind: "idle" },
};
export function stageStatusMeta(status?: string | null): StageStatusMeta {
return (
STAGE_STATUS[status ?? ""] || { label: status || "unknown", kind: "idle" }
STAGE_STATUS[status ?? ""] || { label: statusLabel(status || "unknown"), kind: statusKind(status || "unknown") }
);
}
+1
View File
@@ -73,6 +73,7 @@ export interface Stage {
export interface Attempt {
attempt: number;
error?: string;
status?: string;
started_at?: string;
duration_ms?: number;