Merge branch 'main' into pg/foundation

This commit is contained in:
sam committed 2026-09-24 22:21:24 +10:00
commit 335fb4bb22
12 files changed
+344 -75

No files matched your search

+3 -2
View File
@@ -2,11 +2,12 @@
import { computed } from "vue";
import { Empty, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
import { configSchema } from "@/lib/task-meta";
import JsonBlock from "./JsonBlock.vue";
import PanelError from "./PanelError.vue";
import PanelLoading from "./PanelLoading.vue";
import { CONFIG_SCHEMA, selectConfigEvent } from "./attempt-config";
import { selectConfigEvent } from "./attempt-config";
import type { TaskEvent } from "./task-run";
/**
@@ -28,7 +29,7 @@ const schema = computed(() => {
return typeof data.schema === "string" ? data.schema : "";
});
const document = computed(() => event.value?.data?.document ?? {});
const recognised = computed(() => schema.value === CONFIG_SCHEMA);
const recognised = computed(() => schema.value === configSchema());
</script>
<template>
-6
View File
@@ -12,12 +12,6 @@
*/
import type { TaskEvent } from "./task-run";
// The schema name is owned by the daemon (events.ConfigCapturedSchema in
// internal/events/events.go). A payload in an unrecognised schema is shown
// verbatim with a note rather than reinterpreted, so a server-side bump
// degrades to the raw view instead of rendering something wrong.
export const CONFIG_SCHEMA = "archie/task-config@1";
export function selectConfigEvent(
events: TaskEvent[] | null | undefined,
attempt: number | null,
+3 -16
View File
@@ -9,22 +9,9 @@
*/
import type { Capture, CaptureTotals, TaskRecord } from "./task-run";
// The change-status ids are a wire vocabulary owned by the daemon
// (internal/domain/workflow/task/changes.go). Only the words are the
// dashboard's: an id added on the server renders as its raw id rather than
// breaking the row. The old test suite pinned the id set on both sides so a
// one-sided rename failed instead of drifting.
const FILE_STATUS: Record<string, string> = {
added: "Added",
modified: "Modified",
deleted: "Deleted",
renamed: "Renamed",
typechange: "Type changed",
};
export function fileStatusLabel(status: string | undefined): string {
return (status && FILE_STATUS[status]) || status || "unknown";
}
// The change-status labels are served with the rest of the task vocabulary
// (/api/task-meta), keyed by the daemon's own Change* constants.
export { changeStatusLabel as fileStatusLabel } from "@/lib/task-meta";
/**
* The forge links come from the same projection the task list uses: the task's