From f37f6e2453d87d918688177f60ce7b54f5369234 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sat, 7 Nov 2026 00:33:49 +1100 Subject: [PATCH] fix(ui): one error presentation with Retry across the dashboard (#1744) New components/ui ReadError (destructive Alert + message + optional Retry) is now the single read-error presentation, used by Versions, Services, Canary, OrgAccess, Denials, Tokens, Audit, Extensions, Harness and the Status page (one page-level error instead of one per card). PanelError is the same alert for task panels, and TasksState's error kind, the attempts panel and the task-log pane all offer Retry. Org policy save errors sit beside the Save button instead of at the page top. --- ui/src/accounts/PersonalTokensCard.vue | 3 ++- ui/src/audit/AuditPage.vue | 6 ++---- ui/src/audit/DenialsPage.vue | 6 ++---- ui/src/components/ui/read-error/ReadError.vue | 20 +++++++++++++++++++ ui/src/components/ui/read-error/index.ts | 1 + ui/src/harness/HarnessPage.vue | 6 ++---- ui/src/org/OrgAccessPage.vue | 8 ++++++-- ui/src/settings/CanaryStatusCard.vue | 3 ++- ui/src/settings/ExtensionsPage.vue | 3 ++- ui/src/settings/ServicesCard.vue | 3 ++- ui/src/settings/SystemStatusPage.vue | 4 +++- ui/src/settings/VersionsCard.vue | 9 ++++----- ui/src/tasks/PanelError.vue | 18 +++++++++++------ ui/src/tasks/TaskLogs.vue | 14 +++++++------ ui/src/tasks/TaskRunPanels.vue | 3 +++ ui/src/tasks/TasksPage.vue | 2 +- ui/src/tasks/TasksState.vue | 5 ++++- 17 files changed, 76 insertions(+), 38 deletions(-) create mode 100644 ui/src/components/ui/read-error/ReadError.vue create mode 100644 ui/src/components/ui/read-error/index.ts diff --git a/ui/src/accounts/PersonalTokensCard.vue b/ui/src/accounts/PersonalTokensCard.vue index c837891e7..ee97d1048 100644 --- a/ui/src/accounts/PersonalTokensCard.vue +++ b/ui/src/accounts/PersonalTokensCard.vue @@ -1,5 +1,6 @@ + + diff --git a/ui/src/components/ui/read-error/index.ts b/ui/src/components/ui/read-error/index.ts new file mode 100644 index 000000000..420933599 --- /dev/null +++ b/ui/src/components/ui/read-error/index.ts @@ -0,0 +1 @@ +export { default as ReadError } from "./ReadError.vue"; diff --git a/ui/src/harness/HarnessPage.vue b/ui/src/harness/HarnessPage.vue index 1495cc321..a3d9ff010 100644 --- a/ui/src/harness/HarnessPage.vue +++ b/ui/src/harness/HarnessPage.vue @@ -11,6 +11,7 @@ import { onMounted, ref } from "vue"; import PageHeader from "@/base/PageHeader.vue"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; +import { ReadError } from "@/components/ui/read-error"; import { Badge } from "@/components/ui/badge"; import type { BadgeVariants } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; @@ -110,10 +111,7 @@ function scopes(binding: HarnessBinding): string {
- - Could not load the harness - {{ failure }} - +
diff --git a/ui/src/org/OrgAccessPage.vue b/ui/src/org/OrgAccessPage.vue index d2ae350b9..eff6e2316 100644 --- a/ui/src/org/OrgAccessPage.vue +++ b/ui/src/org/OrgAccessPage.vue @@ -1,5 +1,6 @@