diff --git a/ui/src/bindings/BindingsTable.vue b/ui/src/bindings/BindingsTable.vue index 3e41c7e2b..d96a18f18 100644 --- a/ui/src/bindings/BindingsTable.vue +++ b/ui/src/bindings/BindingsTable.vue @@ -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, ); diff --git a/ui/src/captures/CapturesList.vue b/ui/src/captures/CapturesList.vue index c94306814..c60627ad9 100644 --- a/ui/src/captures/CapturesList.vue +++ b/ui/src/captures/CapturesList.vue @@ -34,7 +34,7 @@ import { captures, enabled, error, loading } from "./state"; what the server said rather than borrowing an empty state. --> - {{ errors.captures.list.unresponsive }} + {{ errors.common.unresponsive }} {{ error }} diff --git a/ui/src/copy/errors/bindings.ts b/ui/src/copy/errors/bindings.ts index 3972ffe4b..ce51ed650 100644 --- a/ui/src/copy/errors/bindings.ts +++ b/ui/src/copy/errors/bindings.ts @@ -8,7 +8,6 @@ export const bindings = { }, table: { notConfigured: "Bindings are not configured", - unreachable: "Archie is not responding", }, dispatchLinks: { unavailable: "Dispatches unavailable.", diff --git a/ui/src/copy/errors/captures.ts b/ui/src/copy/errors/captures.ts deleted file mode 100644 index f4afd845a..000000000 --- a/ui/src/copy/errors/captures.ts +++ /dev/null @@ -1,5 +0,0 @@ -export const captures = { - list: { - unresponsive: "Archie is not responding", - }, -} as const; diff --git a/ui/src/copy/errors/common.ts b/ui/src/copy/errors/common.ts index 53cecea22..f4e173eea 100644 --- a/ui/src/copy/errors/common.ts +++ b/ui/src/copy/errors/common.ts @@ -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.", diff --git a/ui/src/copy/errors/components.ts b/ui/src/copy/errors/components.ts index ab39df180..d9c440c86 100644 --- a/ui/src/copy/errors/components.ts +++ b/ui/src/copy/errors/components.ts @@ -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; diff --git a/ui/src/copy/errors/curators.ts b/ui/src/copy/errors/curators.ts deleted file mode 100644 index 82e0daee4..000000000 --- a/ui/src/copy/errors/curators.ts +++ /dev/null @@ -1,5 +0,0 @@ -export const curators = { - page: { - unresponsive: "Archie is not responding", - }, -} as const; diff --git a/ui/src/copy/errors/events.ts b/ui/src/copy/errors/events.ts deleted file mode 100644 index e2cb0f4fd..000000000 --- a/ui/src/copy/errors/events.ts +++ /dev/null @@ -1 +0,0 @@ -export const events = {} as const; diff --git a/ui/src/copy/errors/index.ts b/ui/src/copy/errors/index.ts index 58fe49650..580f9d579 100644 --- a/ui/src/copy/errors/index.ts +++ b/ui/src/copy/errors/index.ts @@ -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, diff --git a/ui/src/copy/errors/lib.ts b/ui/src/copy/errors/lib.ts deleted file mode 100644 index 08c00d772..000000000 --- a/ui/src/copy/errors/lib.ts +++ /dev/null @@ -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; diff --git a/ui/src/copy/errors/mappings.ts b/ui/src/copy/errors/mappings.ts index 34390fa84..0cc674ab2 100644 --- a/ui/src/copy/errors/mappings.ts +++ b/ui/src/copy/errors/mappings.ts @@ -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; diff --git a/ui/src/copy/errors/router.ts b/ui/src/copy/errors/router.ts deleted file mode 100644 index 8a2bec07f..000000000 --- a/ui/src/copy/errors/router.ts +++ /dev/null @@ -1,2 +0,0 @@ -// router/ writes no failure copy of its own. -export const router = {} as const; diff --git a/ui/src/copy/errors/schedules.ts b/ui/src/copy/errors/schedules.ts deleted file mode 100644 index 8261f37ac..000000000 --- a/ui/src/copy/errors/schedules.ts +++ /dev/null @@ -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; diff --git a/ui/src/copy/errors/skills.ts b/ui/src/copy/errors/skills.ts deleted file mode 100644 index 2fb7e8ab0..000000000 --- a/ui/src/copy/errors/skills.ts +++ /dev/null @@ -1,5 +0,0 @@ -export const skills = { - page: { - unresponsive: "Archie is not responding", - }, -} as const; diff --git a/ui/src/copy/errors/tasks.ts b/ui/src/copy/errors/tasks.ts index ab4eaf85a..705e1ba5b 100644 --- a/ui/src/copy/errors/tasks.ts +++ b/ui/src/copy/errors/tasks.ts @@ -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.", diff --git a/ui/src/copy/errors/workflows.ts b/ui/src/copy/errors/workflows.ts index 7cb1f004e..432b8f750 100644 --- a/ui/src/copy/errors/workflows.ts +++ b/ui/src/copy/errors/workflows.ts @@ -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}`, }, diff --git a/ui/src/curators/CuratorsPage.vue b/ui/src/curators/CuratorsPage.vue index f43552daf..2f0efdea5 100644 --- a/ui/src/curators/CuratorsPage.vue +++ b/ui/src/curators/CuratorsPage.vue @@ -217,7 +217,7 @@ onMounted(load); > - {{ errors.curators.page.unresponsive }} + {{ errors.common.unresponsive }} {{ loadError }} diff --git a/ui/src/mappings/MappingsTable.vue b/ui/src/mappings/MappingsTable.vue index c85c5f717..5ccfebb90 100644 --- a/ui/src/mappings/MappingsTable.vue +++ b/ui/src/mappings/MappingsTable.vue @@ -40,7 +40,7 @@ import { - {{ errors.mappings.table.unreachable }} + {{ errors.common.unresponsive }} {{ loadError }} diff --git a/ui/src/skills/SkillsPage.vue b/ui/src/skills/SkillsPage.vue index aff1d6ba6..31aaca7e5 100644 --- a/ui/src/skills/SkillsPage.vue +++ b/ui/src/skills/SkillsPage.vue @@ -72,7 +72,7 @@ const filtered = computed(() => { > - {{ errors.skills.page.unresponsive }} + {{ errors.common.unresponsive }} {{ loadError }} diff --git a/ui/src/tasks/TasksState.vue b/ui/src/tasks/TasksState.vue index db134daba..59ad76157 100644 --- a/ui/src/tasks/TasksState.vue +++ b/ui/src/tasks/TasksState.vue @@ -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 || "", }; }