Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix(ui): refine responsive alert and settings controls
rcourtman98a638e005c6
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 153b80d942..ae5da8de1c 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,35 +1,88 @@{"version": 1,- "base_sha": "5787cea4eb02ace171363df91d116094899be55f",- "verified_at": "2026-08-06T12:10:00Z",+ "base_sha": "d7d6753d057297d7d831164aab319711c2239b80",+ "verified_at": "2026-08-06T13:37:38Z","result": "passed","changed_paths": [- "frontend-modern/src/components/SetupWizard/steps/WelcomeStep.tsx"+ "frontend-modern/src/components/Alerts/AlertResourceTableMobile.tsx",+ "frontend-modern/src/components/Alerts/EmailProviderSelect.tsx",+ "frontend-modern/src/components/Alerts/WebhookConfig.tsx",+ "frontend-modern/src/components/Alerts/WebhookConfigForm.tsx",+ "frontend-modern/src/components/Alerts/WebhookConfigList.tsx",+ "frontend-modern/src/components/Settings/AgentProfilesPanel.tsx",+ "frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx",+ "frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx",+ "frontend-modern/src/components/Settings/RolesPanel.tsx",+ "frontend-modern/src/components/Settings/UpdateHistorySection.tsx",+ "frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx",+ "frontend-modern/src/features/alerts/AlertAppriseDestinationsSection.tsx",+ "frontend-modern/src/features/alerts/AlertHistoryItemActions.tsx",+ "frontend-modern/src/features/alerts/AlertHistoryMobileList.tsx",+ "frontend-modern/src/utils/auditLogPresentation.ts"],"content_sha256": {- "frontend-modern/src/components/SetupWizard/steps/WelcomeStep.tsx": "bb182a2f8891ae5be677d9ebeed69d55f6528cde35c249e9e42304d6a89ef097"+ "frontend-modern/src/components/Alerts/AlertResourceTableMobile.tsx": "687007ab434f7b27e9c3af8e664f96bbd3e172a825507ac3f21467cd77b288ce",+ "frontend-modern/src/components/Alerts/EmailProviderSelect.tsx": "f1d8c262c3ac223bfb00457dbefb20d955a9e4883b33e665dc17a0042f143a9f",+ "frontend-modern/src/components/Alerts/WebhookConfig.tsx": "f2c61c113f86f91503b3b4ad0442fbeb3fe4ed3df500fa8a39ad4e6e8c6c5b47",+ "frontend-modern/src/components/Alerts/WebhookConfigForm.tsx": "be1a8eea8fcaf063ea6fd8c524cbd63e3d2fcf582f9f1cb5e0ced5a66a045507",+ "frontend-modern/src/components/Alerts/WebhookConfigList.tsx": "fb1800d98b061fd13111ab2ebbd580cf3769ff119573a5ecd59462eded72c5b4",+ "frontend-modern/src/components/Settings/AgentProfilesPanel.tsx": "3819b05f9acc775396caf1d577aa0b7f07943b3c9838b538742f65c07e10bcd1",+ "frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx": "90c2ec742561002b15a2aabd23a0e72218d4f5c162a1dc8363b60090ee1dcff4",+ "frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx": "bbfefc0956593ebf0d0ae8fa4bd188d1a85874d4d01c113dd5b94bd81882c003",+ "frontend-modern/src/components/Settings/RolesPanel.tsx": "0e5b75e037d940548891aaef4574cacb80b179579cfa1870178704ba668fd24c",+ "frontend-modern/src/components/Settings/UpdateHistorySection.tsx": "bd4d707d991927b63b32b921fbf49960538fc036dd35f9d942c203a1a21568ad",+ "frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx": "27f39aae68f57d77ad0e92e4ffd8f6742b03647d7ae22b3bbfb77e44f8c61cfd",+ "frontend-modern/src/features/alerts/AlertAppriseDestinationsSection.tsx": "4b225a77d3267780f8cee9cab1a64bc0d0504c2ea813f9648fe0e1ea955795c8",+ "frontend-modern/src/features/alerts/AlertHistoryItemActions.tsx": "e596788a606a0a69d23ed4c33b0c696054e35031ae168f32d7537bd3c3ea8688",+ "frontend-modern/src/features/alerts/AlertHistoryMobileList.tsx": "5a03e1ba946d9e43c562b74c92e42eeb9e61080ad68e253827b489e4e3d8053a",+ "frontend-modern/src/utils/auditLogPresentation.ts": "dcf1c0c732a7b37d56a583b9b5171b40f5e757a3cb47a7106bdb75e0f5847834"},"routes": [- "/"+ "/alerts/history",+ "/alerts/thresholds",+ "/alerts/notifications",+ "/alerts/schedule",+ "/settings/infrastructure",+ "/settings/security-roles",+ "/settings/security-users",+ "/settings/security-audit",+ "/settings/system-updates",+ "/settings/support/reporting"],"viewports": [{"width": 1280,"height": 900},+ {+ "width": 768,+ "height": 900+ },{"width": 390,"height": 844+ },+ {+ "width": 320,+ "height": 844}],"states": [- "First-run setup wizard, step 1 Unlock server, served by a Pulse backend built from a clean worktree and started against an empty PULSE_DATA_DIR so /api/security/status genuinely reports hasAuthentication=false; the gate was not stubbed",- "All three bootstrap command rows rendered together, direct host install, Docker deployment, and LXC container"+ "Alert History mock-data cards and desktop history presentation, including Timeline, Resource, and Assistant actions",+ "Alert Thresholds read and edit modes for Proxmox, Docker, Kubernetes, TrueNAS, vSphere, and Machines, plus the desktop table",+ "Alert Notifications email and Apprise sections, webhook list, add-webhook form, and custom-header editor without saving",+ "Alert Schedule default state with quiet hours and escalation policy expanded, then reverted",+ "Settings Infrastructure ten-system card and table layouts, source actions, Manage dialog, and closed-dialog focus restoration",+ "Settings roles, users, audit, reporting, and update-history states, including legitimate locked and empty presentations in the current mock entitlement"],"interactions": [- "Read the rendered LXC row and confirmed it is exactly `pct exec <ctid> -- /usr/local/bin/pulse bootstrap-token`, with no remaining bare-name form anywhere in the DOM",- "Clicked the Copy command control for the LXC container row at 1280x900",- "Measured the command area at 390x844: all three rows truncate visually, which predates this change because the Docker and sudo rows truncate too, but the command sits in an overflow-x auto container that genuinely scrolls at scrollWidth 492 against clientWidth 238, so the full string stays reachable",- "Confirmed the page body does not scroll horizontally at 390px, documentElement scrollWidth 390 equals clientWidth 390"+ "Measured Alert History actions at 320px and 390px; all three actions remain on one row at 44px high with zero document overflow",+ "Edited a threshold at 320px, verified the active editor switches to one readable column with 44px inputs and actions, cancelled without persisting, and checked every platform tab plus the 1280px desktop table",+ "Opened Add Webhook at 320px and 390px, added a custom-header row, verified full-width stacked key and value fields with 44px controls, cancelled without saving, and confirmed the compact single-row layout returns at 768px and 1280px",+ "Expanded quiet hours and escalation policy at 320px, checked contained time, day, category, and toggle controls, and reverted all preview changes",+ "Measured Settings Infrastructure actions across 320px, 390px, 768px, and 1280px; card controls remain 44px through tablet while the denser table returns only at desktop width, with no horizontal page overflow",+ "Opened and dismissed the Infrastructure Manage dialog at phone and desktop widths; the close target is 44px on phone and compact on desktop, and keyboard focus returns to the exact originating connection Manage button",+ "Inspected locked roles, users, audit, and reporting surfaces plus empty update history; changed unlocked inventory actions are covered by component tests because the current mock entitlement correctly withholds those inventories",+ "Verified the mobile audit toolbar actions render at 44px while preserving the compact desktop treatment"]}diff --git a/frontend-modern/src/components/Alerts/AlertResourceTableMobile.tsx b/frontend-modern/src/components/Alerts/AlertResourceTableMobile.tsxindex f3915398cc..3fd466f85e 100644--- a/frontend-modern/src/components/Alerts/AlertResourceTableMobile.tsx+++ b/frontend-modern/src/components/Alerts/AlertResourceTableMobile.tsx@@ -293,6 +293,7 @@ export function AlertResourceTableMobile(props: AlertResourceTableMobileProps) {label={`Edit thresholds for ${getAlertResourceLabel(resource)}`}tone="accent"size="sm"+ class="min-h-11 min-w-11"><Pencil class="w-4 h-4" aria-hidden="true" /></ActionIconButton>@@ -315,6 +316,7 @@ export function AlertResourceTableMobile(props: AlertResourceTableMobileProps) {title="Configure individual alert delay"tone="neutral"size="sm"+ class="min-h-11 min-w-11"><Timer class="w-4 h-4" aria-hidden="true" /></ActionIconButton>@@ -325,6 +327,7 @@ export function AlertResourceTableMobile(props: AlertResourceTableMobileProps) {label="Cancel threshold edits"tone="muted"size="sm"+ class="min-h-11 min-w-11"><X class="w-4 h-4" aria-hidden="true" /></ActionIconButton>@@ -333,6 +336,7 @@ export function AlertResourceTableMobile(props: AlertResourceTableMobileProps) {label={`Save threshold edits for ${getAlertResourceLabel(resource)}`}tone="success"size="sm"+ class="min-h-11 min-w-11"><Check class="w-4 h-4" aria-hidden="true" /></ActionIconButton>@@ -349,6 +353,7 @@ export function AlertResourceTableMobile(props: AlertResourceTableMobileProps) {title={getAlertResourceTableRevertToDefaultsLabel()}tone="neutral"size="sm"+ class="min-h-11 min-w-11"><RotateCcw class="w-4 h-4" aria-hidden="true" /></ActionIconButton>@@ -369,7 +374,9 @@ export function AlertResourceTableMobile(props: AlertResourceTableMobileProps) {/></Show>- <div class="grid grid-cols-2 gap-2 text-sm border-t pt-2">+ <div+ class={`grid gap-2 text-sm border-t pt-2 ${isEditing() ? 'grid-cols-1' : 'grid-cols-2'}`}+ ><For each={props.table.columns}>{(column) => {const metric = normalizeAlertResourceMetricKey(column);@@ -391,7 +398,7 @@ export function AlertResourceTableMobile(props: AlertResourceTableMobileProps) {<buttontype="button"onClick={(e) => startEditing(resource, metric, e)}- class="font-mono text-xs font-medium cursor-pointer rounded px-1 -mx-1 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-400"+ class="min-h-11 min-w-11 font-mono text-xs font-medium cursor-pointer rounded px-1 -mx-1 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-400"aria-label={`Edit ${column} threshold for ${getAlertResourceLabel(resource)}`}><MetricValueWithHeat@@ -403,7 +410,7 @@ export function AlertResourceTableMobile(props: AlertResourceTableMobileProps) {</button>}>- <div class="flex items-center gap-1.5">+ <div class="flex items-center gap-1.5 [&_button]:min-h-11"><inputtype="number"min={bounds.min}@@ -412,7 +419,7 @@ export function AlertResourceTableMobile(props: AlertResourceTableMobileProps) {placeholder={getAlertResourceTableMetricPlaceholder(isDisabled(),)}- class="w-16 text-right text-xs p-1 rounded border border-border bg-surface"+ class="min-h-11 w-16 text-right text-xs p-1 rounded border border-border bg-surface"onInput={(e) => {const nextValue = parseFloat(e.currentTarget.value);props.table.setEditingThresholds({diff --git a/frontend-modern/src/components/Alerts/EmailProviderSelect.test.tsx b/frontend-modern/src/components/Alerts/EmailProviderSelect.test.tsxindex 040a525195..93d0c01ae8 100644--- a/frontend-modern/src/components/Alerts/EmailProviderSelect.test.tsx+++ b/frontend-modern/src/components/Alerts/EmailProviderSelect.test.tsx@@ -713,6 +713,11 @@ describe('EmailProviderSelect', () => {const button = screen.getByRole('button', { name: 'Send test email' });expect(button).toBeInTheDocument();expect(button).not.toBeDisabled();+ expect(button).toHaveClass('min-h-11', 'sm:min-h-0');+ expect(screen.getByRole('button', { name: 'Show advanced options' })).toHaveClass(+ 'min-h-11',+ 'sm:min-h-0',+ );});it('calls onTest when test button is clicked', async () => {diff --git a/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx b/frontend-modern/src/components/Alerts/EmailProviderSelect.tsxindex 2197785026..fb6d9d8f1b 100644--- a/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx+++ b/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx@@ -91,7 +91,7 @@ export function EmailProviderSelect(props: EmailProviderSelectProps) {const provider = state.currentProvider();if (provider) state.applyProviderDefaults(provider);}}- class="text-xs font-medium text-blue-600 hover:underline dark:text-blue-400"+ class="min-h-11 text-xs font-medium text-blue-600 hover:underline sm:min-h-0 dark:text-blue-400">{ALERT_EMAIL_REAPPLY_DEFAULTS_LABEL}</button>@@ -104,7 +104,7 @@ export function EmailProviderSelect(props: EmailProviderSelectProps) {<buttontype="button"onClick={state.toggleShowInstructions}- class="text-xs font-medium text-blue-600 hover:underline dark:text-blue-300"+ class="min-h-11 text-xs font-medium text-blue-600 hover:underline sm:min-h-0 dark:text-blue-300">{getAlertEmailSetupInstructionsToggleLabel(state.showInstructions())}</button>@@ -274,7 +274,7 @@ export function EmailProviderSelect(props: EmailProviderSelectProps) {<buttontype="button"onClick={state.toggleShowAdvanced}- class="text-xs font-semibold uppercase tracking-wide transition-colors hover:text-muted"+ class="min-h-11 text-xs font-semibold uppercase tracking-wide transition-colors hover:text-muted sm:min-h-0">{getAlertEmailAdvancedToggleLabel(state.showAdvanced())}</button>@@ -374,7 +374,7 @@ export function EmailProviderSelect(props: EmailProviderSelectProps) {type="button"onClick={props.onTest}disabled={props.testing || !props.config.enabled}- class="rounded border border-blue-500 px-3 py-1.5 text-xs font-medium text-blue-600 transition-colors hover:bg-blue-50 disabled:opacity-50 disabled:cursor-not-allowed dark:border-blue-400 dark:text-blue-300 dark:hover:bg-blue-900"+ class="min-h-11 rounded border border-blue-500 px-3 py-1.5 text-xs font-medium text-blue-600 transition-colors hover:bg-blue-50 disabled:opacity-50 disabled:cursor-not-allowed sm:min-h-0 dark:border-blue-400 dark:text-blue-300 dark:hover:bg-blue-900">{getAlertEmailTestButtonLabel(Boolean(props.testing))}</button>diff --git a/frontend-modern/src/components/Alerts/ResourceTable.test.tsx b/frontend-modern/src/components/Alerts/ResourceTable.test.tsxindex 2774012d16..702836b7e6 100644--- a/frontend-modern/src/components/Alerts/ResourceTable.test.tsx+++ b/frontend-modern/src/components/Alerts/ResourceTable.test.tsx@@ -1451,6 +1451,41 @@ describe('ResourceTable', () => {expect(onEdit).toHaveBeenCalled();});+ it('keeps mobile threshold actions touch-sized', () => {+ const props = makeProps({+ resources: [makeResource({ id: 'vm-1', name: 'Mobile VM' })],+ onConfigureResourceIntent: vi.fn(),+ });+ render(() => <ResourceTable {...props} />);++ expect(screen.getByLabelText('Edit thresholds for Mobile VM')).toHaveClass(+ 'min-h-11',+ 'min-w-11',+ );+ expect(screen.getByLabelText('Configure alert delay for Mobile VM')).toHaveClass(+ 'min-h-11',+ 'min-w-11',+ );+ expect(screen.getByLabelText('Edit CPU % threshold for Mobile VM')).toHaveClass(+ 'min-h-11',+ 'min-w-11',+ );+ });++ it('uses a single metric column while editing on mobile', () => {+ const props = makeProps({+ resources: [makeResource({ id: 'vm-1', name: 'Mobile VM' })],+ editingId: () => 'vm-1',+ editingThresholds: () => ({ cpu: 80, memory: 85 }),+ });+ render(() => <ResourceTable {...props} />);++ const metricGrid = screen.getAllByRole('spinbutton')[0]?.closest('.grid');+ expect(metricGrid).toHaveClass('grid-cols-1');+ expect(metricGrid).not.toHaveClass('grid-cols-2');+ expect(screen.getByLabelText('Cancel threshold edits')).toHaveClass('min-h-11', 'min-w-11');+ });+it('renders subtitle when present', () => {const props = makeProps({resources: [makeResource({ id: 'vm-1', name: 'VM', subtitle: 'Running on pve1' })],diff --git a/frontend-modern/src/components/Alerts/WebhookConfig.test.tsx b/frontend-modern/src/components/Alerts/WebhookConfig.test.tsxindex 0b176b7e53..e35e18eac4 100644--- a/frontend-modern/src/components/Alerts/WebhookConfig.test.tsx+++ b/frontend-modern/src/components/Alerts/WebhookConfig.test.tsx@@ -152,7 +152,29 @@ describe('WebhookConfig', () => {/>));- expect(screen.getByText('+ Add Webhook')).toBeInTheDocument();+ expect(screen.getByText('+ Add Webhook')).toHaveClass('min-h-11', 'sm:min-h-0');+ });++ it('stacks webhook header fields and keeps form actions touch-sized on mobile', async () => {+ render(() => (+ <WebhookConfig+ webhooks={[]}+ onAdd={onAddMock}+ onUpdate={onUpdateMock}+ onDelete={onDeleteMock}+ onTest={onTestMock}+ />+ ));++ fireEvent.click(screen.getByText('+ Add Webhook'));++ const headerName = screen.getByLabelText('Custom header 1 name');+ const headerValue = screen.getByLabelText('Custom header 1 value');+ expect(headerName.parentElement).toHaveClass('flex-col', 'sm:flex-row');+ expect(headerName).toHaveClass('w-full');+ expect(headerValue).toHaveClass('w-full');+ expect(screen.getByRole('button', { name: 'Remove' })).toHaveClass('min-h-11', 'sm:min-h-0');+ expect(screen.getByRole('button', { name: 'Cancel' })).toHaveClass('min-h-11', 'sm:min-h-0');});it('renders webhook list with names, services, methods, and URLs', () => {diff --git a/frontend-modern/src/components/Alerts/WebhookConfig.tsx b/frontend-modern/src/components/Alerts/WebhookConfig.tsxindex a5272cb047..a2be7425a9 100644--- a/frontend-modern/src/components/Alerts/WebhookConfig.tsx+++ b/frontend-modern/src/components/Alerts/WebhookConfig.tsx@@ -64,7 +64,7 @@ export function WebhookConfig(props: WebhookConfigProps) {<Show when={!state.adding()}><buttononClick={state.openAddForm}- class="w-full border border-dashed border-border px-2 py-1 text-xs text-muted hover:bg-surface-hover"+ class="min-h-11 w-full border border-dashed border-border px-2 py-1 text-xs text-muted hover:bg-surface-hover sm:min-h-0">+ {ALERT_WEBHOOK_ADD_LABEL}</button>diff --git a/frontend-modern/src/components/Alerts/WebhookConfigForm.tsx b/frontend-modern/src/components/Alerts/WebhookConfigForm.tsxindex 231f78820b..a8e1c5fc4e 100644--- a/frontend-modern/src/components/Alerts/WebhookConfigForm.tsx+++ b/frontend-modern/src/components/Alerts/WebhookConfigForm.tsx@@ -83,7 +83,7 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {<buttontype="button"onClick={() => props.setShowServiceDropdown((open) => !open)}- class="text-sm text-blue-600 hover:text-blue-700 dark:text-blue-400"+ class="min-h-11 text-sm text-blue-600 hover:text-blue-700 sm:min-h-0 dark:text-blue-400">{getAlertWebhookServiceLabelFromTemplates(props.formData().service, props.templates())}{' '}→@@ -97,7 +97,7 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {<buttontype="button"onClick={() => props.selectService(service.id)}- class={`px-2 py-1.5 text-left border transition-colors text-xs ${+ class={`min-h-11 px-2 py-1.5 text-left border transition-colors text-xs sm:min-h-0 ${props.formData().service === service.id? 'border-blue-500 bg-blue-50 dark:bg-blue-900': 'border-border hover:bg-surface-hover'@@ -275,7 +275,7 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {<div class="space-y-2 text-xs"><Index each={props.customFieldInputs()}>{(field, index) => (- <div class="flex gap-2 text-xs">+ <div class="flex flex-col gap-2 text-xs sm:flex-row"><div class="flex flex-1 flex-col gap-1"><Show when={field().label}><span class="text-[11px] text-muted">{field().label}</span>@@ -289,7 +289,7 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {}placeholder={ALERT_WEBHOOK_CUSTOM_FIELD_KEY_PLACEHOLDER}aria-label={`Custom field ${index + 1} key`}- class={controlClass('flex-1 px-2 py-1.5 text-xs font-mono')}+ class={controlClass('w-full flex-1 px-2 py-1.5 text-xs font-mono')}/></div><input@@ -302,13 +302,13 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {field().placeholder || ALERT_WEBHOOK_CUSTOM_FIELD_VALUE_PLACEHOLDER}aria-label={`Custom field ${index + 1} value`}- class={controlClass('flex-1 px-2 py-1.5 text-xs font-mono')}+ class={controlClass('w-full flex-1 px-2 py-1.5 text-xs font-mono')}/><Show when={!field().required}><buttontype="button"onClick={() => props.removeCustomFieldInput(index)}- class="px-2 py-1 text-xs text-red-600 hover:underline dark:text-red-400"+ class="min-h-11 self-end px-2 py-1 text-xs text-red-600 hover:underline sm:min-h-0 dark:text-red-400">{ALERT_WEBHOOK_CUSTOM_FIELD_REMOVE_LABEL}</button>@@ -319,7 +319,7 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {<buttontype="button"onClick={props.addCustomFieldInput}- class="w-full border border-dashed border-border px-2 py-1 text-xs hover:bg-surface-hover"+ class="min-h-11 w-full border border-dashed border-border px-2 py-1 text-xs hover:bg-surface-hover sm:min-h-0">{ALERT_WEBHOOK_CUSTOM_FIELD_ADD_LABEL}</button>@@ -336,14 +336,14 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {<div class="space-y-2 text-xs"><Index each={props.headerInputs()}>{(header, index) => (- <div class="flex gap-2 text-xs">+ <div class="flex flex-col gap-2 text-xs sm:flex-row"><inputtype="text"value={header().key}onInput={(e) => props.updateHeaderInput(index, { key: e.currentTarget.value })}placeholder={ALERT_WEBHOOK_HEADER_KEY_PLACEHOLDER}aria-label={`Custom header ${index + 1} name`}- class={controlClass('flex-1 px-2 py-1.5 text-xs font-mono')}+ class={controlClass('w-full flex-1 px-2 py-1.5 text-xs font-mono')}/><inputtype="text"@@ -351,12 +351,12 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {onInput={(e) => props.updateHeaderInput(index, { value: e.currentTarget.value })}placeholder={ALERT_WEBHOOK_HEADER_VALUE_PLACEHOLDER}aria-label={`Custom header ${index + 1} value`}- class={controlClass('flex-1 px-2 py-1.5 text-xs font-mono')}+ class={controlClass('w-full flex-1 px-2 py-1.5 text-xs font-mono')}/><buttontype="button"onClick={() => props.removeHeaderInput(index)}- class="px-2 py-1 text-xs text-red-600 hover:underline dark:text-red-400"+ class="min-h-11 self-end px-2 py-1 text-xs text-red-600 hover:underline sm:min-h-0 dark:text-red-400">{ALERT_WEBHOOK_HEADER_REMOVE_LABEL}</button>@@ -366,7 +366,7 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {<buttontype="button"onClick={props.addHeaderInput}- class="w-full border border-dashed border-border px-2 py-1 text-xs hover:bg-surface-hover"+ class="min-h-11 w-full border border-dashed border-border px-2 py-1 text-xs hover:bg-surface-hover sm:min-h-0">{ALERT_WEBHOOK_HEADER_ADD_LABEL}</button>@@ -391,7 +391,7 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {<div class="flex justify-end gap-2 text-xs"><buttononClick={props.cancelForm}- class="px-3 py-1.5 border border-border rounded text-xs hover:bg-surface-hover"+ class="min-h-11 px-3 py-1.5 border border-border rounded text-xs hover:bg-surface-hover sm:min-h-0">{ALERT_WEBHOOK_CANCEL_LABEL}</button>@@ -399,7 +399,7 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {<buttononClick={props.testWebhookForm}disabled={props.testing === (props.editingId() || 'temp-new-webhook')}- class="px-3 py-1.5 border border-border rounded text-xs hover:bg-slate-100"+ class="min-h-11 px-3 py-1.5 border border-border rounded text-xs hover:bg-slate-100 sm:min-h-0">{getAlertWebhookTestLabel(props.testing === (props.editingId() || 'temp-new-webhook'),@@ -410,7 +410,7 @@ export function WebhookConfigForm(props: WebhookConfigFormProps) {<buttononClick={props.saveWebhook}disabled={!props.formData().name || !props.formData().url}- class="px-3 py-1.5 bg-blue-600 text-white text-xs rounded hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed"+ class="min-h-11 px-3 py-1.5 bg-blue-600 text-white text-xs rounded hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed sm:min-h-0">{getAlertWebhookSubmitLabel(Boolean(props.editingId()))}</button>diff --git a/frontend-modern/src/components/Alerts/WebhookConfigList.tsx b/frontend-modern/src/components/Alerts/WebhookConfigList.tsxindex 1e1699c0a4..0c8b91dc79 100644--- a/frontend-modern/src/components/Alerts/WebhookConfigList.tsx+++ b/frontend-modern/src/components/Alerts/WebhookConfigList.tsx@@ -39,14 +39,14 @@ export function WebhookConfigList(props: WebhookConfigListProps) {<buttononClick={() => props.toggleAllWebhooks(false)}disabled={!props.someEnabled()}- class="w-full rounded border px-3 py-1 text-xs transition-colors hover:bg-surface-hover sm:w-auto"+ class="min-h-11 w-full rounded border px-3 py-1 text-xs transition-colors hover:bg-surface-hover sm:min-h-0 sm:w-auto">{getAlertWebhookToggleAllLabel(false)}</button><buttononClick={() => props.toggleAllWebhooks(true)}disabled={props.allEnabled()}- class="w-full rounded border border-green-500 px-3 py-1 text-xs text-green-700 transition-colors hover:bg-green-50 dark:border-green-600 dark:text-green-400 dark:hover:bg-green-900 sm:w-auto"+ class="min-h-11 w-full rounded border border-green-500 px-3 py-1 text-xs text-green-700 transition-colors hover:bg-green-50 sm:min-h-0 sm:w-auto dark:border-green-600 dark:text-green-400 dark:hover:bg-green-900">{getAlertWebhookToggleAllLabel(true)}</button>@@ -60,7 +60,7 @@ export function WebhookConfigList(props: WebhookConfigListProps) {<span class="font-medium text-base-content">{webhook.name}</span><buttononClick={() => props.onToggleWebhook(webhook)}- class={`rounded border px-3 py-1 text-xs font-medium transition-colors ${webhook.enabled ? 'border-green-500 text-green-700 hover:bg-green-50 dark:border-green-600 dark:text-green-400 dark:hover:bg-green-900' : 'border-border text-muted hover:bg-surface-hover'}`}+ class={`min-h-11 rounded border px-3 py-1 text-xs font-medium transition-colors sm:min-h-0 ${webhook.enabled ? 'border-green-500 text-green-700 hover:bg-green-50 dark:border-green-600 dark:text-green-400 dark:hover:bg-green-900' : 'border-border text-muted hover:bg-surface-hover'}`}>{getAlertWebhookToggleLabel(webhook.enabled)}</button>@@ -93,19 +93,19 @@ export function WebhookConfigList(props: WebhookConfigListProps) {<buttononClick={() => props.onTestWebhook(webhook)}disabled={props.testing === webhook.id || !webhook.enabled}- class="rounded border px-3 py-1 text-xs text-base-content transition-colors hover:bg-surface-hover disabled:opacity-50"+ class="min-h-11 rounded border px-3 py-1 text-xs text-base-content transition-colors hover:bg-surface-hover disabled:opacity-50 sm:min-h-0">{getAlertWebhookTestLabel(props.testing === webhook.id)}</button><buttononClick={() => props.onEditWebhook(webhook)}- class="rounded border border-blue-300 px-3 py-1 text-xs text-blue-600 transition-colors hover:bg-blue-50 dark:border-blue-500 dark:text-blue-300 dark:hover:bg-blue-900"+ class="min-h-11 rounded border border-blue-300 px-3 py-1 text-xs text-blue-600 transition-colors hover:bg-blue-50 sm:min-h-0 dark:border-blue-500 dark:text-blue-300 dark:hover:bg-blue-900">{ALERT_WEBHOOK_EDIT_LABEL}</button><buttononClick={() => props.onDeleteWebhook(webhook)}- class="rounded border border-red-300 px-3 py-1 text-xs text-red-600 transition-colors hover:bg-red-50 dark:border-red-500 dark:text-red-300 dark:hover:bg-red-900"+ class="min-h-11 rounded border border-red-300 px-3 py-1 text-xs text-red-600 transition-colors hover:bg-red-50 sm:min-h-0 dark:border-red-500 dark:text-red-300 dark:hover:bg-red-900">{ALERT_WEBHOOK_DELETE_LABEL}</button>diff --git a/frontend-modern/src/components/Settings/AgentProfilesPanel.tsx b/frontend-modern/src/components/Settings/AgentProfilesPanel.tsxindex fc1b4b5756..7573b5d6ee 100644--- a/frontend-modern/src/components/Settings/AgentProfilesPanel.tsx+++ b/frontend-modern/src/components/Settings/AgentProfilesPanel.tsx@@ -174,6 +174,7 @@ export const AgentProfilesPanel: Component = () => {{key: 'settings',label: 'Settings',+ hiddenOnMobile: true,render: (profile) => (<span class="text-muted">{getSettingsCount(profile)}</span>),@@ -197,7 +198,7 @@ export const AgentProfilesPanel: Component = () => {<buttontype="button"onClick={() => handleEdit(profile)}- class="p-1.5 rounded-md hover:text-blue-600 hover:bg-blue-50 dark:hover:text-blue-400 dark:hover:bg-blue-900"+ class="inline-flex min-h-11 min-w-11 items-center justify-center rounded-md p-1.5 hover:text-blue-600 hover:bg-blue-50 sm:min-h-0 sm:min-w-0 dark:hover:text-blue-400 dark:hover:bg-blue-900"title="Edit profile"><Pencil class="w-4 h-4" />@@ -205,7 +206,7 @@ export const AgentProfilesPanel: Component = () => {<buttontype="button"onClick={() => handleDelete(profile)}- class="p-1.5 rounded-md hover:text-red-600 hover:bg-red-50 dark:hover:text-red-400 dark:hover:bg-red-900"+ class="inline-flex min-h-11 min-w-11 items-center justify-center rounded-md p-1.5 hover:text-red-600 hover:bg-red-50 sm:min-h-0 sm:min-w-0 dark:hover:text-red-400 dark:hover:bg-red-900"title="Delete profile"><Trash2 class="w-4 h-4" />diff --git a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsxindex 1d7d51fd71..6b00696c24 100644--- a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx+++ b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx@@ -74,7 +74,7 @@ interface InfrastructureSourceManagerProps {// dominant. They retain the 1-click shortcut for users adding another node// to an existing platform without competing with the primary CTA.const addSectionButtonClass =- 'inline-flex items-center justify-center gap-1 rounded px-2 py-0.5 text-xs font-medium text-blue-700 transition-colors hover:bg-blue-50 dark:text-blue-300 dark:hover:bg-blue-950/30';+ 'inline-flex min-h-11 items-center justify-center gap-1 rounded px-2 py-0.5 text-xs font-medium text-blue-700 transition-colors hover:bg-blue-50 lg:min-h-0 dark:text-blue-300 dark:hover:bg-blue-950/30';const discoveryRowClass ='border-b border-border-subtle bg-blue-50/30 hover:bg-blue-50/40 dark:bg-blue-950/10 dark:hover:bg-blue-950/20';const discoveryScanTargetLabel = 'Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway APIs';@@ -681,7 +681,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerPtype="button"variant="primary"size="mdCompact"- class="min-h-9 gap-2"+ class="min-h-11 gap-2 lg:min-h-9"onClick={() => props.onReviewDiscoveredSource?.(props.discoveredNodes()[0])}><Search class="h-4 w-4" aria-hidden="true" />@@ -693,7 +693,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerPtype="button"variant={discoveredCandidateCount() > 0 ? 'secondary' : 'primary'}size="mdCompact"- class="min-h-9 gap-2"+ class="min-h-11 gap-2 lg:min-h-9"onClick={props.onRunDiscovery}disabled={props.discoveryScanStatus().scanning}title={`Scan configured networks for reachable ${discoveryScanTargetLabel}. Discovered candidates appear here for review before they are added.`}@@ -710,7 +710,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerPtype="button"variant="secondary"size="mdCompact"- class="min-h-9 gap-2"+ class="min-h-11 gap-2 lg:min-h-9"onClick={props.onOpenDiscoverySettings}title={`Configure which networks Pulse scans for ${discoveryScanTargetLabel}.`}>@@ -767,7 +767,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerPvariant={fleetAttentionSystemCount() > 0 ? 'primary' : 'secondary'}size="mdCompact"onClick={() => props.onOpenAgentDoctor?.()}- class="min-h-9"+ class="min-h-11 lg:min-h-9">Open Agent Doctor</Button>@@ -779,7 +779,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerPsize="mdCompact"onClick={() => setupConfidenceAction().onClick?.()}disabled={setupConfidenceAction().disabled}- class="min-h-9 gap-2"+ class="min-h-11 gap-2 lg:min-h-9">{setupConfidenceActionIcon(setupConfidenceAction().kind)}{setupConfidenceAction().label}@@ -814,7 +814,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerPtype="button"variant="primary"size="mdCompact"- class="min-h-9 w-full gap-2 sm:w-auto"+ class="min-h-11 w-full gap-2 sm:w-auto lg:min-h-9"onClick={props.onAddInfrastructure}><Plus class="h-4 w-4" />@@ -1081,6 +1081,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerPsize="xs"class="min-w-[4.5rem]"onClick={() => props.onOpenConnection?.(row)}+ data-infrastructure-manage-id={row.id}>Manage</Button>@@ -1408,7 +1409,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP<Show when={row.members.length > 0}><buttontype="button"- class="mt-1 inline-flex items-center gap-0.5 rounded px-1 py-0.5 text-[11px] font-medium text-muted transition-colors hover:bg-surface-alt hover:text-base-content"+ class="mt-1 inline-flex min-h-11 items-center gap-0.5 rounded px-1 py-0.5 text-[11px] font-medium text-muted transition-colors hover:bg-surface-alt hover:text-base-content lg:min-h-0"aria-expanded={membersExpanded(row)}aria-label={`${membersExpanded(row) ? 'Hide' : 'Show'} ${formatCount(row.members.length, row.ownerType === 'vmware' ? 'host' : 'node')} for ${row.name}`}onClick={() => toggleMembers(row)}@@ -1559,7 +1560,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP><buttontype="button"- class="inline-flex items-center rounded-full bg-amber-100 px-2 py-0.5 text-[11px] font-medium text-amber-800 transition-colors hover:bg-amber-200 dark:bg-amber-900 dark:text-amber-200 dark:hover:bg-amber-800"+ class="inline-flex min-h-11 items-center rounded-full bg-amber-100 px-2 py-0.5 text-[11px] font-medium text-amber-800 transition-colors hover:bg-amber-200 lg:min-h-0 dark:bg-amber-900 dark:text-amber-200 dark:hover:bg-amber-800"onClick={() =>props.onOpenAgentDoctor?.(agentConnectionIDsForInfrastructureRow(row, true),@@ -1598,7 +1599,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerPtype="button"variant="outline"size="xs"- class="gap-1.5"+ class="min-h-11 gap-1.5 lg:min-h-0"onClick={handleInstallAgentShortcut}><Cpu class="h-3.5 w-3.5" />@@ -1609,8 +1610,9 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerPtype="button"variant="outline"size="xs"- class="min-w-[4.5rem] flex-shrink-0"+ class="min-h-11 min-w-[4.5rem] flex-shrink-0 lg:min-h-0"onClick={() => props.onOpenConnection?.(row)}+ data-infrastructure-manage-id={row.id}>Manage</Button>@@ -1690,7 +1692,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerPtype="button"variant="outline"size="xs"- class="min-w-[4.5rem] flex-shrink-0"+ class="min-h-11 min-w-[4.5rem] flex-shrink-0 lg:min-h-0"onClick={() => props.onReviewDiscoveredSource?.(server)}>Reviewdiff --git a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsxindex b844ad0aae..50741b18a9 100644--- a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx+++ b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx@@ -142,6 +142,9 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =const [selectedProbeCandidate, setSelectedProbeCandidate] = createSignal<ProbeCandidate | null>(null,);+ const [editFocusReturnConnectionId, setEditFocusReturnConnectionId] = createSignal<string | null>(+ null,+ );const readOnly = createMemo(() => presentationPolicyIsReadOnly());const routeStep = createMemo<InfrastructurePanelStep | null>(() => {if (readOnly()) return null;@@ -265,6 +268,11 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =navigate(buildInfrastructureOnboardingPath(server.type), { scroll: false });};+ const openEditFlow = (row: InfrastructureSystemRow) => {+ setEditFocusReturnConnectionId(row.id);+ setEditingRowSource(row);+ };+const closeAddFlow = () => {resetInlineEditorState();setSelectedDiscoveredSource(null);@@ -273,6 +281,7 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =};const closeEditFlow = () => {+ const focusReturnConnectionId = editFocusReturnConnectionId();const connection = editingConnection();if (connection) {rowActions.cancelRemove(connection.id);@@ -282,6 +291,18 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =}resetInlineEditorState();setEditingRowSource(null);+ setEditFocusReturnConnectionId(null);+ if (focusReturnConnectionId && typeof document !== 'undefined') {+ window.setTimeout(() => {+ const focusTarget = Array.from(+ document.querySelectorAll<HTMLElement>('[data-infrastructure-manage-id]'),+ ).find(+ (element) =>+ element.getAttribute('data-infrastructure-manage-id') === focusReturnConnectionId,+ );+ focusTarget?.focus();+ }, 250);+ }};const handleAddSaved = () => {@@ -932,7 +953,7 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =}}onOpenDiscoverySettings={readOnly() ? undefined : () => setShowDiscoverySettings(true)}- onOpenConnection={readOnly() ? undefined : (row) => setEditingRowSource(row)}+ onOpenConnection={readOnly() ? undefined : openEditFlow}onOpenAgentDoctor={readOnly()? undefined@@ -1056,6 +1077,7 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =size="iconMd"onClick={closeEditFlow}aria-label="Close edit infrastructure dialog"+ class="min-h-11 min-w-11 shrink-0 lg:min-h-9 lg:min-w-9"><X class="h-4 w-4" /></Button>diff --git a/frontend-modern/src/components/Settings/RolesPanel.tsx b/frontend-modern/src/components/Settings/RolesPanel.tsxindex 2e3b634378..85a56e0ab8 100644--- a/frontend-modern/src/components/Settings/RolesPanel.tsx+++ b/frontend-modern/src/components/Settings/RolesPanel.tsx@@ -111,6 +111,7 @@ export const RolesPanel: Component = () => {label="Edit role"tone="accent"size="sm"+ class="min-h-11 min-w-11 sm:min-h-0 sm:min-w-0"onClick={() => state.openEditRole(role)}><Pencil class="w-4 h-4" />@@ -119,6 +120,7 @@ export const RolesPanel: Component = () => {label="Delete role"tone="danger"size="sm"+ class="min-h-11 min-w-11 sm:min-h-0 sm:min-w-0"onClick={() => state.handleDeleteRole(role)}><Trash2 class="w-4 h-4" />diff --git a/frontend-modern/src/components/Settings/UpdateHistorySection.tsx b/frontend-modern/src/components/Settings/UpdateHistorySection.tsxindex 30f2d42ab8..b8dd29d332 100644--- a/frontend-modern/src/components/Settings/UpdateHistorySection.tsx+++ b/frontend-modern/src/components/Settings/UpdateHistorySection.tsx@@ -152,6 +152,7 @@ export const UpdateHistorySection: Component = () => {variant="dangerOutline"size="xs"type="button"+ class="min-h-11 sm:min-h-0"onClick={() => setConfirmEntry(entry)}>Roll backdiff --git a/frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx b/frontend-modern/src/components/Settings/UserAssignmentsPanel.tsxindex 1059545391..ed6f3840a1 100644--- a/frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx+++ b/frontend-modern/src/components/Settings/UserAssignmentsPanel.tsx@@ -133,7 +133,7 @@ export const UserAssignmentsPanel: Component = () => {<Buttonvariant="ghost"size="settingsAction"- class="gap-2"+ class="min-h-11 gap-2 sm:min-h-9"onClick={() => state.openManageAccess(assignment)}><Pencil class="w-4 h-4" />diff --git a/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsxindex 72f3e84f6a..c3839b3051 100644--- a/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/AgentProfilesPanel.test.tsx@@ -276,6 +276,10 @@ describe('AgentProfilesPanel V6 agent ID handling', () => {it('keeps the Ideas button tooltip product-first instead of AI-branded', () => {expect(agentProfilesPanelSource).toContain('title="Suggest profiles for your estate"');expect(agentProfilesPanelSource).not.toContain('title="Get AI-powered profile suggestions"');+ expect(agentProfilesPanelSource).toContain('hiddenOnMobile: true');+ expect(agentProfilesPanelSource).toContain(+ 'inline-flex min-h-11 min-w-11 items-center justify-center',+ );});it('maps assignments using actionable V6 agent ID instead of resource hash ID', async () => {diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureSourceManager.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureSourceManager.test.tsxindex 09db8bb064..e4e87b57ab 100644--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureSourceManager.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureSourceManager.test.tsx@@ -1,5 +1,6 @@import { cleanup, fireEvent, render, screen, within } from '@solidjs/testing-library';import { afterEach, describe, expect, it, vi } from 'vitest';+import infrastructureSourceManagerSource from '../InfrastructureSourceManager.tsx?raw';import {InfrastructureSourceManager,agentConnectionIDsForInfrastructureRow,@@ -127,10 +128,48 @@ describe('InfrastructureSourceManager setup summary', () => {fireEvent.click(within(discovery).getByRole('button', { name: /^Run discovery$/i }));expect(onRunDiscovery).toHaveBeenCalledTimes(1);- fireEvent.click(within(discovery).getByRole('button', { name: /^Settings$/i }));+ expect(within(discovery).getByRole('button', { name: /^Run discovery$/i })).toHaveClass(+ 'min-h-11',+ 'lg:min-h-9',+ );+ const discoverySettings = within(discovery).getByRole('button', { name: /^Settings$/i });+ expect(discoverySettings).toHaveClass('min-h-11', 'lg:min-h-9');+ fireEvent.click(discoverySettings);expect(onOpenDiscoverySettings).toHaveBeenCalledTimes(1);});+ it('keeps phone inventory actions touch-sized without changing desktop density', () => {+ render(() => (+ <InfrastructureSourceManager+ rows={() => [row()]}+ discoveredNodes={() => []}+ discoveryEnabled={false}+ discoveryScanStatus={() => ({ scanning: false })}+ readOnly={false}+ onAddSource={vi.fn()}+ onAddInfrastructure={vi.fn()}+ onOpenConnection={vi.fn()}+ onOpenAgentDoctor={vi.fn()}+ />+ ));++ expect(screen.getByRole('button', { name: /^Add infrastructure$/i })).toHaveClass(+ 'min-h-11',+ 'lg:min-h-9',+ );+ expect(screen.getByRole('button', { name: /^Open Agent Doctor$/i })).toHaveClass(+ 'min-h-11',+ 'lg:min-h-9',+ );+ expect(screen.getByRole('button', { name: /^Install Pulse Agent$/i })).toHaveClass(+ 'min-h-11',+ 'lg:min-h-0',+ );+ expect(infrastructureSourceManagerSource).toContain(+ 'class="min-h-11 min-w-[4.5rem] flex-shrink-0 lg:min-h-0"',+ );+ });+it('keeps manual discovery observable while a scan is running', () => {const onRunDiscovery = vi.fn();diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsxindex f2c19e609d..84add8d142 100644--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx@@ -976,11 +976,16 @@ describe('InfrastructureWorkspace', () => {await waitFor(() =>expect(screen.getByRole('button', { name: /^Manage$/i })).toBeInTheDocument(),);- fireEvent.click(screen.getByRole('button', { name: /^Manage$/i }));+ const manageButton = screen.getByRole('button', { name: /^Manage$/i });+ manageButton.focus();+ fireEvent.click(manageButton);await waitFor(() => expect(screen.getByRole('dialog')).toBeInTheDocument());expect(screen.getByText('Manage zeus')).toBeInTheDocument();expect(screen.getByTestId('proxmox-section')).toBeInTheDocument();++ fireEvent.click(screen.getByRole('button', { name: 'Close edit infrastructure dialog' }));+ await waitFor(() => expect(manageButton).toHaveFocus());});it('shows standalone agent identity in the landing row and the agent detail drawer', async () => {diff --git a/frontend-modern/src/components/Settings/__tests__/RBACPaywallPanels.test.tsx b/frontend-modern/src/components/Settings/__tests__/RBACPaywallPanels.test.tsxindex c3c6e86786..979b11f64c 100644--- a/frontend-modern/src/components/Settings/__tests__/RBACPaywallPanels.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/RBACPaywallPanels.test.tsx@@ -161,6 +161,29 @@ describe('RBAC paywall settings panels', () => {expect(screen.getByRole('button', { name: 'New Role' })).not.toBeDisabled();});+ it('keeps editable role actions touch-sized on mobile', async () => {+ getRolesMock.mockResolvedValueOnce([+ {+ id: 'operator',+ name: 'Operator',+ description: 'Operational access',+ permissions: [{ action: 'read', resource: 'alerts' }],+ isBuiltIn: false,+ },+ ]);++ render(() => <RolesPanel />);++ const edit = await screen.findByRole('button', { name: 'Edit role' });+ expect(edit).toHaveClass('min-h-11', 'min-w-11', 'sm:min-h-0', 'sm:min-w-0');+ expect(screen.getByRole('button', { name: 'Delete role' })).toHaveClass(+ 'min-h-11',+ 'min-w-11',+ 'sm:min-h-0',+ 'sm:min-w-0',+ );+ });+it('fails closed with a persistent retry notice when roles cannot be read', async () => {getRolesMock.mockRejectedValueOnce(Object.assign(new Error('RBAC data could not be loaded'), {@@ -213,6 +236,10 @@ describe('RBAC paywall settings panels', () => {expect(getUsersMock).toHaveBeenCalled();expect(getRolesMock).toHaveBeenCalled();expect(screen.getByPlaceholderText('Search users...')).not.toBeDisabled();+ expect(screen.getByRole('button', { name: 'Manage Access' })).toHaveClass(+ 'min-h-11',+ 'sm:min-h-9',+ );});it('does not render stale user data when assignment storage is unavailable', async () => {diff --git a/frontend-modern/src/components/Settings/__tests__/UpdateHistorySection.test.tsx b/frontend-modern/src/components/Settings/__tests__/UpdateHistorySection.test.tsxindex f56bc6b56c..4f6ab77192 100644--- a/frontend-modern/src/components/Settings/__tests__/UpdateHistorySection.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/UpdateHistorySection.test.tsx@@ -87,7 +87,9 @@ describe('UpdateHistorySection', () => {render(() => <UpdateHistorySection />);await screen.findByText('Failed');- expect(screen.getAllByRole('button', { name: 'Roll back' })).toHaveLength(1);+ const rollbackButtons = screen.getAllByRole('button', { name: 'Roll back' });+ expect(rollbackButtons).toHaveLength(1);+ expect(rollbackButtons[0]).toHaveClass('min-h-11', 'sm:min-h-0');expect(screen.getByText('Rollback')).toBeInTheDocument();});diff --git a/frontend-modern/src/features/alerts/AlertAppriseDestinationsSection.tsx b/frontend-modern/src/features/alerts/AlertAppriseDestinationsSection.tsxindex b6152085a5..2b4bfe6ba9 100644--- a/frontend-modern/src/features/alerts/AlertAppriseDestinationsSection.tsx+++ b/frontend-modern/src/features/alerts/AlertAppriseDestinationsSection.tsx@@ -84,7 +84,7 @@ export function AlertAppriseDestinationsSection(props: AlertAppriseDestinationsS}/><button- class="rounded border border-blue-500 px-3 py-1.5 text-xs font-medium text-blue-600 transition-colors hover:bg-blue-50 disabled:opacity-50 disabled:cursor-not-allowed dark:border-blue-400 dark:text-blue-300 dark:hover:bg-blue-900"+ class="min-h-11 rounded border border-blue-500 px-3 py-1.5 text-xs font-medium text-blue-600 transition-colors hover:bg-blue-50 disabled:opacity-50 disabled:cursor-not-allowed sm:min-h-0 dark:border-blue-400 dark:text-blue-300 dark:hover:bg-blue-900"disabled={!props.config.enabled || props.testing}onClick={props.onTest}>diff --git a/frontend-modern/src/features/alerts/AlertHistoryItemActions.tsx b/frontend-modern/src/features/alerts/AlertHistoryItemActions.tsxindex 431253ddbd..fc26ede8a3 100644--- a/frontend-modern/src/features/alerts/AlertHistoryItemActions.tsx+++ b/frontend-modern/src/features/alerts/AlertHistoryItemActions.tsx@@ -11,6 +11,7 @@ interface AlertHistoryItemActionsProps {alert: AlertHistoryAlert;state: AlertHistoryState;class?: string;+ touchSized?: boolean;}export function AlertHistoryItemActions(props: AlertHistoryItemActionsProps) {@@ -21,7 +22,9 @@ export function AlertHistoryItemActions(props: AlertHistoryItemActionsProps) {<Show when={props.alert.source === 'alert'}><buttontype="button"- class="rounded-md border border-border px-2 py-1 text-[10px] text-muted hover:bg-surface-hover"+ class={`rounded-md border border-border px-2 py-1 text-[10px] text-muted hover:bg-surface-hover ${+ props.touchSized ? 'min-h-11' : ''+ }`}onClick={() => {void props.state.toggleIncidentTimeline(rowKey(),@@ -36,7 +39,9 @@ export function AlertHistoryItemActions(props: AlertHistoryItemActionsProps) {<Show when={props.alert.source === 'alert' && props.alert.resourceId}><buttontype="button"- class="rounded-md border border-border px-2 py-1 text-[10px] text-muted hover:bg-surface-hover"+ class={`rounded-md border border-border px-2 py-1 text-[10px] text-muted hover:bg-surface-hover ${+ props.touchSized ? 'min-h-11' : ''+ }`}title={getAlertResourceIncidentViewTitle()}onClick={() => {void props.state.openResourceIncidentPanel(@@ -74,6 +79,7 @@ export function AlertHistoryItemActions(props: AlertHistoryItemActionsProps) {resourceType={props.alert.resourceType}variant="icon"size="sm"+ class={props.touchSized ? 'min-h-11 min-w-11' : undefined}/></Show></div>diff --git a/frontend-modern/src/features/alerts/AlertHistoryMobileList.tsx b/frontend-modern/src/features/alerts/AlertHistoryMobileList.tsxindex 61207eb48d..19278e81c1 100644--- a/frontend-modern/src/features/alerts/AlertHistoryMobileList.tsx+++ b/frontend-modern/src/features/alerts/AlertHistoryMobileList.tsx@@ -91,7 +91,12 @@ export function AlertHistoryMobileList(props: AlertHistoryMobileListProps) {</div></dl>- <AlertHistoryItemActions alert={alert} state={props.state} class="mt-3" />+ <AlertHistoryItemActions+ alert={alert}+ state={props.state}+ class="mt-3"+ touchSized+ /><Showwhen={diff --git a/frontend-modern/src/features/alerts/__tests__/AlertHistoryMobileList.test.tsx b/frontend-modern/src/features/alerts/__tests__/AlertHistoryMobileList.test.tsxindex 5c3b6a14a4..29325936b1 100644--- a/frontend-modern/src/features/alerts/__tests__/AlertHistoryMobileList.test.tsx+++ b/frontend-modern/src/features/alerts/__tests__/AlertHistoryMobileList.test.tsx@@ -67,6 +67,9 @@ describe('AlertHistoryMobileList', () => {expect(screen.getByText('warning')).toBeVisible();expect(screen.getByText('resolved')).toBeVisible();+ expect(screen.getByRole('button', { name: 'Timeline' })).toHaveClass('min-h-11');+ expect(screen.getByRole('button', { name: 'Resource' })).toHaveClass('min-h-11');+await fireEvent.click(screen.getByRole('button', { name: 'Timeline' }));expect(toggleIncidentTimeline).toHaveBeenCalledWith('alert-1-row',diff --git a/frontend-modern/src/utils/__tests__/auditLogPresentation.test.ts b/frontend-modern/src/utils/__tests__/auditLogPresentation.test.tsindex a15380cc78..fc0a6afa69 100644--- a/frontend-modern/src/utils/__tests__/auditLogPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/auditLogPresentation.test.ts@@ -71,9 +71,12 @@ describe('auditLogPresentation', () => {it('exposes canonical audit action button classes', () => {expect(AUDIT_TOOLBAR_BUTTON_CLASS).toContain('border border-border');+ expect(AUDIT_TOOLBAR_BUTTON_CLASS).toContain('min-h-11 sm:min-h-10');expect(AUDIT_REFRESH_BUTTON_CLASS).toContain('text-base-content');expect(AUDIT_VERIFY_ALL_BUTTON_CLASS).toContain('text-blue-700');+ expect(AUDIT_VERIFY_ALL_BUTTON_CLASS).toContain('min-h-11 sm:min-h-10');expect(AUDIT_VERIFY_ROW_BUTTON_CLASS).toContain('text-blue-600');+ expect(AUDIT_VERIFY_ROW_BUTTON_CLASS).toContain('min-h-11 sm:min-h-10');});it('exposes canonical audit filter option labels', () => {diff --git a/frontend-modern/src/utils/auditLogPresentation.ts b/frontend-modern/src/utils/auditLogPresentation.tsindex 2acdcaa418..440e48740a 100644--- a/frontend-modern/src/utils/auditLogPresentation.ts+++ b/frontend-modern/src/utils/auditLogPresentation.ts@@ -31,12 +31,12 @@ type AuditLogFetchErrorLike = {};export const AUDIT_TOOLBAR_BUTTON_CLASS =- 'flex min-h-10 sm:min-h-10 items-center gap-2 px-3 py-2 text-sm font-medium bg-surface border border-border rounded-md hover:bg-surface-hover disabled:opacity-50';+ 'flex min-h-11 sm:min-h-10 items-center gap-2 px-3 py-2 text-sm font-medium bg-surface border border-border rounded-md hover:bg-surface-hover disabled:opacity-50';export const AUDIT_REFRESH_BUTTON_CLASS = `${AUDIT_TOOLBAR_BUTTON_CLASS} text-base-content`;export const AUDIT_VERIFY_ALL_BUTTON_CLASS =- 'flex min-h-10 sm:min-h-10 items-center gap-2 px-3 py-2 text-sm font-medium text-blue-700 dark:text-blue-200 bg-blue-50 dark:bg-blue-900 border border-blue-200 dark:border-blue-700 rounded-md hover:bg-blue-100 dark:hover:bg-blue-800 disabled:opacity-50';+ 'flex min-h-11 sm:min-h-10 items-center gap-2 px-3 py-2 text-sm font-medium text-blue-700 dark:text-blue-200 bg-blue-50 dark:bg-blue-900 border border-blue-200 dark:border-blue-700 rounded-md hover:bg-blue-100 dark:hover:bg-blue-800 disabled:opacity-50';export const AUDIT_VERIFY_ROW_BUTTON_CLASS =- 'inline-flex min-h-10 sm:min-h-10 items-center rounded-md border border-blue-200 dark:border-blue-700 px-3 py-2 text-sm font-medium text-blue-600 dark:text-blue-400 hover:bg-blue-50 dark:hover:bg-blue-900 disabled:opacity-50';+ 'inline-flex min-h-11 sm:min-h-10 items-center rounded-md border border-blue-200 dark:border-blue-700 px-3 py-2 text-sm font-medium text-blue-600 dark:text-blue-400 hover:bg-blue-50 dark:hover:bg-blue-900 disabled:opacity-50';export const AUDIT_EVENT_FILTER_ALL_LABEL = getAllFilterOptionLabel('events');export const AUDIT_EVENT_CONFIG_CHANGE_LABEL = 'Config change';export const AUDIT_SUCCESS_FILTER_SUCCESS_ONLY_LABEL = 'Success only';