fix(ui): state credential and connection status without internal service names

This commit is contained in:
sam committed 2026-10-17 10:10:03 +11:00
1 parent 567f484483
commit 47d23823b4
13 files changed
+91 -90

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ const rows = computed(() => props.bindings ?? []);
const failureTitle = computed(() =>
props.failure?.kind === "unconfigured"
? "Bindings are not configured"
: "Cannot reach archied",
: "Archie is not responding",
);
</script>
+1 -1
View File
@@ -33,7 +33,7 @@ import { captures, enabled, error, loading } from "./state";
what the server said rather than borrowing an empty state. -->
<Alert v-if="error" variant="destructive">
<TriangleAlert />
<AlertTitle>Cannot reach archied</AlertTitle>
<AlertTitle>Archie is not responding</AlertTitle>
<AlertDescription>{{ error }}</AlertDescription>
</Alert>
@@ -27,8 +27,8 @@ defineEmits<{ change: [] }>();
<Button variant="ghost" size="sm" class="h-7" :disabled="disabled" @click="$emit('change')">Change</Button>
</div>
<p v-if="resolved === true" class="flex items-center gap-1.5 text-xs text-ok">
<CircleCheck class="size-3.5" aria-hidden="true" /> Credential resolved</p>
<CircleCheck class="size-3.5" aria-hidden="true" /> Secret available</p>
<p v-else-if="resolved === false" class="flex items-center gap-1.5 text-xs text-danger">
<CircleAlert class="size-3.5" aria-hidden="true" /> Credential not found</p>
<CircleAlert class="size-3.5" aria-hidden="true" /> No secret at this key. Store it in {{ engine }} or change the key.</p>
</div>
</template>
+1 -1
View File
@@ -94,7 +94,7 @@ onMounted(load);
>
<Empty v-if="loadError">
<EmptyHeader>
<EmptyTitle>Cannot reach archied</EmptyTitle>
<EmptyTitle>Archie is not responding</EmptyTitle>
<EmptyDescription>{{ loadError }}</EmptyDescription>
</EmptyHeader>
</Empty>
+1 -1
View File
@@ -21,7 +21,7 @@ const setupIncomplete = computed(() => setupPanelState(setup.value).kind === "in
<template>
<h1 class="sr-only">Dashboard</h1>
<p v-if="error" class="mb-4 text-sm text-danger" role="alert">Cannot reach archied: {{ error }}</p>
<p v-if="error" class="mb-4 text-sm text-danger" role="alert">Archie is not responding: {{ error }}</p>
<div :class="setupIncomplete ? 'grid items-start gap-4 lg:grid-cols-[minmax(0,1fr)_320px]' : 'mx-auto max-w-5xl'">
<div class="grid min-w-0 gap-4">
<QuickTask />
+1 -1
View File
@@ -39,7 +39,7 @@ import {
<Empty v-else-if="loadError">
<EmptyHeader>
<EmptyTitle>Cannot reach archied</EmptyTitle>
<EmptyTitle>Archie is not responding</EmptyTitle>
<EmptyDescription>{{ loadError }}</EmptyDescription>
</EmptyHeader>
</Empty>
+2 -2
View File
@@ -309,10 +309,10 @@ export function actionErrorTitle(kind: MappingErrorKind): string {
case "session-expired":
return "Session expired";
case "refused":
return "archied refused that";
return "Archie refused that";
case "incomplete":
return "Not ready to preview";
default:
return "archied could not complete that";
return "Archie could not complete that";
}
}
+1 -1
View File
@@ -15,7 +15,7 @@ useIntervalFn(store.load, 15_000);
<PageHeader title="Secret engines">
<Button variant="outline" size="sm" @click="store.load">Refresh</Button>
</PageHeader>
<p class="mb-4 text-sm text-fg-muted">Engines registered by archied. Manage extension engines under <RouterLink to="/settings/extensions" class="underline">Extensions</RouterLink>.</p>
<p class="mb-4 text-sm text-fg-muted">Installed secret engines. Manage extension engines under <RouterLink to="/settings/extensions" class="underline">Extensions</RouterLink>.</p>
<p v-if="store.error" class="text-sm text-danger" role="alert">{{ store.error }}</p>
<Table v-else-if="store.engines">
<TableHeader><TableRow><TableHead>Engine</TableHead><TableHead>Version</TableHead><TableHead>Source</TableHead></TableRow></TableHeader>
+2 -1
View File
@@ -80,7 +80,8 @@ async function check() {
<div v-if="model.engine && model.key" class="mt-1 flex flex-wrap items-center gap-2 text-xs">
<Button variant="ghost" size="sm" :disabled="disabled || checking" @click="check">Check reference</Button>
<span v-if="checking" role="status">Checking…</span>
<span v-else-if="checked !== undefined" role="status">{{ checked ? 'Resolved by archie-gateway' : 'Not resolved by archie-gateway' }}</span>
<span v-else-if="checked" role="status" class="text-ok">Secret available in {{ model.engine }}</span>
<span v-else-if="checked === false" role="status" class="text-danger">No secret at this key in {{ model.engine }}. Store it there or change the key.</span>
<span v-if="checkError" class="text-danger" role="alert">{{ checkError }}</span>
</div>
</template>
+1 -1
View File
@@ -71,7 +71,7 @@ const filtered = computed(() => {
>
<Empty v-if="loadError">
<EmptyHeader>
<EmptyTitle>Cannot reach archied</EmptyTitle>
<EmptyTitle>Archie is not responding</EmptyTitle>
<EmptyDescription>{{ loadError }}</EmptyDescription>
</EmptyHeader>
</Empty>
+1 -1
View File
@@ -25,7 +25,7 @@ defineProps<{
<PanelError
v-else-if="state === null"
title="Could not load the stored record"
detail="archied did not answer for this task's debug view. Live updates will try again when the daemon reconnects."
detail="Archie did not answer. This view retries when the connection returns."
/>
<div v-else>
<JsonBlock :value="state" />
+3 -3
View File
@@ -25,14 +25,14 @@ const emit = defineEmits<{ clear: [] }>();
const copy = computed(() => {
if (props.kind === "error") {
return {
title: "Cannot reach archied",
description: props.detail || "The daemon did not answer.",
title: "Archie is not responding",
description: props.detail || "Try again shortly.",
};
}
if (props.kind === "empty") {
return {
title: "No tasks yet",
description: "Tasks appear here once archied picks up an issue to work.",
description: "Tasks appear here once a workflow starts one.",
};
}
if (props.kind === "no-match") {