ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
fix(monitoring): correct two visual defects the render smoke test caught
Juan Denis127fa8f213b9
diff --git a/frontend/src/pages/Telemetry.jsx b/frontend/src/pages/Telemetry.jsxindex 666c148d..7ac71686 100644--- a/frontend/src/pages/Telemetry.jsx+++ b/frontend/src/pages/Telemetry.jsx@@ -30,12 +30,16 @@ import EmptyState from '../components/EmptyState';const SEVERITY_ORDER = ['critical', 'error', 'warning', 'info', 'debug'];+// `tone` is a MetricCard tone (accent|green|cyan|amber|red|violet) and `pill` is+// a Pill kind (green|amber|red|cyan|violet|gray). They overlap but are not the+// same set — passing one token to both silently drops the Pill's background for+// values Pill doesn't know, which is what "accent" for info was doing.const SEVERITY_CONFIG = {- critical: { icon: XCircle, tone: 'red', label: 'Critical' },- error: { icon: XCircle, tone: 'red', label: 'Error' },- warning: { icon: AlertTriangle, tone: 'amber', label: 'Warning' },- info: { icon: Info, tone: 'accent', label: 'Info' },- debug: { icon: Activity, tone: 'gray', label: 'Debug' },+ critical: { icon: XCircle, tone: 'red', pill: 'red', label: 'Critical' },+ error: { icon: XCircle, tone: 'red', pill: 'red', label: 'Error' },+ warning: { icon: AlertTriangle, tone: 'amber', pill: 'amber', label: 'Warning' },+ info: { icon: Info, tone: 'cyan', pill: 'cyan', label: 'Info' },+ debug: { icon: Activity, tone: 'violet', pill: 'gray', label: 'Debug' },};const PAGE_SIZE = 50;@@ -200,7 +204,7 @@ export default function Telemetry() {header: 'Severity',render: (event) => {const config = SEVERITY_CONFIG[event.severity] || SEVERITY_CONFIG.info;- return <Pill kind={config.tone}>{config.label}</Pill>;+ return <Pill kind={config.pill}>{config.label}</Pill>;},},{@@ -420,7 +424,7 @@ export default function Telemetry() {<div><dt>Severity</dt><dd>- <Pill kind={(SEVERITY_CONFIG[selectedEvent.severity] || SEVERITY_CONFIG.info).tone}>+ <Pill kind={(SEVERITY_CONFIG[selectedEvent.severity] || SEVERITY_CONFIG.info).pill}>{selectedEvent.severity}</Pill></dd>diff --git a/frontend/src/styles/pages/_monitors.scss b/frontend/src/styles/pages/_monitors.scssindex c9ffa19b..96db164b 100644--- a/frontend/src/styles/pages/_monitors.scss+++ b/frontend/src/styles/pages/_monitors.scss@@ -152,6 +152,8 @@font-family: var(--mono);font-size: 12px;color: var(--text-dim);+ // "128 ms" must not break across two lines in a narrow column.+ white-space: nowrap;&.is-slow { color: var(--amber); }}