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(() =>