refactor(ui/copy): one unresponsive entry in common, no empty catalogues, no em dashes

This commit is contained in:
sam committed 2026-11-13 13:43:11 +11:00
1 parent 3eb976ef83
commit a0ee8e3f2e
20 files changed
+10 -54

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ const rows = computed(() => props.bindings ?? []);
const failureTitle = computed(() =>
props.failure?.kind === "unconfigured"
? errors.bindings.table.notConfigured
: errors.bindings.table.unreachable,
: errors.common.unresponsive,
);
</script>
+1 -1
View File
@@ -34,7 +34,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>{{ errors.captures.list.unresponsive }}</AlertTitle>
<AlertTitle>{{ errors.common.unresponsive }}</AlertTitle>
<AlertDescription>{{ error }}</AlertDescription>
</Alert>
-1
View File
@@ -8,7 +8,6 @@ export const bindings = {
},
table: {
notConfigured: "Bindings are not configured",
unreachable: "Archie is not responding",
},
dispatchLinks: {
unavailable: "Dispatches unavailable.",
-5
View File
@@ -1,5 +0,0 @@
export const captures = {
list: {
unresponsive: "Archie is not responding",
},
} as const;
+1
View File
@@ -1,5 +1,6 @@
export const common = {
sessionExpired: "Your session expired. Sign in again.",
unresponsive: "Archie is not responding",
network: "Archie can't be reached. Check your connection and try again.",
actionFailed: "Action failed",
unknown: "Something went wrong.",
+2 -2
View File
@@ -3,7 +3,7 @@ export const components = {
unavailable: "Organisations unavailable",
},
commandPalette: {
workflows: "Couldn't load workflows — Retry",
tasks: "Couldn't load tasks — Retry",
workflows: "Retry loading workflows",
tasks: "Retry loading tasks",
},
} as const;
-5
View File
@@ -1,5 +0,0 @@
export const curators = {
page: {
unresponsive: "Archie is not responding",
},
} as const;
-1
View File
@@ -1 +0,0 @@
export const events = {} as const;
-14
View File
@@ -7,22 +7,15 @@ import { app } from "./app.ts";
import { audit } from "./audit.ts";
import { base } from "./base.ts";
import { bindings } from "./bindings.ts";
import { captures } from "./captures.ts";
import { channels } from "./channels.ts";
import { chat } from "./chat.ts";
import { common } from "./common.ts";
import { components } from "./components.ts";
import { curators } from "./curators.ts";
import { dashboard } from "./dashboard.ts";
import { events } from "./events.ts";
import { lib } from "./lib.ts";
import { logs } from "./logs.ts";
import { mappings } from "./mappings.ts";
import { org } from "./org.ts";
import { router } from "./router.ts";
import { schedules } from "./schedules.ts";
import { settings } from "./settings.ts";
import { skills } from "./skills.ts";
import { sources } from "./sources.ts";
import { stores } from "./stores.ts";
import { tasks } from "./tasks.ts";
@@ -35,22 +28,15 @@ export const errors = {
audit,
base,
bindings,
captures,
channels,
chat,
common,
components,
curators,
dashboard,
events,
lib,
logs,
mappings,
org,
router,
schedules,
settings,
skills,
sources,
stores,
tasks,
-3
View File
@@ -1,3 +0,0 @@
// lib/ writes no failure copy of its own: the WebMCP tool errors are read by the
// calling agent, not shown in the dashboard.
export const lib = {} as const;
-3
View File
@@ -18,7 +18,4 @@ export const mappings = {
eventTypesNotLoaded: "Couldn't load event types",
capturesNotLoaded: "Couldn't load captured events",
},
table: {
unreachable: "Archie is not responding",
},
} as const;
-2
View File
@@ -1,2 +0,0 @@
// router/ writes no failure copy of its own.
export const router = {} as const;
-3
View File
@@ -1,3 +0,0 @@
// Schedules report every failure through describeError, so this folder has no
// copy of its own yet.
export const schedules = {} as const;
-5
View File
@@ -1,5 +0,0 @@
export const skills = {
page: {
unresponsive: "Archie is not responding",
},
} as const;
-3
View File
@@ -1,8 +1,5 @@
// Failure copy for the task board, the run page and its panels.
export const tasks = {
state: {
unresponsive: "Archie is not responding",
},
notes: {
listUnreadable:
"The task list could not be read, so the current status and operator controls are unavailable.",
+1 -1
View File
@@ -31,7 +31,7 @@ export const workflows = {
},
editor: {
restartFailed: "Restart failed",
draftNotSaved: "Draft not saved — your edit is still in the editor.",
draftNotSaved: "Draft not saved. Your edit is still in the editor.",
recentRunsNotLoaded: (detail: string) => `Could not load recent runs: ${detail}`,
watchedStagesNotLoaded: (detail: string) => `Could not load the watched run's stages: ${detail}`,
},
+1 -1
View File
@@ -217,7 +217,7 @@ onMounted(load);
>
<Empty v-if="loadError">
<EmptyHeader>
<EmptyTitle>{{ errors.curators.page.unresponsive }}</EmptyTitle>
<EmptyTitle>{{ errors.common.unresponsive }}</EmptyTitle>
<EmptyDescription>{{ loadError }}</EmptyDescription>
</EmptyHeader>
</Empty>
+1 -1
View File
@@ -40,7 +40,7 @@ import {
<Empty v-else-if="loadError">
<EmptyHeader>
<EmptyTitle>{{ errors.mappings.table.unreachable }}</EmptyTitle>
<EmptyTitle>{{ errors.common.unresponsive }}</EmptyTitle>
<EmptyDescription>{{ loadError }}</EmptyDescription>
</EmptyHeader>
</Empty>
+1 -1
View File
@@ -72,7 +72,7 @@ const filtered = computed(() => {
>
<Empty v-if="loadError">
<EmptyHeader>
<EmptyTitle>{{ errors.skills.page.unresponsive }}</EmptyTitle>
<EmptyTitle>{{ errors.common.unresponsive }}</EmptyTitle>
<EmptyDescription>{{ loadError }}</EmptyDescription>
</EmptyHeader>
</Empty>
+1 -1
View File
@@ -26,7 +26,7 @@ const emit = defineEmits<{ clear: []; retry: [] }>();
const copy = computed(() => {
if (props.kind === "error") {
return {
title: errors.tasks.state.unresponsive,
title: errors.common.unresponsive,
description: props.detail || "",
};
}