Skip to content

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.

feat(ui): restyle Status Pages body + cross-cutting token cleanup

Juan Denis89fb2c751911
diff --git a/frontend/src/components/serverdetail/ServicesTab.jsx b/frontend/src/components/serverdetail/ServicesTab.jsx
index 77957bc6..3be4687c 100644
--- a/frontend/src/components/serverdetail/ServicesTab.jsx
+++ b/frontend/src/components/serverdetail/ServicesTab.jsx
@@ -3,7 +3,7 @@ import api from '../../services/api';
import { useToast } from '../../contexts/ToastContext';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
-import { Badge } from '@/components/ui/badge';
+import { Pill } from '../ds';
import Modal from '../Modal';
const STATE_FILTERS = [
@@ -13,6 +13,19 @@ const STATE_FILTERS = [
{ value: 'inactive', label: 'Inactive' },
];
+// systemd active/sub state → ds Pill kind
+const STATE_PILL = {
+ active: 'green',
+ running: 'green',
+ activating: 'amber',
+ reloading: 'amber',
+ restarting: 'amber',
+ failed: 'red',
+ inactive: 'gray',
+ dead: 'gray',
+ stopped: 'gray',
+};
+
const ServicesTab = ({ serverId, serverStatus }) => {
const toast = useToast();
const [units, setUnits] = useState([]);
@@ -144,9 +157,9 @@ const ServicesTab = ({ serverId, serverStatus }) => {
<tr key={u.unit}>
<td className="mono">{u.unit}</td>
<td>
- <Badge variant={u.active === 'active' ? 'default' : 'outline'}>
+ <Pill kind={STATE_PILL[u.active] || STATE_PILL[u.sub] || 'gray'}>
{u.active || u.sub || 'unknown'}
- </Badge>
+ </Pill>
</td>
<td className="server-services__desc">{u.description}</td>
<td className="server-services__row-actions">
diff --git a/frontend/src/pages/StatusPages.jsx b/frontend/src/pages/StatusPages.jsx
index f81e197b..a0b69e93 100644
--- a/frontend/src/pages/StatusPages.jsx
+++ b/frontend/src/pages/StatusPages.jsx
@@ -8,13 +8,11 @@ import EmptyState from '../components/EmptyState';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Textarea } from '@/components/ui/textarea';
-import { Badge } from '@/components/ui/badge';
import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';
-import { PageTopbar } from '@/components/ds';
+import { PageTopbar, Pill } from '@/components/ds';
import { MONITOR_TABS } from '../components/monitoring/monitorTabs';
import {
Activity,
- AlertTriangle,
CheckCircle2,
Copy,
ExternalLink,
@@ -24,16 +22,15 @@ import {
Plus,
RefreshCw,
Trash2,
- Wrench,
- XCircle,
} from 'lucide-react';
+// pill → ds Pill kind · tone → .status-dot modifier · dot → .comp-dots square
const STATUS_META = {
- operational: { label: 'Operational', badge: 'success', tone: 'success', icon: CheckCircle2 },
- degraded: { label: 'Degraded', badge: 'warning', tone: 'warning', icon: AlertTriangle },
- partial_outage: { label: 'Partial outage', badge: 'warning', tone: 'warning', icon: AlertTriangle },
- major_outage: { label: 'Major outage', badge: 'destructive', tone: 'danger', icon: XCircle },
- maintenance: { label: 'Maintenance', badge: 'info', tone: 'info', icon: Wrench },
+ operational: { label: 'Operational', pill: 'green', tone: 'success', dot: '' },
+ degraded: { label: 'Degraded', pill: 'amber', tone: 'warning', dot: 'degraded' },
+ partial_outage: { label: 'Partial outage', pill: 'amber', tone: 'warning', dot: 'degraded' },
+ major_outage: { label: 'Major outage', pill: 'red', tone: 'danger', dot: 'down' },
+ maintenance: { label: 'Maintenance', pill: 'cyan', tone: 'info', dot: 'maintenance' },
};
const INCIDENT_STATUS = [
@@ -57,7 +54,7 @@ const CHECK_TARGET_PLACEHOLDERS = {
ping: 'example.com',
};
-const defaultPageForm = { name: '', slug: '', description: '', primary_color: '#4f46e5' };
+const defaultPageForm = { name: '', slug: '', description: '', primary_color: '#6d7cff' };
const defaultCompForm = {
name: '',
group: 'Services',
@@ -136,7 +133,6 @@ const StatusPages = () => {
const overallStatus = useMemo(() => getOverallStatus(components), [components]);
const overallMeta = STATUS_META[overallStatus] || STATUS_META.operational;
- const OverallIcon = overallMeta.icon;
const selectedUrl = getPublicStatusUrl(selectedPage);
const loadPageDetails = async (page) => {
@@ -337,10 +333,15 @@ const StatusPages = () => {
className={`status-page-item ${selectedPage?.id === page.id ? 'active' : ''}`}
onClick={() => loadPageDetails(page)}
>
- <span className="status-page-item__name">{page.name}</span>
- <span className="status-page-item__slug">/{page.slug}</span>
+ <span className="status-page-item__top">
+ <span className="status-page-item__name">{page.name}</span>
+ <Pill kind={page.is_public ? 'green' : 'gray'} dot={false}>
+ {page.is_public ? 'Public' : 'Private'}
+ </Pill>
+ </span>
+ <span className="status-page-item__slug">/status/{page.slug}</span>
<span className="status-page-item__meta">
- <Globe2 size={14} />
+ <Globe2 size={13} />
{page.component_count} component{page.component_count !== 1 ? 's' : ''}
</span>
</button>
@@ -354,12 +355,19 @@ const StatusPages = () => {
<section className="status-detail-panel">
<div className="status-detail-panel__hero">
<div>
- <Badge variant={overallMeta.badge} className="status-overall-badge">
- <OverallIcon size={15} />
+ <Pill kind={overallMeta.pill} className="status-overall-pill">
{overallMeta.label}
- </Badge>
+ </Pill>
<h2>{selectedPage.name}</h2>
{selectedPage.description && <p>{selectedPage.description}</p>}
+ {components.length > 0 && (
+ <div className="comp-dots" aria-hidden="true">
+ {components.map((component) => {
+ const meta = STATUS_META[component.status] || STATUS_META.operational;
+ return <i key={component.id} className={meta.dot} title={component.name} />;
+ })}
+ </div>
+ )}
</div>
<div className="status-url-card">
<span>Public URL</span>
@@ -380,21 +388,21 @@ const StatusPages = () => {
</div>
<div className="status-detail-metrics">
- <div>
- <span>Components</span>
- <strong>{components.length}</strong>
+ <div className="sk-spec-card">
+ <div className="sk-spec-card__label">Components</div>
+ <div className="sk-spec-card__value">{components.length}</div>
</div>
- <div>
- <span>Active incidents</span>
- <strong>{activeIncidents.length}</strong>
+ <div className="sk-spec-card">
+ <div className="sk-spec-card__label">Active incidents</div>
+ <div className="sk-spec-card__value">{activeIncidents.length}</div>
</div>
- <div>
- <span>30 day uptime</span>
- <strong>{formatUptime(
+ <div className="sk-spec-card">
+ <div className="sk-spec-card__label">30 day uptime</div>
+ <div className="sk-spec-card__value">{formatUptime(
components.length
? components.reduce((total, component) => total + (component.uptime_30d || 100), 0) / components.length
: 100
- )}</strong>
+ )}</div>
</div>
</div>
@@ -421,21 +429,17 @@ const StatusPages = () => {
<h3>{groupName}</h3>
{groupComponents.map((component) => {
const meta = STATUS_META[component.status] || STATUS_META.operational;
- const Icon = meta.icon;
return (
<div key={component.id} className="component-row">
<div className="component-row__info">
<span className={`status-dot status-dot--${meta.tone}`} />
<div>
<strong>{component.name}</strong>
- <span>{component.check_type.toUpperCase()} - {component.check_target || 'No target'}</span>
+ <span>{component.check_type.toUpperCase()} · {component.check_target || 'No target'}</span>
</div>
</div>
<div className="component-row__stats">
- <Badge variant={meta.badge}>
- <Icon size={14} />
- {meta.label}
- </Badge>
+ <Pill kind={meta.pill}>{meta.label}</Pill>
<span>{formatUptime(component.uptime_30d)} uptime</span>
<span>{component.last_response_time ? `${component.last_response_time}ms` : 'No response'}</span>
<span>{formatDate(component.last_check_at)}</span>
@@ -479,13 +483,13 @@ const StatusPages = () => {
<strong>{incident.title}</strong>
<span>{formatDate(incident.created_at)}</span>
</div>
- <div>
- <Badge variant={incident.status === 'resolved' ? 'success' : 'warning'}>
+ <div className="incident-row__badges">
+ <span className={`inc-state inc-state--${incident.status}`}>
{incident.status}
- </Badge>
- <Badge variant={incident.impact === 'critical' ? 'destructive' : 'secondary'}>
+ </span>
+ <span className={`inc-impact inc-impact--${incident.impact}`}>
{incident.impact}
- </Badge>
+ </span>
</div>
</div>
{incident.body && <p>{incident.body}</p>}
@@ -537,9 +541,9 @@ const StatusPages = () => {
</div>
<div>
<span>Visibility</span>
- <Badge variant={selectedPage.is_public ? 'success' : 'secondary'}>
+ <Pill kind={selectedPage.is_public ? 'green' : 'gray'}>
{selectedPage.is_public ? 'Public' : 'Private'}
- </Badge>
+ </Pill>
</div>
<div>
<span>Created</span>
diff --git a/frontend/src/styles/pages/_server-packages.scss b/frontend/src/styles/pages/_server-packages.scss
index 7f814355..cdad3439 100644
--- a/frontend/src/styles/pages/_server-packages.scss
+++ b/frontend/src/styles/pages/_server-packages.scss
@@ -1,5 +1,7 @@
// Packages tab on Server Detail. Mirrors the layout of _cron.scss so
// nothing feels foreign when bouncing between server tabs.
+// Base styles on the redesign tokens so the component looks right
+// everywhere — _servers.scss layers server-detail-scoped refinements on top.
.server-packages {
display: flex;
@@ -28,10 +30,12 @@
&__results h3,
&__installed h3 {
margin: 0 0 0.5rem;
- font-size: 0.95rem;
+ font-family: var(--mono);
+ font-size: 10.5px;
+ font-weight: 600;
+ letter-spacing: 0.08em;
text-transform: uppercase;
- letter-spacing: 0.04em;
- color: var(--muted-foreground);
+ color: var(--text-faint);
}
&__chips {
@@ -44,15 +48,17 @@
padding: 0.4rem 0.85rem;
border-radius: 999px;
border: 1px solid var(--border);
- background: var(--card);
- color: var(--foreground);
+ background: var(--surface-2);
+ color: var(--text-dim);
cursor: pointer;
- font-size: 0.85rem;
- transition: background 120ms ease, border-color 120ms ease;
+ font-family: var(--mono);
+ font-size: 12px;
+ transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
&:hover {
- background: var(--accent);
- border-color: var(--primary);
+ background: var(--accent-bg);
+ border-color: var(--accent-dim);
+ color: var(--accent-bright);
}
}
@@ -62,8 +68,8 @@
padding: 0;
max-height: 360px;
overflow-y: auto;
- border: 1px solid var(--border);
- border-radius: 0.5rem;
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius-sm);
}
&__list-item {
@@ -72,16 +78,22 @@
justify-content: space-between;
gap: 0.75rem;
padding: 0.5rem 0.75rem;
- border-bottom: 1px solid var(--border);
+ border-bottom: 1px solid var(--border-soft);
+ transition: background 0.12s;
&:last-child {
border-bottom: 0;
}
+
+ &:hover {
+ background: var(--surface-2);
+ }
}
&__list-name {
- font-family: var(--font-mono, monospace);
- font-size: 0.85rem;
+ font-family: var(--mono);
+ font-size: 12px;
+ color: var(--text-dim);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -92,24 +104,26 @@
max-height: 320px;
overflow: auto;
padding: 0.75rem;
- border: 1px solid var(--border);
- border-radius: 0.5rem;
- background: var(--muted);
- font-family: var(--font-mono, monospace);
- font-size: 0.8rem;
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius-sm);
+ background: var(--bg-code);
+ color: var(--text-dim);
+ font-family: var(--mono);
+ font-size: 12px;
white-space: pre-wrap;
}
&__hint {
font-size: 0.85rem;
+ color: var(--text-dim);
}
&__remove-tip {
- font-size: 0.85rem;
+ font-size: 12.5px;
padding: 0.75rem;
border: 1px dashed var(--border);
- border-radius: 0.5rem;
- background: var(--muted);
+ border-radius: var(--radius-sm);
+ background: var(--surface-2);
}
&__remove-form {
@@ -134,15 +148,16 @@
gap: 0.75rem;
padding-bottom: 1rem;
margin-bottom: 1rem;
- border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
+ border-bottom: 1px solid var(--border-soft);
h3 {
margin: 0;
- font-size: 0.7rem;
+ font-family: var(--mono);
+ font-size: 10.5px;
font-weight: 600;
- letter-spacing: 0.12em;
+ letter-spacing: 0.08em;
text-transform: uppercase;
- color: var(--text-tertiary, #8b92a5);
+ color: var(--text-faint);
}
}
@@ -157,12 +172,13 @@
align-items: center;
gap: 0.65rem;
font-size: 0.85rem;
- color: var(--muted-foreground);
+ color: var(--text-dim);
}
&__probed-at {
- font-size: 0.75rem;
- color: var(--text-tertiary, #8b92a5);
+ font-family: var(--mono);
+ font-size: 11px;
+ color: var(--text-faint);
font-variant-numeric: tabular-nums;
}
@@ -178,7 +194,7 @@
gap: 1rem;
align-items: center;
padding: 0.6rem 0;
- border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.04));
+ border-bottom: 1px solid var(--border-soft);
min-height: 40px;
&:last-child {
@@ -187,8 +203,9 @@
}
&__row-label {
- font-size: 0.7rem;
- color: var(--text-tertiary, #8b92a5);
+ font-family: var(--mono);
+ font-size: 10.5px;
+ color: var(--text-faint);
text-transform: uppercase;
letter-spacing: 0.08em;
font-weight: 600;
@@ -196,7 +213,7 @@
&__row-value {
font-size: 0.875rem;
- color: var(--text-primary, #e8eaed);
+ color: var(--text);
display: flex;
align-items: center;
flex-wrap: wrap;
@@ -227,17 +244,18 @@
gap: 0.75rem;
padding: 0.65rem 0.85rem;
margin-bottom: 0.75rem;
- border: 1px solid var(--destructive, #ef4444);
- border-radius: 0.5rem;
- background: color-mix(in srgb, var(--destructive, #ef4444) 8%, transparent);
+ border: 1px solid rgba(251, 111, 111, 0.35);
+ border-radius: var(--radius-sm);
+ background: var(--red-bg);
+ color: var(--red);
font-size: 0.9rem;
}
.docker-empty-state {
padding: 1.5rem;
border: 1px dashed var(--border);
- border-radius: 0.5rem;
- background: var(--muted);
+ border-radius: var(--radius-sm);
+ background: var(--surface-2);
h4 {
margin: 0 0 0.5rem;
@@ -249,11 +267,11 @@
}
code {
- font-family: var(--font-mono, monospace);
- font-size: 0.85rem;
+ font-family: var(--mono);
+ font-size: 12px;
padding: 0.05rem 0.3rem;
border-radius: 0.25rem;
- background: var(--card);
+ background: var(--surface-3);
}
}
@@ -268,21 +286,21 @@
.cloudflared-login-card {
padding: 1rem;
- border: 1px solid var(--border);
- border-radius: 0.5rem;
- background: var(--card);
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius-sm);
+ background: var(--surface);
display: flex;
flex-direction: column;
gap: 0.75rem;
&--success {
- border-color: var(--success, #16a34a);
- background: color-mix(in srgb, var(--success, #16a34a) 8%, transparent);
+ border-color: rgba(61, 220, 151, 0.35);
+ background: var(--green-bg);
}
&--error {
- border-color: var(--destructive, #ef4444);
- background: color-mix(in srgb, var(--destructive, #ef4444) 8%, transparent);
+ border-color: rgba(251, 111, 111, 0.35);
+ background: var(--red-bg);
}
&__actions {
@@ -293,7 +311,7 @@
&__hint {
font-size: 0.85rem;
- color: var(--muted-foreground);
+ color: var(--text-dim);
margin: 0;
}
}
@@ -305,11 +323,12 @@
max-height: 60vh;
overflow: auto;
padding: 0.75rem;
- border: 1px solid var(--border);
- border-radius: 0.5rem;
- background: var(--muted);
- font-family: var(--font-mono, monospace);
- font-size: 0.8rem;
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius-sm);
+ background: var(--bg-code);
+ color: var(--text-code);
+ font-family: var(--mono);
+ font-size: 12px;
white-space: pre-wrap;
margin: 0;
}
diff --git a/frontend/src/styles/pages/_server-services.scss b/frontend/src/styles/pages/_server-services.scss
index 5f18d811..3f36f259 100644
--- a/frontend/src/styles/pages/_server-services.scss
+++ b/frontend/src/styles/pages/_server-services.scss
@@ -1,4 +1,7 @@
// Services (systemd) tab on Server Detail.
+// Base styles on the redesign tokens (dense-table spec) so the component
+// looks right everywhere — _servers.scss layers server-detail-scoped
+// refinements on top.
.server-services {
display: flex;
@@ -25,25 +28,48 @@
&__table {
width: 100%;
border-collapse: collapse;
+ font-size: 13px;
th, td {
- padding: 0.55rem 0.75rem;
+ padding: 11px 12px;
text-align: left;
- border-bottom: 1px solid var(--border);
vertical-align: middle;
}
th {
- font-size: 0.78rem;
+ font-family: var(--mono);
+ font-size: 10.5px;
+ font-weight: 600;
+ letter-spacing: 0.06em;
text-transform: uppercase;
- letter-spacing: 0.04em;
- color: var(--muted-foreground);
+ color: var(--text-faint);
+ border-bottom: 1px solid var(--border);
+ white-space: nowrap;
+ }
+
+ td {
+ color: var(--text-dim);
+ border-bottom: 1px solid var(--border-soft);
+ }
+
+ tbody tr {
+ transition: background 0.12s;
+
+ &:hover {
+ background: var(--surface-2);
+ }
+ }
+
+ .mono {
+ font-family: var(--mono);
+ font-size: 12px;
+ color: var(--text);
}
}
&__desc {
- color: var(--muted-foreground);
- font-size: 0.85rem;
+ color: var(--text-dim);
+ font-size: 12.5px;
max-width: 360px;
overflow: hidden;
text-overflow: ellipsis;
@@ -61,11 +87,12 @@
max-height: 60vh;
overflow: auto;
padding: 0.75rem;
- border: 1px solid var(--border);
- border-radius: 0.5rem;
- background: var(--muted);
- font-family: var(--font-mono, monospace);
- font-size: 0.8rem;
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius-sm);
+ background: var(--bg-code);
+ color: var(--text-code);
+ font-family: var(--mono);
+ font-size: 12px;
white-space: pre-wrap;
margin: 0;
}
diff --git a/frontend/src/styles/pages/_status-pages.scss b/frontend/src/styles/pages/_status-pages.scss
index fa0758a8..b2ae78cc 100644
--- a/frontend/src/styles/pages/_status-pages.scss
+++ b/frontend/src/styles/pages/_status-pages.scss
@@ -1,17 +1,24 @@
-// Status Pages
+// ============================================
+// STATUS PAGES (redesign — infra console look)
+// Sibling of _monitoring.scss: mono eyebrows, quiet surface panels,
+// .comp-dots component strip + .inc-state incident chips (prototype
+// view_monitoring.jsx status/incidents tabs).
+// ============================================
.status-pages-page {
.status-layout {
display: grid;
grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
gap: $space-5;
- margin-top: $space-5;
+ margin-top: $space-4;
+ align-items: start;
@media (max-width: 960px) {
grid-template-columns: 1fr;
}
}
+ // ── pages rail ──────────────────────────────────────────
.status-pages-list {
display: flex;
flex-direction: column;
@@ -21,43 +28,65 @@
.status-page-item {
width: 100%;
- padding: $space-4;
- background: $bg-card;
- border: 1px solid $border-subtle;
- border-radius: $radius-md;
- color: $text-primary;
+ padding: 13px 14px;
+ background: var(--surface);
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius);
+ color: var(--text);
cursor: pointer;
display: grid;
- gap: $space-2;
+ gap: 6px;
text-align: left;
- transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
+ transition: border-color $transition-fast, background $transition-fast;
+
+ &:hover {
+ background: var(--surface-hover);
+ border-color: var(--border-strong);
+ }
- &:hover,
&.active {
- background: $bg-hover;
- border-color: $accent-primary;
+ background: var(--accent-bg-soft);
+ border-color: var(--accent-dim);
+ }
+
+ &__top {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: $space-2;
+ min-width: 0;
}
&__name {
- font-size: $font-size-sm;
+ font-size: 13px;
font-weight: $font-weight-semibold;
+ @include truncate();
+ }
+
+ .sk-pill {
+ padding: 1px 7px;
+ font-size: 10px;
}
&__slug {
- color: $text-tertiary;
- font-family: $font-mono;
- font-size: $font-size-xs;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
+ color: var(--text-faint);
+ font-family: var(--mono);
+ font-size: 11px;
+ @include truncate();
}
&__meta {
display: inline-flex;
align-items: center;
- gap: $space-1;
- color: $text-secondary;
- font-size: $font-size-xs;
+ gap: 5px;
+ color: var(--text-faint);
+ font-family: var(--mono);
+ font-size: 10.5px;
+
+ svg {
+ color: var(--text-ghost);
+ flex-shrink: 0;
+ }
}
}
@@ -65,11 +94,12 @@
min-height: 160px;
}
+ // ── detail panel ────────────────────────────────────────
.status-detail-panel {
min-width: 0;
- background: $bg-card;
- border: 1px solid $border-subtle;
- border-radius: $radius-lg;
+ background: var(--surface);
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius);
padding: $space-5;
&--empty {
@@ -78,26 +108,29 @@
place-items: center;
align-content: center;
gap: $space-3;
- color: $text-tertiary;
+ color: var(--text-faint);
}
}
.status-detail-panel__hero {
display: grid;
- grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
+ grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
gap: $space-5;
align-items: stretch;
margin-bottom: $space-5;
h2 {
- margin: $space-3 0 $space-2;
- font-size: $font-size-2xl;
+ margin: $space-3 0 $space-1;
+ font-size: 19px;
+ font-weight: $font-weight-semibold;
+ letter-spacing: -0.01em;
line-height: 1.15;
}
p {
margin: 0;
- color: $text-secondary;
+ color: var(--text-dim);
+ font-size: 13px;
max-width: 760px;
}
@@ -106,32 +139,55 @@
}
}
- .status-overall-badge {
- width: max-content;
+ .status-overall-pill {
+ font-size: 12px;
+ padding: 4px 11px;
+ }
+
+ // Component status dot strip (prototype .comp-dots)
+ .comp-dots {
+ display: flex;
+ gap: 3px;
+ flex-wrap: wrap;
+ margin-top: $space-3;
+
+ i {
+ width: 8px;
+ height: 8px;
+ border-radius: 2px;
+ background: var(--green);
+
+ &.degraded { background: var(--amber); }
+ &.down { background: var(--red); }
+ &.maintenance { background: var(--cyan); }
+ }
}
.status-url-card {
display: grid;
gap: $space-3;
+ align-content: start;
padding: $space-4;
- border: 1px solid $border-subtle;
- border-radius: $radius-md;
- background: $bg-hover;
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius);
+ background: var(--surface-2);
> span {
- color: $text-tertiary;
- font-size: $font-size-xs;
+ color: var(--text-faint);
+ font-family: var(--mono);
+ font-size: 10.5px;
font-weight: $font-weight-semibold;
+ letter-spacing: 0.08em;
text-transform: uppercase;
}
code {
min-width: 0;
overflow-wrap: anywhere;
- color: $text-primary;
- font-family: $font-mono;
- font-size: $font-size-sm;
- line-height: 1.4;
+ color: var(--text);
+ font-family: var(--mono);
+ font-size: 12.5px;
+ line-height: 1.5;
}
> div {
@@ -141,32 +197,21 @@
}
}
+ // KPI trio (sk-spec-card; surface-2 so the tiles read inside the panel)
.status-detail-metrics {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: $space-3;
- margin-bottom: $space-5;
+ margin-bottom: $space-4;
- > div {
- padding: $space-4;
- border: 1px solid $border-subtle;
- border-radius: $radius-md;
- background: $bg-elevated;
+ .sk-spec-card {
+ background: var(--surface-2);
}
- span {
- display: block;
- color: $text-tertiary;
- font-size: $font-size-xs;
- font-weight: $font-weight-semibold;
- text-transform: uppercase;
- }
-
- strong {
- display: block;
- margin-top: $space-2;
- font-size: $font-size-xl;
- line-height: 1;
+ .sk-spec-card__value {
+ font-family: var(--mono);
+ font-size: 19px;
+ letter-spacing: -0.01em;
}
@media (max-width: 720px) {
@@ -186,15 +231,22 @@
gap: $space-4;
}
+ // ── component groups (mono eyebrow + joined dense rows) ─
.component-group {
- display: grid;
- gap: $space-2;
+ min-width: 0;
+ padding: $space-4;
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius);
+ background: var(--surface-2);
h3 {
- margin: 0;
- color: $text-secondary;
- font-size: $font-size-sm;
+ margin: 0 0 $space-2;
+ font-family: var(--mono);
+ font-size: 10.5px;
font-weight: $font-weight-semibold;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--text-faint);
}
}
@@ -203,10 +255,15 @@
grid-template-columns: minmax(220px, 1fr) minmax(260px, auto) auto;
gap: $space-4;
align-items: center;
- padding: $space-4;
- border: 1px solid $border-subtle;
- border-radius: $radius-md;
- background: $bg-elevated;
+ padding: 12px 0;
+
+ &:last-child {
+ padding-bottom: 0;
+ }
+
+ & + & {
+ border-top: 1px solid var(--border-soft);
+ }
&__info {
min-width: 0;
@@ -220,16 +277,17 @@
gap: 3px;
}
- strong,
- span {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
+ strong {
+ font-size: 13.5px;
+ font-weight: 550;
+ @include truncate();
}
span {
- color: $text-tertiary;
- font-size: $font-size-xs;
+ font-family: var(--mono);
+ font-size: 11.5px;
+ color: var(--text-faint);
+ @include truncate();
}
}
@@ -238,9 +296,14 @@
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
- gap: $space-2;
- color: $text-secondary;
- font-size: $font-size-xs;
+ gap: $space-3;
+
+ > span {
+ font-family: var(--mono);
+ font-size: 11px;
+ color: var(--text-faint);
+ white-space: nowrap;
+ }
}
&__actions {
@@ -259,84 +322,81 @@
}
}
+ // Component status dot (mon-sev style rounded square)
.status-dot {
- width: 10px;
- height: 10px;
- border-radius: $radius-full;
+ width: 9px;
+ height: 9px;
+ border-radius: 3px;
flex: 0 0 auto;
&--success {
- background: $success;
- box-shadow: 0 0 0 4px $success-bg;
+ background: var(--green);
+ box-shadow: 0 0 6px var(--green);
}
&--warning {
- background: $warning;
- box-shadow: 0 0 0 4px $warning-bg;
+ background: var(--amber);
+ box-shadow: 0 0 6px var(--amber);
}
&--danger {
- background: $danger;
- box-shadow: 0 0 0 4px $danger-bg;
+ background: var(--red);
}
&--info {
- background: $info;
- box-shadow: 0 0 0 4px $info-bg;
+ background: var(--cyan);
}
}
+ // ── incidents ───────────────────────────────────────────
.incident-row {
display: grid;
gap: $space-3;
padding: $space-4;
- border: 1px solid $border-subtle;
- border-radius: $radius-md;
- background: $bg-elevated;
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius);
+ background: var(--surface-2);
- &--resolved {
- border-color: fade($success, 45%);
- }
-
- &--investigating,
- &--identified {
- border-color: fade($warning, 45%);
- }
-
- &--monitoring {
- border-color: fade($info, 45%);
- }
+ &--investigating { border-color: rgba(251, 111, 111, 0.3); }
+ &--identified { border-color: rgba(245, 185, 69, 0.3); }
+ &--monitoring { border-color: rgba(73, 199, 240, 0.3); }
+ &--resolved { border-color: var(--border-soft); }
&__header {
display: flex;
justify-content: space-between;
gap: $space-3;
- > div {
+ > div:first-child {
min-width: 0;
- }
-
- strong {
- display: block;
- margin-bottom: 3px;
- }
- span {
- color: $text-tertiary;
- font-size: $font-size-xs;
+ strong {
+ display: block;
+ margin-bottom: 3px;
+ font-size: 13.5px;
+ font-weight: 550;
+ }
+
+ span {
+ color: var(--text-faint);
+ font-family: var(--mono);
+ font-size: 11px;
+ }
}
+ }
- > div:last-child {
- display: flex;
- flex-wrap: wrap;
- justify-content: flex-end;
- gap: $space-2;
- }
+ &__badges {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: flex-end;
+ align-items: flex-start;
+ gap: $space-2;
}
p {
margin: 0;
- color: $text-secondary;
+ color: var(--text-dim);
+ font-size: 13px;
line-height: 1.5;
}
@@ -347,11 +407,40 @@
}
}
+ // Incident state + impact chips (prototype .inc-state)
+ .inc-state,
+ .inc-impact {
+ padding: 3px 9px;
+ border-radius: 6px;
+ font-family: var(--mono);
+ font-size: 10px;
+ font-weight: $font-weight-semibold;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ white-space: nowrap;
+ }
+
+ .inc-state {
+ &--investigating { color: var(--red); background: var(--red-bg); }
+ &--identified { color: var(--amber); background: var(--amber-bg); }
+ &--monitoring { color: var(--cyan); background: var(--cyan-bg); }
+ &--resolved { color: var(--green); background: var(--green-bg); }
+ }
+
+ .inc-impact {
+ color: var(--text-faint);
+ background: var(--surface-3);
+
+ &--minor { color: var(--cyan); background: var(--cyan-bg); }
+ &--major { color: var(--amber); background: var(--amber-bg); }
+ &--critical { color: var(--red); background: var(--red-bg); }
+ }
+
.incident-timeline {
display: grid;
- gap: $space-2;
+ gap: $space-3;
padding-left: $space-3;
- border-left: 1px solid $border-subtle;
+ border-left: 1px solid var(--border);
> div {
display: grid;
@@ -359,17 +448,26 @@
}
span {
- color: $text-tertiary;
- font-size: $font-size-xs;
+ color: var(--text-faint);
+ font-family: var(--mono);
+ font-size: 10.5px;
}
strong {
- color: $text-secondary;
- font-size: $font-size-xs;
+ color: var(--text-dim);
+ font-family: var(--mono);
+ font-size: 10.5px;
+ font-weight: $font-weight-semibold;
+ letter-spacing: 0.05em;
text-transform: uppercase;
}
+
+ p {
+ font-size: 12.5px;
+ }
}
+ // ── page settings tab ───────────────────────────────────
.status-page-settings {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
@@ -379,33 +477,57 @@
> div {
min-height: 72px;
- padding: $space-4;
- border: 1px solid $border-subtle;
- border-radius: $radius-md;
- background: $bg-elevated;
+ padding: 14px 15px;
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius);
+ background: var(--surface-2);
}
- span {
+ > div > span:first-child {
display: block;
- color: $text-tertiary;
- font-size: $font-size-xs;
+ color: var(--text-faint);
+ font-family: var(--mono);
+ font-size: 10.5px;
font-weight: $font-weight-semibold;
+ letter-spacing: 0.08em;
text-transform: uppercase;
}
- strong {
+ > div > strong {
display: block;
margin-top: $space-2;
+ font-family: var(--mono);
+ font-size: 13px;
overflow-wrap: anywhere;
}
+ > div > .sk-pill {
+ margin-top: $space-2;
+ }
+
@media (max-width: 960px) {
grid-template-columns: 1fr;
}
}
+ // ── modal forms (surface chrome is global; add eyebrow labels) ──
.status-modal {
max-width: 640px;
+
+ .form-group label {
+ font-family: var(--mono);
+ font-size: 10px;
+ font-weight: $font-weight-semibold;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--text-faint);
+ }
+
+ .form-help {
+ font-family: var(--mono);
+ font-size: 11px;
+ color: var(--text-faint);
+ }
}
.status-modal-grid {
diff --git a/frontend/src/utils/serviceTypes.js b/frontend/src/utils/serviceTypes.js
index d8cb0b62..971b99b5 100644
--- a/frontend/src/utils/serviceTypes.js
+++ b/frontend/src/utils/serviceTypes.js
@@ -1,76 +1,80 @@
+// Categorical palette: literal hex on purpose (consumed as inline styles in
+// JS). Values follow the redesign palette in styles/_theme-variables.scss —
+// green #3ddc97 / red #fb6f6f / amber #f5b945 / accent #6d7cff /
+// cyan #49c7f0 / violet #b07bf5, neutral gray #646b7a.
const SERVICE_TYPES = {
docker: {
label: 'Docker',
- color: '#2496ed',
- bgColor: 'rgba(36, 150, 237, 0.1)',
- borderColor: 'rgba(36, 150, 237, 0.2)',
+ color: '#49c7f0',
+ bgColor: 'rgba(73, 199, 240, 0.1)',
+ borderColor: 'rgba(73, 199, 240, 0.2)',
icon: 'docker',
tabs: ['overview', 'events', 'logs', 'environment', 'shell', 'metrics', 'settings'],
},
flask: {
label: 'Flask',
- color: '#fcd34d',
- bgColor: 'rgba(252, 211, 77, 0.1)',
- borderColor: 'rgba(252, 211, 77, 0.2)',
+ color: '#f5b945',
+ bgColor: 'rgba(245, 185, 69, 0.1)',
+ borderColor: 'rgba(245, 185, 69, 0.2)',
icon: 'flask',
tabs: ['overview', 'events', 'logs', 'environment', 'packages', 'gunicorn', 'commands', 'metrics', 'settings'],
},
django: {
label: 'Django',
- color: '#34d399',
- bgColor: 'rgba(52, 211, 153, 0.1)',
- borderColor: 'rgba(52, 211, 153, 0.2)',
+ color: '#3ddc97',
+ bgColor: 'rgba(61, 220, 151, 0.1)',
+ borderColor: 'rgba(61, 220, 151, 0.2)',
icon: 'django',
tabs: ['overview', 'events', 'logs', 'environment', 'packages', 'gunicorn', 'commands', 'metrics', 'settings'],
},
php: {
label: 'PHP',
- color: '#777bb4',
- bgColor: 'rgba(119, 123, 180, 0.1)',
- borderColor: 'rgba(119, 123, 180, 0.2)',
+ color: '#b07bf5',
+ bgColor: 'rgba(176, 123, 245, 0.1)',
+ borderColor: 'rgba(176, 123, 245, 0.2)',
icon: 'php',
tabs: ['overview', 'events', 'logs', 'environment', 'settings'],
},
static: {
label: 'Static',
- color: '#60a5fa',
- bgColor: 'rgba(96, 165, 250, 0.1)',
- borderColor: 'rgba(96, 165, 250, 0.2)',
+ color: '#6d7cff',
+ bgColor: 'rgba(109, 124, 255, 0.1)',
+ borderColor: 'rgba(109, 124, 255, 0.2)',
icon: 'static',
tabs: ['overview', 'events', 'environment', 'settings'],
},
wordpress: {
label: 'WordPress',
- color: '#21759b',
- bgColor: 'rgba(33, 117, 155, 0.1)',
- borderColor: 'rgba(33, 117, 155, 0.2)',
+ color: '#49c7f0',
+ bgColor: 'rgba(73, 199, 240, 0.1)',
+ borderColor: 'rgba(73, 199, 240, 0.2)',
icon: 'wordpress',
tabs: ['overview', 'events', 'logs', 'environment', 'settings'],
},
};
const STATUS_CONFIG = {
- running: { label: 'Live', color: '#10b981', dotClass: 'live' },
- stopped: { label: 'Stopped', color: '#71717a', dotClass: 'stopped' },
- deploying: { label: 'Deploying', color: '#f59e0b', dotClass: 'deploying' },
- failed: { label: 'Failed', color: '#ef4444', dotClass: 'failed' },
- building: { label: 'Building', color: '#3b82f6', dotClass: 'building' },
+ running: { label: 'Live', color: '#3ddc97', dotClass: 'live' },
+ stopped: { label: 'Stopped', color: '#646b7a', dotClass: 'stopped' },
+ deploying: { label: 'Deploying', color: '#f5b945', dotClass: 'deploying' },
+ failed: { label: 'Failed', color: '#fb6f6f', dotClass: 'failed' },
+ building: { label: 'Building', color: '#49c7f0', dotClass: 'building' },
};
const DEPLOY_STATUS = {
- success: { label: 'Live', color: '#10b981' },
- failed: { label: 'Failed', color: '#ef4444' },
- in_progress: { label: 'In Progress', color: '#f59e0b' },
- rolled_back: { label: 'Rolled Back', color: '#71717a' },
- pending: { label: 'Pending', color: '#3b82f6' },
+ success: { label: 'Live', color: '#3ddc97' },
+ failed: { label: 'Failed', color: '#fb6f6f' },
+ in_progress: { label: 'In Progress', color: '#f5b945' },
+ rolled_back: { label: 'Rolled Back', color: '#646b7a' },
+ pending: { label: 'Pending', color: '#49c7f0' },
};
export function getServiceType(appType) {
return SERVICE_TYPES[appType] || {
label: appType?.charAt(0).toUpperCase() + appType?.slice(1) || 'Unknown',
- color: '#a1a1aa',
- bgColor: 'rgba(161, 161, 170, 0.1)',
- borderColor: 'rgba(161, 161, 170, 0.2)',
+ color: '#646b7a',
+ bgColor: 'rgba(100, 107, 122, 0.1)',
+ borderColor: 'rgba(100, 107, 122, 0.2)',
icon: 'default',
tabs: ['overview', 'events', 'logs', 'environment', 'settings'],
};