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): restyle the DNS Zones + SSL bodies to the new look
Juan Denisb758fda2fdf9
diff --git a/docs/REDESIGN_MAP.md b/docs/REDESIGN_MAP.mdindex 11513299..65307645 100644--- a/docs/REDESIGN_MAP.md+++ b/docs/REDESIGN_MAP.md@@ -118,7 +118,7 @@ Effort: S/M/L/XL. Nature: **Restyle** (look only) · **+IA** (layout/tab/route r| 5 | **Docker** | M | Restyle | `pages/Docker.jsx`, `pages/_docker.scss` | KPI tiles | none (strict subset of current) | **✅ pass 1 done** — added `MetricCard` KPI strip (Containers/Images/Volumes/Networks from existing `stats`) atop `dx-main`, restyled status filter → segmented control. KEPT the richer dx- rail/5-tabs/inspector/exec/multi-server. Deferred: per-container accent dot, Projects KPI, logs modal→drawer. || 6 | **Database Explorer** | M | Restyle | `pages/Databases.jsx`, `databases/ConsoleTab.jsx`, `SourceTree.jsx`, `ResultsGrid.jsx`, `pages/_databases.scss` | syntax-highlight/gutter editor wrapper | optional "Export as SQL" dump | **✅ pass 1 done** — page already matched the target shell (token-aligned in Phase 0); added engine status-dot glow, green result count, `UTF-8` + `● Connected` status-bar segments. Deferred: syntax-highlight editor + gutter, `+` new-tab pill, ctx-menu Browse-rows/Export-SQL, semantic cell tints. || 7 | **File Manager** | M | Restyle+IA | `pages/FileManager.jsx`, `file-manager/FolderTree.jsx`, `PreviewDrawer.jsx`, `ContextMenu.jsx`, `pages/_file-manager.scss` | `file-manager/highlight.js` | cloud/S3 sources = **out of scope** | **✅ top-bar migrated** — shared `FILE_TABS` (Files/FTP Server); `PageTopbar` on both pages (FileManager top bar above its fullscreen browser; FTP header swapped, conditional actions kept); **sidebar sub-menu removed**. **Follow-up:** restyle the FileManager body (storage-sources tree, syntax-highlight preview) + FTP body. |-| 8 | **Domains** | L | Restyle+IA+BE | `pages/Domains.jsx`, `pages/_domains.scss` | DomainDrawer (SSL/registration/DNSSEC/NS + inline DNS records) | registrar, registration-expiry, DNSSEC, nameservers, registration auto-renew, status (WHOIS) | **✅ migrated (first top-bar page)** — built shared **`PageTopbar`** ds primitive; Domains now uses the demo's top-bar layout with routed sub-nav (Domains/DNS Zones/SSL) replacing the **removed sidebar sub-menu**; KPI strip + segmented filter + `.sk-dtable` + detail **Drawer**. Omitted unbacked columns (registrar/DNSSEC/nameservers — no WHOIS backend). **Trio complete:** DNSZones + SSLCertificates pages now render the same `PageTopbar` (shared `DOMAIN_TABS`), so the Domains/DNS/SSL tab group persists across all three. DNS/SSL page *bodies* are not yet fully restyled (their lists/forms still old-look) — a later pass. |+| 8 | **Domains** | L | Restyle+IA+BE | `pages/Domains.jsx`, `pages/_domains.scss` | DomainDrawer (SSL/registration/DNSSEC/NS + inline DNS records) | registrar, registration-expiry, DNSSEC, nameservers, registration auto-renew, status (WHOIS) | **✅ migrated (first top-bar page)** — built shared **`PageTopbar`** ds primitive; Domains now uses the demo's top-bar layout with routed sub-nav (Domains/DNS Zones/SSL) replacing the **removed sidebar sub-menu**; KPI strip + segmented filter + `.sk-dtable` + detail **Drawer**. Omitted unbacked columns (registrar/DNSSEC/nameservers — no WHOIS backend). **Trio complete:** DNSZones + SSLCertificates pages now render the same `PageTopbar` (shared `DOMAIN_TABS`), so the Domains/DNS/SSL tab group persists across all three. **DNS/SSL bodies restyled** — DNS records → dense `.sk-dtable` with colored record-type chips (`.dns-rtype` per A/CNAME/MX/TXT/…) + mono content; SSL cert status → `Pill` (green Valid / amber Expiring). Domains trio now fully on the new look. || 9 | **Monitoring** | **XL** | Restyle+IA+BE | `pages/Monitoring.jsx`, `pages/_monitoring.scss` | `services/api/monitoring.js`, monitors/status/incidents subviews | synthetic monitors (HTTP/Ping/Port/Keyword); **status pages + incidents already have backend** — wire in; request-volume/p50-p95 per-app likely gap | **✅ top-bar migrated** — shared `MONITOR_TABS` (Monitoring/Status Pages); `PageTopbar` on both pages; **sidebar sub-menu removed** (Refresh + Start/Stop and Create-Page actions preserved). Body restyle (KPI/charts/monitors/incidents) still pending. || 10 | **Backups** | **XL** | Restyle+IA+BE | `pages/Backups.jsx`, `pages/_backups.scss` | RestoreDrawer, Heatmap | activity timeseries, GFS retention, multi-destination storage, selective/clone restore, per-snapshot duration/progress || 11 | **Git** | L | Restyle+IA+BE | `pages/Git.jsx`, `pages/_git.scss`, `services/api/files.js` | RepoDeployDrawer | provider OAuth connect/disconnect + provider list; Gitea storage/users/runners metrics |diff --git a/frontend/src/pages/DNSZones.jsx b/frontend/src/pages/DNSZones.jsxindex 8aaa868b..4ab82235 100644--- a/frontend/src/pages/DNSZones.jsx+++ b/frontend/src/pages/DNSZones.jsx@@ -11,7 +11,6 @@ import ConfirmDialog from '../components/ConfirmDialog';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';-import { Badge } from '@/components/ui/badge';import {Select,SelectTrigger,@@ -220,7 +219,7 @@ const DNSZones = () => {)}</div></div>- <table className="table">+ <table className="sk-dtable dns-records-table"><thead><tr><th>Type</th>@@ -234,9 +233,9 @@ const DNSZones = () => {<tbody>{records.map(rec => (<tr key={rec.id}>- <td><Badge variant="outline">{rec.record_type}</Badge></td>+ <td><span className={`dns-rtype dns-rtype--${(rec.record_type || '').toLowerCase()}`}>{rec.record_type}</span></td><td>{rec.name}</td>- <td className="text-mono">{rec.content}</td>+ <td className="sk-cell-mono">{rec.content}</td><td>{rec.ttl}</td><td>{rec.priority || '-'}</td><td>diff --git a/frontend/src/pages/SSLCertificates.jsx b/frontend/src/pages/SSLCertificates.jsxindex c5df460f..bbdcb197 100644--- a/frontend/src/pages/SSLCertificates.jsx+++ b/frontend/src/pages/SSLCertificates.jsx@@ -5,7 +5,7 @@ import {Settings, Download} from 'lucide-react';import api from '../services/api';-import { PageTopbar } from '@/components/ds';+import { PageTopbar, Pill } from '@/components/ds';import { DOMAIN_TABS } from '../components/domains/domainTabs';import { useToast } from '../contexts/ToastContext';import { useConfirm } from '../hooks/useConfirm';@@ -14,7 +14,6 @@ import { ConfirmDialog } from '../components/ConfirmDialog';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Label } from '@/components/ui/label';-import { Badge } from '@/components/ui/badge';import { Checkbox } from '@/components/ui/checkbox';import { Skeleton } from '@/components/ui/skeleton';@@ -328,17 +327,9 @@ const SSLCertificates = () => {</div></div><div className="ssl-cert-item-status">- {cert.expiry_valid ? (- <Badge variant="success">- <CheckCircle size={14} />- Valid- </Badge>- ) : (- <Badge variant="warning">- <AlertTriangle size={14} />- Expiring- </Badge>- )}+ {cert.expiry_valid+ ? <Pill kind="green">Valid</Pill>+ : <Pill kind="amber">Expiring</Pill>}</div><div className="ssl-cert-item-actions"><Buttondiff --git a/frontend/src/styles/pages/_dns-zones.scss b/frontend/src/styles/pages/_dns-zones.scssindex bffea5a7..3175d2dc 100644--- a/frontend/src/styles/pages/_dns-zones.scss+++ b/frontend/src/styles/pages/_dns-zones.scss@@ -87,3 +87,23 @@gap: $spacing-md;}}++// Colored DNS record-type chip (redesign)+.dns-rtype {+ display: inline-flex;+ align-items: center;+ padding: 2px 7px;+ border-radius: 5px;+ font-family: var(--mono);+ font-size: 10.5px;+ font-weight: 600;+ letter-spacing: 0.04em;+ background: var(--surface-3);+ color: var(--text-dim);++ &--a, &--aaaa, &--ns { background: var(--accent-bg); color: var(--accent-bright); }+ &--cname { background: var(--cyan-bg); color: var(--cyan); }+ &--mx { background: var(--amber-bg); color: var(--amber); }+ &--txt, &--spf { background: var(--green-bg); color: var(--green); }+ &--soa, &--srv, &--caa { background: var(--violet-bg); color: var(--violet); }+}