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(ui): keep assistant clear of mobile tables
rcourtmana4478ce6734d
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 0c0befd6dd..a8ea1f1717 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,27 +1,27 @@{"version": 1,- "base_sha": "b724dc1a9d7e2683bd8a8e0a3738aa1624c538d2",- "verified_at": "2026-08-05T23:01:14Z",+ "base_sha": "c42399e2c389ff29652e95a5bb672fc09b545173",+ "verified_at": "2026-08-05T23:17:45Z","result": "passed",- "changed_paths": ["frontend-modern/src/components/Settings/APITokenManager.tsx"],+ "changed_paths": ["frontend-modern/src/AppLayout.tsx"],"content_sha256": {- "frontend-modern/src/components/Settings/APITokenManager.tsx": "86eb27e2ddea78dfef789df8422fab56b25e1ad1f7679c967265f430ef168758"+ "frontend-modern/src/AppLayout.tsx": "1c439db068a2c751e3302019e8234b8fad9235b3938520eb27b5de596de9851f"},- "routes": ["/settings/security/api"],+ "routes": ["/vmware/overview"],"viewports": [{ "width": 1920, "height": 900 },- { "width": 390, "height": 844 }+ { "width": 320, "height": 820 }],"states": [- "desktop API token inventory with the scope editor opened and dismissed",- "phone API token cards with the scope editor contained inside the viewport",- "phone revoke confirmation opened and dismissed",- "scope editor measured at 358 pixels wide with zero document overflow"+ "vSphere hosts and workloads tables with the Assistant launcher visible",+ "phone launcher rendered as a 32 by 44 pixel right-edge tab",+ "phone Assistant overlay open over the vSphere overview",+ "desktop Assistant launcher and overlay"],"interactions": [- "opened Edit scopes and cancelled with the Cancel button at desktop and phone widths",- "opened Edit scopes and dismissed it with Escape at phone width",- "opened Revoke and cancelled the confirmation at phone width",- "confirmed each close path returned keyboard focus to its exact triggering button"+ "opened Pulse Assistant from the vSphere overview at phone and desktop widths",+ "closed Pulse Assistant with its header control at phone and desktop widths",+ "confirmed each close returned keyboard focus to the vSphere Assistant launcher",+ "measured both visible tables and confirmed they exactly matched their containers with zero document overflow"]}diff --git a/frontend-modern/src/AppLayout.tsx b/frontend-modern/src/AppLayout.tsxindex e094b1c00c..ee3491954d 100644--- a/frontend-modern/src/AppLayout.tsx+++ b/frontend-modern/src/AppLayout.tsx@@ -129,7 +129,7 @@ export function sessionHasSettingsAccess(scopes: string[] | undefined): boolean}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';+ 'fixed right-0 bottom-[calc(5rem+env(safe-area-inset-bottom,0px))] z-40 flex h-11 w-8 items-center justify-center rounded-l-full rounded-r-none border border-r-0 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: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:px-2.5 lg:py-2.5 lg:shadow-none';function getDesktopUtilityTabAriaLabel(tab: UtilityTab): string {const count = tab.count ?? 0;@@ -247,6 +247,8 @@ export function AppLayout(props: AppLayoutProps) {const [headerVisible, setHeaderVisible] = createSignal(true);const [skipLinkFocused, setSkipLinkFocused] = createSignal(false);let headerEl: HTMLDivElement | undefined;+ let assistantLauncherEl: HTMLButtonElement | undefined;+ let restoreAssistantLauncherFocus = false;let headerHideTimeout: ReturnType<typeof setTimeout> | undefined;const clearHeaderHideTimeout = () => {@@ -436,6 +438,17 @@ export function AppLayout(props: AppLayoutProps) {const getActiveTabDesktop = () => getActiveTabForPath(location.pathname);const getActiveTabMobile = () => getActiveTabForPath(location.pathname);const assistantPageContext = createMemo(() => getAssistantPageContext(location.pathname));+ const openAssistantFromLauncher = () => {+ restoreAssistantLauncherFocus = true;+ aiChatStore.open(assistantPageContext().context);+ };+ createEffect(() => {+ if (aiChatStore.isOpenSignal() || !restoreAssistantLauncherFocus) return;+ restoreAssistantLauncherFocus = false;+ queueMicrotask(() => {+ if (assistantLauncherEl?.isConnected) assistantLauncherEl.focus();+ });+ });const actionApprovalBadge = createMemo(() =>getActionApprovalBadgePresentation(actionInboxStore.pendingActionCount),);@@ -1052,8 +1065,9 @@ export function AppLayout(props: AppLayoutProps) {leaving the screen-edge click zone dead. */}<Portal><button+ ref={assistantLauncherEl}type="button"- onClick={() => aiChatStore.open(assistantPageContext().context)}+ onClick={openAssistantFromLauncher}class={AI_CHAT_LAUNCHER_BUTTON_CLASS}title={assistantPageContext().title}aria-label={assistantPageContext().ariaLabel}diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.tsindex c63bda3621..6384239cf1 100644--- a/frontend-modern/src/__tests__/App.architecture.test.ts+++ b/frontend-modern/src/__tests__/App.architecture.test.ts@@ -500,9 +500,7 @@ describe('App architecture', () => {expect(appLayoutSource).toContain('onMouseEnter={() => warmNavigationTarget(');expect(appLayoutSource).toContain('aiChatStore.enabled === true &&');expect(appLayoutSource).toContain('!dialogStackHasBlockingDialog()');- expect(appLayoutSource).toContain(- 'onClick={() => aiChatStore.open(assistantPageContext().context)}',- );+ expect(appLayoutSource).toContain('onClick={openAssistantFromLauncher}');expect(appLayoutSource).toContain('getAssistantPageContext');expect(appLayoutSource).toContain('const AI_CHAT_LAUNCHER_BUTTON_CLASS =');expect(appLayoutSource).toContain('bottom-[calc(5rem+env(safe-area-inset-bottom,0px))]');diff --git a/frontend-modern/src/__tests__/AppLayout.test.tsx b/frontend-modern/src/__tests__/AppLayout.test.tsxindex dbd21e151e..ba59bc81f1 100644--- a/frontend-modern/src/__tests__/AppLayout.test.tsx+++ b/frontend-modern/src/__tests__/AppLayout.test.tsx@@ -11,10 +11,7 @@ import {import { isKioskMode, setKioskMode } from '@/utils/url';import type { PlatformNavigationVisibility } from '@/features/platformNavigation/platformNavigationModel';import { aiChatStore } from '@/stores/aiChat';-import {- clearRuntimeBranding,- updateRuntimeBrandingFromResponse,-} from '@/stores/systemSettings';+import { clearRuntimeBranding, updateRuntimeBrandingFromResponse } from '@/stores/systemSettings';HTMLElement.prototype.scrollIntoView = vi.fn();window.scrollTo = vi.fn();@@ -358,16 +355,19 @@ describe('AppLayout navigation icons', () => {expect(document.title).toBe('Settings · Acme Operations');});- it('keeps the assistant launcher clear of the mobile navigation breakpoint', () => {+ it('keeps the assistant launcher in the mobile edge gutter above navigation', () => {renderLayout();const launcher = screen.getByRole('button', { name: 'Ask Pulse Assistant about Settings' });const launcherClass = launcher.getAttribute('class') ?? '';- expect(launcherClass).toContain('right-4');+ expect(launcherClass).toContain('right-0');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('h-11');+ expect(launcherClass).toContain('w-8');+ expect(launcherClass).toContain('rounded-l-full');+ expect(launcherClass).toContain('rounded-r-none');+ expect(launcherClass).toContain('border-r-0');expect(launcherClass).toContain('lg:top-1/2');expect(launcherClass).toContain('lg:bottom-auto');expect(launcherClass).not.toContain('sm:top-1/2');@@ -399,6 +399,31 @@ describe('AppLayout navigation icons', () => {}),);});+ openAssistant.mockRestore();+ });++ it('returns focus to the Assistant launcher after chat closes', async () => {+ renderLayout();++ const launcher = screen.getByRole('button', {+ name: 'Ask Pulse Assistant about Settings',+ });+ launcher.focus();+ await fireEvent.click(launcher);++ await waitFor(() => {+ expect(+ screen.queryByRole('button', { name: 'Ask Pulse Assistant about Settings' }),+ ).not.toBeInTheDocument();+ });++ aiChatStore.close();++ await waitFor(() => {+ expect(+ screen.getByRole('button', { name: 'Ask Pulse Assistant about Settings' }),+ ).toHaveFocus();+ });});});