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 assistant launcher mobile positioning
rcourtmand2dbd0dab1b1
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex 51960119d4..f179d52851 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -279,6 +279,12 @@ become an overlay owned by `frontend-modern/src/components/AI/Chat/index.tsx`instead of compressing Infrastructure, Dashboard, Storage, or other primaryruntime pages into an unusable narrow column or forking page-local layoutexceptions.+The closed assistant launcher follows the same shared-shell rule. While the+mobile navigation shell is active, `frontend-modern/src/AppLayout.tsx` must+present the launcher as a bottom floating affordance that clears the mobile+nav instead of restoring the desktop right-edge rail at an earlier breakpoint.+The edge-mounted launcher is only valid at the desktop shell breakpoint where+the primary navigation and page chrome are also desktop-mode.Non-AI shell notices may coexist in `frontend-modern/src/AppLayout.tsx`, butthey must remain presentation-only. Prerelease banners, billing callouts, orother header-adjacent notices must not fork assistant open state, gate on AIdiff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex ba4ee8c0c3..181f0f52df 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -1295,6 +1295,12 @@ back into one monolithic route component.That same authenticated shell split must also respect shared blocking dialogs:hosted chrome may not leave the Pulse Assistant launcher or an already-openassistant drawer interactive behind a modal that currently owns the viewport.+That same hosted chrome rule also covers responsive launcher placement. While+the authenticated shell is using mobile navigation, `frontend-modern/src/AppLayout.tsx`+must keep the closed Pulse Assistant launcher as a bottom floating affordance+that clears the mobile nav; it must not reintroduce the desktop right-edge+launcher until the desktop shell breakpoint, otherwise hosted and self-hosted+operators lose usable dashboard and billing-page edge space at tablet widths.That same authenticated shell contract now also has to distinguish backendavailability from websocket-stream liveness. When hosted runtime health staysavailable during a stream reconnect or renegotiation window,diff --git a/frontend-modern/src/AppLayout.tsx b/frontend-modern/src/AppLayout.tsxindex 5a520f84bf..ea4c2bb552 100644--- a/frontend-modern/src/AppLayout.tsx+++ b/frontend-modern/src/AppLayout.tsx@@ -10,6 +10,7 @@ import BellIcon from 'lucide-solid/icons/bell';import SettingsIcon from 'lucide-solid/icons/settings';import Maximize2Icon from 'lucide-solid/icons/maximize-2';import Minimize2Icon from 'lucide-solid/icons/minimize-2';+import SparklesIcon from 'lucide-solid/icons/sparkles';import {MobileNavBar,type MobileNavBarPlatformTab as PlatformTab,@@ -44,6 +45,8 @@ import type { AppConnectionStatus } from '@/useAppRuntimeState';const ROOT_INFRASTRUCTURE_PATH = buildInfrastructurePath();const ROOT_WORKLOADS_PATH = buildWorkloadsPath();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';export interface AppLayoutProps {connectionStatus: () => AppConnectionStatus;@@ -763,23 +766,11 @@ export function AppLayout(props: AppLayoutProps) {<buttontype="button"onClick={() => aiChatStore.toggle()}- class="fixed right-0 top-1/2 -translate-y-1/2 z-40 flex min-h-10 sm:min-h-9 min-w-10 items-center justify-center px-2.5 py-2.5 rounded-l-lg border border-r-0 border-border bg-surface text-blue-600 dark:text-blue-400 hover:bg-surface-hover hover:text-blue-700 dark:hover:text-blue-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 transition-colors duration-200 group sm:top-1/2 sm:translate-y-[-50%] top-auto bottom-[calc(5rem+env(safe-area-inset-bottom,0px))] translate-y-0"+ class={AI_CHAT_LAUNCHER_BUTTON_CLASS}title={getAIChatLauncherTitle(aiChatStore.context.context?.name)}aria-label={AI_CHAT_LAUNCHER_ARIA_LABEL}>- <svg- class="h-5 w-5 flex-shrink-0"- fill="none"- stroke="currentColor"- viewBox="0 0 24 24"- stroke-width="1.5"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- d="M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"- />- </svg>+ <SparklesIcon class="h-5 w-5 flex-shrink-0" /></button></Show></div>diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.tsindex 6dc0c63d2d..8337164724 100644--- a/frontend-modern/src/__tests__/App.architecture.test.ts+++ b/frontend-modern/src/__tests__/App.architecture.test.ts@@ -155,6 +155,13 @@ describe('App architecture', () => {expect(appLayoutSource).toContain('!dialogStackHasBlockingDialog()');expect(appLayoutSource).toContain('onClick={() => aiChatStore.toggle()}');expect(appLayoutSource).toContain('getAIChatLauncherTitle');+ expect(appLayoutSource).toContain('const AI_CHAT_LAUNCHER_BUTTON_CLASS =');+ expect(appLayoutSource).toContain(+ 'bottom-[calc(5rem+env(safe-area-inset-bottom,0px))]',+ );+ expect(appLayoutSource).toContain('lg:top-1/2');+ expect(appLayoutSource).toContain('lg:bottom-auto');+ expect(appLayoutSource).not.toContain('sm:top-1/2');expect(appLayoutSource).not.toContain('Pulse Assistant (⌘K)');expect(appSource).not.toContain("eventBus.on('theme_changed'");expect(appSource).not.toContain("eventBus.on('websocket_reconnected'");diff --git a/frontend-modern/src/__tests__/AppLayout.test.tsx b/frontend-modern/src/__tests__/AppLayout.test.tsxindex 4add3017d5..d101a7a49d 100644--- a/frontend-modern/src/__tests__/AppLayout.test.tsx+++ b/frontend-modern/src/__tests__/AppLayout.test.tsx@@ -3,15 +3,20 @@ import { Route, Router } from '@solidjs/router';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';import type { State } from '@/types/api';import { AppLayout } from '@/AppLayout';+import { aiChatStore } from '@/stores/aiChat';HTMLElement.prototype.scrollIntoView = vi.fn();describe('AppLayout navigation icons', () => {beforeEach(() => {window.history.replaceState({}, '', '/dashboard');+ aiChatStore.close();+ aiChatStore.setEnabled(true);});afterEach(() => {+ aiChatStore.close();+ aiChatStore.setEnabled(false);cleanup();});@@ -94,4 +99,19 @@ describe('AppLayout navigation icons', () => {expect(wordmark).not.toHaveClass('animate-pulse-brand');expect(container.querySelector('.animate-pulse-logo')).toBeNull();});++ it('keeps the assistant launcher clear of the mobile navigation breakpoint', () => {+ renderLayout();++ const launcher = screen.getByRole('button', { name: 'Expand Pulse Assistant' });+ const launcherClass = launcher.getAttribute('class') ?? '';++ expect(launcherClass).toContain('right-4');+ expect(launcherClass).toContain('bottom-[calc(5rem+env(safe-area-inset-bottom,0px))]');+ expect(launcherClass).toContain('rounded-full');+ expect(launcherClass).toContain('lg:right-0');+ expect(launcherClass).toContain('lg:top-1/2');+ expect(launcherClass).toContain('lg:bottom-auto');+ expect(launcherClass).not.toContain('sm:top-1/2');+ });});