Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

fix(ui): keep narrow settings controls visible

rcourtman2be0ec649487
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 7357cac891..bd5066e5ca 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,28 +1,45 @@
{
"version": 1,
- "base_sha": "40d29ca44287eb07f1779dd6e549d22d7b606dfd",
- "verified_at": "2026-08-06T00:09:34Z",
+ "base_sha": "328319a8bcd75e8ee838dd09d7064d72fb22afcb",
+ "verified_at": "2026-08-06T08:25:26Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/shared/ColumnPicker.tsx",
- "frontend-modern/src/components/shared/columnPickerModel.ts",
- "frontend-modern/src/features/standalone/AgentsMachinesTable.tsx"
+ "frontend-modern/src/components/AI/AICostDashboard.tsx",
+ "frontend-modern/src/components/Settings/DockerRuntimeSettingsCard.tsx",
+ "frontend-modern/src/components/Settings/SettingsPageShell.tsx"
],
"content_sha256": {
- "frontend-modern/src/components/shared/ColumnPicker.tsx": "ed00597344156850ff0f40b2e4100f307ec82a0019759e4969ca4f8e77cda2c5",
- "frontend-modern/src/components/shared/columnPickerModel.ts": "bc548f541f916a9ed41c8a7e3f9d52e6a2932364ea7d680b18e908c881d78d6b",
- "frontend-modern/src/features/standalone/AgentsMachinesTable.tsx": "084b4a4d0a5f37756d167d9f8729d6fdbc59394265401f9c6f480093b6b05df3"
+ "frontend-modern/src/components/AI/AICostDashboard.tsx": "a49cfbaf3d58a5c1425176e43e5b1878c217ba2c863d087c899df446c56cc44b",
+ "frontend-modern/src/components/Settings/DockerRuntimeSettingsCard.tsx": "fbdf5dd1a5aed7c9dfbeb14783dfac2ae50397cde7ca48668632c013d6190414",
+ "frontend-modern/src/components/Settings/SettingsPageShell.tsx": "8da076ef631f164e01e72760c39bb05864401fcad24f02993635f3ba58412fa8"
},
"routes": [
- "/standalone/machines",
- "/standalone/availability",
- "/proxmox/overview"
+ "/settings/infrastructure",
+ "/settings/monitoring/availability",
+ "/settings/pulse-intelligence/provider",
+ "/settings/pulse-intelligence/patrol",
+ "/settings/pulse-intelligence/assistant",
+ "/settings/system-general",
+ "/settings/system-network",
+ "/settings/system-updates",
+ "/settings/system-recovery",
+ "/settings/system-relay",
+ "/settings/support/diagnostics",
+ "/settings/support/logs",
+ "/settings/security-overview",
+ "/settings/security/api",
+ "/settings/security-auth",
+ "/settings/security-sso",
+ "/alerts/overview",
+ "/alerts/history",
+ "/alerts/thresholds/proxmox",
+ "/alerts/thresholds/vmware",
+ "/alerts/notifications",
+ "/alerts/schedule",
+ "/actions",
+ "/patrol"
],
"viewports": [
- {
- "width": 1920,
- "height": 900
- },
{
"width": 1280,
"height": 820
@@ -33,7 +50,7 @@
},
{
"width": 390,
- "height": 844
+ "height": 820
},
{
"width": 320,
@@ -41,20 +58,21 @@
}
],
"states": [
- "Machines with the default column set",
- "Machines with every optional diagnostic column enabled",
- "Workloads with a compact custom column set and then restored defaults",
- "Machines immediately below and at the 640 pixel disk-column breakpoint",
- "expanded machine detail row at the narrowest viewport",
- "mobile View and Columns controls with responsive-column guidance visible"
+ "every visible Settings destination reached through the real mobile settings navigator",
+ "Provider Usage and Spend with all five cost ranges visible",
+ "General Docker and Podman update setting with its environment-variable hint",
+ "mobile Settings page label before and after client-side navigation",
+ "Alerts top-level and threshold tab strips with beginning, middle, and final selections",
+ "Actions Open and History views",
+ "Patrol attention workbench"
],
"interactions": [
- "added and removed real Machines columns and confirmed lower-priority diagnostics appear only when table space allows",
- "enabled all sixteen Machines columns at 1920 pixels and confirmed every heading remained readable without horizontal overflow",
- "changed the real Workloads column set on Proxmox Overview across desktop, tablet, and mobile widths, then restored it",
- "checked the 639-to-640 pixel transition and confirmed Disk is withheld below the breakpoint and restored at it",
- "expanded and closed Apollo-114 at 320 pixels, confirmed the detail row matched the table width, and verified focus returned to its trigger",
- "confirmed zero document and table overflow at every tested viewport",
- "opened the mobile Columns panel and confirmed the responsive-column explanation fits without overflow"
+ "navigated every visible Settings destination through the 320 pixel sidebar and checked interactive controls for clipped bounds",
+ "selected 1 year, 1 day, and 30 day provider cost ranges and confirmed each remained fully visible with zero document overflow",
+ "confirmed the mobile Settings active-page label updates from Provider and Models to General without retaining the previous destination",
+ "visually inspected the reflowed provider usage header and verified its five buttons exactly fit the available card width",
+ "visually inspected the General update setting and confirmed its title, toggle, description, and long environment token remain inside the card",
+ "checked Settings at 320, 390, 768, and 1280 pixels with zero page overflow",
+ "checked Alerts, Actions, and Patrol at 320 pixels for hidden filters or actions and exercised Action History"
]
}
diff --git a/frontend-modern/src/components/AI/AICostDashboard.tsx b/frontend-modern/src/components/AI/AICostDashboard.tsx
index 834f0fd3ac..a9515127b7 100644
--- a/frontend-modern/src/components/AI/AICostDashboard.tsx
+++ b/frontend-modern/src/components/AI/AICostDashboard.tsx
@@ -286,45 +286,50 @@ export const AICostDashboard: Component = () => {
return (
<Card padding="none" class="overflow-hidden border border-border" border={false}>
- <div class="bg-blue-50 dark:bg-blue-900 px-6 py-4 border-b border-border">
- <div class="flex items-center gap-3">
- <div class="p-2 bg-blue-100 dark:bg-blue-900 rounded-md">
- <svg
- class="w-5 h-5 text-blue-600 dark:text-blue-300"
- fill="none"
- stroke="currentColor"
- viewBox="0 0 24 24"
- >
- <path
- stroke-linecap="round"
- stroke-linejoin="round"
- stroke-width="2"
- d="M12 8c-1.657 0-3 1.343-3 3v1a3 3 0 006 0v-1c0-1.657-1.343-3-3-3zM5 12a7 7 0 0114 0v3a2 2 0 01-2 2H7a2 2 0 01-2-2v-3z"
- />
- </svg>
+ <div class="bg-blue-50 dark:bg-blue-900 px-4 py-4 border-b border-border sm:px-6">
+ <div class="flex flex-col gap-3 sm:flex-row sm:items-center">
+ <div class="flex min-w-0 items-start gap-3 sm:flex-1 sm:items-center">
+ <div class="shrink-0 p-2 bg-blue-100 dark:bg-blue-900 rounded-md">
+ <svg
+ class="w-5 h-5 text-blue-600 dark:text-blue-300"
+ fill="none"
+ stroke="currentColor"
+ viewBox="0 0 24 24"
+ >
+ <path
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ d="M12 8c-1.657 0-3 1.343-3 3v1a3 3 0 006 0v-1c0-1.657-1.343-3-3-3zM5 12a7 7 0 0114 0v3a2 2 0 01-2 2H7a2 2 0 01-2-2v-3z"
+ />
+ </svg>
+ </div>
+ <SectionHeader
+ title={AI_COST_PANEL_TITLE}
+ description={AI_COST_PANEL_DESCRIPTION}
+ size="sm"
+ class="min-w-0 flex-1"
+ />
+ </div>
+ <div class="flex min-w-0 items-center gap-2 sm:shrink-0">
+ <Show when={loading()}>
+ <div class="shrink-0 text-xs text-muted">Loading…</div>
+ </Show>
+ <FilterSegmentedControl
+ aria-label="Cost range"
+ class="w-full justify-between sm:w-auto sm:justify-start"
+ value={String(days())}
+ disabled={loading()}
+ onChange={(value) => handleRangeClick(Number(value))}
+ options={[
+ { value: '1', label: '1d' },
+ { value: '7', label: '7d' },
+ { value: '30', label: '30d' },
+ { value: '90', label: '90d' },
+ { value: '365', label: '1y' },
+ ]}
+ />
</div>
- <SectionHeader
- title={AI_COST_PANEL_TITLE}
- description={AI_COST_PANEL_DESCRIPTION}
- size="sm"
- class="flex-1"
- />
- <Show when={loading()}>
- <div class="text-xs text-muted">Loading…</div>
- </Show>
- <FilterSegmentedControl
- aria-label="Cost range"
- value={String(days())}
- disabled={loading()}
- onChange={(value) => handleRangeClick(Number(value))}
- options={[
- { value: '1', label: '1d' },
- { value: '7', label: '7d' },
- { value: '30', label: '30d' },
- { value: '90', label: '90d' },
- { value: '365', label: '1y' },
- ]}
- />
</div>
</div>
diff --git a/frontend-modern/src/components/AI/__tests__/AICostDashboard.test.tsx b/frontend-modern/src/components/AI/__tests__/AICostDashboard.test.tsx
index 96e5d052fe..3b6f5499aa 100644
--- a/frontend-modern/src/components/AI/__tests__/AICostDashboard.test.tsx
+++ b/frontend-modern/src/components/AI/__tests__/AICostDashboard.test.tsx
@@ -188,6 +188,19 @@ describe('AICostDashboard', () => {
});
});
+ it('gives the full cost range control its own narrow-screen row', async () => {
+ renderDashboard();
+ await waitFor(() => {
+ expect(screen.getByRole('group', { name: 'Cost range' })).toBeInTheDocument();
+ });
+
+ expect(screen.getByRole('group', { name: 'Cost range' })).toHaveClass(
+ 'w-full',
+ 'justify-between',
+ 'sm:w-auto',
+ );
+ });
+
// ---- summary cards ----
it('displays estimated spend in USD', async () => {
diff --git a/frontend-modern/src/components/Settings/DockerRuntimeSettingsCard.tsx b/frontend-modern/src/components/Settings/DockerRuntimeSettingsCard.tsx
index e8d64b80dc..bc660f0f55 100644
--- a/frontend-modern/src/components/Settings/DockerRuntimeSettingsCard.tsx
+++ b/frontend-modern/src/components/Settings/DockerRuntimeSettingsCard.tsx
@@ -15,7 +15,7 @@ interface DockerRuntimeSettingsCardProps {
}
export const DockerRuntimeSettingsCard: Component<DockerRuntimeSettingsCardProps> = (props) => (
- <div class="rounded-xl border border-border bg-surface p-5 shadow-sm">
+ <div class="rounded-xl border border-border bg-surface p-4 shadow-sm sm:p-5">
<div class="space-y-4">
<div class="space-y-1">
<h3 class="text-base font-semibold text-base-content">
@@ -24,9 +24,9 @@ export const DockerRuntimeSettingsCard: Component<DockerRuntimeSettingsCardProps
<p class="text-sm text-muted">{getDockerUpdateActionsPresentation().sectionDescription}</p>
</div>
- <div class="flex items-start justify-between gap-4 rounded-md border border-border bg-surface-hover p-4">
- <div class="flex-1 space-y-1">
- <div class="flex items-center gap-2">
+ <div class="rounded-md border border-border bg-surface-hover p-3 sm:p-4">
+ <div class="flex min-w-0 items-center justify-between gap-3">
+ <div class="flex min-w-0 items-center gap-2">
<span
id="docker-update-actions-toggle-label"
class="text-sm font-medium text-base-content"
@@ -54,30 +54,32 @@ export const DockerRuntimeSettingsCard: Component<DockerRuntimeSettingsCardProps
/>
</Show>
</div>
- <p id="docker-update-actions-toggle-description" class="text-xs text-muted">
- {getDockerUpdateActionsPresentation().toggleDescription}
- </p>
- <p class="text-xs text-muted mt-1">
- {getDockerUpdateActionsPresentation().environmentHint}{' '}
- <code class="px-1 py-0.5 rounded bg-surface-hover text-base-content">
- {DOCKER_UPDATE_ACTIONS_ENV_VAR}=true
- </code>
- </p>
- </div>
- <div class="flex-shrink-0">
- <TogglePrimitive
- checked={props.disableDockerUpdateActions()}
- onChange={(event) =>
- props.handleDisableDockerUpdateActionsChange(event.currentTarget.checked)
- }
- disabled={props.disableDockerUpdateActionsLocked() || props.savingDockerUpdateActions()}
- ariaLabelledBy="docker-update-actions-toggle-label"
- ariaDescribedBy="docker-update-actions-toggle-description"
- title={
- props.disableDockerUpdateActionsLocked() ? ENVIRONMENT_LOCK_BUTTON_TITLE : undefined
- }
- />
+ <div class="shrink-0">
+ <TogglePrimitive
+ checked={props.disableDockerUpdateActions()}
+ onChange={(event) =>
+ props.handleDisableDockerUpdateActionsChange(event.currentTarget.checked)
+ }
+ disabled={
+ props.disableDockerUpdateActionsLocked() || props.savingDockerUpdateActions()
+ }
+ ariaLabelledBy="docker-update-actions-toggle-label"
+ ariaDescribedBy="docker-update-actions-toggle-description"
+ title={
+ props.disableDockerUpdateActionsLocked() ? ENVIRONMENT_LOCK_BUTTON_TITLE : undefined
+ }
+ />
+ </div>
</div>
+ <p id="docker-update-actions-toggle-description" class="mt-2 text-xs text-muted">
+ {getDockerUpdateActionsPresentation().toggleDescription}
+ </p>
+ <p class="mt-1 text-xs text-muted">
+ {getDockerUpdateActionsPresentation().environmentHint}{' '}
+ <code class="break-all rounded bg-surface-hover px-1 py-0.5 text-base-content">
+ {DOCKER_UPDATE_ACTIONS_ENV_VAR}=true
+ </code>
+ </p>
</div>
</div>
</div>
diff --git a/frontend-modern/src/components/Settings/SettingsPageShell.tsx b/frontend-modern/src/components/Settings/SettingsPageShell.tsx
index d49a5c391e..f9b1a96cd4 100644
--- a/frontend-modern/src/components/Settings/SettingsPageShell.tsx
+++ b/frontend-modern/src/components/Settings/SettingsPageShell.tsx
@@ -252,8 +252,8 @@ export const SettingsPageShell: Component<SettingsPageShellProps> = (props) => {
{shellCopy().mobileBackLabel}
</button>
<div class="ml-auto font-semibold text-base-content pr-3">
- <Show when={props.flatTabs().find((tab) => tab.id === props.activeTab())}>
- {(tab) => tab().label}
+ <Show keyed when={props.flatTabs().find((tab) => tab.id === props.activeTab())}>
+ {(tab) => tab.label}
</Show>
</div>
</div>
diff --git a/frontend-modern/src/components/Settings/__tests__/GeneralSettingsPanel.localization.test.tsx b/frontend-modern/src/components/Settings/__tests__/GeneralSettingsPanel.localization.test.tsx
index 3f6f32b196..8401234cc1 100644
--- a/frontend-modern/src/components/Settings/__tests__/GeneralSettingsPanel.localization.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/GeneralSettingsPanel.localization.test.tsx
@@ -87,7 +87,7 @@ describe('GeneralSettingsPanel localization', () => {
expect(screen.getByText('Monitoring cadence')).toBeInTheDocument();
expect(screen.getByText('Current cadence: 30 seconds (under a minute)')).toBeInTheDocument();
expect(screen.getByText('Docker / Podman updates')).toBeInTheDocument();
- expect(screen.getByText('PULSE_DISABLE_DOCKER_UPDATE_ACTIONS=true')).toBeInTheDocument();
+ expect(screen.getByText('PULSE_DISABLE_DOCKER_UPDATE_ACTIONS=true')).toHaveClass('break-all');
expect(screen.getByRole('button', { name: 'English' })).toHaveAttribute('aria-pressed', 'true');
expect(screen.getByRole('button', { name: 'Deutsch' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Español' })).toBeInTheDocument();
diff --git a/frontend-modern/src/components/Settings/__tests__/SettingsPageShell.mobile.test.tsx b/frontend-modern/src/components/Settings/__tests__/SettingsPageShell.mobile.test.tsx
new file mode 100644
index 0000000000..6ed787622c
--- /dev/null
+++ b/frontend-modern/src/components/Settings/__tests__/SettingsPageShell.mobile.test.tsx
@@ -0,0 +1,56 @@
+import { createSignal } from 'solid-js';
+import { cleanup, render, screen, waitFor } from '@solidjs/testing-library';
+import { afterEach, describe, expect, it } from 'vitest';
+import { SettingsPageShell } from '../SettingsPageShell';
+import type { SettingsNavGroup, SettingsTab } from '../settingsNavigationModel';
+
+const TestIcon = () => <span aria-hidden="true" />;
+
+const tabs: SettingsNavGroup['items'] = [
+ { id: 'infrastructure-systems', label: 'Infrastructure', icon: TestIcon },
+ { id: 'api', label: 'API Access', icon: TestIcon },
+];
+
+describe('SettingsPageShell mobile navigation', () => {
+ afterEach(cleanup);
+
+ it('updates the compact active-page label after client-side navigation', async () => {
+ const [activeTab, setActiveTab] = createSignal<SettingsTab>('infrastructure-systems');
+ const [mobileMenuOpen, setMobileMenuOpen] = createSignal(false);
+ const [sidebarCollapsed, setSidebarCollapsed] = createSignal(false);
+ const [searchQuery, setSearchQuery] = createSignal('');
+
+ render(() => (
+ <SettingsPageShell
+ headerMeta={() => ({ title: 'Settings', description: 'Manage Pulse configuration.' })}
+ hasUnsavedChanges={() => false}
+ activeTabSaveBehavior={() => undefined}
+ saveSettings={() => undefined}
+ discardChanges={() => undefined}
+ isMobileMenuOpen={mobileMenuOpen}
+ setIsMobileMenuOpen={setMobileMenuOpen}
+ sidebarCollapsed={sidebarCollapsed}
+ setSidebarCollapsed={setSidebarCollapsed}
+ searchQuery={searchQuery}
+ setSearchQuery={setSearchQuery}
+ filteredTabGroups={() => [{ id: 'infrastructure', label: 'Settings', items: tabs }]}
+ flatTabs={() => tabs}
+ activeTab={activeTab}
+ setActiveTab={setActiveTab}
+ isPro={() => false}
+ >
+ <div>Panel content</div>
+ </SettingsPageShell>
+ ));
+
+ expect(screen.getAllByText('Infrastructure')).toHaveLength(2);
+ expect(screen.getAllByText('API Access')).toHaveLength(1);
+
+ setActiveTab('api');
+
+ await waitFor(() => {
+ expect(screen.getAllByText('Infrastructure')).toHaveLength(1);
+ expect(screen.getAllByText('API Access')).toHaveLength(2);
+ });
+ });
+});