Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Announce PMG, AI cost, and merge-modal errors to screen readers

rcourtman84f582707ac0
diff --git a/frontend-modern/src/components/AI/AICostDashboard.tsx b/frontend-modern/src/components/AI/AICostDashboard.tsx
index 4e2077ba6a..1ce6ab6343 100644
--- a/frontend-modern/src/components/AI/AICostDashboard.tsx
+++ b/frontend-modern/src/components/AI/AICostDashboard.tsx
@@ -347,7 +347,11 @@ export const AICostDashboard: Component = () => {
</Show>
<Show when={loadError() && summary()}>
- <div class="flex items-center justify-between gap-3 text-xs px-3 py-2 rounded border border-amber-200 dark:border-amber-800 bg-amber-50 dark:bg-amber-900 text-amber-900 dark:text-amber-100">
+ <div
+ role="alert"
+ aria-live="polite"
+ class="flex items-center justify-between gap-3 text-xs px-3 py-2 rounded border border-amber-200 dark:border-amber-800 bg-amber-50 dark:bg-amber-900 text-amber-900 dark:text-amber-100"
+ >
<div class="truncate">Couldn’t refresh. Showing last loaded data. {loadError()}</div>
<button
type="button"
diff --git a/frontend-modern/src/components/Infrastructure/ReportMergeModal.tsx b/frontend-modern/src/components/Infrastructure/ReportMergeModal.tsx
index 43560a9b00..2374575227 100644
--- a/frontend-modern/src/components/Infrastructure/ReportMergeModal.tsx
+++ b/frontend-modern/src/components/Infrastructure/ReportMergeModal.tsx
@@ -131,7 +131,11 @@ export const ReportMergeModal: Component<ReportMergeModalProps> = (props) => {
</div>
<Show when={error()}>
- <div class="rounded-md border border-red-200 bg-red-50 px-3 py-2 text-xs text-red-700 dark:border-red-900 dark:bg-red-900 dark:text-red-200">
+ <div
+ role="alert"
+ aria-live="assertive"
+ class="rounded-md border border-red-200 bg-red-50 px-3 py-2 text-xs text-red-700 dark:border-red-900 dark:bg-red-900 dark:text-red-200"
+ >
{error()}
</div>
</Show>
diff --git a/frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx b/frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx
index a72f1775bb..aa4efbdcda 100644
--- a/frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx
+++ b/frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx
@@ -203,13 +203,15 @@ export const PMGInstanceDrawer: Component<PMGInstanceDrawerProps> = (props) => {
return (
<div class="space-y-3">
<Show when={loadError()}>
- <Card padding="lg" tone="danger">
- <EmptyState
- title={PMG_DETAILS_FAILURE_STATE_TITLE}
- description={loadError()}
- tone="danger"
- />
- </Card>
+ <div role="alert" aria-live="assertive">
+ <Card padding="lg" tone="danger">
+ <EmptyState
+ title={PMG_DETAILS_FAILURE_STATE_TITLE}
+ description={loadError()}
+ tone="danger"
+ />
+ </Card>
+ </div>
</Show>
<Show
when={!resource.loading}