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
Improve mobile layouts across product surfaces
rcourtman6230bc9584a3
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.jsonindex 80f794430b..33fdd95e51 100644--- a/docs/release-control/v6/internal/status.json+++ b/docs/release-control/v6/internal/status.json@@ -3824,6 +3824,71 @@"kind": "file"}]+ },+ {+ "id": "RA34",+ "summary": "Every authenticated Pulse product and Settings page remains usable at supported phone widths: page-level overflow stays contained; dense tables and tab rails scroll instead of compressing or wrapping; active destinations, expanded inline detail, and Settings navigation remain visible; primary touch actions keep a 40-pixel mobile floor; and exact-route browser proof must not count redirects as audited pages.",+ "kind": "invariant",+ "blocking_level": "repo-ready",+ "proof_type": "automated",+ "lane_ids": [+ "L8",+ "L10"+ ],+ "subsystem_ids": [+ "frontend-primitives",+ "performance-and-scalability"+ ],+ "release_gate_ids": [],+ "proof_commands": [+ {+ "id": "route-wide-mobile-browser-proof",+ "run": [+ "npm",+ "--prefix",+ "tests/integration",+ "test",+ "--",+ "tests/04-mobile.spec.ts",+ "tests/05-settings-mobile-audit.spec.ts",+ "--project=mobile-chrome"+ ]+ }+ ],+ "evidence": [+ {+ "repo": "pulse",+ "path": "frontend-modern/src/components/Settings/SettingsPageShell.tsx",+ "kind": "file"+ },+ {+ "repo": "pulse",+ "path": "frontend-modern/src/components/shared/InlineDetailTableRow.tsx",+ "kind": "file"+ },+ {+ "repo": "pulse",+ "path": "frontend-modern/src/components/Workloads/WorkloadsTable.tsx",+ "kind": "file"+ },+ {+ "repo": "pulse",+ "path": "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx",+ "kind": "file"+ },+ {+ "repo": "pulse",+ "path": "tests/integration/tests/04-mobile.spec.ts",+ "kind": "file",+ "evidence_tier": "test-proof"+ },+ {+ "repo": "pulse",+ "path": "tests/integration/tests/05-settings-mobile-audit.spec.ts",+ "kind": "file",+ "evidence_tier": "test-proof"+ }+ ]}],"evidence_reference_policy": {diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex d9d9612d2b..6b95968dbe 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -4211,3 +4211,9 @@ desktop binaries before release packaging, Pulse checksum/signature creation,SBOM generation, and immutable candidate manifest creation. Missing signingcredentials or failed native verification is a release failure, not a warningor an unsigned fallback.++Setup completion preview actions are part of the lifecycle handoff contract.+The preview copy affordances must use the shared accessible action-button+primitive, carry localized names for the exact value being copied, and retain+a 40-pixel mobile touch floor. The setup surface must not reintroduce raw,+unlabelled icon buttons or a phone-only copy-control fork.diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 08559d4599..fc774bcacd 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -4909,3 +4909,13 @@ computers monitored only by agentless reachability checks may usechecks until a Pulse Agent registers and supplies CPU, memory, disk, and networktelemetry. Machines empty and handoff actions must lead to Pulse Agent installor the Availability checks tab, not to an agentless machine row in Machines.++Mobile product layout is a shared primitive contract, not a page-local styling+exception. At supported phone widths, tab rails and dense data surfaces must+preserve their readable intrinsic width inside an owned horizontal scroll+container; expanded inline detail must remain bounded by the visible viewport;+and active destinations must be scrolled into view. Shared search, filter,+disclosure, navigation, copy, and row-action controls must keep a 40-pixel+mobile touch floor while retaining their compact desktop density. Settings+navigation must own a viewport-bounded vertical scroll region so its route list+does not push the active panel below the page.diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 84cae18599..8066288262 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -1799,3 +1799,10 @@ The compact provenance marker for those values is presentation-only. Itmay identify already-loaded Discovery fields, but must not introduceadditional discovery fetches, provider lookups, endpoint probes, orper-row layout measurement on the Workloads hot path.++The canonical Workloads table mobile floor is 36rem. The mobile table branch+must preserve that intrinsic width inside its existing scroll shell instead of+combining it with `min-w-full`, which allows the five operational columns to+compress into unreadable phone-width fragments. This is a layout-only contract:+it must not add row-time measurement, duplicate tables, or viewport listeners+to the Workloads rendering hot path.diff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.mdindex b3cd47c3f2..bf36dd3587 100644--- a/docs/release-control/v6/internal/subsystems/security-privacy.md+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md@@ -1245,3 +1245,9 @@ port, so a port reachable from an untrusted agent network cannot widen into theoperator console. Enabling the dedicated port is additive: the main listenerkeeps serving agent ingest too, so the default single-port deployment andexisting agents are unaffected.++Locale-catalog additions for shared mobile copy controls remain contract-neutral+to security and privacy only while they preserve every governed token, scope,+privacy disclosure, and API name unchanged. Responsive presentation work may+add localized accessible labels, but it must not rename or weaken security-owned+terms through a mobile-specific catalog variant.diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 971e979a3d..0ee366ac3a 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -1583,6 +1583,13 @@ narrow. Shared resource adapters may admit explicit aliases such as `host`,through the canonical resource model, but unified-resource consumers must notreintroduce removed workload aliases or feature-local resource-type shims justto satisfy one table, drawer, or badge surface.++Unified-resource row actions must remain operable at phone widths without+changing capability ownership. Docker and Podman lifecycle controls retain+their backend-authored availability and approval semantics while using the+shared 40-pixel mobile touch floor; compact desktop sizing may resume at the+small breakpoint. Responsive styling must not synthesize capabilities, widen+the action set, or create provider-local lifecycle state.That same runtime now also owns prospective monitored-system projection. Addand update consumers must ask the unified-resource layer whether candidate orpreview records change the deduped top-level monitored-system count, includingdiff --git a/frontend-modern/src/components/Settings/SettingsPageShell.tsx b/frontend-modern/src/components/Settings/SettingsPageShell.tsxindex 997c348f96..d49a5c391e 100644--- a/frontend-modern/src/components/Settings/SettingsPageShell.tsx+++ b/frontend-modern/src/components/Settings/SettingsPageShell.tsx@@ -92,14 +92,14 @@ export const SettingsPageShell: Component<SettingsPageShellProps> = (props) => {</div></Show>- <Card padding="none" class="relative flex lg:flex-row overflow-hidden min-h-[600px]">+ <Card padding="none" class="relative flex overflow-hidden lg:min-h-[600px] lg:flex-row"><div- class={`${props.isMobileMenuOpen() ? 'flex flex-col w-full' : 'hidden lg:flex lg:flex-col'} ${props.sidebarCollapsed() ? 'lg:w-16 lg:min-w-[4rem] lg:max-w-[4rem] lg:basis-[4rem]' : 'lg:w-72 lg:min-w-[18rem] lg:max-w-[18rem] lg:basis-[18rem]'} relative border-b border-border lg:border-b-0 lg:border-r lg:align-top flex-shrink-0 transition-all duration-200 bg-surface lg:bg-transparent z-10`}+ class={`${props.isMobileMenuOpen() ? 'flex w-full flex-col' : 'hidden lg:flex lg:flex-col'} ${props.sidebarCollapsed() ? 'lg:w-16 lg:min-w-[4rem] lg:max-w-[4rem] lg:basis-[4rem]' : 'lg:w-72 lg:min-w-[18rem] lg:max-w-[18rem] lg:basis-[18rem]'} relative z-10 max-h-[calc(100dvh-12rem)] flex-shrink-0 overflow-y-auto overscroll-contain border-b border-border bg-surface transition-all duration-200 lg:max-h-none lg:overflow-visible lg:border-b-0 lg:border-r lg:bg-transparent lg:align-top`}aria-label={shellCopy().navigationAriaLabel}aria-expanded={!props.sidebarCollapsed()}><div- class={`sticky top-0 ${props.sidebarCollapsed() ? 'px-2' : 'px-4'} py-5 space-y-5 transition-all duration-200`}+ class={`${props.sidebarCollapsed() ? 'px-2' : 'px-4'} space-y-5 py-5 transition-all duration-200 lg:sticky lg:top-0`}><Show when={!props.sidebarCollapsed()}><div class="flex items-center justify-between pb-2 border-b border-border">@@ -109,7 +109,7 @@ export const SettingsPageShell: Component<SettingsPageShellProps> = (props) => {<buttontype="button"onClick={() => props.setSidebarCollapsed(true)}- class="p-1 rounded-md hover:bg-surface-hover transition-colors"+ class="inline-flex h-10 w-10 items-center justify-center rounded-md transition-colors hover:bg-surface-hover lg:h-auto lg:w-auto lg:p-1"aria-label={shellCopy().collapseSidebarLabel}><svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">@@ -238,7 +238,7 @@ export const SettingsPageShell: Component<SettingsPageShellProps> = (props) => {<buttontype="button"onClick={() => props.setIsMobileMenuOpen(true)}- class="flex items-center gap-1.5 text-blue-600 dark:text-blue-400 font-medium active:bg-blue-50 dark:active:bg-blue-900 px-2 py-1.5 rounded-md transition-colors"+ class="flex min-h-10 items-center gap-1.5 rounded-md px-2 py-1.5 font-medium text-blue-600 transition-colors active:bg-blue-50 dark:text-blue-400 dark:active:bg-blue-900"><svgclass="h-5 w-5 -ml-1 flex-shrink-0"diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex 7d89970204..010cbc90cd 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -129,6 +129,10 @@ describe('settings architecture guardrails', () => {expect(settingsPageShellSource).toContain('<PageHeader title={props.headerMeta().title} description={props.headerMeta().description} />',);+ expect(settingsPageShellSource).toContain('max-h-[calc(100dvh-12rem)]');+ expect(settingsPageShellSource).toContain('overflow-y-auto overscroll-contain');+ expect(settingsPageShellSource).toContain('lg:min-h-[600px]');+ expect(settingsPageShellSource).not.toContain('min-h-[600px]">');expect(settingsDialogsSource).toContain('export const SettingsDialogs');});@@ -1118,9 +1122,7 @@ describe('settings architecture guardrails', () => {// suppression off the compiled runtime identity, and the install guide// routes both the available-update steps and the idle Docker box through// that flag.- expect(updatesSettingsPanelSource).toContain(- "runtimeCapabilities()?.runtime?.build === 'pro'",- );+ expect(updatesSettingsPanelSource).toContain("runtimeCapabilities()?.runtime?.build === 'pro'");expect(updatesSettingsPanelSource).toContain('isProRuntime={isProRuntime()}');expect(updateInstallGuideSource).toContain('isProRuntime: boolean');expect(updateInstallGuideSource).toContain('IDLE_DOCKER_PRO_NOTICE');diff --git a/frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx b/frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsxindex f5944d9724..d3cf3e71fe 100644--- a/frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx+++ b/frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx@@ -4,6 +4,7 @@ import { copyToClipboard } from '@/utils/clipboard';import { logger } from '@/utils/logger';import { apiFetchJSON } from '@/utils/apiClient';import { getPulseBaseUrl } from '@/utils/url';+import { ActionIconButton } from '@/components/shared/Button';import type { State } from '@/types/api';import type { Resource } from '@/types/resource';import {@@ -281,9 +282,12 @@ export const SetupCompletionPanel: Component<CompleteStepProps> = (props) => {<code class="text-base-content font-mono text-sm break-all">{props.state.password}</code>- <button+ <ActionIconButton+ label={t('setup.completion.action.copyPassword')}+ tone="outline"+ size="lg"onClick={() => handleCopy('password', props.state.password)}- class="ml-3 p-1.5 bg-surface border border-border hover:bg-surface-hover rounded-md transition-colors shrink-0"+ class="ml-3 min-h-10 min-w-10 sm:min-h-9 sm:min-w-9">{copied() === 'password' ? (<svg@@ -314,7 +318,7 @@ export const SetupCompletionPanel: Component<CompleteStepProps> = (props) => {/></svg>)}- </button>+ </ActionIconButton></div></div>@@ -326,9 +330,12 @@ export const SetupCompletionPanel: Component<CompleteStepProps> = (props) => {<code class="text-base-content font-mono text-xs break-all pr-4">{props.state.apiToken}</code>- <button+ <ActionIconButton+ label={t('setup.completion.action.copyAdminToken')}+ tone="outline"+ size="lg"onClick={() => handleCopy('admin-token', props.state.apiToken)}- class="ml-2 p-1.5 bg-surface border border-border hover:bg-surface-hover rounded-md transition-colors shrink-0"+ class="ml-2 min-h-10 min-w-10 sm:min-h-9 sm:min-w-9">{copied() === 'admin-token' ? (<svg@@ -359,7 +366,7 @@ export const SetupCompletionPanel: Component<CompleteStepProps> = (props) => {/></svg>)}- </button>+ </ActionIconButton></div></div>diff --git a/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.guardrails.test.ts b/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.guardrails.test.tsindex 1837bbcef8..a438c75164 100644--- a/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.guardrails.test.ts+++ b/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.guardrails.test.ts@@ -189,4 +189,11 @@ describe('SetupCompletionPanel guardrails', () => {expect(stepIndicatorSource).toContain('setup.progress.stepAriaLabel');expect(runtimeHomeSource).toContain('runtimeHome.openingWorkspace');});++ it('keeps setup preview copy actions accessible at phone widths', () => {+ expect(setupCompletionPanelSource).toContain('import { ActionIconButton }');+ expect(setupCompletionPanelSource).toContain('setup.completion.action.copyPassword');+ expect(setupCompletionPanelSource).toContain('setup.completion.action.copyAdminToken');+ expect(setupCompletionPanelSource).toContain('min-h-10 min-w-10');+ });});diff --git a/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.test.tsx b/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.test.tsxindex 1f26e60746..c5b3e7d6c8 100644--- a/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.test.tsx+++ b/frontend-modern/src/components/SetupWizard/__tests__/SetupCompletionPanel.test.tsx@@ -162,6 +162,8 @@ describe('SetupCompletionPanel', () => {expect(screen.getByText('Shown during setup')).toBeInTheDocument();expect(screen.getByText('admin')).toBeInTheDocument();expect(screen.getByText('password')).toBeInTheDocument();+ expect(screen.getByRole('button', { name: 'Copy password' })).toHaveClass('min-h-10');+ expect(screen.getByRole('button', { name: 'Copy admin API token' })).toHaveClass('min-w-10');fireEvent.click(screen.getByRole('button', { name: /Credentials you must save now/i }));diff --git a/frontend-modern/src/components/Workloads/WorkloadsTable.tsx b/frontend-modern/src/components/Workloads/WorkloadsTable.tsxindex 4b2e8f1ed6..02e6ca63c8 100644--- a/frontend-modern/src/components/Workloads/WorkloadsTable.tsx+++ b/frontend-modern/src/components/Workloads/WorkloadsTable.tsx@@ -9,6 +9,8 @@ import type { WorkloadsState } from './useWorkloadsState';import { WorkloadPanel } from './WorkloadPanel';import { WorkloadTableHeader } from './WorkloadTableHeader';+export const WORKLOAD_TABLE_MOBILE_MIN_WIDTH_CLASS = 'min-w-[36rem]';+type WorkloadsTableProps = Pick<WorkloadsState,| 'activeAlerts'@@ -70,7 +72,7 @@ export function WorkloadsTable(props: WorkloadsTableProps) {><TablewrapperRef={props.setTableWrapperRef}- class={`workload-table min-w-full table-fixed ${props.isMobile() ? 'workload-table--mobile' : 'workload-table--desktop'}`}+ class={`workload-table table-fixed ${props.isMobile() ? `workload-table--mobile ${WORKLOAD_TABLE_MOBILE_MIN_WIDTH_CLASS}` : 'workload-table--desktop min-w-full'}`}><colgroup><For each={props.workloadTableVisibleColumns()}>diff --git a/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx b/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsxindex 390fdc9cd9..5fca122817 100644--- a/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx+++ b/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx@@ -1475,6 +1475,11 @@ describe('Workloads performance contract', () => {expect(workloadsWorkloadTableSource).toContain('WorkloadPanel');expect(workloadsWorkloadTableSource).not.toContain('style={{');expect(workloadsWorkloadTableSource).toContain('style={getGuestColumnWidthStyle(');+ expect(workloadsWorkloadTableSource).toContain(+ "WORKLOAD_TABLE_MOBILE_MIN_WIDTH_CLASS = 'min-w-[36rem]'",+ );+ expect(workloadsWorkloadTableSource).toContain('workload-table--mobile');+ expect(workloadsWorkloadTableSource).toContain('WORKLOAD_TABLE_MOBILE_MIN_WIDTH_CLASS');expect(workloadsWorkloadTableSource).toContain('props.workloadTableLayoutMode()');expect(workloadsWorkloadTableSource).toContain('props.workloadTableVisibleColumnIds()');expect(workloadsWorkloadTableSource).toContain('<colgroup>');diff --git a/frontend-modern/src/components/shared/FilterToolbar.test.tsx b/frontend-modern/src/components/shared/FilterToolbar.test.tsxindex c69cbd0813..9bd38b8cf1 100644--- a/frontend-modern/src/components/shared/FilterToolbar.test.tsx+++ b/frontend-modern/src/components/shared/FilterToolbar.test.tsx@@ -255,6 +255,7 @@ describe('FilterHeader', () => {expect(filterPanelClass).toContain('z-[80]');expect(filterPanelClass).not.toContain('w-[min(40rem,calc(100vw-2rem))]');expect(filterPanelDefaultWidthClass).toContain('w-[min(40rem,calc(100vw-2rem))]');+ expect(filterToolbarSource).toContain("'flex min-h-10 items-center gap-1.5");});it('allows narrow shared popovers to opt out of the default wide panel width', () => {diff --git a/frontend-modern/src/components/shared/FilterToolbar.tsx b/frontend-modern/src/components/shared/FilterToolbar.tsxindex e5b53daac3..ee364707bc 100644--- a/frontend-modern/src/components/shared/FilterToolbar.tsx+++ b/frontend-modern/src/components/shared/FilterToolbar.tsx@@ -2,7 +2,11 @@ import { Component, For, JSX, Show, splitProps } from 'solid-js';import BarChartIcon from 'lucide-solid/icons/bar-chart';import ListFilterIcon from 'lucide-solid/icons/list-filter';import { FormSelect } from './FormSelect';-import { FilterButtonGroup, type FilterButtonGroupOptionTone, type FilterOption } from './FilterButtonGroup';+import {+ FilterButtonGroup,+ type FilterButtonGroupOptionTone,+ type FilterOption,+} from './FilterButtonGroup';export const filterToolbarShellClass = '';export const filterToolbarRowClass = 'flex flex-wrap items-center gap-2 text-xs text-muted';@@ -14,8 +18,7 @@ export const filterLabelClass ='px-1.5 text-[9px] font-semibold uppercase tracking-wide text-muted';export const filterActionButtonClass ='inline-flex items-center gap-1.5 rounded-md bg-surface-hover px-2.5 py-1 text-xs font-medium text-muted ring-1 ring-border-subtle transition-colors hover:bg-surface hover:text-base-content';-export const filterActionButtonActiveClass =- 'bg-surface text-base-content shadow-sm';+export const filterActionButtonActiveClass = 'bg-surface text-base-content shadow-sm';export const filterSelectClass ='rounded-md border border-border bg-surface px-2 py-1 text-xs font-medium text-base-content outline-none focus:border-blue-500';export const filterDividerClass = 'hidden h-5 w-px bg-surface-hover sm:block';@@ -25,7 +28,7 @@ export const filterPanelDefaultWidthClass = 'w-[min(40rem,calc(100vw-2rem))]';export const filterPanelTitleClass = 'text-sm font-medium text-base-content';export const filterPanelDescriptionClass = 'text-xs text-muted';export const mobileFiltersButtonClass =- 'flex items-center gap-1.5 rounded-md bg-surface-hover px-2.5 py-1.5 text-xs font-medium text-muted';+ 'flex min-h-10 items-center gap-1.5 rounded-md bg-surface-hover px-2.5 py-1.5 text-xs font-medium text-muted';export const filterCountBadgeClass ='ml-0.5 rounded-full bg-blue-500 px-1.5 py-0.5 text-[10px] font-semibold leading-none text-white';export const filterUtilityBadgeClass =@@ -209,13 +212,20 @@ interface FilterSegmentedControlProps extends Omit<JSX.HTMLAttributes<HTMLDivEle}export const FilterSegmentedControl: Component<FilterSegmentedControlProps> = (props) => {- const [local, divProps] = splitProps(props, ['value', 'onChange', 'options', 'label', 'class', 'disabled']);+ const [local, divProps] = splitProps(props, [+ 'value',+ 'onChange',+ 'options',+ 'label',+ 'class',+ 'disabled',+ ]);const options = (): FilterOption<string>[] =>local.options.map((option) => ({value: option.value,label:option.ariaLabel ??- (typeof option.label === 'string' ? option.label : option.title ?? option.value),+ (typeof option.label === 'string' ? option.label : (option.title ?? option.value)),visualLabel: option.label,leading: option.leading,title: option.title,diff --git a/frontend-modern/src/components/shared/InlineDetailTableRow.tsx b/frontend-modern/src/components/shared/InlineDetailTableRow.tsxindex 5105723858..59cf737b81 100644--- a/frontend-modern/src/components/shared/InlineDetailTableRow.tsx+++ b/frontend-modern/src/components/shared/InlineDetailTableRow.tsx@@ -3,7 +3,8 @@ import { splitProps, type JSX } from 'solid-js';import { TableCell, TableRow, type TableRowProps } from './Table';export const INLINE_DETAIL_TABLE_CELL_CLASS = 'p-0 border-b border-border bg-surface-alt';-export const INLINE_DETAIL_TABLE_CONTENT_CLASS = 'px-2 py-3 sm:px-4 sm:py-4';+export const INLINE_DETAIL_TABLE_CONTENT_CLASS =+ 'sticky left-0 max-w-[calc(100vw-3.5rem)] px-2 py-3 sm:px-4 sm:py-4 lg:static lg:max-w-none';export interface InlineDetailTableRowProps extends TableRowProps {cellId?: string;diff --git a/frontend-modern/src/components/shared/SearchField.tsx b/frontend-modern/src/components/shared/SearchField.tsxindex 0283ada2cb..69bbab5353 100644--- a/frontend-modern/src/components/shared/SearchField.tsx+++ b/frontend-modern/src/components/shared/SearchField.tsx@@ -2,9 +2,7 @@ import { Component, Show } from 'solid-js';import { type SearchFieldProps } from './searchFieldModel';import { useSearchFieldState } from './useSearchFieldState';-export type {- SearchFieldProps,-} from './searchFieldModel';+export type { SearchFieldProps } from './searchFieldModel';export const SearchField: Component<SearchFieldProps> = (props) => {const search = useSearchFieldState(props);@@ -21,7 +19,7 @@ export const SearchField: Component<SearchFieldProps> = (props) => {onKeyDown={search.handleKeyDown}onBlur={search.handleBlur}aria-label={props.title ?? props.placeholder ?? 'Search'}- class={`w-full pl-8 sm:pl-9 ${search.inputPaddingRight()} py-1.5 sm:py-2 text-sm border border-border rounded-md+ class={`min-h-10 w-full pl-8 sm:pl-9 ${search.inputPaddingRight()} py-1.5 sm:py-2 text-sm border border-border rounded-mdbg-surface text-base-content placeholder-mutedfocus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:focus:border-blue-400 outline-none transition-all disabled:opacity-60 disabled:cursor-not-allowed ${props.inputClass ?? ''}`}title={props.title}@@ -48,7 +46,7 @@ export const SearchField: Component<SearchFieldProps> = (props) => {<Show when={search.showClearButton()}><buttontype="button"- class="p-1 rounded-full bg-surface-hover text-muted hover:bg-red-100 hover:text-red-600 dark:hover:bg-red-900 dark:hover:text-red-400 transition-all duration-150 active:scale-90"+ class="inline-flex h-10 w-10 items-center justify-center rounded-full bg-surface-hover text-muted transition-all duration-150 hover:bg-red-100 hover:text-red-600 active:scale-90 sm:h-6 sm:w-6 dark:hover:bg-red-900 dark:hover:text-red-400"onClick={() => props.onChange('')}onMouseDown={props.onClearMouseDown}aria-label="Clear search"diff --git a/frontend-modern/src/components/shared/SearchInput.tsx b/frontend-modern/src/components/shared/SearchInput.tsxindex 787cceb040..b14dfb3c4b 100644--- a/frontend-modern/src/components/shared/SearchInput.tsx+++ b/frontend-modern/src/components/shared/SearchInput.tsx@@ -25,6 +25,7 @@ export const SearchInput: Component<SearchInputProps> = (props) => {clearOnFocusedEscape={props.clearOnFocusedEscape}shortcutHint={search.shortcutHint()}hasTrailingControls={search.showTrailingControls()}+ trailingControlCount={search.trailingControlCount()}onClearMouseDown={search.enhancements.onClearMouseDown}onKeyDown={search.enhancements.onFieldKeyDown}onBlur={search.enhancements.onFieldBlur}diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 47eb9d07cf..cf205f2036 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -8291,4 +8291,14 @@ describe('shared primitive guardrails', () => {expect(source).not.toContain('const statusDot = (className: string)');}});++ it('keeps shared navigation and row actions usable at phone widths', () => {+ expect(subtabsSource).toContain('overflow-x-auto');+ expect(subtabsSource).toContain('whitespace-nowrap');+ expect(subtabsSource).toContain('min-h-10');+ expect(summaryRowActionButtonSource).toContain('h-10 w-10');+ expect(searchFieldSource).toContain('min-h-10');+ expect(filterToolbarSource).toContain('min-h-10');+ expect(inlineDetailTableRowSource).toContain('max-w-[calc(100vw-3.5rem)]');+ });});diff --git a/frontend-modern/src/components/shared/Subtabs.tsx b/frontend-modern/src/components/shared/Subtabs.tsxindex 4bfda555ee..55878c5d92 100644--- a/frontend-modern/src/components/shared/Subtabs.tsx+++ b/frontend-modern/src/components/shared/Subtabs.tsx@@ -23,10 +23,10 @@ interface SubtabsProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, 'onChang}export const subtabsShellClass = 'border-b border-border';-export const subtabsListClass = 'flex flex-wrap items-center gap-6';+export const subtabsListClass = 'flex min-w-0 items-center gap-6 overflow-x-auto scrollbar-hide';export const subtabsTrailingRowClass = 'flex flex-wrap items-center justify-between gap-3';export const subtabButtonClass =- 'inline-flex min-h-10 items-center border-b-2 px-1 py-2 text-sm font-medium transition-colors';+ 'inline-flex min-h-10 shrink-0 items-center whitespace-nowrap border-b-2 px-1 py-2 text-sm font-medium transition-colors';export const subtabButtonActiveClass = 'border-blue-600 text-base-content';export const subtabButtonInactiveClass = 'border-transparent text-muted hover:text-base-content';export const Subtabs: Component<SubtabsProps> = (props) => {diff --git a/frontend-modern/src/components/shared/SummaryRowActionButton.tsx b/frontend-modern/src/components/shared/SummaryRowActionButton.tsxindex baf21e63d0..9448e72af9 100644--- a/frontend-modern/src/components/shared/SummaryRowActionButton.tsx+++ b/frontend-modern/src/components/shared/SummaryRowActionButton.tsx@@ -26,7 +26,7 @@ type SummaryRowActionButtonProps =};const DISCLOSURE_BUTTON_CLASS = [- 'inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-muted transition-colors',+ 'inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-md text-muted transition-colors sm:h-6 sm:w-6','hover:bg-surface hover:text-base-content',SUMMARY_ROW_ACTION_BUTTON_FOCUS_CLASS,].join(' ');@@ -77,11 +77,7 @@ export const SummaryRowActionButton: Component<SummaryRowActionButtonProps> = (pstroke-width="2"aria-hidden="true">- <path- stroke-linecap="round"- stroke-linejoin="round"- d="M9 5l7 7-7 7"- />+ <path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7" /></svg>}>diff --git a/frontend-modern/src/components/shared/__tests__/InlineDetailTableRow.test.tsx b/frontend-modern/src/components/shared/__tests__/InlineDetailTableRow.test.tsxindex 63a21a051f..337a7c1524 100644--- a/frontend-modern/src/components/shared/__tests__/InlineDetailTableRow.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/InlineDetailTableRow.test.tsx@@ -34,6 +34,11 @@ describe('InlineDetailTableRow', () => {expect(cell).toHaveClass('bg-surface-alt');expect(detail.parentElement).toHaveClass('px-2');expect(detail.parentElement).toHaveClass('sm:px-4');+ expect(detail.parentElement).toHaveClass('sticky');+ expect(detail.parentElement).toHaveClass('left-0');+ expect(detail.parentElement).toHaveClass('max-w-[calc(100vw-3.5rem)]');+ expect(detail.parentElement).toHaveClass('lg:static');+ expect(detail.parentElement).toHaveClass('lg:max-w-none');});it('contains clicks inside the detail content by default', () => {diff --git a/frontend-modern/src/components/shared/__tests__/SearchField.test.tsx b/frontend-modern/src/components/shared/__tests__/SearchField.test.tsxindex 4992f6de9d..320d42abd8 100644--- a/frontend-modern/src/components/shared/__tests__/SearchField.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/SearchField.test.tsx@@ -5,6 +5,7 @@ import searchFieldSource from '@/components/shared/SearchField.tsx?raw';import searchFieldModelSource from '@/components/shared/searchFieldModel.ts?raw';import searchFieldStateSource from '@/components/shared/useSearchFieldState.ts?raw';import { SearchField } from '@/components/shared/SearchField';+import { getSearchFieldInputPaddingRightClass } from '@/components/shared/searchFieldModel';describe('SearchField', () => {afterEach(() => {@@ -37,6 +38,24 @@ describe('SearchField', () => {));expect(screen.getByText('Cmd+K')).toBeInTheDocument();+ expect(screen.getByPlaceholderText('Search field')).toHaveClass('min-h-10');+ });++ it('reserves mobile input space for every visible trailing action', () => {+ expect(+ getSearchFieldInputPaddingRightClass({+ trailingControlCount: 1,+ showShortcutHint: false,+ showClearButton: true,+ }),+ ).toBe('pr-24 sm:pr-20');+ expect(+ getSearchFieldInputPaddingRightClass({+ trailingControlCount: 2,+ showShortcutHint: false,+ showClearButton: true,+ }),+ ).toBe('pr-36 sm:pr-24');});it('clears and blurs on focused Escape by default', async () => {@@ -90,6 +109,8 @@ describe('SearchField', () => {));expect(screen.getByRole('button', { name: 'Clear search' })).toBeInTheDocument();+ expect(screen.getByRole('button', { name: 'Clear search' })).toHaveClass('h-10');+ expect(screen.getByRole('button', { name: 'Clear search' })).toHaveClass('w-10');expect(screen.getByRole('button', { name: 'Extra' })).toBeInTheDocument();});diff --git a/frontend-modern/src/components/shared/__tests__/SearchInput.test.tsx b/frontend-modern/src/components/shared/__tests__/SearchInput.test.tsxindex 92b4d87ddf..f6ccfbf78f 100644--- a/frontend-modern/src/components/shared/__tests__/SearchInput.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/SearchInput.test.tsx@@ -44,7 +44,9 @@ describe('SearchInput', () => {expect(searchInputSource).not.toContain('let searchInputEl: HTMLInputElement');expect(searchInputSource).not.toContain('useTypeToSearch');expect(searchInputSource).not.toContain('useSearchInputEnhancements');- expect(searchInputSource).not.toContain('enhancements.isSimple() ? props.shortcutHint : undefined');+ expect(searchInputSource).not.toContain(+ 'enhancements.isSimple() ? props.shortcutHint : undefined',+ );expect(searchInputStateSource).toContain('export function useSearchInputState');expect(searchInputStateSource).toContain('let searchInputEl: HTMLInputElement');@@ -77,6 +79,8 @@ describe('SearchInput', () => {expect(searchInputEnhancementsModelSource).toContain('getSearchHistoryToggleTitle');expect(searchInputEnhancementsModelSource).toContain('SEARCH_HISTORY_CLEAR_LABEL');expect(searchInputEnhancementsModelSource).toContain('SEARCH_HISTORY_MENU_CLASS');+ expect(searchInputEnhancementsModelSource).toContain('h-10 w-10');+ expect(searchInputEnhancementsModelSource).toContain('sm:h-7 sm:w-7');});it('captures typed characters by default when focus is outside the input', async () => {@@ -225,5 +229,4 @@ describe('SearchInput', () => {expect(document.activeElement).toBe(second);});});-});diff --git a/frontend-modern/src/components/shared/__tests__/SearchTipsPopover.test.tsx b/frontend-modern/src/components/shared/__tests__/SearchTipsPopover.test.tsxindex de00ec414f..198b94a27f 100644--- a/frontend-modern/src/components/shared/__tests__/SearchTipsPopover.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/SearchTipsPopover.test.tsx@@ -28,6 +28,8 @@ describe('SearchTipsPopover', () => {expect(searchTipsPopoverModelSource).toContain('getSearchTipsPopoverPositionClass');expect(searchTipsPopoverModelSource).toContain('getSearchTipsPopoverTriggerVariant');expect(searchTipsPopoverModelSource).toContain('shouldSearchTipsPopoverOpenOnHover');+ expect(searchTipsPopoverModelSource).toContain('h-10 w-10');+ expect(searchTipsPopoverModelSource).toContain('sm:h-5 sm:w-5');});it('toggles the popover on click by default', async () => {diff --git a/frontend-modern/src/components/shared/__tests__/Subtabs.test.tsx b/frontend-modern/src/components/shared/__tests__/Subtabs.test.tsxnew file mode 100644index 0000000000..267389c3b6--- /dev/null+++ b/frontend-modern/src/components/shared/__tests__/Subtabs.test.tsx@@ -0,0 +1,31 @@+import { render, screen, within } from '@solidjs/testing-library';+import { describe, expect, it, vi } from 'vitest';++import { Subtabs } from '@/components/shared/Subtabs';++describe('Subtabs', () => {+ it('keeps long tab sets on one scrollable row', () => {+ render(() => (+ <Subtabs+ value="history"+ onChange={vi.fn()}+ ariaLabel="Resource detail sections"+ tabs={[+ { value: 'overview', label: 'Overview' },+ { value: 'performance', label: 'Performance' },+ { value: 'history', label: 'History' },+ ]}+ />+ ));++ const tablist = screen.getByRole('tablist', { name: 'Resource detail sections' });+ expect(tablist).toHaveClass('overflow-x-auto');+ expect(tablist).toHaveClass('scrollbar-hide');+ expect(tablist).not.toHaveClass('flex-wrap');++ const historyTab = within(tablist).getByRole('tab', { name: 'History' });+ expect(historyTab).toHaveAttribute('aria-selected', 'true');+ expect(historyTab).toHaveClass('shrink-0');+ expect(historyTab).toHaveClass('whitespace-nowrap');+ });+});diff --git a/frontend-modern/src/components/shared/__tests__/SummaryRowActionButton.test.tsx b/frontend-modern/src/components/shared/__tests__/SummaryRowActionButton.test.tsxindex c4a221b76c..9ee4ef1d2f 100644--- a/frontend-modern/src/components/shared/__tests__/SummaryRowActionButton.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/SummaryRowActionButton.test.tsx@@ -16,6 +16,10 @@ describe('SummaryRowActionButton', () => {));const button = screen.getByRole('button', { name: 'Collapse alpha' });+ expect(button).toHaveClass('h-10');+ expect(button).toHaveClass('w-10');+ expect(button).toHaveClass('sm:h-6');+ expect(button).toHaveClass('sm:w-6');expect(button).toHaveAttribute('aria-expanded', 'true');expect(button).toHaveAttribute('aria-controls', 'summary-row-detail-alpha');diff --git a/frontend-modern/src/components/shared/searchFieldModel.ts b/frontend-modern/src/components/shared/searchFieldModel.tsindex 2fa3a49a08..4b791e3714 100644--- a/frontend-modern/src/components/shared/searchFieldModel.ts+++ b/frontend-modern/src/components/shared/searchFieldModel.ts@@ -30,6 +30,7 @@ export interface SearchFieldProps {clearOnFocusedEscape?: boolean;shortcutHint?: string;hasTrailingControls?: boolean;+ trailingControlCount?: number;trailingControls?: JSX.Element;onClearMouseDown?: (event: SearchFieldMouseEvent) => void;}@@ -45,11 +46,20 @@ export const shouldShowSearchFieldClearButton = (export const getSearchFieldInputPaddingRightClass = (options: {hasTrailingControls?: boolean;+ trailingControlCount?: number;showShortcutHint: boolean;showClearButton: boolean;}) => {- if (options.hasTrailingControls) return 'pr-14 sm:pr-20';+ const trailingControlCount = Math.max(+ options.trailingControlCount ?? (options.hasTrailingControls ? 1 : 0),+ 0,+ );+ const visibleControlCount = trailingControlCount + (options.showClearButton ? 1 : 0);++ if (visibleControlCount >= 3) return 'pr-36 sm:pr-24';+ if (visibleControlCount === 2) return 'pr-24 sm:pr-20';+ if (trailingControlCount === 1) return 'pr-14 sm:pr-20';if (options.showShortcutHint) return 'pr-20 sm:pr-24';- if (options.showClearButton) return 'pr-8';+ if (options.showClearButton) return 'pr-12 sm:pr-8';return 'pr-8';};diff --git a/frontend-modern/src/components/shared/searchInputEnhancementsModel.ts b/frontend-modern/src/components/shared/searchInputEnhancementsModel.tsindex 8c988bb0a7..d4bc585313 100644--- a/frontend-modern/src/components/shared/searchInputEnhancementsModel.ts+++ b/frontend-modern/src/components/shared/searchInputEnhancementsModel.ts@@ -8,7 +8,7 @@ export const SEARCH_HISTORY_ENTRY_BUTTON_CLASS =export const SEARCH_HISTORY_CLEAR_LABEL = 'Clear history';export function getSearchHistoryToggleButtonClass(isOpen: boolean): string {- return `flex h-7 w-7 items-center justify-center rounded-md transition-colors ${+ return `flex h-10 w-10 items-center justify-center rounded-md transition-colors sm:h-7 sm:w-7 ${isOpen? 'bg-blue-100 dark:bg-blue-900 text-blue-600 dark:text-blue-400': 'text-muted hover:bg-surface-hover hover:text-base-content'diff --git a/frontend-modern/src/components/shared/searchTipsPopoverModel.ts b/frontend-modern/src/components/shared/searchTipsPopoverModel.tsindex e9d5935a38..97aa81a46a 100644--- a/frontend-modern/src/components/shared/searchTipsPopoverModel.ts+++ b/frontend-modern/src/components/shared/searchTipsPopoverModel.ts@@ -57,5 +57,5 @@ export function getSearchTipsPopoverTriggerClass(return `rounded px-1 py-0.5 underline decoration-dotted underline-offset-4 transition-colors hover:text-base-content ${triggerBaseClasses}`;}- return `flex h-5 w-5 items-center justify-center rounded-full transition-colors hover:text-muted ${triggerBaseClasses}`;+ return `flex h-10 w-10 items-center justify-center rounded-full transition-colors hover:text-muted sm:h-5 sm:w-5 ${triggerBaseClasses}`;}diff --git a/frontend-modern/src/components/shared/useSearchFieldState.ts b/frontend-modern/src/components/shared/useSearchFieldState.tsindex 99b2da2814..c9f433ff09 100644--- a/frontend-modern/src/components/shared/useSearchFieldState.ts+++ b/frontend-modern/src/components/shared/useSearchFieldState.ts@@ -18,6 +18,7 @@ type SearchFieldStateOptions = Pick<| 'onKeyDown'| 'showClearButton'| 'shortcutHint'+ | 'trailingControlCount'| 'value'>;@@ -52,6 +53,7 @@ export function useSearchFieldState(options: SearchFieldStateOptions) {const inputPaddingRight = () =>getSearchFieldInputPaddingRightClass({hasTrailingControls: options.hasTrailingControls,+ trailingControlCount: options.trailingControlCount,showShortcutHint: showShortcutHint(),showClearButton: showClearButton(),});diff --git a/frontend-modern/src/components/shared/useSearchInputState.ts b/frontend-modern/src/components/shared/useSearchInputState.tsindex 8bb504d0ad..505d25fd56 100644--- a/frontend-modern/src/components/shared/useSearchInputState.ts+++ b/frontend-modern/src/components/shared/useSearchInputState.ts@@ -29,6 +29,7 @@ export function useSearchInputState(options: SearchInputStateOptions): {enhancements: SearchInputEnhancementsState;setInputRef: (el: HTMLInputElement) => void;shortcutHint: () => string | undefined;+ trailingControlCount: () => number;showTrailingControls: () => boolean;} {let searchInputEl: HTMLInputElement | undefined;@@ -64,13 +65,15 @@ export function useSearchInputState(options: SearchInputStateOptions): {const shortcutHint = () =>getSearchInputShortcutHint(enhancements.isSimple(), options.shortcutHint);- const showTrailingControls = () =>- shouldSearchInputShowTrailingControls(enhancements.isSimple());+ const showTrailingControls = () => shouldSearchInputShowTrailingControls(enhancements.isSimple());+ const trailingControlCount = () =>+ Number(enhancements.hasHistory()) + Number(enhancements.hasTips());return {enhancements,setInputRef,shortcutHint,+ trailingControlCount,showTrailingControls,};}diff --git a/frontend-modern/src/features/docker/DockerContainerLifecycleControls.tsx b/frontend-modern/src/features/docker/DockerContainerLifecycleControls.tsxindex 661747061d..b4894c7bbd 100644--- a/frontend-modern/src/features/docker/DockerContainerLifecycleControls.tsx+++ b/frontend-modern/src/features/docker/DockerContainerLifecycleControls.tsx@@ -30,7 +30,7 @@ export type DockerContainerLifecycleControlsProps = {};const buttonBaseClass =- 'inline-flex h-7 w-7 shrink-0 items-center justify-center rounded border text-muted transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500/60 focus-visible:ring-offset-1 focus-visible:ring-offset-surface';+ 'inline-flex h-10 w-10 shrink-0 items-center justify-center rounded border text-muted transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500/60 focus-visible:ring-offset-1 focus-visible:ring-offset-surface sm:h-7 sm:w-7';const enabledButtonClass ='border-border-subtle bg-surface hover:border-blue-400 hover:bg-blue-50 hover:text-blue-700 dark:hover:bg-blue-950/40 dark:hover:text-blue-300';const confirmButtonClass =diff --git a/frontend-modern/src/features/docker/__tests__/dockerContainerLifecycleActions.test.ts b/frontend-modern/src/features/docker/__tests__/dockerContainerLifecycleActions.test.tsindex 77584f3b74..3572467b53 100644--- a/frontend-modern/src/features/docker/__tests__/dockerContainerLifecycleActions.test.ts+++ b/frontend-modern/src/features/docker/__tests__/dockerContainerLifecycleActions.test.ts@@ -1,5 +1,7 @@import { describe, expect, it } from 'vitest';+import dockerContainerLifecycleControlsSource from '../DockerContainerLifecycleControls.tsx?raw';+import type { Resource } from '@/types/resource';import {dockerContainerLifecycleCapability,@@ -42,6 +44,11 @@ const resource = (overrides: Partial<Resource> = {}): Resource => ({});describe('dockerContainerLifecycleActions', () => {+ it('keeps lifecycle actions touchable on phones and compact on larger screens', () => {+ expect(dockerContainerLifecycleControlsSource).toContain('h-10 w-10');+ expect(dockerContainerLifecycleControlsSource).toContain('sm:h-7 sm:w-7');+ });+it('enables advertised runtime-matched capabilities', () => {const running = resource();diff --git a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.navigation.test.tsx b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.navigation.test.tsxindex 28b7b07136..952bf3c948 100644--- a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.navigation.test.tsx+++ b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.navigation.test.tsx@@ -51,13 +51,16 @@ describe('PlatformSectionTabs', () => {));const navigation = screen.getByRole('navigation', { name: 'TrueNAS sections' });+ expect(navigation).toHaveClass('overflow-x-auto');+ expect(navigation).toHaveClass('scrollbar-hide');+ expect(navigation).not.toHaveClass('flex-wrap');expect(within(navigation).getByRole('link', { name: 'Overview' })).toHaveAttribute('href','/truenas/overview',);- expect(within(navigation).getByRole('link', { name: 'Storage' })).toHaveAttribute(- 'aria-current',- 'page',- );+ const activeLink = within(navigation).getByRole('link', { name: 'Storage' });+ expect(activeLink).toHaveAttribute('aria-current', 'page');+ expect(activeLink).toHaveClass('shrink-0');+ expect(activeLink).toHaveClass('whitespace-nowrap');});});diff --git a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsxindex 2512f78764..3c6d0174a9 100644--- a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx+++ b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx@@ -1,7 +1,15 @@import { A } from '@solidjs/router';import RotateCcwIcon from 'lucide-solid/icons/rotate-ccw';import TriangleAlertIcon from 'lucide-solid/icons/triangle-alert';-import { For, Show, createMemo, createSignal, type Component, type JSX } from 'solid-js';+import {+ For,+ Show,+ createEffect,+ createMemo,+ createSignal,+ type Component,+ type JSX,+} from 'solid-js';import { EmptyState } from '@/components/shared/EmptyState';import { type FilterOption as PlatformTableFilterOption } from '@/components/shared/FilterButtonGroup';import { FilterBar, filterChipStatusDot, type FilterDef } from '@/components/shared/FilterBar';@@ -35,17 +43,36 @@ export function PlatformSectionTabs<TabId extends string>(props: {active: TabId;ariaLabel: string;}) {+ let tabListRef: HTMLElement | undefined;++ createEffect(() => {+ const activeTabId = props.active;+ window.setTimeout(() => {+ if (props.active !== activeTabId) return;+ const activeTab = tabListRef?.querySelector<HTMLElement>('[aria-current="page"]');+ if (!tabListRef || !activeTab) return;++ tabListRef.scrollLeft = Math.max(+ 0,+ activeTab.offsetLeft - (tabListRef.clientWidth - activeTab.offsetWidth) / 2,+ );+ });+ });+return (<Show when={props.tabs.length > 1}><nav- class="flex flex-wrap items-center gap-1 border-b border-border"+ ref={(element) => {+ tabListRef = element;+ }}+ class="flex min-w-0 items-center gap-1 overflow-x-auto border-b border-border scrollbar-hide"aria-label={props.ariaLabel}><For each={props.tabs}>{(tab) => (<Ahref={tab.path}- class={`inline-flex min-h-10 items-center border-b-2 px-3 text-sm font-medium transition-colors ${+ class={`inline-flex min-h-10 shrink-0 items-center whitespace-nowrap border-b-2 px-3 text-sm font-medium transition-colors ${props.active === tab.id? 'border-blue-500 text-blue-600 dark:text-blue-300': 'border-transparent text-muted hover:border-border hover:text-base-content'diff --git a/frontend-modern/src/i18n/__tests__/i18n.test.ts b/frontend-modern/src/i18n/__tests__/i18n.test.tsindex 0a6c383654..a5b6385d33 100644--- a/frontend-modern/src/i18n/__tests__/i18n.test.ts+++ b/frontend-modern/src/i18n/__tests__/i18n.test.ts@@ -350,4 +350,11 @@ describe('i18n foundation', () => {expect(I18N_MESSAGES[locale]['pricing.handoff.link.pulseAccount']).toContain('Pulse Account');}});++ it('localizes setup preview copy action names in every supported catalog', () => {+ for (const locale of SUPPORTED_LOCALES) {+ expect(I18N_MESSAGES[locale]['setup.completion.action.copyPassword']).toBeTruthy();+ expect(I18N_MESSAGES[locale]['setup.completion.action.copyAdminToken']).toBeTruthy();+ }+ });});diff --git a/frontend-modern/src/i18n/messages.de.ts b/frontend-modern/src/i18n/messages.de.tsindex 057640a91e..dab9b515b2 100644--- a/frontend-modern/src/i18n/messages.de.ts+++ b/frontend-modern/src/i18n/messages.de.ts@@ -149,6 +149,8 @@ export const DE_MESSAGE_OVERRIDES = {'alerts.timeline.unavailable': 'Keine Vorfall-Zeitleiste verfuegbar.','runtimeHome.openingWorkspace': 'Arbeitsbereich wird geoeffnet...','setup.completion.action.addInfrastructure': 'Infrastruktur hinzufuegen',+ 'setup.completion.action.copyAdminToken': 'Admin-API-Token kopieren',+ 'setup.completion.action.copyPassword': 'Passwort kopieren','setup.completion.action.downloadCredentials': 'Zugangsdaten herunterladen','setup.completion.action.installAgent': 'Pulse Agent installieren','setup.completion.action.openInfrastructure': 'Infrastruktur oeffnen',diff --git a/frontend-modern/src/i18n/messages.es.ts b/frontend-modern/src/i18n/messages.es.tsindex 495cee0b7c..5edd54d548 100644--- a/frontend-modern/src/i18n/messages.es.ts+++ b/frontend-modern/src/i18n/messages.es.ts@@ -143,6 +143,8 @@ export const ES_MESSAGE_OVERRIDES = {'alerts.timeline.unavailable': 'No hay linea de tiempo de incidente disponible.','runtimeHome.openingWorkspace': 'Abriendo el espacio de trabajo...','setup.completion.action.addInfrastructure': 'Agregar infraestructura',+ 'setup.completion.action.copyAdminToken': 'Copiar token de API de administrador',+ 'setup.completion.action.copyPassword': 'Copiar contraseña','setup.completion.action.downloadCredentials': 'Descargar credenciales','setup.completion.action.installAgent': 'Instalar Pulse Agent','setup.completion.action.openInfrastructure': 'Abrir Infraestructura',diff --git a/frontend-modern/src/i18n/messages.ts b/frontend-modern/src/i18n/messages.tsindex 6084bc81fc..2373526a55 100644--- a/frontend-modern/src/i18n/messages.ts+++ b/frontend-modern/src/i18n/messages.ts@@ -9,6 +9,8 @@ export const EN_MESSAGES = {'pricing.handoff.title.publicPricing': 'Redirecting to pricing','pricing.handoff.title.pulseAccount': 'Redirecting to Pulse Account','setup.completion.action.addInfrastructure': 'Add infrastructure',+ 'setup.completion.action.copyAdminToken': 'Copy admin API token',+ 'setup.completion.action.copyPassword': 'Copy password','setup.completion.action.downloadCredentials': 'Download credentials','setup.completion.action.installAgent': 'Install Pulse Agent','setup.completion.action.openInfrastructure': 'Open Infrastructure',@@ -540,6 +542,8 @@ export const COMMERCIAL_PRICING_HANDOFF_MIGRATED_MESSAGE_KEYS = [export const FIRST_SESSION_MONITORING_MIGRATED_MESSAGE_KEYS = ['runtimeHome.openingWorkspace','setup.completion.action.addInfrastructure',+ 'setup.completion.action.copyAdminToken',+ 'setup.completion.action.copyPassword','setup.completion.action.downloadCredentials','setup.completion.action.installAgent','setup.completion.action.openInfrastructure',diff --git a/frontend-modern/src/pages/NotFound.tsx b/frontend-modern/src/pages/NotFound.tsxindex 18d0a90798..e92c9a568f 100644--- a/frontend-modern/src/pages/NotFound.tsx+++ b/frontend-modern/src/pages/NotFound.tsx@@ -2,6 +2,7 @@ import type { Component } from 'solid-js';import { useLocation, useNavigate } from '@solidjs/router';import { Card } from '@/components/shared/Card';+import { Button } from '@/components/shared/Button';import { EmptyState } from '@/components/shared/EmptyState';import { PageHeader } from '@/components/shared/PageHeader';@@ -20,13 +21,14 @@ const NotFound: Component = () => {description={`No route matched ${path()}.`}actions={<div class="flex flex-wrap items-center gap-2">- <button- type="button"- class="inline-flex items-center gap-2 rounded-md bg-blue-600 px-3 py-1.5 text-xs font-semibold text-white shadow-sm hover:bg-blue-700"+ <Button+ variant="primaryFlat"+ size="settingsActionXs"+ class="gap-2 font-semibold"onClick={() => navigate('/')}>Go to workspace- </button>+ </Button></div>}/>diff --git a/frontend-modern/src/pages/__tests__/NotFound.test.tsx b/frontend-modern/src/pages/__tests__/NotFound.test.tsxnew file mode 100644index 0000000000..2cf58f94a2--- /dev/null+++ b/frontend-modern/src/pages/__tests__/NotFound.test.tsx@@ -0,0 +1,24 @@+import { render, screen } from '@solidjs/testing-library';+import { describe, expect, it, vi } from 'vitest';++import NotFound from '@/pages/NotFound';++const navigate = vi.fn();++vi.mock('@solidjs/router', () => ({+ useLocation: () => ({ pathname: '/missing', search: '?from=test' }),+ useNavigate: () => navigate,+}));++describe('NotFound', () => {+ it('offers a touch-sized route back to the workspace', () => {+ render(() => <NotFound />);++ expect(screen.getByText('No route matched /missing?from=test.')).toBeInTheDocument();+ const action = screen.getByRole('button', { name: 'Go to workspace' });+ expect(action).toHaveClass('min-h-10');++ action.click();+ expect(navigate).toHaveBeenCalledWith('/');+ });+});diff --git a/tests/integration/tests/04-mobile.spec.ts b/tests/integration/tests/04-mobile.spec.tsindex f4c6dcdc8f..28e1a4e72d 100644--- a/tests/integration/tests/04-mobile.spec.ts+++ b/tests/integration/tests/04-mobile.spec.ts@@ -1,8 +1,8 @@-import { test, expect, devices } from '@playwright/test';-import { ensureAuthenticated } from './helpers';+import { test, expect, devices } from "@playwright/test";+import { ensureAuthenticated } from "./helpers";const getViewportWidth = async (- page: import('@playwright/test').Page,+ page: import("@playwright/test").Page,): Promise<number> => {const size = page.viewportSize();if (size) return size.width;@@ -10,76 +10,93 @@ const getViewportWidth = async (};const MOBILE_VIEWPORTS = [- { width: 320, height: 568, label: 'compact phone' },- { width: 390, height: 844, label: 'modern phone' },+ { width: 320, height: 568, label: "compact phone" },+ { width: 390, height: 844, label: "modern phone" },] as const;const CANONICAL_MOBILE_SURFACE_ROUTES = [- '/',- '/preview/setup-complete',- '/route-that-does-not-exist',- '/proxmox/overview',- '/proxmox/storage',- '/proxmox/replication',- '/proxmox/backups',- '/proxmox/ceph',- '/proxmox/mail',- '/docker/overview',- '/docker/images',- '/docker/storage',- '/docker/networks',- '/docker/swarm',- '/kubernetes/overview',- '/kubernetes/nodes',- '/kubernetes/workloads',- '/kubernetes/services',- '/kubernetes/storage',- '/kubernetes/configuration',- '/kubernetes/events',- '/truenas/overview',- '/truenas/storage',- '/truenas/services',- '/truenas/apps',- '/truenas/vms',- '/truenas/shares',- '/truenas/protection',- '/vmware/overview',- '/vmware/storage',- '/vmware/networks',- '/vmware/health',- '/vmware/activity',- '/standalone/machines',- '/standalone/availability',- '/alerts/overview',- '/alerts/thresholds',- '/alerts/notifications',- '/alerts/schedule',- '/alerts/history',- '/patrol',+ "/",+ "/preview/setup-complete",+ "/route-that-does-not-exist",+ "/proxmox/overview",+ "/proxmox/storage",+ "/proxmox/replication",+ "/proxmox/backups",+ "/proxmox/ceph",+ "/proxmox/mail",+ "/docker/overview",+ "/docker/images",+ "/docker/storage",+ "/docker/networks",+ "/docker/swarm",+ "/kubernetes/overview",+ "/kubernetes/nodes",+ "/kubernetes/workloads",+ "/kubernetes/services",+ "/kubernetes/storage",+ "/kubernetes/configuration",+ "/kubernetes/events",+ "/truenas/overview",+ "/truenas/storage",+ "/truenas/services",+ "/truenas/apps",+ "/truenas/vms",+ "/truenas/shares",+ "/truenas/protection",+ "/vmware/overview",+ "/vmware/storage",+ "/vmware/networks",+ "/vmware/health",+ "/vmware/activity",+ "/standalone/machines",+ "/standalone/availability",+ "/alerts/overview",+ "/alerts/thresholds",+ "/alerts/notifications",+ "/alerts/schedule",+ "/alerts/history",+ "/patrol",] as const;-test.describe('Mobile viewport flows', () => {+const gotoMobileRoute = async (+ page: import("@playwright/test").Page,+ route: string,+): Promise<void> => {+ let lastError: unknown;+ for (let attempt = 0; attempt < 3; attempt += 1) {+ try {+ await page.goto(route, { waitUntil: "domcontentloaded" });+ return;+ } catch (error) {+ lastError = error;+ await page.waitForTimeout(250 * (attempt + 1));+ }+ }+ throw lastError;+};++test.describe("Mobile viewport flows", () => {test.beforeEach(async ({ page }) => {await ensureAuthenticated(page);});- test('bottom nav bar is visible on mobile', async ({ page }) => {- await page.goto('/infrastructure');- await expect(page.locator('#root')).toBeVisible();+ test("bottom nav bar is visible on mobile", async ({ page }) => {+ await page.goto("/infrastructure");+ await expect(page.locator("#root")).toBeVisible();- const bottomNav = page.getByRole('tablist', { name: 'Mobile navigation' });+ const bottomNav = page.getByRole("tablist", { name: "Mobile navigation" });// Wait for the nav to mount before evaluating (evaluateAll does not auto-wait;// WebKit can be slower to render SolidJS components than Chromium).- await bottomNav.first().waitFor({ state: 'attached', timeout: 10000 });+ await bottomNav.first().waitFor({ state: "attached", timeout: 10000 });const visibleCount = await bottomNav.evaluateAll((els) => {const isVisible = (el: Element) => {const style = window.getComputedStyle(el as HTMLElement);if (- style.display === 'none' ||- style.visibility === 'hidden' ||- style.opacity === '0'+ style.display === "none" ||+ style.visibility === "hidden" ||+ style.opacity === "0")return false;const rect = (el as HTMLElement).getBoundingClientRect();@@ -90,38 +107,34 @@ test.describe('Mobile viewport flows', () => {expect(visibleCount,- 'Expected a visible mobile bottom nav',+ "Expected a visible mobile bottom nav",).toBeGreaterThan(0);});- test('MobileNavBar has safe-area padding on nav', async ({ page }) => {- await page.goto('/infrastructure');- await expect(page.locator('#root')).toBeVisible();+ test("MobileNavBar has safe-area padding on nav", async ({ page }) => {+ await page.goto("/infrastructure");+ await expect(page.locator("#root")).toBeVisible();- const nav = page.getByRole('tablist', { name: 'Mobile navigation' });+ const nav = page.getByRole("tablist", { name: "Mobile navigation" });await expect(nav).toBeVisible();// Verify the safe-area CSS class is applied to the nav. The computed padding-bottom// value is 0 in headless Chromium (no notch), but the pb-safe class must be present.const hasSafeClass = await nav.evaluate((el: HTMLElement) =>- el.classList.contains('pb-safe'),+ el.classList.contains("pb-safe"),);expect(hasSafeClass,- 'Expected nav to have pb-safe class for safe-area-inset-bottom',+ "Expected nav to have pb-safe class for safe-area-inset-bottom",).toBeTruthy();});- test('Platform filter bar does not overflow horizontally', async ({+ test("Platform filter bar does not overflow horizontally", async ({page,}) => {- await page.goto('/proxmox/overview');+ await page.goto("/docker/overview");- await expect(- page.getByPlaceholder(- 'Search VMs and LXCs by name, VMID, node, or status',- ),- ).toBeVisible();+ await expect(page.getByPlaceholder("Search containers")).toBeVisible();// On mobile the full filter controls are hidden behind a toggle; only the// search bar + Filters button row should be visible. Check the overall page@@ -132,17 +145,75 @@ test.describe('Mobile viewport flows', () => {);expect(bodyScrollWidth,- 'Platform page body must not overflow horizontally',+ "Platform page body must not overflow horizontally",).toBeLessThanOrEqual(viewportWidth + 1);});- test('utility destinations stay pinned beside the scrollable platform rail', async ({+ test("platform section navigation stays on one scrollable row and reveals the active tab", async ({+ page,+ }) => {+ await page.goto("/truenas/protection");++ const navigation = page.getByRole("navigation", {+ name: "TrueNAS sections",+ });+ await expect(navigation).toBeVisible({ timeout: 30_000 });+ const activeTab = navigation.getByRole("link", { name: "Protection" });+ await expect(activeTab).toHaveAttribute("aria-current", "page");++ const geometry = await navigation.evaluate((element) => {+ const active = element.querySelector<HTMLElement>(+ '[aria-current="page"]',+ );+ const navBox = element.getBoundingClientRect();+ const activeBox = active?.getBoundingClientRect();+ return {+ height: navBox.height,+ clientWidth: element.clientWidth,+ scrollWidth: element.scrollWidth,+ overflowX: window.getComputedStyle(element).overflowX,+ activeLeft: activeBox?.left ?? -1,+ activeRight: activeBox?.right ?? Number.POSITIVE_INFINITY,+ navLeft: navBox.left,+ navRight: navBox.right,+ };+ });++ expect(["auto", "scroll"]).toContain(geometry.overflowX);+ expect(geometry.scrollWidth).toBeGreaterThan(geometry.clientWidth);+ expect(geometry.height).toBeLessThanOrEqual(42);+ expect(geometry.activeLeft).toBeGreaterThanOrEqual(geometry.navLeft - 1);+ expect(geometry.activeRight).toBeLessThanOrEqual(geometry.navRight + 1);+ });++ test("shared Workloads table preserves readable mobile column widths", async ({+ page,+ }) => {+ await page.goto("/vmware/overview");++ const table = page.locator("table.workload-table--mobile");+ await expect(table).toBeVisible({ timeout: 30_000 });+ const geometry = await table.evaluate((element) => {+ const wrapper = element.parentElement;+ return {+ tableWidth: element.scrollWidth,+ wrapperWidth: wrapper?.clientWidth ?? 0,+ overflowX: wrapper ? window.getComputedStyle(wrapper).overflowX : "",+ };+ });++ expect(["auto", "scroll"]).toContain(geometry.overflowX);+ expect(geometry.tableWidth).toBeGreaterThanOrEqual(576);+ expect(geometry.tableWidth).toBeGreaterThan(geometry.wrapperWidth);+ });++ test("utility destinations stay pinned beside the scrollable platform rail", async ({page,}) => {- await page.goto('/proxmox/overview');+ await page.goto("/proxmox/overview");await expect(page.getByPlaceholder(- 'Search VMs and LXCs by name, VMID, node, or status',+ "Search VMs and LXCs by name, VMID, node, or status",),).toBeVisible({ timeout: 30_000 });@@ -156,13 +227,13 @@ test.describe('Mobile viewport flows', () => {scrollWidth: element.scrollWidth,overflowX: window.getComputedStyle(element).overflowX,}));- expect(['auto', 'scroll']).toContain(railGeometry.overflowX);+ expect(["auto", "scroll"]).toContain(railGeometry.overflowX);expect(railGeometry.scrollWidth).toBeGreaterThanOrEqual(railGeometry.clientWidth,);const viewportWidth = await getViewportWidth(page);- for (const tabId of ['alerts', 'ai', 'settings']) {+ for (const tabId of ["alerts", "ai", "settings"]) {const button = utilityRail.locator(`button[data-tab-id="${tabId}"]`);await expect(button).toBeVisible();const box = await button.boundingBox();@@ -176,7 +247,7 @@ test.describe('Mobile viewport flows', () => {}});- test('canonical product routes keep mobile overflow contained and dense tables readable', async ({+ test("canonical product routes keep mobile overflow contained and dense tables readable", async ({page,}) => {test.setTimeout(240_000);@@ -185,9 +256,9 @@ test.describe('Mobile viewport flows', () => {await page.setViewportSize(viewport);for (const route of CANONICAL_MOBILE_SURFACE_ROUTES) {- await page.goto(route, { waitUntil: 'domcontentloaded' });+ await gotoMobileRoute(page, route);await expect(- page.locator('#root'),+ page.locator("#root"),`${route} should render the app surface on a ${viewport.label}`,).toBeVisible();@@ -202,14 +273,14 @@ test.describe('Mobile viewport flows', () => {).toBeLessThanOrEqual(viewportWidth + 1);const denseTables = await page- .locator('#root div.overflow-x-auto')- .filter({ has: page.locator('table') })+ .locator("#root div.overflow-x-auto")+ .filter({ has: page.locator("table") }).evaluateAll((wrappers) =>wrappers.map((wrapper) => {- const table = wrapper.querySelector('table');+ const table = wrapper.querySelector("table");const headerCount =- table?.querySelectorAll('thead th').length ?? 0;+ table?.querySelectorAll("thead th").length ?? 0;return {headerCount,tableWidth: table?.scrollWidth ?? 0,@@ -229,32 +300,32 @@ test.describe('Mobile viewport flows', () => {}});- test('Platform table wrapper enables horizontal overflow when needed', async ({+ test("Platform table wrapper enables horizontal overflow when needed", async ({page,}) => {- await page.goto('/proxmox/overview');+ await page.goto("/proxmox/overview");await expect(page.getByPlaceholder(- 'Search VMs and LXCs by name, VMID, node, or status',+ "Search VMs and LXCs by name, VMID, node, or status",),).toBeVisible();const tableWrapper = page- .locator('div.overflow-x-auto')- .filter({ has: page.locator('table') })+ .locator("div.overflow-x-auto")+ .filter({ has: page.locator("table") }).first();const wrapperVisible = await tableWrapper.isVisible().catch(() => false);if (!wrapperVisible) {test.skip(true,- 'No platform table rendered (no resources or table not present)',+ "No platform table rendered (no resources or table not present)",);}const overflowBehavior = await tableWrapper.evaluate((el) => {const wrapper = el as HTMLElement;- const table = wrapper.querySelector('table') as HTMLElement | null;+ const table = wrapper.querySelector("table") as HTMLElement | null;const style = window.getComputedStyle(wrapper);return {overflowX: style.overflowX,@@ -267,46 +338,83 @@ test.describe('Mobile viewport flows', () => {// In v6 some datasets fit cleanly on mobile after column/layout optimizations.// The contract is that the wrapper is configured to allow horizontal scrolling// if content exceeds available width.- expect(['auto', 'scroll']).toContain(overflowBehavior.overflowX);+ expect(["auto", "scroll"]).toContain(overflowBehavior.overflowX);expect(overflowBehavior.wrapperClientWidth).toBeGreaterThan(0);expect(overflowBehavior.tableScrollWidth).toBeGreaterThan(0);});- test('Tapping a resource disclosure opens its mobile detail state', async ({+ test("Tapping a resource disclosure opens its mobile detail state", async ({page,}) => {- await page.goto('/proxmox/overview');+ await page.goto("/proxmox/overview");await expect(page.getByPlaceholder(- 'Search VMs and LXCs by name, VMID, node, or status',+ "Search VMs and LXCs by name, VMID, node, or status",),).toBeVisible();const disclosure = page- .getByRole('button', { name: /^Expand details for / })+ .getByRole("button", { name: /^Expand details for / }).first();const disclosureVisible = await disclosure.isVisible().catch(() => false);if (!disclosureVisible) {- test.skip(true, 'No resource rows available to expand');+ test.skip(true, "No resource rows available to expand");}const expandedLabel = (- await disclosure.getAttribute('aria-label')- )?.replace(/^Expand /, 'Collapse ');+ await disclosure.getAttribute("aria-label")+ )?.replace(/^Expand /, "Collapse ");expect(expandedLabel).toBeTruthy();+ const disclosureBox = await disclosure.boundingBox();+ expect(disclosureBox?.width ?? 0).toBeGreaterThanOrEqual(40);+ expect(disclosureBox?.height ?? 0).toBeGreaterThanOrEqual(40);await disclosure.click();await expect(- page.getByRole('button', { name: expandedLabel! }),+ page.getByRole("button", { name: expandedLabel! }),).toBeVisible();++ const detailCellId = await page+ .getByRole("button", { name: expandedLabel! })+ .getAttribute("aria-controls");+ expect(detailCellId).toBeTruthy();+ const detailContent = page.locator(`[id="${detailCellId}"] > div`).first();+ await expect(detailContent).toBeVisible();+ const detailGeometry = await detailContent.evaluate((element) => {+ let scrollContainer: HTMLElement | null = element.parentElement;+ while (scrollContainer) {+ const overflowX = window.getComputedStyle(scrollContainer).overflowX;+ if (overflowX === "auto" || overflowX === "scroll") break;+ scrollContainer = scrollContainer.parentElement;+ }+ const detailBox = element.getBoundingClientRect();+ const wrapperBox = scrollContainer?.getBoundingClientRect();+ return {+ detailLeft: detailBox.left,+ detailRight: detailBox.right,+ detailWidth: detailBox.width,+ wrapperLeft: wrapperBox?.left ?? 0,+ wrapperRight: wrapperBox?.right ?? 0,+ wrapperWidth: wrapperBox?.width ?? 0,+ };+ });+ expect(detailGeometry.detailWidth).toBeLessThanOrEqual(+ detailGeometry.wrapperWidth + 1,+ );+ expect(detailGeometry.detailLeft).toBeGreaterThanOrEqual(+ detailGeometry.wrapperLeft - 1,+ );+ expect(detailGeometry.detailRight).toBeLessThanOrEqual(+ detailGeometry.wrapperRight + 1,+ );});- test('Infrastructure landing loads without horizontal overflow at mobile viewport', async ({+ test("Infrastructure landing loads without horizontal overflow at mobile viewport", async ({page,}) => {- await page.goto('/infrastructure');- await expect(page.locator('#root')).toBeVisible();+ await page.goto("/infrastructure");+ await expect(page.locator("#root")).toBeVisible();const viewportWidth = await getViewportWidth(page);const bodyScrollWidth = await page.evaluate(@@ -315,14 +423,14 @@ test.describe('Mobile viewport flows', () => {expect(bodyScrollWidth).toBeLessThanOrEqual(viewportWidth + 1);});- test('AI assistant button is visible above nav bar', async ({ page }) => {- await page.goto('/infrastructure');- await expect(page.locator('#root')).toBeVisible();+ test("AI assistant button is visible above nav bar", async ({ page }) => {+ await page.goto("/infrastructure");+ await expect(page.locator("#root")).toBeVisible();- const nav = page.getByRole('tablist', { name: 'Mobile navigation' });+ const nav = page.getByRole("tablist", { name: "Mobile navigation" });await expect(nav).toBeVisible();- const aiButton = page.getByRole('button', {+ const aiButton = page.getByRole("button", {name: /Ask Pulse Assistant about/,});await expect(aiButton).toBeVisible();@@ -330,8 +438,8 @@ test.describe('Mobile viewport flows', () => {const navBox = await nav.boundingBox();const aiBox = await aiButton.boundingBox();- expect(navBox, 'Expected nav bounding box').toBeTruthy();- expect(aiBox, 'Expected AI button bounding box').toBeTruthy();+ expect(navBox, "Expected nav bounding box").toBeTruthy();+ expect(aiBox, "Expected AI button bounding box").toBeTruthy();const navTop = (navBox as { y: number }).y;const aiBottom =diff --git a/tests/integration/tests/05-settings-mobile-audit.spec.ts b/tests/integration/tests/05-settings-mobile-audit.spec.tsindex b43a4f1609..ea2b1b47dd 100644--- a/tests/integration/tests/05-settings-mobile-audit.spec.ts+++ b/tests/integration/tests/05-settings-mobile-audit.spec.ts@@ -1,8 +1,8 @@-import fs from 'node:fs';-import path from 'node:path';-import { fileURLToPath } from 'node:url';-import { test as base, expect } from '@playwright/test';-import { createAuthenticatedStorageState } from './helpers';+import fs from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";+import { test as base, expect } from "@playwright/test";+import { createAuthenticatedStorageState } from "./helpers";const __dirname = path.dirname(fileURLToPath(import.meta.url));type WorkerFixtures = {@@ -10,41 +10,62 @@ type WorkerFixtures = {};const SETTINGS_ROUTES = [- '/settings/infrastructure',- '/settings/monitoring/availability',- '/settings/pulse-intelligence/provider',- '/settings/pulse-intelligence/patrol',- '/settings/pulse-intelligence/assistant',- '/settings/pulse-intelligence/discovery',- '/settings/pulse-intelligence/billing/plan',- '/settings/pulse-intelligence/billing/usage',- '/settings/organization',- '/settings/organization/access',- '/settings/organization/sharing',- '/settings/organization/billing',- '/settings/organization/billing-admin',- '/settings/system-general',- '/settings/system-network',- '/settings/system-updates',- '/settings/system-recovery',- '/settings/system-relay',- '/settings/support/diagnostics',- '/settings/support/reporting',- '/settings/support/logs',- '/settings/security/api',- '/settings/security-overview',- '/settings/security-data-handling',- '/settings/security-auth',- '/settings/security-sso',- '/settings/security-roles',- '/settings/security-users',- '/settings/security-audit',- '/settings/security-webhooks',+ "/settings/infrastructure",+ "/settings/monitoring/availability",+ "/settings/pulse-intelligence/provider",+ "/settings/pulse-intelligence/patrol",+ "/settings/pulse-intelligence/assistant",+ "/settings/pulse-intelligence/billing/plan",+ "/settings/system-general",+ "/settings/system-network",+ "/settings/system-updates",+ "/settings/system-recovery",+ "/settings/system-relay",+ "/settings/support/diagnostics",+ "/settings/support/reporting",+ "/settings/support/logs",+ "/settings/security/api",+ "/settings/security-overview",+ "/settings/security-data-handling",+ "/settings/security-auth",+ "/settings/security-sso",+ "/settings/security-roles",+ "/settings/security-users",+ "/settings/security-audit",+ "/settings/security-webhooks",+] as const;++const SETTINGS_ROUTE_REDIRECTS = [+ {+ route: "/settings/pulse-intelligence/discovery",+ expectedPath: "/settings/pulse-intelligence/assistant",+ },+ {+ route: "/settings/pulse-intelligence/billing/usage",+ expectedPath: "/settings/pulse-intelligence/billing/plan",+ },+ { route: "/settings/organization", expectedPath: "/settings/infrastructure" },+ {+ route: "/settings/organization/access",+ expectedPath: "/settings/infrastructure",+ },+ {+ route: "/settings/organization/sharing",+ expectedPath: "/settings/infrastructure",+ },+ {+ route: "/settings/organization/billing",+ expectedPath: "/settings/infrastructure",+ },+ {+ route: "/settings/organization/billing-admin",+ expectedPath: "/settings/infrastructure",+ },] as const;const MOBILE_VIEWPORTS = [- { width: 320, height: 568, label: 'compact phone' },- { width: 390, height: 844, label: 'modern phone' },+ { width: 320, height: 568, label: "compact phone" },+ { width: 390, height: 844, label: "modern phone" },] as const;const test = base.extend<{}, WorkerFixtures>({@@ -55,10 +76,10 @@ const test = base.extend<{}, WorkerFixtures>({async ({ browser }, use, workerInfo) => {const storageStatePath = path.resolve(__dirname,- '..',- '..',- 'tmp',- 'playwright-auth',+ "..",+ "..",+ "tmp",+ "playwright-auth",`settings-mobile-audit-${workerInfo.project.name}.json`,);fs.mkdirSync(path.dirname(storageStatePath), { recursive: true });@@ -69,7 +90,7 @@ const test = base.extend<{}, WorkerFixtures>({fs.rmSync(storageStatePath, { force: true });}},- { scope: 'worker' },+ { scope: "worker" },],});@@ -81,7 +102,7 @@ type OverflowAudit = {};const auditHorizontalOverflow = async (- page: import('@playwright/test').Page,+ page: import("@playwright/test").Page,): Promise<OverflowAudit> =>page.evaluate(() => {const viewportWidth = Math.max(@@ -95,18 +116,18 @@ const auditHorizontalOverflow = async (document.documentElement.offsetWidth,);- const offenders = Array.from(document.querySelectorAll('body *'))+ const offenders = Array.from(document.querySelectorAll("body *")).map((el) => {const rect = el.getBoundingClientRect();if (rect.width <= 0 || rect.height <= 0) return null;const style = window.getComputedStyle(el);- if (style.position === 'fixed' || style.position === 'absolute')+ if (style.position === "fixed" || style.position === "absolute")return null;const overflow = rect.right - viewportWidth;if (overflow <= 1) return null;return {tag: el.tagName.toLowerCase(),- className: (el.getAttribute('class') || '').trim().slice(0, 120),+ className: (el.getAttribute("class") || "").trim().slice(0, 120),overflow: Number(overflow.toFixed(1)),};})@@ -127,7 +148,7 @@ const auditHorizontalOverflow = async (});const scrollToBottom = async (- page: import('@playwright/test').Page,+ page: import("@playwright/test").Page,): Promise<void> => {const viewportHeight = await page.evaluate(() => window.innerHeight || 800);const step = Math.max(240, Math.floor(viewportHeight * 0.75));@@ -147,7 +168,7 @@ const scrollToBottom = async (}};-test.describe('Settings mobile optimization audit', () => {+test.describe("Settings mobile optimization audit", () => {test.setTimeout(180_000);for (const route of SETTINGS_ROUTES) {@@ -156,9 +177,15 @@ test.describe('Settings mobile optimization audit', () => {}) => {for (const viewport of MOBILE_VIEWPORTS) {await page.setViewportSize(viewport);- await page.goto(route, { waitUntil: 'domcontentloaded' });- await page.waitForURL(/\/settings/, { timeout: 15000 });- await expect(page.locator('#root')).toBeVisible();+ await page.goto(route, { waitUntil: "domcontentloaded" });+ await page.waitForURL((url) => url.pathname === route, {+ timeout: 15000,+ });+ expect(+ new URL(page.url()).pathname,+ `${route} must remain the surface being audited rather than silently redirecting`,+ ).toBe(route);+ await expect(page.locator("#root")).toBeVisible();await page.waitForTimeout(600);await scrollToBottom(page);@@ -183,4 +210,52 @@ test.describe('Settings mobile optimization audit', () => {}});}++ for (const { route, expectedPath } of SETTINGS_ROUTE_REDIRECTS) {+ test(`resolves unavailable or compatibility route ${route} explicitly`, async ({+ page,+ }) => {+ await page.goto(route, { waitUntil: "domcontentloaded" });+ await page.waitForURL((url) => url.pathname === expectedPath, {+ timeout: 15000,+ });+ expect(new URL(page.url()).pathname).toBe(expectedPath);+ });+ }++ test("mobile Settings navigation is viewport-bounded and independently scrollable", async ({+ page,+ }) => {+ await page.setViewportSize(MOBILE_VIEWPORTS[0]);+ await page.goto("/settings/system-general", {+ waitUntil: "domcontentloaded",+ });+ await page.waitForURL(+ (url) => url.pathname === "/settings/system-general",+ {+ timeout: 15000,+ },+ );++ await page+ .getByRole("main")+ .getByRole("button", { name: "Settings", exact: true })+ .click();+ const navigation = page.getByLabel("Settings navigation", { exact: true });+ await expect(navigation).toBeVisible();++ const geometry = await navigation.evaluate((element) => {+ const style = window.getComputedStyle(element);+ return {+ clientHeight: element.clientHeight,+ scrollHeight: element.scrollHeight,+ overflowY: style.overflowY,+ viewportHeight: window.innerHeight,+ };+ });++ expect(["auto", "scroll"]).toContain(geometry.overflowY);+ expect(geometry.clientHeight).toBeLessThan(geometry.viewportHeight);+ expect(geometry.scrollHeight).toBeGreaterThan(geometry.clientHeight);+ });});