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
feat(ui): label connection status + fix status-badge dot, document text tokens
Juan Denis9bd757fa0f02
diff --git a/frontend/src/components/StatusBadge.jsx b/frontend/src/components/StatusBadge.jsxindex 7303c02f..4ca4af27 100644--- a/frontend/src/components/StatusBadge.jsx+++ b/frontend/src/components/StatusBadge.jsx@@ -13,7 +13,7 @@ const STATUS_VARIANT = {const DOT_COLOR = {success: 'bg-green-400',- destructive: 'bg-white',+ destructive: 'bg-red-400',warning: 'bg-yellow-400',info: 'bg-blue-400',secondary: 'bg-muted-foreground/60',diff --git a/frontend/src/pages/Dashboard.jsx b/frontend/src/pages/Dashboard.jsxindex 3cdbd31c..2d794b3e 100644--- a/frontend/src/pages/Dashboard.jsx+++ b/frontend/src/pages/Dashboard.jsx@@ -236,11 +236,16 @@ const Dashboard = () => {{/* Top Bar */}<div className="top-bar"><div className="server-identity">- <h1>- <span className={`status-dot-live ${isConnected ? '' : 'disconnected'}`}></span>- {hostname}- </h1>+ <h1>{hostname}</h1><div className="server-details">+ <span+ className={`conn-status conn-status--${isConnected ? 'live' : 'down'}`}+ role="status"+ >+ <span className="conn-status__dot" aria-hidden="true"></span>+ {isConnected ? 'Live' : 'Reconnecting'}+ </span>+ <span className="detail-separator">|</span><span>IP: {ipAddress}</span><span className="detail-separator">|</span><span>KERNEL: {kernelVersion}</span>diff --git a/frontend/src/styles/_variables.scss b/frontend/src/styles/_variables.scssindex e3220e08..5d466958 100644--- a/frontend/src/styles/_variables.scss+++ b/frontend/src/styles/_variables.scss@@ -47,7 +47,13 @@ $border-hover: var(--border-hover);// --------------------------------------------// COLORS - Text (theme-sensitive)// ---------------------------------------------// Raw values for SCSS functions+// Raw values feed compile-time SCSS only (e.g. `fade()` for translucent+// background washes), since fade() can't operate on a CSS var(). These are+// the neutral zinc ramp and are intentionally NOT the same as the runtime+// --text-* custom properties, which were lightened for on-surface text+// legibility (see _theme-variables.scss). Rendered text color always comes+// from the var()-backed $text-* tokens below; only low-opacity fills read+// from these raws, where the exact base tone is visually negligible.$text-primary-raw: #f4f4f5;$text-secondary-raw: #a1a1aa;$text-tertiary-raw: #71717a;diff --git a/frontend/src/styles/pages/_dashboard.scss b/frontend/src/styles/pages/_dashboard.scssindex 436a64b4..8b3d63b3 100644--- a/frontend/src/styles/pages/_dashboard.scss+++ b/frontend/src/styles/pages/_dashboard.scss@@ -36,13 +36,35 @@}}-.status-dot-live {- width: 10px;- height: 10px;- background: $success;- border-radius: 50%;- box-shadow: 0 0 10px $success;- display: inline-block;+// Connection status: dot + text label (never color alone), announced to+// screen readers via role="status". The label stays a readable neutral+// (contrast-safe in both themes); the dot carries the status color.+.conn-status {+ display: inline-flex;+ align-items: center;+ gap: $space-2;+ font-size: $font-size-xs;+ font-weight: $font-weight-semibold;+ text-transform: uppercase;+ letter-spacing: 0.06em;+ color: $text-secondary;++ .conn-status__dot {+ width: 8px;+ height: 8px;+ border-radius: 50%;+ flex-shrink: 0;+ }++ &--live .conn-status__dot {+ background: $success;+ box-shadow: 0 0 8px $success;+ }++ &--down .conn-status__dot {+ background: $warning;+ box-shadow: 0 0 8px $warning;+ }}.server-details {@@ -513,11 +535,6 @@}}-.status-dot-live.disconnected {- background: $warning;- box-shadow: 0 0 10px $warning;-}-@media (max-width: $breakpoint-md) {.refresh-control {width: 100%;