diff --git a/frontend/src/components/config/LogTab.tsx b/frontend/src/components/config/ServerHealthSection.tsx similarity index 95% rename from frontend/src/components/config/LogTab.tsx rename to frontend/src/components/config/ServerHealthSection.tsx index f1ca66d..65c352e 100644 --- a/frontend/src/components/config/LogTab.tsx +++ b/frontend/src/components/config/ServerHealthSection.tsx @@ -1,12 +1,12 @@ /** - * LogTab — fail2ban log viewer and service health panel. + * ServerHealthSection — service health panel and log viewer for ServerTab. * * Renders two sections: * 1. **Service Health panel** — shows online/offline state, version, active * jail count, total bans, total failures, log level, and log target. * 2. **Log viewer** — displays the tail of the fail2ban daemon log file with * toolbar controls for line count, substring filter, manual refresh, and - * optional auto-refresh. Log lines are color-coded by severity. + * optional auto-refresh. Log lines are color-coded by severity. */ import { @@ -167,13 +167,11 @@ function detectSeverity(line: string): "error" | "warning" | "debug" | "default" // --------------------------------------------------------------------------- /** - * Log tab component for the Configuration page. - * - * Shows fail2ban service health and a live log viewer with refresh controls. + * Server health panel and log viewer section for ServerTab. * * @returns JSX element. */ -export function LogTab(): React.JSX.Element { +export function ServerHealthSection(): React.JSX.Element { const configStyles = useConfigStyles(); const styles = useStyles(); @@ -317,10 +315,8 @@ export function LogTab(): React.JSX.Element { logData != null && logData.total_lines > logData.lines.length; return ( -