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.

Add platform page headings

rcourtman788cfcf53c02
diff --git a/frontend-modern/src/features/docker/DockerPageSurface.tsx b/frontend-modern/src/features/docker/DockerPageSurface.tsx
index b8f229202d..70bbd739e2 100644
--- a/frontend-modern/src/features/docker/DockerPageSurface.tsx
+++ b/frontend-modern/src/features/docker/DockerPageSurface.tsx
@@ -7,6 +7,7 @@ import { useWorkloadsState } from '@/components/Workloads/useWorkloadsState';
import { useUnifiedResources } from '@/hooks/useUnifiedResources';
import {
PlatformErrorState,
+ PlatformPageHeader,
PlatformSectionTabs,
PlatformTableEmptyState,
PlatformTableLoadingState,
@@ -93,6 +94,10 @@ export function DockerPageSurface() {
return (
<div data-testid="docker-page" class="space-y-3">
+ <PlatformPageHeader
+ title="Docker"
+ description="Inspect Docker and Podman hosts, containers, and Swarm services."
+ />
<PlatformSectionTabs tabs={DOCKER_TAB_SPECS} active="overview" ariaLabel="Docker sections" />
<Show
diff --git a/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx b/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
index 06c5304734..1c83297621 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
@@ -8,6 +8,7 @@ import { useUnifiedResources } from '@/hooks/useUnifiedResources';
import { resourceMatchesSearch } from '@/utils/resourceSearchMatch';
import {
PlatformErrorState,
+ PlatformPageHeader,
PlatformSectionTabs,
PlatformTableEmptyState,
PlatformTableLoadingState,
@@ -48,6 +49,10 @@ export function KubernetesPageSurface() {
return (
<div data-testid="kubernetes-page" class="space-y-3">
+ <PlatformPageHeader
+ title="Kubernetes"
+ description="Inspect Kubernetes clusters, nodes, deployments, and pods."
+ />
<PlatformSectionTabs
tabs={KUBERNETES_TAB_SPECS}
active="overview"
diff --git a/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurface.contract.test.tsx b/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurface.contract.test.tsx
index bab1b33360..8a7b7391b8 100644
--- a/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurface.contract.test.tsx
+++ b/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurface.contract.test.tsx
@@ -32,6 +32,7 @@ vi.mock('@/components/Workloads/WorkloadsSurface', () => ({
vi.mock('@/features/platformPage/sharedPlatformPage', () => ({
PlatformErrorState: () => <div data-testid="platform-error-state" />,
+ PlatformPageHeader: () => <div data-testid="platform-page-header" />,
PlatformSectionTabs: () => <div data-testid="platform-section-tabs" />,
PlatformTableEmptyState: () => <div data-testid="platform-table-empty-state" />,
PlatformTableLoadingState: () => <div data-testid="platform-table-loading-state" />,
diff --git a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
index 98fa27c669..acb1d55a93 100644
--- a/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
+++ b/frontend-modern/src/features/platformPage/__tests__/sharedPlatformPage.test.ts
@@ -1,7 +1,9 @@
-import { describe, expect, it } from 'vitest';
+import { afterEach, describe, expect, it } from 'vitest';
+import { cleanup, render, screen } from '@solidjs/testing-library';
import { createRoot } from 'solid-js';
import type { Resource } from '@/types/resource';
import {
+ PlatformPageHeader,
createPlatformTableFilterState,
filterPlatformResources,
type PlatformResourceStatusFilter,
@@ -129,3 +131,23 @@ describe('filterPlatformResources', () => {
});
});
});
+
+describe('PlatformPageHeader', () => {
+ afterEach(() => {
+ cleanup();
+ });
+
+ it('renders a canonical page heading and description for platform surfaces', () => {
+ render(() =>
+ PlatformPageHeader({
+ title: 'Docker',
+ description: 'Inspect Docker and Podman hosts, containers, and Swarm services.',
+ }),
+ );
+
+ expect(screen.getByRole('heading', { level: 1, name: 'Docker' })).toBeInTheDocument();
+ expect(
+ screen.getByText('Inspect Docker and Podman hosts, containers, and Swarm services.'),
+ ).toBeInTheDocument();
+ });
+});
diff --git a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
index 39c3ddf544..7f8b93501d 100644
--- a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
+++ b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
@@ -3,6 +3,7 @@ import TriangleAlertIcon from 'lucide-solid/icons/triangle-alert';
import { For, Show, createMemo, createSignal, type Component, type JSX } from 'solid-js';
import { EmptyState } from '@/components/shared/EmptyState';
import { FilterButtonGroup, type FilterOption } from '@/components/shared/FilterButtonGroup';
+import { PageHeader } from '@/components/shared/PageHeader';
import { SearchInput } from '@/components/shared/SearchInput';
import { TableCard } from '@/components/shared/TableCard';
import { UnifiedResourceTable } from '@/components/Infrastructure/UnifiedResourceTable';
@@ -15,6 +16,10 @@ export type PlatformTabSpec<TabId extends string> = {
path: string;
};
+export function PlatformPageHeader(props: { title: string; description: string }) {
+ return <PageHeader title={props.title} description={props.description} />;
+}
+
export function PlatformSectionTabs<TabId extends string>(props: {
tabs: readonly PlatformTabSpec<TabId>[];
active: TabId;
diff --git a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
index 24e31283a8..4fd19c1254 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
@@ -20,6 +20,7 @@ import { STORAGE_KEYS } from '@/utils/localStorage';
import { resourceMatchesSearch } from '@/utils/resourceSearchMatch';
import {
PlatformErrorState,
+ PlatformPageHeader,
PlatformSectionTabs,
PlatformTableEmptyState,
PlatformTableLoadingState,
@@ -104,6 +105,10 @@ export function ProxmoxPageSurface() {
return (
<div data-testid="proxmox-page" class="space-y-3">
+ <PlatformPageHeader
+ title="Proxmox"
+ description="Inspect Proxmox VE, Backup Server, Mail Gateway, storage, replication, and backups."
+ />
<PlatformSectionTabs tabs={visibleTabs()} active={activeTab()} ariaLabel="Proxmox sections" />
<Show
diff --git a/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx b/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx
index 91c8ed5395..3b777366af 100644
--- a/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx
@@ -10,6 +10,7 @@ import { useUnifiedResources } from '@/hooks/useUnifiedResources';
import { resourceMatchesSearch } from '@/utils/resourceSearchMatch';
import {
PlatformErrorState,
+ PlatformPageHeader,
PlatformSectionTabs,
PlatformTableEmptyState,
PlatformTableLoadingState,
@@ -54,6 +55,10 @@ export function TrueNASPageSurface() {
return (
<div data-testid="truenas-page" class="space-y-3">
+ <PlatformPageHeader
+ title="TrueNAS"
+ description="Inspect TrueNAS systems, storage, and reported apps."
+ />
<PlatformSectionTabs
tabs={TRUENAS_TAB_SPECS}
active={activeTab()}
diff --git a/frontend-modern/src/features/vmware/VmwarePageSurface.tsx b/frontend-modern/src/features/vmware/VmwarePageSurface.tsx
index 93ac8b2005..e204dfe934 100644
--- a/frontend-modern/src/features/vmware/VmwarePageSurface.tsx
+++ b/frontend-modern/src/features/vmware/VmwarePageSurface.tsx
@@ -10,6 +10,7 @@ import { useUnifiedResources } from '@/hooks/useUnifiedResources';
import { resourceMatchesSearch } from '@/utils/resourceSearchMatch';
import {
PlatformErrorState,
+ PlatformPageHeader,
PlatformSectionTabs,
PlatformTableEmptyState,
PlatformTableLoadingState,
@@ -52,6 +53,10 @@ export function VmwarePageSurface() {
return (
<div data-testid="vmware-page" class="space-y-3">
+ <PlatformPageHeader
+ title="vSphere"
+ description="Inspect vSphere hosts, virtual machines, and datastores."
+ />
<PlatformSectionTabs
tabs={VMWARE_TAB_SPECS}
active={activeTab()}