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
Disable hover tooltips for touch interactions
rcourtmanfaf6425d0ff9
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 064668a558..0d503938e7 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -4576,6 +4576,12 @@ When a shared portal tooltip is already visible, that same owner mustreschedule positioning on live coordinate and viewport changes so chart hovertooltips keep following the active pointer instead of sticking to their firstanchor.+Floating hover tooltips are a fine-pointer interaction only. The shared+tooltip hook, portal, and singleton API must suppress them when the primary+device reports no hover capability or a coarse pointer, because touch browsers+may synthesize mouse-enter before the row click that should open canonical+details. Desktop pointer and keyboard interaction remain unchanged; mobile row+activation must continue directly to its drawer or other primary action.The shared collapsible search input now follows that same owner split.`frontend-modern/src/components/shared/CollapsibleSearchInput.tsx` stays therender shell, `frontend-modern/src/components/shared/useCollapsibleSearchInputState.ts`diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 9b459a6f0c..f1c81abd5d 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -620,6 +620,10 @@ change may globally weaken the Task 03 lifecycle-state idempotency invariant.8. Render workload row identity directly from the shared canonical workload helper so row selection, hover, and fallback metadata lookup stay aligned with the same workload contract9. Format infrastructure sensor labels through the shared `frontend-modern/src/utils/textPresentation.ts` presentation helper instead of maintaining a local title-casing implementation in `frontend-modern/src/components/Infrastructure/resourceDetailMappers.ts`10. Extend workload row contract and per-row hot-path derivations through `frontend-modern/src/components/Workloads/guestRowModel.tsx` and `frontend-modern/src/components/Workloads/useGuestRowState.ts`, and extend tooltip-backed row cell presentation through `frontend-modern/src/components/Workloads/GuestRowCells.tsx`, rather than rebuilding column metadata, row identity, cell tooltips, or anomaly correlation inside `frontend-modern/src/components/Workloads/GuestRow.tsx`+ On coarse-pointer touch layouts, those cell details must not spawn floating+ hover tooltips from synthesized mouse events; a row tap remains the primary+ drawer action. Tooltip suppression belongs to the shared hover-capability+ boundary rather than per-row viewport branches or listeners.Ultra-narrow workload presentation belongs in the existing layout andcolumn model: below 360 pixels it keeps five identity/health columns with a40-percent identity track. It must not add per-row measurement, viewportdiff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 37b26060fb..b610959d8e 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,68 +1,25 @@{"version": 1,- "base_sha": "7e363e40e7aa21bf4d5029108a217c0f93b963b5",- "verified_at": "2026-08-24T15:09:06Z",+ "base_sha": "714b26b69f8a39d906b041dbf1b64d5d623632c1",+ "verified_at": "2026-08-24T15:30:00Z","result": "passed","changed_paths": [- "frontend-modern/src/features/docker/DockerAlertsTable.tsx",- "frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx",- "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx",- "frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx",- "frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx",- "frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx",- "frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx",- "frontend-modern/src/features/standalone/AgentsMachinesTable.tsx",- "frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx",- "frontend-modern/src/features/truenas/TrueNASAppsTable.tsx",- "frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx",- "frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx",- "frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx",- "frontend-modern/src/features/truenas/TrueNASSystemsTable.tsx",- "frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx",- "frontend-modern/src/features/vmware/VsphereActivityTable.tsx",- "frontend-modern/src/features/vmware/VsphereAlertsTable.tsx",- "frontend-modern/src/index.css"+ "frontend-modern/src/components/shared/TooltipPortal.tsx",+ "frontend-modern/src/components/shared/hoverCapability.ts",+ "frontend-modern/src/components/shared/useTooltipState.ts",+ "frontend-modern/src/hooks/useTooltip.ts"],"content_sha256": {- "frontend-modern/src/features/docker/DockerAlertsTable.tsx": "c9cee8ac612f616810964394ca2873c44bc36abe5313a61e3d26a74579c9f1d5",- "frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx": "3840ec971c93e89fe6842d942493b4811cf7b6c76a9c66b28c3480be14ecf304",- "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx": "0a76cb318523582bb1342ff23161041642ffcf5259c2205d127df11ed68e7584",- "frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx": "efa5326b0bd8562348107513c632c44aa828eb03942b056acf2f53b25da3301b",- "frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx": "22cdce43826f6543f0bf295099a4362c3428d80a8781064b7a3249323204ad06",- "frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx": "216a0e0576145864500f4b975d5699a3fe6abc4fa226664f7522a19205030fa2",- "frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx": "8703f76bb5decb5a80a17d6cb221443d91691fb513619bd39bfd771092e66edc",- "frontend-modern/src/features/standalone/AgentsMachinesTable.tsx": "3973e4bbb836c796d558f298b6c5c6e30ee36c608923ffe030118f23c2c101b6",- "frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx": "87a3793e3871abfa534bff3220a433cf7e6ae75a658fd93813e8cde37af2da3f",- "frontend-modern/src/features/truenas/TrueNASAppsTable.tsx": "c14a06d7087127289391b8a8e5af62ea88e1f30aac23c57e0994bc149c0108d3",- "frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx": "3994bd01b6cd723bfacabf5edcd1afad7b5f23be5c15f8558f6efe74b4664a3f",- "frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx": "f14b8373ac11cd9f7039032554c4d541bd69a66b9969e7d26976264ec6e18ef9",- "frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx": "f36e5afd440d4f440eb72f1594842121c4abc32dfcff90305a3a538453724b19",- "frontend-modern/src/features/truenas/TrueNASSystemsTable.tsx": "a24d04e5ca1f9c6a9a4cdee795866cdd9069d93fa657aa7e3b65a0a4414b6711",- "frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx": "ce44e4f4686a23d44999f6b8e035b46d30a7651c7aa3d978d560a0ac834318e5",- "frontend-modern/src/features/vmware/VsphereActivityTable.tsx": "df0c19160f33f5c23129317d941dd003d26d52edc5fda503475f3a07631571ca",- "frontend-modern/src/features/vmware/VsphereAlertsTable.tsx": "76de93dde01009102aedbab381833530199e31861f82a1469689639d5ada264d",- "frontend-modern/src/index.css": "ee23f0612d3a28e74d1bd260709616b3e54b9836451a618d8f55dfb21d7bcfd4"+ "frontend-modern/src/components/shared/TooltipPortal.tsx": "dafea8136a75491438a9ab45de348a4307ada67799796f38e3e26087339ef445",+ "frontend-modern/src/components/shared/hoverCapability.ts": "bae00548234580fe72e4fe93833c57ff237d7666d2ada00a0f673c676f9c39dc",+ "frontend-modern/src/components/shared/useTooltipState.ts": "4959c6840e3c062fa31c2a0a7391f5c0314725ac8ef48deeed37551f9d48194c",+ "frontend-modern/src/hooks/useTooltip.ts": "fa13e21a922954466a9cb09abaff9cd04b3caf0c43dbb025829e8bf251f8065f"},- "routes": [- "/proxmox/overview",- "/proxmox/backups/date",- "/proxmox/ceph",- "/docker/overview",- "/kubernetes/overview",- "/truenas/overview",- "/truenas/storage",- "/truenas/apps",- "/truenas/vms",- "/truenas/shares",- "/truenas/protection",- "/vmware/health",- "/vmware/activity",- "/standalone/machines"- ],+ "routes": ["/proxmox"],"viewports": [{"width": 1280,- "height": 800+ "height": 720},{"width": 390,@@ -70,15 +27,13 @@}],"states": [- "single-line platform summary rows across Proxmox, Docker, Kubernetes, TrueNAS, vSphere, and standalone machine tables",- "Proxmox node, guest, backup-server, Ceph, TrueNAS alert, app, VM, share, protection, storage, vSphere alert/activity, and standalone machine identities without stacked subtitles",- "default and expanded Proxmox node states with the inline detail row remaining content-sized",- "desktop and narrow table layouts with provider-specific column priority preserved"+ "Proxmox workload table with a fine hover-capable desktop pointer",+ "Proxmox workload table with touch emulation reporting a coarse primary pointer",+ "expanded artifact-cache-310 inline guest drawer on the narrow viewport"],"interactions": [- "expanded a Proxmox node from its canonical 32px summary row and collapsed it from the full drawer header",- "navigated every changed provider route at narrow width and inspected row height, truncation, clipping, horizontal containment, and bottom-navigation clearance",- "inspected representative Proxmox, Docker, TrueNAS, vSphere, and standalone tables at desktop width",- "confirmed supplemental provider metadata remains available through inline details or cell titles without creating a second visual line"+ "tapped the artifact-cache-310 workload row at 390x844 and confirmed the inline guest drawer opened without a portal or singleton tooltip",+ "hovered a workload CPU metric at 1280x720 and confirmed the CPU Details tooltip remained available for a fine pointer",+ "confirmed the touch and desktop media capability queries selected the intended tooltip behavior before restoring the browser viewport"]}diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 48bb170b7d..67e355b861 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -77,7 +77,9 @@ import searchTipsPopoverSource from '@/components/shared/SearchTipsPopover.tsx?rimport searchTipsPopoverModelSource from '@/components/shared/searchTipsPopoverModel.ts?raw';import tooltipSource from '@/components/shared/Tooltip.tsx?raw';import tooltipPortalSource from '@/components/shared/TooltipPortal.tsx?raw';+import hoverCapabilitySource from '@/components/shared/hoverCapability.ts?raw';import tooltipModelSource from '@/components/shared/tooltipModel.ts?raw';+import sharedTooltipHookSource from '@/hooks/useTooltip.ts?raw';import upgradeLinkSource from '@/components/shared/UpgradeLink.tsx?raw';import activeHorizontalRailVisibilitySource from '@/components/shared/useActiveHorizontalRailItemVisibility.ts?raw';import contextualFocusSource from '@/components/shared/contextualFocus.ts?raw';@@ -8169,6 +8171,7 @@ describe('shared primitive guardrails', () => {expect(tooltipSource).not.toContain('style={');expect(tooltipPortalSource).toContain('useTooltipPortalState');+ expect(tooltipPortalSource).toContain('supportsHoverTooltips');expect(tooltipPortalSource).toContain('foreignObject');expect(tooltipPortalSource).not.toContain('createSignal');expect(tooltipPortalSource).not.toContain('resolveTooltipPosition');@@ -8182,6 +8185,11 @@ describe('shared primitive guardrails', () => {expect(tooltipStateSource).toContain('tooltipInstance');expect(tooltipStateSource).toContain('resolveTooltipPosition');expect(tooltipStateSource).toContain('sanitizeTooltipContent');+ expect(tooltipStateSource).toContain('supportsHoverTooltips');++ expect(sharedTooltipHookSource).toContain('supportsHoverTooltips');+ expect(hoverCapabilitySource).toContain('(hover: hover) and (pointer: fine)');+ expect(hoverCapabilitySource).toContain('window.matchMedia');expect(tooltipModelSource).toContain('export function sanitizeTooltipContent');expect(tooltipModelSource).toContain('export function resolveTooltipPosition');diff --git a/frontend-modern/src/components/shared/TooltipPortal.tsx b/frontend-modern/src/components/shared/TooltipPortal.tsxindex 9020f85df7..581c8d8e2c 100644--- a/frontend-modern/src/components/shared/TooltipPortal.tsx+++ b/frontend-modern/src/components/shared/TooltipPortal.tsx@@ -1,6 +1,7 @@import { Show } from 'solid-js';import { Portal } from 'solid-js/web';import type { JSX } from 'solid-js';+import { supportsHoverTooltips } from './hoverCapability';import { useTooltipPortalState } from './useTooltipState';import type { TooltipOptions } from './tooltipModel';@@ -20,7 +21,7 @@ export function TooltipPortal(props: TooltipPortalProps) {const state = useTooltipPortalState(props);return (- <Show when={props.when}>+ <Show when={props.when && supportsHoverTooltips()}><Portal mount={document.body}><svgclass="fixed inset-0 z-[9999] h-screen w-screen overflow-visible pointer-events-none"diff --git a/frontend-modern/src/components/shared/__tests__/Tooltip.test.tsx b/frontend-modern/src/components/shared/__tests__/Tooltip.test.tsxindex 978460ce4e..15420f15a7 100644--- a/frontend-modern/src/components/shared/__tests__/Tooltip.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/Tooltip.test.tsx@@ -15,6 +15,23 @@ describe('Tooltip', () => {afterEach(() => {cleanup();vi.restoreAllMocks();+ vi.unstubAllGlobals();+ });++ it('suppresses the singleton tooltip on a coarse touch pointer', () => {+ vi.stubGlobal(+ 'matchMedia',+ vi.fn().mockReturnValue({+ matches: false,+ media: '(hover: hover) and (pointer: fine)',+ }),+ );++ const TooltipRoot = createTooltipSystem();+ render(() => <TooltipRoot />);++ showTooltip('touch detail', 120, 80);+ expect(screen.queryByText('touch detail')).toBeNull();});it('keeps tooltip on shell, runtime, and model owners', () => {diff --git a/frontend-modern/src/components/shared/__tests__/TooltipPortal.test.tsx b/frontend-modern/src/components/shared/__tests__/TooltipPortal.test.tsxindex 628719a9ae..971faae70c 100644--- a/frontend-modern/src/components/shared/__tests__/TooltipPortal.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/TooltipPortal.test.tsx@@ -9,6 +9,25 @@ describe('TooltipPortal', () => {afterEach(() => {cleanup();vi.restoreAllMocks();+ vi.unstubAllGlobals();+ });++ it('does not render floating portal content for a coarse touch pointer', () => {+ vi.stubGlobal(+ 'matchMedia',+ vi.fn().mockReturnValue({+ matches: false,+ media: '(hover: hover) and (pointer: fine)',+ }),+ );++ render(() => (+ <TooltipPortal when x={120} y={80}>+ <span>Touch-only detail</span>+ </TooltipPortal>+ ));++ expect(document.body.querySelector('[data-tooltip-portal="true"]')).toBeNull();});it('keeps tooltip portal on shell and runtime owners', () => {diff --git a/frontend-modern/src/components/shared/__tests__/hoverCapability.test.ts b/frontend-modern/src/components/shared/__tests__/hoverCapability.test.tsnew file mode 100644index 0000000000..4e54d21348--- /dev/null+++ b/frontend-modern/src/components/shared/__tests__/hoverCapability.test.ts@@ -0,0 +1,32 @@+import { afterEach, describe, expect, it, vi } from 'vitest';+import { supportsHoverTooltips } from '@/components/shared/hoverCapability';++describe('supportsHoverTooltips', () => {+ afterEach(() => {+ vi.unstubAllGlobals();+ });++ it('allows floating tooltips for a fine hover-capable pointer', () => {+ vi.stubGlobal(+ 'matchMedia',+ vi.fn().mockReturnValue({+ matches: true,+ media: '(hover: hover) and (pointer: fine)',+ }),+ );++ expect(supportsHoverTooltips()).toBe(true);+ });++ it('suppresses floating tooltips for a coarse touch pointer', () => {+ vi.stubGlobal(+ 'matchMedia',+ vi.fn().mockReturnValue({+ matches: false,+ media: '(hover: hover) and (pointer: fine)',+ }),+ );++ expect(supportsHoverTooltips()).toBe(false);+ });+});diff --git a/frontend-modern/src/components/shared/hoverCapability.ts b/frontend-modern/src/components/shared/hoverCapability.tsnew file mode 100644index 0000000000..512992fc81--- /dev/null+++ b/frontend-modern/src/components/shared/hoverCapability.ts@@ -0,0 +1,13 @@+const HOVER_CAPABLE_POINTER_QUERY = '(hover: hover) and (pointer: fine)';++/**+ * Floating hover UI is only appropriate when the device's primary pointer can+ * hover precisely. Touch browsers may synthesize mouseenter before click, so+ * viewport width alone cannot safely distinguish intent.+ */+export function supportsHoverTooltips(): boolean {+ if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') {+ return true;+ }+ return window.matchMedia(HOVER_CAPABLE_POINTER_QUERY)?.matches ?? true;+}diff --git a/frontend-modern/src/components/shared/useTooltipState.ts b/frontend-modern/src/components/shared/useTooltipState.tsindex a5b7b577ed..7cca48f4fe 100644--- a/frontend-modern/src/components/shared/useTooltipState.ts+++ b/frontend-modern/src/components/shared/useTooltipState.ts@@ -7,6 +7,7 @@ import {type TooltipPosition,type TooltipViewportRect,} from './tooltipModel';+import { supportsHoverTooltips } from './hoverCapability';interface TooltipStateOptions extends TooltipOptions {content: string;@@ -211,6 +212,10 @@ export function createTooltipSystemState() {}export function showTooltip(content: string, x: number, y: number, options?: TooltipOptions) {+ if (!supportsHoverTooltips()) {+ tooltipInstance?.hide();+ return;+ }tooltipInstance?.show(content, x, y, options);}diff --git a/frontend-modern/src/hooks/__tests__/useTooltip.test.ts b/frontend-modern/src/hooks/__tests__/useTooltip.test.tsindex adfefb136b..66991128d8 100644--- a/frontend-modern/src/hooks/__tests__/useTooltip.test.ts+++ b/frontend-modern/src/hooks/__tests__/useTooltip.test.ts@@ -1,8 +1,12 @@import { createRoot } from 'solid-js';-import { describe, expect, it } from 'vitest';+import { afterEach, describe, expect, it, vi } from 'vitest';import { useTooltip } from '@/hooks/useTooltip';describe('useTooltip', () => {+ afterEach(() => {+ vi.unstubAllGlobals();+ });+it('prefers pointer coordinates when they are available', () => {createRoot((dispose) => {const tip = useTooltip();@@ -36,4 +40,29 @@ describe('useTooltip', () => {dispose();});});++ it('ignores synthesized mouse hover on a coarse touch pointer', () => {+ vi.stubGlobal(+ 'matchMedia',+ vi.fn().mockReturnValue({+ matches: false,+ media: '(hover: hover) and (pointer: fine)',+ }),+ );++ createRoot((dispose) => {+ const tip = useTooltip();+ tip.onMouseEnter({+ clientX: 120,+ clientY: 80,+ currentTarget: {+ getBoundingClientRect: () => ({ left: 10, top: 20, width: 40, height: 16 }),+ },+ } as unknown as MouseEvent);++ expect(tip.pos()).toEqual({ x: 0, y: 0 });+ expect(tip.show()).toBe(false);+ dispose();+ });+ });});diff --git a/frontend-modern/src/hooks/useTooltip.ts b/frontend-modern/src/hooks/useTooltip.tsindex ced9656390..b5b84a9677 100644--- a/frontend-modern/src/hooks/useTooltip.ts+++ b/frontend-modern/src/hooks/useTooltip.ts@@ -1,5 +1,7 @@import { createSignal } from 'solid-js';+import { supportsHoverTooltips } from '@/components/shared/hoverCapability';+export interface TooltipPos {x: number;y: number;@@ -24,6 +26,10 @@ export function useTooltip() {const [pos, setPos] = createSignal<TooltipPos>({ x: 0, y: 0 });const onMouseEnter = (e: MouseEvent) => {+ if (!supportsHoverTooltips()) {+ setShow(false);+ return;+ }const rect = (e.currentTarget as HTMLElement).getBoundingClientRect();const hasPointerPosition = Number.isFinite(e.clientX) && Number.isFinite(e.clientY);setPos({