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 AISettings + K8s namespaces errors to screen readers

rcourtman6a3ee577555b
diff --git a/frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx b/frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx
index 90db462ef1..ea10e6c756 100644
--- a/frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx
+++ b/frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx
@@ -130,9 +130,11 @@ export const K8sNamespacesDrawer: Component<{
<Show
when={!loadError()}
fallback={
- <Card padding="lg" tone="danger">
- <EmptyState {...getK8sNamespacesFailureState(loadError())} tone="danger" />
- </Card>
+ <div role="alert" aria-live="assertive">
+ <Card padding="lg" tone="danger">
+ <EmptyState {...getK8sNamespacesFailureState(loadError())} tone="danger" />
+ </Card>
+ </div>
}
>
<Show
diff --git a/frontend-modern/src/components/Settings/AISettings.tsx b/frontend-modern/src/components/Settings/AISettings.tsx
index bd868b7c23..064bbe587e 100644
--- a/frontend-modern/src/components/Settings/AISettings.tsx
+++ b/frontend-modern/src/components/Settings/AISettings.tsx
@@ -54,7 +54,11 @@ export const AISettings: Component = () => {
</Show>
<Show when={!state.loading() && state.loadError()}>
- <div class="flex items-center justify-between gap-3 p-4 sm:p-6 bg-red-50 dark:bg-red-900/30 border-b border-red-200 dark:border-red-800">
+ <div
+ role="alert"
+ aria-live="assertive"
+ class="flex items-center justify-between gap-3 p-4 sm:p-6 bg-red-50 dark:bg-red-900/30 border-b border-red-200 dark:border-red-800"
+ >
<div class="flex items-center gap-2 text-sm text-red-700 dark:text-red-300">
<svg
class="h-4 w-4 flex-shrink-0"