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
Frontend consistency sweep Tier 2: drawer heading and search-input parity
rcourtman0f3e2aad153d
diff --git a/frontend-modern/src/components/Docker/SwarmServicesDrawer.tsx b/frontend-modern/src/components/Docker/SwarmServicesDrawer.tsxindex 20e00528a5..3e116662c9 100644--- a/frontend-modern/src/components/Docker/SwarmServicesDrawer.tsx+++ b/frontend-modern/src/components/Docker/SwarmServicesDrawer.tsx@@ -2,7 +2,7 @@ import type { Component } from 'solid-js';import { For, Show, createMemo, createResource, createSignal } from 'solid-js';import { apiFetchJSON } from '@/utils/apiClient';import { Card } from '@/components/shared/Card';-import { SearchField } from '@/components/shared/SearchField';+import { SearchInput } from '@/components/shared/SearchInput';import { StatusDot } from '@/components/shared/StatusDot';import {Table,@@ -204,13 +204,16 @@ export const SwarmServicesDrawer: Component<{ cluster: string; swarm?: SwarmInfo</div><div class="flex flex-wrap items-center gap-2">- <SearchField- value={search()}- onChange={setSearch}- placeholder={drawerPresentation.searchPlaceholder}- class="w-[12rem]"- inputClass="py-1 text-xs font-medium shadow-sm"- />+ <div class="w-[12rem]">+ <SearchInput+ value={search}+ onChange={setSearch}+ placeholder={drawerPresentation.searchPlaceholder}+ inputClass="py-1 text-xs font-medium shadow-sm"+ typeToSearch+ clearOnEscape+ />+ </div></div></div>diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsxindex 7bbdfbfad2..1f0267da91 100644--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx@@ -106,7 +106,7 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {type="button"onClick={() => props.onClose?.()}class="rounded-md p-1 hover:bg-surface-hover hover:text-base-content"- aria-label="Close"+ aria-label="Close resource drawer"><svg class="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><pathdiff --git a/frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx b/frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsxindex dfbb97819d..c39e27930b 100644--- a/frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx+++ b/frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx@@ -3,7 +3,7 @@ import { For, Show, createMemo, createResource, createSignal } from 'solid-js';import { useNavigate } from '@solidjs/router';import { apiFetchJSON } from '@/utils/apiClient';import { Card } from '@/components/shared/Card';-import { SearchField } from '@/components/shared/SearchField';+import { SearchInput } from '@/components/shared/SearchInput';import {Table,TableHeader,@@ -105,13 +105,16 @@ export const K8sNamespacesDrawer: Component<{</div><div class="flex flex-wrap items-center gap-2">- <SearchField- value={search()}- onChange={setSearch}- placeholder={drawerPresentation.searchPlaceholder}- class="w-[12rem]"- inputClass="py-1 text-xs font-medium shadow-sm"- />+ <div class="w-[12rem]">+ <SearchInput+ value={search}+ onChange={setSearch}+ placeholder={drawerPresentation.searchPlaceholder}+ inputClass="py-1 text-xs font-medium shadow-sm"+ typeToSearch+ clearOnEscape+ />+ </div><buttontype="button"onClick={() => openPods(null)}diff --git a/frontend-modern/src/components/Workloads/GuestDrawer.tsx b/frontend-modern/src/components/Workloads/GuestDrawer.tsxindex cf4f5fbe0e..499c1f4dbc 100644--- a/frontend-modern/src/components/Workloads/GuestDrawer.tsx+++ b/frontend-modern/src/components/Workloads/GuestDrawer.tsx@@ -1,6 +1,6 @@import { Component, Show, Suspense, createMemo } from 'solid-js';import { DiscoveryTab } from '../Discovery/DiscoveryTab';-import { StatusDot } from '@/components/shared/StatusDot';+import { DrawerSubjectHeading } from '@/components/shared/DrawerSubjectHeading';import { getSimpleStatusIndicator } from '@/utils/status';import { getGuestDrawerHistoryFallbackMetrics, type GuestDrawerProps } from './guestDrawerModel';import { useGuestDrawerState } from './useGuestDrawerState';@@ -46,21 +46,12 @@ export const GuestDrawer: Component<GuestDrawerProps> = (props) => {return (<section class="space-y-3" aria-labelledby={headingId()}>- <div class="flex items-center gap-2 min-w-0">- <StatusDot- size="sm"- variant={headerIndicator().variant}- title={headerIndicator().label}- ariaLabel={headerIndicator().label}- />- <h2- id={headingId()}- class="text-sm font-semibold text-base-content truncate m-0"- title={props.guest.name}- >- {props.guest.name}- </h2>- </div>+ <DrawerSubjectHeading+ headingId={headingId()}+ title={props.guest.name}+ statusVariant={headerIndicator().variant}+ statusLabel={headerIndicator().label}+ />{/* Tabs */}<div class="mb-1 flex items-center justify-between gap-3 border-b border-border px-1"><div class="flex items-center gap-6">diff --git a/frontend-modern/src/components/Workloads/NodeDrawer.tsx b/frontend-modern/src/components/Workloads/NodeDrawer.tsxindex aa767719e6..2dab2996dc 100644--- a/frontend-modern/src/components/Workloads/NodeDrawer.tsx+++ b/frontend-modern/src/components/Workloads/NodeDrawer.tsx@@ -2,7 +2,7 @@ import { Show, Suspense, createMemo, createSignal, type Component } from 'solid-import type { HistoryTimeRange } from '@/api/charts';import { DiscoveryTab } from '@/components/Discovery/DiscoveryTab';-import { StatusDot } from '@/components/shared/StatusDot';+import { DrawerSubjectHeading } from '@/components/shared/DrawerSubjectHeading';import type { Disk, Node } from '@/types/api';import { getDiscoveryLoadingState } from '@/utils/discoveryPresentation';import { getNodeDisplayName } from '@/utils/nodes';@@ -44,21 +44,12 @@ export const NodeDrawer: Component<NodeDrawerProps> = (props) => {return (<section class="space-y-3" aria-labelledby={headingId()} data-testid="node-drawer">- <div class="flex items-center gap-2 min-w-0">- <StatusDot- size="sm"- variant={headerIndicator().variant}- title={headerIndicator().label}- ariaLabel={headerIndicator().label}- />- <h2- id={headingId()}- class="text-sm font-semibold text-base-content truncate m-0"- title={displayName()}- >- {displayName()}- </h2>- </div>+ <DrawerSubjectHeading+ headingId={headingId()}+ title={displayName()}+ statusVariant={headerIndicator().variant}+ statusLabel={headerIndicator().label}+ /><div class="mb-1 flex items-center justify-between gap-3 border-b border-border px-1"><div class="flex items-center gap-6">diff --git a/frontend-modern/src/components/shared/DrawerSubjectHeading.tsx b/frontend-modern/src/components/shared/DrawerSubjectHeading.tsxnew file mode 100644index 0000000000..11a329aaf2--- /dev/null+++ b/frontend-modern/src/components/shared/DrawerSubjectHeading.tsx@@ -0,0 +1,30 @@+import type { Component, JSX } from 'solid-js';+import { StatusDot } from '@/components/shared/StatusDot';+import type { StatusIndicatorVariant } from '@/utils/status';++interface DrawerSubjectHeadingProps {+ headingId: string;+ title: string;+ statusVariant: StatusIndicatorVariant;+ statusLabel: string;+ trailing?: JSX.Element;+}++export const DrawerSubjectHeading: Component<DrawerSubjectHeadingProps> = (props) => (+ <div class="flex items-center gap-2 min-w-0">+ <StatusDot+ size="sm"+ variant={props.statusVariant}+ title={props.statusLabel}+ ariaLabel={props.statusLabel}+ />+ <h2+ id={props.headingId}+ class="text-sm font-semibold text-base-content truncate m-0"+ title={props.title}+ >+ {props.title}+ </h2>+ {props.trailing}+ </div>+);diff --git a/frontend-modern/src/features/docker/DockerHostDrawer.tsx b/frontend-modern/src/features/docker/DockerHostDrawer.tsxindex 97c5ab9634..4ed02787ed 100644--- a/frontend-modern/src/features/docker/DockerHostDrawer.tsx+++ b/frontend-modern/src/features/docker/DockerHostDrawer.tsx@@ -2,7 +2,7 @@ import { Show, Suspense, createMemo, createSignal, type Component } from 'solid-import type { HistoryTimeRange } from '@/api/charts';import { DiscoveryTab } from '@/components/Discovery/DiscoveryTab';-import { StatusDot } from '@/components/shared/StatusDot';+import { DrawerSubjectHeading } from '@/components/shared/DrawerSubjectHeading';import { getSimpleStatusIndicator } from '@/utils/status';import { GuestDrawerHistory, GuestDrawerHistoryRangeSelect } from '@/components/Workloads/GuestDrawerHistory';import { GUEST_DRAWER_HISTORY_DEFAULT_RANGE } from '@/components/Workloads/guestDrawerModel';@@ -43,21 +43,12 @@ export const DockerHostDrawer: Component<DockerHostDrawerProps> = (props) => {aria-labelledby={headingId()}data-testid="docker-host-drawer">- <div class="flex items-center gap-2 min-w-0">- <StatusDot- size="sm"- variant={headerIndicator().variant}- title={headerIndicator().label}- ariaLabel={headerIndicator().label}- />- <h2- id={headingId()}- class="text-sm font-semibold text-base-content truncate m-0"- title={displayName()}- >- {displayName()}- </h2>- </div>+ <DrawerSubjectHeading+ headingId={headingId()}+ title={displayName()}+ statusVariant={headerIndicator().variant}+ statusLabel={headerIndicator().label}+ /><div class="mb-1 flex items-center justify-between gap-3 border-b border-border px-1"><div class="flex items-center gap-6">