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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Give resource drawers a proper region landmark
rcourtmanaa9fb9d9aaa2
diff --git a/frontend-modern/src/components/Docker/SwarmServicesDrawer.tsx b/frontend-modern/src/components/Docker/SwarmServicesDrawer.tsxindex 62311367d5..39802f5818 100644--- a/frontend-modern/src/components/Docker/SwarmServicesDrawer.tsx+++ b/frontend-modern/src/components/Docker/SwarmServicesDrawer.tsx@@ -180,8 +180,13 @@ export const SwarmServicesDrawer: Component<{ cluster: string; swarm?: SwarmInfo);const clusterId = createMemo(() => asTrimmedString(swarm()?.clusterId) ?? '');+ const headingId = () => `swarm-services-drawer-heading-${clusterKey() || 'cluster'}`;+return (- <div class="space-y-3">+ <section class="space-y-3" aria-labelledby={headingId()}>+ <h2 id={headingId()} class="sr-only">+ {clusterName() || 'Swarm cluster'} services+ </h2><Card padding="md"><div class="flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between"><div class="min-w-0">@@ -337,6 +342,6 @@ export const SwarmServicesDrawer: Component<{ cluster: string; swarm?: SwarmInfo<div class="text-xs text-muted">{getSwarmServicesLoadingState().text}</div></Card></Show>- </div>+ </section>);};diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsxindex 84e277ecd8..2f5cd48d23 100644--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx@@ -42,9 +42,10 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {resource: props.resource,resolveResourceLabel: props.resolveResourceLabel,});+ const headingId = () => `resource-detail-drawer-heading-${props.resource.id}`;return (- <div class="space-y-3">+ <section class="space-y-3" aria-labelledby={headingId()}><div class="flex items-start justify-between gap-4"><div class="space-y-1 min-w-0"><div class="flex items-center gap-2">@@ -54,12 +55,13 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {ariaLabel={drawer.statusIndicator().label}size="sm"/>- <div- class="text-sm font-semibold text-base-content truncate"+ <h2+ id={headingId()}+ class="text-sm font-semibold text-base-content truncate m-0"title={drawer.displayName()}>{drawer.displayName()}- </div>+ </h2></div><div class="flex flex-wrap gap-1.5" data-testid="resource-header-badges"><For each={drawer.headerBadges()}>@@ -246,7 +248,7 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {sources={drawer.mergedSources()}onClose={() => drawer.setShowReportModal(false)}/>- </div>+ </section>);};diff --git a/frontend-modern/src/components/Kubernetes/K8sDeploymentsDrawer.tsx b/frontend-modern/src/components/Kubernetes/K8sDeploymentsDrawer.tsxindex 857a86cb26..8fd9dade9a 100644--- a/frontend-modern/src/components/Kubernetes/K8sDeploymentsDrawer.tsx+++ b/frontend-modern/src/components/Kubernetes/K8sDeploymentsDrawer.tsx@@ -172,8 +172,13 @@ export const K8sDeploymentsDrawer: Component<{);};+ const headingId = () => `k8s-deployments-drawer-heading-${clusterName() || 'cluster'}`;+return (- <div class="space-y-3">+ <section class="space-y-3" aria-labelledby={headingId()}>+ <h2 id={headingId()} class="sr-only">+ {clusterName() || 'Kubernetes cluster'} deployments+ </h2><Card padding="md"><div class="flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between"><div class="min-w-0">@@ -306,7 +311,7 @@ export const K8sDeploymentsDrawer: Component<{<EmptyState {...getK8sDeploymentsLoadingState()} /></Card></Show>- </div>+ </section>);};diff --git a/frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx b/frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsxindex ea10e6c756..ea751b9d9b 100644--- a/frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx+++ b/frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx@@ -91,8 +91,13 @@ export const K8sNamespacesDrawer: Component<{);};+ const headingId = () => `k8s-namespaces-drawer-heading-${clusterName() || 'cluster'}`;+return (- <div class="space-y-3">+ <section class="space-y-3" aria-labelledby={headingId()}>+ <h2 id={headingId()} class="sr-only">+ {clusterName() || 'Kubernetes cluster'} namespaces+ </h2><Card padding="md"><div class="flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between"><div class="min-w-0">@@ -237,7 +242,7 @@ export const K8sNamespacesDrawer: Component<{</Show></Show></Show>- </div>+ </section>);};diff --git a/frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx b/frontend-modern/src/components/PMG/PMGInstanceDrawer.tsxindex aa4efbdcda..d3e842bea5 100644--- a/frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx+++ b/frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx@@ -200,8 +200,15 @@ export const PMGInstanceDrawer: Component<PMGInstanceDrawerProps> = (props) => {Math.max(0, ...spamBuckets().map((row) => row.count)),);+ const headingId = () => `pmg-drawer-heading-${resourceId() || 'instance'}`;+ const drawerLabel = () =>+ asTrimmedString(props.resourceName) || resourceId() || 'PMG instance';+return (- <div class="space-y-3">+ <section class="space-y-3" aria-labelledby={headingId()}>+ <h2 id={headingId()} class="sr-only">+ {drawerLabel()} details+ </h2><Show when={loadError()}><div role="alert" aria-live="assertive"><Card padding="lg" tone="danger">@@ -505,7 +512,7 @@ export const PMGInstanceDrawer: Component<PMGInstanceDrawerProps> = (props) => {)}</Show></Show>- </div>+ </section>);};diff --git a/frontend-modern/src/components/Workloads/GuestDrawer.tsx b/frontend-modern/src/components/Workloads/GuestDrawer.tsxindex ba8499657d..bde22cc552 100644--- a/frontend-modern/src/components/Workloads/GuestDrawer.tsx+++ b/frontend-modern/src/components/Workloads/GuestDrawer.tsx@@ -32,9 +32,13 @@ export const GuestDrawer: Component<GuestDrawerProps> = (props) => {switchTab,webInterfaceTargetLabel,} = useGuestDrawerState(props);+ const headingId = () => `guest-drawer-heading-${guestId()}`;return (- <div class="space-y-3">+ <section class="space-y-3" aria-labelledby={headingId()}>+ <h2 id={headingId()} class="sr-only">+ {props.guest.name} details+ </h2>{/* Tabs */}<div class="flex items-center gap-6 border-b border-border px-1 mb-1"><button@@ -122,6 +126,6 @@ export const GuestDrawer: Component<GuestDrawerProps> = (props) => {</Suspense></div>)}- </div>+ </section>);};