From ad5a382fb94d400d6921de36b8ab5a8bd76eee4c Mon Sep 17 00:00:00 2001 From: rcourtman Date: Fri, 24 Oct 2025 10:40:52 +0000 Subject: [PATCH] refactor: remove redundant section header from HostAgents Remove duplicate "Host Monitoring" SectionHeader since the page already has a descriptive header at the top. Also clean up unused cardTitle() and cardDescription() functions. --- .../src/components/Settings/HostAgents.tsx | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/frontend-modern/src/components/Settings/HostAgents.tsx b/frontend-modern/src/components/Settings/HostAgents.tsx index bc6b286..fc26681 100644 --- a/frontend-modern/src/components/Settings/HostAgents.tsx +++ b/frontend-modern/src/components/Settings/HostAgents.tsx @@ -2,7 +2,6 @@ import { Component, For, Show, createEffect, createMemo, createSignal, onMount } import type { JSX } from 'solid-js'; import { useWebSocket } from '@/App'; import type { Host } from '@/types/api'; -import { SectionHeader } from '@/components/shared/SectionHeader'; import { Card } from '@/components/shared/Card'; import CopyButton from '@/components/shared/CopyButton'; import { formatBytes, formatRelativeTime, formatUptime } from '@/utils/format'; @@ -298,43 +297,8 @@ export const HostAgents: Component = (props) => { return apiToken() || TOKEN_PLACEHOLDER; }; - const cardTitle = () => { - if (variant === 'all') { - return 'Host Monitoring'; - } - switch (effectiveVariant()) { - case 'linux': - return 'Linux Hosts'; - case 'macos': - return 'macOS Hosts'; - case 'windows': - return 'Windows Hosts'; - default: - return 'Host Monitoring'; - } - }; - - const cardDescription = () => { - if (variant === 'all') { - return 'Install the Pulse host agent on Linux, macOS, or Windows machines to monitor CPU, memory, disk, and uptime.'; - } - const platform = effectiveVariant(); - switch (platform) { - case 'linux': - return 'Install the Pulse host agent on Debian, Ubuntu, RHEL, Arch, or other Linux distributions.'; - case 'macos': - return 'Deploy the lightweight host agent via launchd to monitor macOS desktops and servers.'; - case 'windows': - return 'Deploy the Pulse host agent as a native Windows service with automatic startup and full access to performance counters.'; - default: - return 'Install the Pulse host agent on Linux, macOS, or Windows machines to monitor CPU, memory, disk, and uptime.'; - } - }; - return (
- -