fix(ui): finish an Archie turn across tab switches and name map entries in the settings review

This commit is contained in:
sam committed 2026-10-18 02:52:49 +11:00
1 parent 53db182e97
commit 2ce94306e8
4 files changed
+9 -5

No files matched your search

+4 -2
View File
@@ -34,8 +34,10 @@ function fieldLabel(kind: string, path: string): string {
schema = schema.items ?? {};
return `Item ${Number(part) + 1}`;
}
schema = schema.properties?.[part] ?? schema.additionalProperties ?? {};
return schema.title || part.replaceAll("_", " ");
const named = schema.properties?.[part];
schema = named ?? schema.additionalProperties ?? {};
// A map entry is named by its key; its schema title names every entry alike.
return named ? schema.title || part.replaceAll("_", " ") : part;
}).join(" · ");
}
const sections = computed(() =>
+3 -1
View File
@@ -405,7 +405,9 @@ function syncScroll(event: Event): void {
<Button type="button" variant="outline" size="sm" @click="refresh">Retry runs</Button>
</div>
<p v-if="watchedRun && !watchedRun.workflow_definition_yaml" class="text-xs text-fg-muted" role="status">No workflow snapshot was recorded for this run. Showing the current definition.</p>
<TabsContent value="canvas" class="space-y-2">
<!-- Kept mounted so an Archie turn started here still finishes, unlocks the
editor and loads its draft when the operator switches tabs. -->
<TabsContent value="canvas" force-mount class="space-y-2 data-[state=inactive]:hidden">
<!-- The canvas takes the height the viewport has left, so the page
itself does not scroll; the canvas pans. -->
<div class="relative h-[calc(100dvh-17rem)] min-h-[26rem]">