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.

Use source language for infrastructure filters

rcourtman3d7e5aba77f7
diff --git a/frontend-modern/src/components/Settings/InfrastructureSourcePicker.tsx b/frontend-modern/src/components/Settings/InfrastructureSourcePicker.tsx
index 11958edbf7..26a72ef7fd 100644
--- a/frontend-modern/src/components/Settings/InfrastructureSourcePicker.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureSourcePicker.tsx
@@ -212,7 +212,8 @@ export const InfrastructureSourcePicker: Component<InfrastructureSourcePickerPro
when={visibleItems().length > 0}
fallback={
<div class="rounded-md border border-dashed border-border bg-surface-alt p-4 text-sm text-muted">
- No matching source yet. Try a platform, host type, service, or API endpoint address.
+ No matching source yet. Try a device, host type, service, platform, or endpoint
+ address.
</div>
}
>
diff --git a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
index ddc3be3e7a..9b91af6f33 100644
--- a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
@@ -837,7 +837,7 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
const addDialogDescription = createMemo(() => {
const step = routeStep();
if (!step || step === 'pick') {
- return 'Choose the system, platform, host, or service you want Pulse to monitor.';
+ return 'Choose the system, device, host, or service you want Pulse to monitor.';
}
if (step === 'detect') {
return 'Probe a management API endpoint and let Pulse open the matching credential flow when it recognizes the platform.';
diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
index 381f53e66c..a08b034fc6 100644
--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
@@ -629,7 +629,7 @@ describe('InfrastructureWorkspace', () => {
const dialog = screen.getByRole('dialog');
expect(screen.getAllByText('Add infrastructure').length).toBeGreaterThan(0);
expect(
- screen.getByText('Choose the system, platform, host, or service you want Pulse to monitor.'),
+ screen.getByText('Choose the system, device, host, or service you want Pulse to monitor.'),
).toBeInTheDocument();
expect(
within(dialog).getByPlaceholderText('Search sources, devices, services...'),
diff --git a/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx b/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx
index ca5282a8a3..77da31a3f5 100644
--- a/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx
+++ b/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx
@@ -82,7 +82,7 @@ export function InfrastructurePageSurface() {
<div ref={setSummaryClearSurfaceRootRef} data-testid="infrastructure-page" class="space-y-4">
<PageHeader
title="Infrastructure"
- description="Inspect connected resources, filter by platform and status, and drill into live health and capacity."
+ description="Inspect connected resources, filter by source and status, and drill into live health and capacity."
/>
<Show
@@ -185,7 +185,7 @@ export function InfrastructurePageSurface() {
[
{
id: 'platform',
- label: 'Platform',
+ label: 'Source',
group: 'scope',
value: selectedSource,
setValue: setSelectedSource,
diff --git a/frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.ts b/frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.ts
index d2d3631bee..c09d436b58 100644
--- a/frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.ts
+++ b/frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.ts
@@ -140,6 +140,7 @@ describe('InfrastructurePageSurface guardrails', () => {
expect(infrastructurePageSurfaceSource).toContain('<FilterBar');
expect(infrastructurePageSurfaceSource).toContain('isMobile={isMobile}');
expect(infrastructurePageSurfaceSource).toContain("id: 'platform'");
+ expect(infrastructurePageSurfaceSource).toContain("label: 'Source'");
expect(infrastructurePageSurfaceSource).toContain("id: 'status'");
expect(infrastructurePageSurfaceSource).toContain("group: 'scope'");
expect(infrastructurePageSurfaceSource).toContain("group: 'status'");