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: standalone sub-tab title not reflecting active tab
rcourtman4a21c733e055
diff --git a/frontend-modern/src/AppLayout.tsx b/frontend-modern/src/AppLayout.tsxindex 195cce1b8a..a6ed099173 100644--- a/frontend-modern/src/AppLayout.tsx+++ b/frontend-modern/src/AppLayout.tsx@@ -56,6 +56,12 @@ const ROOT_VMWARE_PATH = buildVmwarePath();const ROOT_STANDALONE_PATH = buildStandalonePath();const ROOT_INFRASTRUCTURE_SETTINGS_PATH = buildInfrastructureWorkspacePath();const ROOT_ALERTS_PATH = '/alerts';++function resolveStandaloneSubTabTitle(pathname: string): string {+ const normalized = pathname.replace(/\/+$/, '');+ if (normalized === buildStandalonePath('availability')) return 'Availability checks';+ return 'Machines';+}const NAV_TAB_ICON_CLASS = 'w-4 h-4 shrink-0';const AI_CHAT_LAUNCHER_BUTTON_CLASS ='fixed right-4 bottom-[calc(5rem+env(safe-area-inset-bottom,0px))] z-40 flex h-11 w-11 items-center justify-center rounded-full border border-border bg-surface text-blue-600 shadow-lg transition-colors duration-200 hover:bg-surface-hover hover:text-blue-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 dark:text-blue-400 dark:hover:text-blue-300 lg:right-0 lg:top-1/2 lg:bottom-auto lg:h-auto lg:w-auto lg:min-h-9 lg:min-w-10 lg:-translate-y-1/2 lg:rounded-l-lg lg:rounded-r-none lg:border-r-0 lg:px-2.5 lg:py-2.5 lg:shadow-none';@@ -217,7 +223,19 @@ export function AppLayout(props: AppLayoutProps) {};createEffect(() => {const active = getActiveTabForPath(location.pathname);- document.title = active ? `${tabTitleByActive[active]} · Pulse` : 'Pulse';+ if (!active) {+ document.title = 'Pulse';+ return;+ }+ // The standalone (Machines) section has sub-tabs with their own labels.+ // Show the sub-tab title when one is active so the browser tab reflects+ // the actual page (e.g. "Availability checks" not "Machines").+ if (active === 'standalone') {+ const subTab = resolveStandaloneSubTabTitle(location.pathname);+ document.title = `${subTab} · Pulse`;+ return;+ }+ document.title = `${tabTitleByActive[active]} · Pulse`;});const toggleKioskMode = () => {diff --git a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx b/frontend-modern/src/features/standalone/StandalonePageSurface.tsxindex 28435c285a..47cd51cc88 100644--- a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx+++ b/frontend-modern/src/features/standalone/StandalonePageSurface.tsx@@ -94,11 +94,6 @@ export function StandalonePageSurface() {}});- createEffect(() => {- const tab = STANDALONE_TAB_SPECS.find((t) => t.id === activeTab());- document.title = `${tab?.label ?? 'Machines'} · Pulse`;- });-return (<div data-testid="standalone-page" class="space-y-4"><PlatformSectionTabs