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
Fix Patrol heading accessible name
rcourtmanfee9f7b9daba
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 6fd0b18233..7ece9ce32f 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -246,6 +246,7 @@ the canonical monitored-system blocked payload.and the shared `frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx` and `frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx` cards' infrastructure resource-link default, so the Patrol page, resource drawer, and problem-resource dashboard panels inherit the canonical resource-filter path construction instead of rebuilding infrastructure URLs inlineand the Patrol runtime-remediation destination shared with `/api/settings/ai`, so summary actions and runtime-finding actions may reuse the governed provider-settings route while still presenting that destination to Patrol operators as Patrol provider configuration instead of generic `AI Settings` copyand the Patrol route-shell destination itself, so the thin page shell at `frontend-modern/src/pages/AIIntelligence.tsx` may continue to bridge the shared AI-runtime payload boundary while exposing `/patrol` as the canonical product route and preserving `/ai` only as a compatibility redirect+ and the Patrol route-shell accessibility boundary, so brand icons in `frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx` stay decorative when the same heading already exposes visible Patrol text, preventing duplicate accessible names such as `Pulse Patrol Patrol`9. Route frontend API-client parsed error propagation, API-error-status fallback handling, allowed-status handling, custom status-specific error handling, command-trigger success envelope handling, shared response parsing pipelines, missing-resource lookup handling, metadata CRUD routing, stream event consumption, response status, collection normalization, scalar payload coercion, and structured error normalization through canonical shared helpers under `frontend-modern/src/api/`That same shared org-management client boundary now owns target-consentsharing semantics across `frontend-modern/src/api/orgs.ts`,diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 6d5a8bea02..32429d6dac 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -518,7 +518,10 @@ work extends shared components instead of creating new local variants.`frontend-modern/src/App.tsx` and `frontend-modern/src/AppLayout.tsx` mustlikewise expose `/patrol` as the canonical route and navigation target,keeping legacy `/ai` entry points as thin compatibility redirects rather- than a second Patrol-branded primary route. The Patrol-owned supporting-context+ than a second Patrol-branded primary route. `PatrolIntelligenceHeader.tsx`+ must also keep the page heading's accessible name singular: when the+ `PulsePatrolLogo` appears beside visible Patrol heading text, it is+ decorative rather than a second label source. The Patrol-owned supporting-contextpresenter must also keep the disclosure toggle plus evidence-boundary copycentralized instead of letting the workspace reintroduce inline shell-localtrust wording.diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex 0adda200f1..aea4e27ee4 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -86,6 +86,10 @@ Patrol-specific presentation helpers.for explicit provider/configuration settings, shared runtime internals, orother technical capability boundaries where the underlying ownership reallyis AI runtime rather than the Patrol product surface.+6. Keep Patrol brand icon accessibility contextual: `PulsePatrolLogo` remains+ label-bearing when the icon stands alone, but Patrol headings and actions+ that already include visible Patrol text must render the logo as decorative+ so accessible names do not repeat as `Pulse Patrol Patrol`.## Current Statediff --git a/frontend-modern/src/components/Brand/PulsePatrolLogo.tsx b/frontend-modern/src/components/Brand/PulsePatrolLogo.tsxindex 764cd7ed09..5360114868 100644--- a/frontend-modern/src/components/Brand/PulsePatrolLogo.tsx+++ b/frontend-modern/src/components/Brand/PulsePatrolLogo.tsx@@ -1,18 +1,21 @@-import type { Component } from 'solid-js';+import { Show, type Component } from 'solid-js';interface PulsePatrolLogoProps {class?: string;+ decorative?: boolean;title?: string;}export const PulsePatrolLogo: Component<PulsePatrolLogoProps> = (props) => {const title = () => props.title ?? 'Pulse Patrol';+ const decorative = () => props.decorative === true;return (<svgviewBox="0 0 24 24"xmlns="http://www.w3.org/2000/svg"- aria-label={title()}+ aria-hidden={decorative() ? 'true' : undefined}+ aria-label={decorative() ? undefined : title()}class={props.class}fill="none"stroke="currentColor"@@ -20,7 +23,9 @@ export const PulsePatrolLogo: Component<PulsePatrolLogoProps> = (props) => {stroke-linecap="round"stroke-linejoin="round">- <title>{title()}</title>+ <Show when={!decorative()}>+ <title>{title()}</title>+ </Show>{/* Infinity loop */}<path d="M12 12c-2-2.67-4-4-6-4a4 4 0 1 0 0 8c2 0 4-1.33 6-4Zm0 0c2 2.67 4 4 6 4a4 4 0 1 0 0-8c-2 0-4 1.33-6 4Z" /></svg>diff --git a/frontend-modern/src/components/Brand/__tests__/PulsePatrolLogo.test.tsx b/frontend-modern/src/components/Brand/__tests__/PulsePatrolLogo.test.tsxindex abba3f0561..eef4a47db0 100644--- a/frontend-modern/src/components/Brand/__tests__/PulsePatrolLogo.test.tsx+++ b/frontend-modern/src/components/Brand/__tests__/PulsePatrolLogo.test.tsx@@ -82,4 +82,14 @@ describe('PulsePatrolLogo', () => {const titleEl = svg!.querySelector('title');expect(titleEl!.textContent).toBe('');});++ it('renders as decorative when the surrounding UI already provides the label', () => {+ const { container } = render(() => <PulsePatrolLogo decorative />);++ const svg = container.querySelector('svg');+ expect(svg).not.toBeNull();+ expect(svg).toHaveAttribute('aria-hidden', 'true');+ expect(svg).not.toHaveAttribute('aria-label');+ expect(svg!.querySelector('title')).toBeNull();+ });});diff --git a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsxindex 3101190f10..a03d5ba9a9 100644--- a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx+++ b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx@@ -72,7 +72,7 @@ export function PatrolIntelligenceHeader(props: { state: PatrolIntelligenceStateclass="inline-flex items-center gap-3"title="Pulse Patrol continuously verifies your infrastructure, surfaces actionable findings, and can automatically fix issues based on your autonomy settings.">- <PulsePatrolLogo class="w-6 h-6 text-base-content" />+ <PulsePatrolLogo class="w-6 h-6 text-base-content" decorative /><span>{headerMeta.title}</span></span>}diff --git a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsxindex e543051c28..74ec15e96e 100644--- a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx+++ b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx@@ -301,7 +301,13 @@ vi.mock('@/components/shared/Toggle', () => ({}));vi.mock('@/components/Brand/PulsePatrolLogo', () => ({- PulsePatrolLogo: () => <div data-testid="pulse-patrol-logo" />,+ PulsePatrolLogo: (props: { decorative?: boolean; title?: string }) => (+ <svg+ data-testid="pulse-patrol-logo"+ aria-hidden={props.decorative ? 'true' : undefined}+ aria-label={props.decorative ? undefined : (props.title ?? 'Pulse Patrol')}+ />+ ),}));const defaultPatrolStatus = (overrides: Record<string, unknown> = {}) => ({@@ -406,6 +412,19 @@ describe('AIIntelligence entitlement gating', () => {});});+ it('keeps the Patrol page heading accessible name singular when the logo is present', async () => {+ getPatrolStatusMock.mockResolvedValue(defaultPatrolStatus({ license_required: false }));++ render(() => <AIIntelligence />);++ await waitFor(() => {+ expect(screen.getByRole('heading', { name: 'Patrol' })).toBeInTheDocument();+ });++ expect(screen.queryByRole('heading', { name: 'Pulse Patrol Patrol' })).not.toBeInTheDocument();+ expect(screen.getByTestId('pulse-patrol-logo')).toHaveAttribute('aria-hidden', 'true');+ });+it('renders canonical learned correlations in the summary page through the correlation card', async () => {hasFeatureMock.mockReturnValue(true);licenseStatusMock.mockReturnValue({ subscription_state: 'active' });