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
refactor(shell): route whats-new recovery link canonically
rcourtman6f4288383ed5
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex fdea75c21a..a89cbb5c16 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -595,7 +595,10 @@ local-storage dismissal, session dismissal, and close behavior, and`frontend-modern/src/components/shared/whatsNewModalModel.ts` owns the featurecard catalog, telemetry copy, labels, and canonical docs/privacy links. Futurewhat's-new work should extend those owners instead of pushing dismissal state,-product copy, or external links back into the shared shell.+product copy, or external links back into the shared shell. Internal product+navigation from that shell should still route through canonical shared helpers+such as `frontend-modern/src/routing/resourceLinks.ts` rather than freezing raw+`/recovery?...` route strings into the modal itself.The shared tooltip now follows that same owner split.`frontend-modern/src/components/shared/Tooltip.tsx` stays the render shell andsingleton API boundary, `frontend-modern/src/components/shared/useTooltipState.ts`diff --git a/frontend-modern/src/components/shared/WhatsNewModal.tsx b/frontend-modern/src/components/shared/WhatsNewModal.tsxindex 4a7ac2058b..5c5183d1f4 100644--- a/frontend-modern/src/components/shared/WhatsNewModal.tsx+++ b/frontend-modern/src/components/shared/WhatsNewModal.tsx@@ -7,6 +7,7 @@ import ShieldCheckIcon from 'lucide-solid/icons/shield-check';import ChartBarIcon from 'lucide-solid/icons/chart-bar';import ExternalLinkIcon from 'lucide-solid/icons/external-link';import XIcon from 'lucide-solid/icons/x';+import { buildRecoveryPath } from '@/routing/resourceLinks';import {WHATS_NEW_CLOSE_LABEL,WHATS_NEW_DOCS_LABEL,@@ -42,6 +43,7 @@ function WhatsNewFeatureIcon(props: { card: WhatsNewFeatureCard }) {export function WhatsNewModal() {const state = useWhatsNewModalState();+ const recoveryEventsHref = buildRecoveryPath({ view: 'events', mode: 'remote' });return (<Dialog@@ -128,7 +130,7 @@ export function WhatsNewModal() {<ExternalLinkIcon class="h-4 w-4" /></a><a- href="/recovery?view=events&mode=remote"+ href={recoveryEventsHref}class="inline-flex items-center gap-1 text-sm font-medium text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300">{WHATS_NEW_RECOVERY_LINK_LABEL}diff --git a/frontend-modern/src/components/shared/__tests__/WhatsNewModal.test.tsx b/frontend-modern/src/components/shared/__tests__/WhatsNewModal.test.tsxindex aa035bd7f6..7415ce68a8 100644--- a/frontend-modern/src/components/shared/__tests__/WhatsNewModal.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/WhatsNewModal.test.tsx@@ -23,6 +23,8 @@ describe('WhatsNewModal', () => {expect(whatsNewModalSource).not.toContain('WHATS_NEW_NAV_V2_SHOWN');expect(whatsNewModalSource).not.toContain('Infrastructure');expect(whatsNewModalSource).not.toContain('Documentation');+ expect(whatsNewModalSource).toContain('buildRecoveryPath');+ expect(whatsNewModalSource).not.toContain('href="/recovery?view=events&mode=remote"');expect(whatsNewModalSource).not.toContain('https://github.com/rcourtman/Pulse/blob/main/docs/PRIVACY.md');expect(whatsNewModalStateSource).toContain('export function useWhatsNewModalState');@@ -84,4 +86,11 @@ describe('WhatsNewModal', () => {expect(screen.getByRole('dialog')).toBeInTheDocument();});});++ it('routes the recovery CTA through the canonical recovery link helper', async () => {+ render(() => <WhatsNewModal />);++ const recoveryLink = await screen.findByRole('link', { name: 'Recovery events' });+ expect(recoveryLink).toHaveAttribute('href', '/recovery?view=events&mode=remote');+ });});