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): extend empty-state + AI-slop cleanup to remaining pages

Juan Denis2e6441e6de56
diff --git a/frontend/src/pages/ApplicationDetail.jsx b/frontend/src/pages/ApplicationDetail.jsx
index 962b7963..9ccac842 100644
--- a/frontend/src/pages/ApplicationDetail.jsx
+++ b/frontend/src/pages/ApplicationDetail.jsx
@@ -1,7 +1,8 @@
import React, { useState, useEffect } from 'react';
import { useParams, useNavigate, Link } from 'react-router-dom';
-import { GitBranch } from 'lucide-react';
+import { GitBranch, GitMerge, Boxes } from 'lucide-react';
import api from '../services/api';
+import EmptyState from '../components/EmptyState';
import useTabParam from '../hooks/useTabParam';
import { useToast } from '../contexts/ToastContext';
import { useConfirm } from '../hooks/useConfirm';
@@ -97,17 +98,17 @@ const ApplicationDetail = () => {
}
if (loading) {
- return <div className="loading">Loading application...</div>;
+ return <EmptyState loading size="lg" title="Loading application..." />;
}
if (!app) {
return (
- <div className="empty-state">
- <h3>Application not found</h3>
- <Button onClick={() => navigate('/apps')}>
- Back to Applications
- </Button>
- </div>
+ <EmptyState
+ size="lg"
+ icon={Boxes}
+ title="Application not found"
+ action={<Button onClick={() => navigate('/apps')}>Back to Applications</Button>}
+ />
);
}
@@ -672,7 +673,7 @@ const PackagesTab = ({ appId }) => {
}
if (loading) {
- return <div className="loading">Loading packages...</div>;
+ return <EmptyState loading title="Loading packages..." />;
}
return (
@@ -743,7 +744,7 @@ const GunicornTab = ({ appId }) => {
}
if (loading) {
- return <div className="loading">Loading Gunicorn configuration...</div>;
+ return <EmptyState loading title="Loading Gunicorn configuration..." />;
}
return (
@@ -1010,7 +1011,7 @@ const BuildTab = ({ appId, appPath }) => {
}
if (loading) {
- return <div className="loading">Loading build configuration...</div>;
+ return <EmptyState loading title="Loading build configuration..." />;
}
return (
@@ -1538,7 +1539,7 @@ const DeployTab = ({ appId, appPath }) => {
}
if (loading) {
- return <div className="loading">Loading deployment configuration...</div>;
+ return <EmptyState loading title="Loading deployment configuration..." />;
}
return (
@@ -1552,18 +1553,12 @@ const DeployTab = ({ appId, appPath }) => {
{!config ? (
<div className="deploy-setup">
- <div className="empty-state">
- <svg viewBox="0 0 24 24" width="48" height="48" stroke="currentColor" fill="none" strokeWidth="2">
- <circle cx="12" cy="12" r="4"/>
- <line x1="1.05" y1="12" x2="7" y2="12"/>
- <line x1="17.01" y1="12" x2="22.96" y2="12"/>
- </svg>
- <h3>Git Deployment Not Configured</h3>
- <p>Connect a Git repository to enable automatic deployments via webhooks or manual triggers.</p>
- <Button onClick={() => setShowConfigModal(true)}>
- Configure Deployment
- </Button>
- </div>
+ <EmptyState
+ icon={GitMerge}
+ title="Git Deployment Not Configured"
+ description="Connect a Git repository to enable automatic deployments via webhooks or manual triggers."
+ action={<Button onClick={() => setShowConfigModal(true)}>Configure Deployment</Button>}
+ />
</div>
) : (
<>
diff --git a/frontend/src/pages/Applications.jsx b/frontend/src/pages/Applications.jsx
index 5af3a19f..67d9d9b0 100644
--- a/frontend/src/pages/Applications.jsx
+++ b/frontend/src/pages/Applications.jsx
@@ -1,7 +1,8 @@
import React, { useState, useEffect, useCallback } from 'react';
import { useNavigate } from 'react-router-dom';
-import { Plus, X, Container, Globe, Package, FileText, RefreshCw, Square, Play, Settings, Trash2, AlertTriangle } from 'lucide-react';
+import { Plus, X, Container, Globe, Package, FileText, RefreshCw, Square, Play, Settings, Trash2, AlertTriangle, Boxes } from 'lucide-react';
import api from '../services/api';
+import EmptyState from '../components/EmptyState';
import { useToast } from '../contexts/ToastContext';
import { useConfirm } from '../hooks/useConfirm';
import { ConfirmDialog } from '../components/ConfirmDialog';
@@ -137,7 +138,7 @@ const Applications = () => {
});
if (loading) {
- return <div className="docker-loading">Loading applications...</div>;
+ return <EmptyState loading size="lg" title="Loading applications..." />;
}
return (
@@ -212,10 +213,12 @@ const Applications = () => {
</div>
{filteredApps.length === 0 ? (
- <div className="docker-empty">
- <h3>No applications</h3>
- <p>Create your first application to get started.</p>
- </div>
+ <EmptyState
+ icon={Boxes}
+ title="No applications"
+ description="Create your first application to get started."
+ action={<Button onClick={() => setShowCreateModal(true)}><Plus size={16} /> New Application</Button>}
+ />
) : (
<table className="docker-table">
<thead>
diff --git a/frontend/src/pages/Backups.jsx b/frontend/src/pages/Backups.jsx
index 3056aa12..e4f3cd15 100644
--- a/frontend/src/pages/Backups.jsx
+++ b/frontend/src/pages/Backups.jsx
@@ -6,6 +6,7 @@ import { useToast } from '../contexts/ToastContext';
import { useConfirm } from '../hooks/useConfirm';
import { ConfirmDialog } from '../components/ConfirmDialog';
import { StatCard, StatsGrid } from '../components/StatCard';
+import EmptyState from '../components/EmptyState';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Textarea } from '@/components/ui/textarea';
@@ -361,7 +362,7 @@ const Backups = () => {
: backups.filter(b => b.type === filterType);
if (loading) {
- return <div className="page"><div className="loading">Loading backup data...</div></div>;
+ return <EmptyState loading size="lg" title="Loading backup data..." />;
}
return (
@@ -433,14 +434,12 @@ const Backups = () => {
</div>
<div className="card-body">
{filteredBackups.length === 0 ? (
- <div className="empty-state">
- <Download size={48} />
- <h3>No Backups</h3>
- <p>No backups found. Create your first backup to get started.</p>
- <Button onClick={() => setShowBackupModal(true)}>
- Create Backup
- </Button>
- </div>
+ <EmptyState
+ icon={FileArchive}
+ title="No Backups"
+ description="No backups found. Create your first backup to get started."
+ action={<Button onClick={() => setShowBackupModal(true)}>Create Backup</Button>}
+ />
) : (
<table className="table">
<thead>
@@ -531,14 +530,12 @@ const Backups = () => {
</div>
<div className="card-body">
{schedules.length === 0 ? (
- <div className="empty-state">
- <Clock size={48} />
- <h3>No Schedules</h3>
- <p>No backup schedules configured. Add a schedule for automated backups.</p>
- <Button onClick={() => setShowScheduleModal(true)}>
- Add Schedule
- </Button>
- </div>
+ <EmptyState
+ icon={Clock}
+ title="No Schedules"
+ description="No backup schedules configured. Add a schedule for automated backups."
+ action={<Button onClick={() => setShowScheduleModal(true)}>Add Schedule</Button>}
+ />
) : (
<table className="table">
<thead>
diff --git a/frontend/src/pages/CloudProvision.jsx b/frontend/src/pages/CloudProvision.jsx
index c3d6b46c..05a07cfd 100644
--- a/frontend/src/pages/CloudProvision.jsx
+++ b/frontend/src/pages/CloudProvision.jsx
@@ -4,10 +4,12 @@ import { useToast } from '../contexts/ToastContext';
import { useAuth } from '../contexts/AuthContext';
import Spinner from '../components/Spinner';
import ConfirmDialog from '../components/ConfirmDialog';
+import EmptyState from '../components/EmptyState';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Badge } from '@/components/ui/badge';
import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';
+import { Cloud, Server } from 'lucide-react';
const CloudProvision = () => {
const toast = useToast();
@@ -141,7 +143,15 @@ const CloudProvision = () => {
</div>
</div>
))}
- {servers.length === 0 && <div className="empty-state"><p>No cloud servers provisioned yet.</p></div>}
+ {servers.length === 0 && (
+ <EmptyState
+ size="lg"
+ icon={Server}
+ title="No cloud servers yet"
+ description={user?.is_admin ? 'Add a provider, then create a server.' : 'No servers have been provisioned.'}
+ action={user?.is_admin && <Button onClick={() => setShowCreateServer(true)}>New Server</Button>}
+ />
+ )}
</div>
</TabsContent>
@@ -154,7 +164,15 @@ const CloudProvision = () => {
<span>{p.server_count} servers</span>
</div>
))}
- {providers.length === 0 && <div className="empty-state"><p>No providers configured.</p></div>}
+ {providers.length === 0 && (
+ <EmptyState
+ size="lg"
+ icon={Cloud}
+ title="No providers configured"
+ description={user?.is_admin ? 'Add a cloud provider to provision servers.' : 'No providers have been added.'}
+ action={user?.is_admin && <Button variant="outline" onClick={() => setShowCreateProvider(true)}>Add Provider</Button>}
+ />
+ )}
</div>
</TabsContent>
diff --git a/frontend/src/pages/CronJobs.jsx b/frontend/src/pages/CronJobs.jsx
index 72b0501e..75432b5a 100644
--- a/frontend/src/pages/CronJobs.jsx
+++ b/frontend/src/pages/CronJobs.jsx
@@ -4,6 +4,7 @@ import { useToast } from '../contexts/ToastContext';
import { useConfirm } from '../hooks/useConfirm';
import { ConfirmDialog } from '../components/ConfirmDialog';
import { StatCard, StatsGrid } from '../components/StatCard';
+import EmptyState from '../components/EmptyState';
import { Clock, FileText, CheckCircle, Monitor } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -188,7 +189,7 @@ const CronJobs = () => {
};
if (loading) {
- return <div className="page"><div className="loading">Loading cron jobs...</div></div>;
+ return <EmptyState loading size="lg" title="Loading cron jobs..." />;
}
return (
@@ -239,17 +240,12 @@ const CronJobs = () => {
</div>
<div className="card-body">
{jobs.length === 0 ? (
- <div className="empty-state">
- <svg viewBox="0 0 24 24" width="48" height="48" stroke="currentColor" fill="none" strokeWidth="2">
- <circle cx="12" cy="12" r="10"/>
- <polyline points="12 6 12 12 16 14"/>
- </svg>
- <h3>No Cron Jobs</h3>
- <p>No scheduled jobs found. Create your first cron job to automate tasks.</p>
- <Button onClick={openCreateModal}>
- Create Job
- </Button>
- </div>
+ <EmptyState
+ icon={Clock}
+ title="No Cron Jobs"
+ description="No scheduled jobs found. Create your first cron job to automate tasks."
+ action={<Button onClick={openCreateModal}>Create Job</Button>}
+ />
) : (
<div className="cron-list">
{jobs.map((job) => (
diff --git a/frontend/src/pages/DNSZones.jsx b/frontend/src/pages/DNSZones.jsx
index f059bac8..09e22735 100644
--- a/frontend/src/pages/DNSZones.jsx
+++ b/frontend/src/pages/DNSZones.jsx
@@ -1,8 +1,10 @@
import React, { useState, useEffect, useCallback } from 'react';
+import { Globe } from 'lucide-react';
import api from '../services/api';
import { useToast } from '../contexts/ToastContext';
import { useAuth } from '../contexts/AuthContext';
import Spinner from '../components/Spinner';
+import EmptyState from '../components/EmptyState';
import ConfirmDialog from '../components/ConfirmDialog';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -204,7 +206,7 @@ const DNSZones = () => {
</div>
</div>
))}
- {zones.length === 0 && <div className="empty-state"><p>No DNS zones configured.</p></div>}
+ {zones.length === 0 && <EmptyState icon={Globe} title="No DNS zones configured" />}
</div>
{selectedZone && (
diff --git a/frontend/src/pages/Email.jsx b/frontend/src/pages/Email.jsx
index 20c17fa2..3626fa4b 100644
--- a/frontend/src/pages/Email.jsx
+++ b/frontend/src/pages/Email.jsx
@@ -1,8 +1,10 @@
import { useState, useEffect, useCallback } from 'react';
+import { Globe, AtSign, Forward, Server, Inbox } from 'lucide-react';
import useTabParam from '../hooks/useTabParam';
import { api } from '../services/api';
import { useToast } from '../contexts/ToastContext';
import Spinner from '../components/Spinner';
+import EmptyState from '../components/EmptyState';
import ConfirmDialog from '../components/ConfirmDialog';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -555,7 +557,7 @@ function Email() {
)}
<div className="domain-list">
{domains.length === 0 ? (
- <div className="empty-state"><p>No domains configured</p></div>
+ <EmptyState icon={Globe} title="No domains configured" />
) : domains.map(d => (
<div key={d.id} className="domain-card">
<div className="domain-header">
@@ -627,7 +629,7 @@ function Email() {
)}
<div className="accounts-list">
{accounts.length === 0 ? (
- <div className="empty-state"><p>No accounts for this domain</p></div>
+ <EmptyState icon={AtSign} title="No accounts for this domain" />
) : accounts.map(a => (
<div key={a.id} className="account-card">
<div className="account-info">
@@ -705,7 +707,7 @@ function Email() {
)}
<div className="items-list">
{aliases.length === 0 ? (
- <div className="empty-state"><p>No aliases for this domain</p></div>
+ <EmptyState icon={Forward} title="No aliases for this domain" />
) : aliases.map(a => (
<div key={a.id} className="alias-card">
<div className="item-info">
@@ -763,7 +765,7 @@ function Email() {
)}
<div className="items-list">
{forwardingRules.length === 0 ? (
- <div className="empty-state"><p>No forwarding rules</p></div>
+ <EmptyState icon={Forward} title="No forwarding rules" />
) : forwardingRules.map(r => (
<div key={r.id} className="forwarding-card">
<div className="item-info">
@@ -810,7 +812,7 @@ function Email() {
)}
<div className="provider-list">
{providers.length === 0 ? (
- <div className="empty-state"><p>No DNS providers configured</p></div>
+ <EmptyState icon={Server} title="No DNS providers configured" />
) : providers.map(p => (
<div key={p.id} className="provider-card">
<div className="provider-header">
@@ -920,7 +922,7 @@ function Email() {
</div>
<div className="queue-list">
{queue.length === 0 ? (
- <div className="empty-state"><p>Queue is empty</p></div>
+ <EmptyState icon={Inbox} title="Queue is empty" />
) : queue.map(item => (
<div key={item.queue_id} className="queue-item">
<div className="queue-info">
diff --git a/frontend/src/pages/FTPServer.jsx b/frontend/src/pages/FTPServer.jsx
index 14f8985c..033b0ea0 100644
--- a/frontend/src/pages/FTPServer.jsx
+++ b/frontend/src/pages/FTPServer.jsx
@@ -1,8 +1,10 @@
import { useState, useEffect } from 'react';
+import { FolderUp, UserPlus, Network } from 'lucide-react';
import useTabParam from '../hooks/useTabParam';
import { api } from '../services/api';
import { useToast } from '../contexts/ToastContext';
import Spinner from '../components/Spinner';
+import EmptyState from '../components/EmptyState';
import ConfirmDialog from '../components/ConfirmDialog';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -288,14 +290,13 @@ function FTPServer() {
</div>
{!isInstalled ? (
- <div className="empty-state-large">
- <span className="icon">cloud_upload</span>
- <h2>No FTP Server Installed</h2>
- <p>Install an FTP server to enable file transfers on your server.</p>
- <Button size="lg" onClick={() => setShowInstallModal(true)}>
- Install FTP Server
- </Button>
- </div>
+ <EmptyState
+ size="lg"
+ icon={FolderUp}
+ title="No FTP server installed"
+ description="Install an FTP server to enable file transfers on your server."
+ action={<Button size="lg" onClick={() => setShowInstallModal(true)}>Install FTP Server</Button>}
+ />
) : (
<>
<div className="status-cards">
@@ -424,13 +425,11 @@ function FTPServer() {
</Button>
</div>
{users.length === 0 ? (
- <div className="empty-state">
- <span className="icon">person_add</span>
- <p>No FTP users configured</p>
- <Button onClick={() => setShowUserModal(true)}>
- Create First User
- </Button>
- </div>
+ <EmptyState
+ icon={UserPlus}
+ title="No FTP users configured"
+ action={<Button onClick={() => setShowUserModal(true)}>Create First User</Button>}
+ />
) : (
<div className="users-table">
<table>
@@ -509,10 +508,7 @@ function FTPServer() {
</Button>
</div>
{connections.length === 0 ? (
- <div className="empty-state">
- <span className="icon">lan</span>
- <p>No active connections</p>
- </div>
+ <EmptyState icon={Network} title="No active connections" />
) : (
<div className="connections-table">
<table>
diff --git a/frontend/src/pages/FileManager.jsx b/frontend/src/pages/FileManager.jsx
index ad27a36f..fbdd83ab 100644
--- a/frontend/src/pages/FileManager.jsx
+++ b/frontend/src/pages/FileManager.jsx
@@ -1,10 +1,10 @@
import { useState, useEffect, useRef, useMemo, useCallback } from 'react';
import { api } from '../services/api';
import { useToast } from '../contexts/ToastContext';
-import Spinner from '../components/Spinner';
import ConfirmDialog from '../components/ConfirmDialog';
+import EmptyState from '../components/EmptyState';
import {
- Folder, File, Upload, FolderPlus,
+ Folder, FolderOpen, File, Upload, FolderPlus,
ArrowLeft, ArrowRight, ArrowUp, Search, X, RefreshCw, Eye, EyeOff,
Download, Edit3, Trash2, ChevronDown, ChevronRight,
HardDrive, Clock, PanelLeftClose, PanelLeftOpen,
@@ -1074,21 +1074,17 @@ function FileManager() {
)}
{loading ? (
- <div className="loading-state">
- <Spinner />
- </div>
+ <EmptyState loading title="Loading files" />
) : sortedFiltered.length === 0 ? (
- <div className="empty-state">
- <Folder size={56} strokeWidth={1.25} />
- <h3>{searchResults ? 'No matches' : activeFilter !== 'all' ? `No ${activeFilter} files` : 'This folder is empty'}</h3>
- <p>
- {searchResults
- ? 'Try a different search term or browse another folder.'
- : activeFilter !== 'all'
- ? 'Try a different filter.'
- : 'Drop files here, or use the buttons above to create something new.'}
- </p>
- </div>
+ <EmptyState
+ icon={FolderOpen}
+ title={searchResults ? 'No matches' : activeFilter !== 'all' ? `No ${activeFilter} files` : 'This folder is empty'}
+ description={searchResults
+ ? 'Try a different search term or browse another folder.'
+ : activeFilter !== 'all'
+ ? 'Try a different filter.'
+ : 'Drop files here, or use the buttons above to create something new.'}
+ />
) : viewMode === 'grid' ? (
<div className="file-grid">
{sortedFiltered.map((entry) => (
diff --git a/frontend/src/pages/Firewall.jsx b/frontend/src/pages/Firewall.jsx
index 2f63cbce..628e6b86 100644
--- a/frontend/src/pages/Firewall.jsx
+++ b/frontend/src/pages/Firewall.jsx
@@ -1,7 +1,9 @@
import { useState, useEffect } from 'react';
+import { ShieldOff, ShieldCheck, Filter } from 'lucide-react';
import { api } from '../services/api';
import { useToast } from '../contexts/ToastContext';
import Spinner from '../components/Spinner';
+import EmptyState from '../components/EmptyState';
import ConfirmDialog from '../components/ConfirmDialog';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -285,14 +287,13 @@ function Firewall() {
</div>
{!status?.any_installed ? (
- <div className="empty-state-large">
- <span className="icon">security</span>
- <h2>No Firewall Installed</h2>
- <p>Install a firewall to protect your server from unauthorized access.</p>
- <Button size="lg" onClick={() => setShowInstallModal(true)}>
- Install Firewall
- </Button>
- </div>
+ <EmptyState
+ size="lg"
+ icon={ShieldOff}
+ title="No firewall installed"
+ description="Install a firewall to protect your server from unauthorized access."
+ action={<Button size="lg" onClick={() => setShowInstallModal(true)}>Install Firewall</Button>}
+ />
) : (
<>
<div className="status-cards">
@@ -406,10 +407,7 @@ function Firewall() {
</Button>
</div>
{rules.length === 0 ? (
- <div className="empty-state">
- <span className="icon">rule</span>
- <p>No rules configured</p>
- </div>
+ <EmptyState icon={Filter} title="No rules configured" />
) : (
<div className="rules-table">
<table>
@@ -464,10 +462,7 @@ function Firewall() {
</Button>
</div>
{blockedIPs.length === 0 ? (
- <div className="empty-state">
- <span className="icon">verified_user</span>
- <p>No blocked IPs</p>
- </div>
+ <EmptyState icon={ShieldCheck} title="No blocked IPs" />
) : (
<div className="blocked-list">
{blockedIPs.map((item, index) => (
diff --git a/frontend/src/pages/Marketplace.jsx b/frontend/src/pages/Marketplace.jsx
index 278d9fe7..3bd8ef8c 100644
--- a/frontend/src/pages/Marketplace.jsx
+++ b/frontend/src/pages/Marketplace.jsx
@@ -23,6 +23,7 @@ import {
import api from '../services/api';
import { useToast } from '../contexts/ToastContext';
import Spinner from '../components/Spinner';
+import EmptyState from '../components/EmptyState';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Badge } from '@/components/ui/badge';
@@ -789,14 +790,6 @@ const RuntimeRow = ({ label, value, danger }) => (
</div>
);
-const EmptyState = ({ icon: Icon, title, description }) => (
- <div className="empty-state marketplace-empty">
- <Icon aria-hidden="true" />
- <h3>{title}</h3>
- <p>{description}</p>
- </div>
-);
-
const renderStars = (rating) => {
const normalizedRating = Math.max(0, Math.min(5, Number(rating) || 0));
diff --git a/frontend/src/pages/Monitoring.jsx b/frontend/src/pages/Monitoring.jsx
index 91b6de59..b0ea24cd 100644
--- a/frontend/src/pages/Monitoring.jsx
+++ b/frontend/src/pages/Monitoring.jsx
@@ -3,6 +3,7 @@ import { Link } from 'react-router-dom';
import useTabParam from '../hooks/useTabParam';
import api from '../services/api';
import { useToast } from '../contexts/ToastContext';
+import EmptyState from '../components/EmptyState';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
@@ -262,7 +263,11 @@ const Monitoring = () => {
};
if (loading) {
- return <div className="page"><div className="loading">Loading monitoring data...</div></div>;
+ return (
+ <div className="page-container monitoring-page">
+ <EmptyState loading size="lg" title="Loading monitoring data" />
+ </div>
+ );
}
return (
@@ -524,11 +529,11 @@ const Monitoring = () => {
</div>
</div>
{alertHistory.length === 0 ? (
- <div className="empty-state monitoring-empty">
- <Bell size={40} />
- <h3>No Alerts</h3>
- <p>No alerts have been triggered yet.</p>
- </div>
+ <EmptyState
+ icon={Bell}
+ title="No alerts yet"
+ description="Alerts will appear here once a threshold is crossed."
+ />
) : (
<div className="monitoring-history-list">
{alertHistory.map((alert, index) => (
diff --git a/frontend/src/pages/SSLCertificates.jsx b/frontend/src/pages/SSLCertificates.jsx
index 93c873c5..98bb5ce3 100644
--- a/frontend/src/pages/SSLCertificates.jsx
+++ b/frontend/src/pages/SSLCertificates.jsx
@@ -7,6 +7,7 @@ import {
import api from '../services/api';
import { useToast } from '../contexts/ToastContext';
import { useConfirm } from '../hooks/useConfirm';
+import EmptyState from '../components/EmptyState';
import { ConfirmDialog } from '../components/ConfirmDialog';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -293,11 +294,12 @@ const SSLCertificates = () => {
{/* Certificates List */}
{certificates.length === 0 ? (
- <div className="empty-state">
- <Lock size={48} />
- <h3>No SSL certificates</h3>
- <p>Obtain your first Let's Encrypt certificate to secure your domains.</p>
- {certbotInstalled ? (
+ <EmptyState
+ size="lg"
+ icon={Lock}
+ title="No SSL certificates"
+ description="Obtain your first Let's Encrypt certificate to secure your domains."
+ action={certbotInstalled ? (
<Button onClick={() => setShowObtainModal(true)}>
<Plus size={16} />
New Certificate
@@ -308,7 +310,7 @@ const SSLCertificates = () => {
Install Certbot First
</Button>
)}
- </div>
+ />
) : (
<div className="ssl-cert-list">
{certificates.map((cert, index) => (
diff --git a/frontend/src/pages/Security.jsx b/frontend/src/pages/Security.jsx
index b486579d..d8b03070 100644
--- a/frontend/src/pages/Security.jsx
+++ b/frontend/src/pages/Security.jsx
@@ -18,6 +18,7 @@ import {
SecurityConfigTab,
} from '../components/security';
import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';
+import EmptyState from '../components/EmptyState';
const VALID_TABS = ['overview', 'firewall', 'fail2ban', 'ssh-keys', 'ip-lists', 'scanner', 'quarantine', 'integrity', 'audit', 'vulnerability', 'updates', 'events', 'settings'];
@@ -43,7 +44,7 @@ const Security = () => {
}
if (loading) {
- return <div className="page"><div className="loading">Loading security status...</div></div>;
+ return <EmptyState loading title="Loading security status..." />;
}
return (
diff --git a/frontend/src/pages/ServerDetail.jsx b/frontend/src/pages/ServerDetail.jsx
index cf89812b..c71143ea 100644
--- a/frontend/src/pages/ServerDetail.jsx
+++ b/frontend/src/pages/ServerDetail.jsx
@@ -30,6 +30,8 @@ import {
import PackagesTab from '../components/serverdetail/PackagesTab';
import ServicesTab from '../components/serverdetail/ServicesTab';
import SystemStatusCard from '../components/serverdetail/SystemStatusCard';
+import EmptyState from '../components/EmptyState';
+import { BellRing, Boxes, Container, Clock3, Cloud } from 'lucide-react';
const ServerDetail = () => {
const { id, tab } = useParams();
@@ -176,7 +178,7 @@ const ServerDetail = () => {
}
if (loading) {
- return <div className="loading">Loading server details...</div>;
+ return <EmptyState loading title="Loading server details" />;
}
if (error) {
@@ -517,11 +519,11 @@ const AlertsTab = ({ notifications, securityAlerts, onAcknowledge, onResolve })
if (sysItems.length === 0 && secItems.length === 0) {
return (
<div className="alerts-tab">
- <div className="notifications-empty">
- <BellIcon />
- <h4>All clear</h4>
- <p>No active alerts for this server.</p>
- </div>
+ <EmptyState
+ icon={BellRing}
+ title="All clear"
+ description="No active alerts for this server."
+ />
</div>
);
}
@@ -763,22 +765,17 @@ const DockerTab = ({ serverId, serverStatus, server }) => {
const dockerCapability = server?.capabilities?.docker;
if (serverStatus === 'online' && server && dockerCapability === false) {
return (
- <div className="empty-state docker-empty-state">
- <h4>Docker not reachable from this agent</h4>
- <p>
- The agent connected successfully but couldn&apos;t talk to a Docker daemon.
- Common causes:
- </p>
- <ul>
+ <div className="docker-empty-state">
+ <EmptyState
+ icon={Container}
+ title="Docker not reachable from this agent"
+ description="The agent connected but could not talk to a Docker daemon. Make sure Docker is running on the host (and the agent user is in the docker group on Linux), then click Refresh on the Overview tab to re-probe capabilities."
+ />
+ <ul className="docker-empty-state__causes">
<li>Docker Desktop / dockerd is not running on the host</li>
<li>The agent user isn&apos;t in the <code>docker</code> group (Linux)</li>
<li>The npipe socket <code>{'//./pipe/docker_engine'}</code> isn&apos;t accessible (Windows)</li>
</ul>
- <p>
- Start Docker on the host, then click <strong>Refresh</strong> on the Overview tab to
- re-probe capabilities. The Docker tab will appear normally once the agent
- can reach the daemon.
- </p>
</div>
);
}
@@ -818,7 +815,7 @@ const DockerTab = ({ serverId, serverStatus, server }) => {
}
if (loading) {
- return <div className="loading">Loading Docker data...</div>;
+ return <EmptyState loading title="Loading Docker data" />;
}
return (
@@ -847,7 +844,7 @@ const DockerTab = ({ serverId, serverStatus, server }) => {
{subTab === 'containers' && (
<div className="containers-list">
{containers.length === 0 ? (
- <div className="empty-list">No containers found on this server.</div>
+ <EmptyState icon={Container} title="No containers" description="No containers are running on this server." />
) : (
<table className="data-table">
<thead>
@@ -924,7 +921,7 @@ const DockerTab = ({ serverId, serverStatus, server }) => {
{subTab === 'images' && (
<div className="images-list">
{images.length === 0 ? (
- <div className="empty-list">No images found on this server.</div>
+ <EmptyState icon={Boxes} title="No images" description="No Docker images are present on this server." />
) : (
<table className="data-table">
<thead>
@@ -1092,7 +1089,7 @@ const CronTab = ({ serverId, serverStatus }) => {
}
if (loading) {
- return <div className="loading">Loading cron jobs...</div>;
+ return <EmptyState loading title="Loading cron jobs" />;
}
return (
@@ -1121,9 +1118,11 @@ const CronTab = ({ serverId, serverStatus }) => {
)}
{jobs.length === 0 ? (
- <div className="empty-list">
- No cron jobs on this server. Click &quot;Add Job&quot; to schedule one.
- </div>
+ <EmptyState
+ icon={Clock3}
+ title="No cron jobs"
+ description="No scheduled jobs on this server. Use Add Job to schedule one."
+ />
) : (
<table className="data-table">
<thead>
@@ -1448,7 +1447,7 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {
}
if (loading) {
- return <div className="loading">Loading tunnels...</div>;
+ return <EmptyState loading title="Loading tunnels" />;
}
// Status banner — three distinct states the UI cares about:
@@ -1511,9 +1510,11 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {
{!notInstalled && !notAuthed && (
tunnels.length === 0 ? (
- <div className="empty-list">
- No tunnels on this server. Click &quot;Create Tunnel&quot; to make one.
- </div>
+ <EmptyState
+ icon={Cloud}
+ title="No tunnels"
+ description="No tunnels on this server. Use Create Tunnel to make one."
+ />
) : (
<table className="data-table">
<thead>
@@ -2451,13 +2452,6 @@ const PulseIcon = () => (
</svg>
);
-const BellIcon = () => (
- <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">
- <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/>
- <path d="M13.73 21a2 2 0 0 1-3.46 0"/>
- </svg>
-);
-
const AlertIcon = () => (
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/>
diff --git a/frontend/src/pages/ServerTemplates.jsx b/frontend/src/pages/ServerTemplates.jsx
index 063311a8..c25be101 100644
--- a/frontend/src/pages/ServerTemplates.jsx
+++ b/frontend/src/pages/ServerTemplates.jsx
@@ -4,6 +4,8 @@ import { useToast } from '../contexts/ToastContext';
import { useAuth } from '../contexts/AuthContext';
import Spinner from '../components/Spinner';
import ConfirmDialog from '../components/ConfirmDialog';
+import EmptyState from '../components/EmptyState';
+import { LayoutTemplate } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Textarea } from '@/components/ui/textarea';
@@ -202,9 +204,11 @@ const ServerTemplates = () => {
</div>
))}
{templates.length === 0 && (
- <div className="empty-state">
- <p>No templates yet. Create one or use a library template.</p>
- </div>
+ <EmptyState
+ icon={LayoutTemplate}
+ title="No templates yet"
+ description="Create one or use a library template to get started."
+ />
)}
</div>
</TabsContent>
diff --git a/frontend/src/pages/ServiceDetail.jsx b/frontend/src/pages/ServiceDetail.jsx
index fdcb1b23..0b559ea3 100644
--- a/frontend/src/pages/ServiceDetail.jsx
+++ b/frontend/src/pages/ServiceDetail.jsx
@@ -17,6 +17,8 @@ import GunicornTab from '../components/service-detail/GunicornTab';
import CommandsTab from '../components/service-detail/CommandsTab';
import GitConnectModal from '../components/service-detail/GitConnectModal';
import OverviewTab from '../components/service-detail/OverviewTab';
+import EmptyState from '../components/EmptyState';
+import { Layers } from 'lucide-react';
import { Button } from '@/components/ui/button';
const TAB_LABELS = {
@@ -124,18 +126,17 @@ const ServiceDetail = () => {
}
if (loading) {
- return <div className="loading">Loading service...</div>;
+ return <EmptyState loading title="Loading service" />;
}
if (error || !service) {
return (
- <div className="empty-state">
- <h3>Service not found</h3>
- <p>{error || 'The service you are looking for does not exist.'}</p>
- <Button onClick={() => navigate('/services')}>
- Back to Services
- </Button>
- </div>
+ <EmptyState
+ icon={Layers}
+ title="Service not found"
+ description={error || 'The service you are looking for does not exist.'}
+ action={<Button onClick={() => navigate('/services')}>Back to Services</Button>}
+ />
);
}
diff --git a/frontend/src/pages/StatusPages.jsx b/frontend/src/pages/StatusPages.jsx
index 8878cff6..f8a5a14a 100644
--- a/frontend/src/pages/StatusPages.jsx
+++ b/frontend/src/pages/StatusPages.jsx
@@ -4,6 +4,7 @@ import { useToast } from '../contexts/ToastContext';
import { useAuth } from '../contexts/AuthContext';
import Spinner from '../components/Spinner';
import ConfirmDialog from '../components/ConfirmDialog';
+import EmptyState from '../components/EmptyState';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Textarea } from '@/components/ui/textarea';
@@ -341,10 +342,7 @@ const StatusPages = () => {
</button>
))}
{pages.length === 0 && (
- <div className="empty-state status-pages-empty">
- <Activity size={32} />
- <p>No status pages yet.</p>
- </div>
+ <EmptyState icon={Activity} title="No status pages yet" />
)}
</aside>
@@ -454,7 +452,9 @@ const StatusPages = () => {
})}
</div>
))}
- {components.length === 0 && <p className="text-muted">No components yet.</p>}
+ {components.length === 0 && (
+ <EmptyState icon={Activity} title="No components yet" />
+ )}
</div>
</TabsContent>
@@ -519,7 +519,9 @@ const StatusPages = () => {
)}
</article>
))}
- {incidents.length === 0 && <p className="text-muted">No incidents.</p>}
+ {incidents.length === 0 && (
+ <EmptyState icon={CheckCircle2} title="No incidents" />
+ )}
</div>
</TabsContent>
@@ -551,8 +553,7 @@ const StatusPages = () => {
</section>
) : (
<section className="status-detail-panel status-detail-panel--empty">
- <Activity size={32} />
- <p>Select a status page.</p>
+ <EmptyState icon={Globe2} title="Select a status page" />
</section>
)}
</div>
diff --git a/frontend/src/pages/Templates.jsx b/frontend/src/pages/Templates.jsx
index 14b6dd09..4df91975 100644
--- a/frontend/src/pages/Templates.jsx
+++ b/frontend/src/pages/Templates.jsx
@@ -4,13 +4,14 @@ import {
Search, X, Star, ExternalLink, BookOpen, Container, Globe, BarChart3,
Database, Shield, Cloud, MessageSquare, Video, Music, Image, Home,
Code, Server, GitBranch, Workflow, HardDrive, Lock, Users, FileText,
- Settings, Layers, ChevronDown, Copy, Check, Tag, Cpu,
+ Settings, Layers, LayoutTemplate, ChevronDown, Copy, Check, Tag, Cpu,
Newspaper, TrendingUp
} from 'lucide-react';
import api from '../services/api';
import { useToast } from '../contexts/ToastContext';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
+import EmptyState from '../components/EmptyState';
// Featured templates (curated list)
const FEATURED_TEMPLATES = [
@@ -298,7 +299,7 @@ const Templates = () => {
if (loading) {
return (
<div className="page-container">
- <div className="loading">Loading templates...</div>
+ <EmptyState loading title="Loading templates" />
</div>
);
}
@@ -394,15 +395,16 @@ const Templates = () => {
{/* Templates Grid */}
<div className="templates-grid">
{sortedTemplates.length === 0 ? (
- <div className="empty-state">
- <Layers size={48} />
- <p>No templates found</p>
- {hasActiveFilters && (
+ <EmptyState
+ icon={LayoutTemplate}
+ title="No templates found"
+ description={hasActiveFilters ? 'Try adjusting your filters' : 'No templates are available yet'}
+ action={hasActiveFilters && (
<Button variant="outline" size="sm" onClick={clearAllFilters}>
Clear Filters
</Button>
)}
- </div>
+ />
) : (
sortedTemplates.map(template => (
<div key={template.id} className="template-card" onClick={() => handleViewTemplate(template)}>
diff --git a/frontend/src/pages/WordPressProject.jsx b/frontend/src/pages/WordPressProject.jsx
index e8b6e84b..52eb5344 100644
--- a/frontend/src/pages/WordPressProject.jsx
+++ b/frontend/src/pages/WordPressProject.jsx
@@ -21,6 +21,8 @@ import {
} from '../components/wordpress';
import { ConfirmDialog } from '../components/ConfirmDialog';
import Spinner from '../components/Spinner';
+import EmptyState from '../components/EmptyState';
+import { FolderGit2 } from 'lucide-react';
import { io } from 'socket.io-client';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -395,21 +397,17 @@ const WordPressProject = () => {
}, [id, toast]);
if (loading) {
- return (
- <div className="page-loading">
- <Spinner size="lg" />
- </div>
- );
+ return <EmptyState loading size="lg" title="Loading project pipeline" />;
}
if (!pipeline) {
return (
- <div className="empty-state">
- <h3>Project not found</h3>
- <Button onClick={() => navigate('/wordpress/projects')}>
- Back to Projects
- </Button>
- </div>
+ <EmptyState
+ icon={FolderGit2}
+ title="Project not found"
+ description="This WordPress project does not exist or has been removed."
+ action={<Button onClick={() => navigate('/wordpress/projects')}>Back to Projects</Button>}
+ />
);
}
diff --git a/frontend/src/pages/WordPressProjects.jsx b/frontend/src/pages/WordPressProjects.jsx
index 2a3ef3c5..df8e450f 100644
--- a/frontend/src/pages/WordPressProjects.jsx
+++ b/frontend/src/pages/WordPressProjects.jsx
@@ -3,7 +3,7 @@ import { useNavigate } from 'react-router-dom';
import { ExternalLink, Plus, GitBranch, Layers } from 'lucide-react';
import wordpressApi from '../services/wordpress';
import { useToast } from '../contexts/ToastContext';
-import Spinner from '../components/Spinner';
+import EmptyState from '../components/EmptyState';
import { Badge } from '@/components/ui/badge';
const WordPressProjects = () => {
@@ -30,11 +30,7 @@ const WordPressProjects = () => {
}
if (loading) {
- return (
- <div className="page-loading">
- <Spinner size="lg" />
- </div>
- );
+ return <EmptyState loading size="lg" title="Loading WordPress projects" />;
}
return (
@@ -47,13 +43,12 @@ const WordPressProjects = () => {
</div>
{projects.length === 0 ? (
- <div className="empty-state-large">
- <div className="empty-icon">
- <Layers size={48} strokeWidth={1.5} />
- </div>
- <h2>No WordPress Projects</h2>
- <p>WordPress projects with environment pipelines will appear here. Create a WordPress site with environments enabled to get started.</p>
- </div>
+ <EmptyState
+ size="lg"
+ icon={Layers}
+ title="No WordPress Projects"
+ description="WordPress projects with environment pipelines appear here. Create a WordPress site with environments enabled to get started."
+ />
) : (
<div className="wp-projects-grid">
{projects.map(project => (
diff --git a/frontend/src/pages/Workspaces.jsx b/frontend/src/pages/Workspaces.jsx
index 0df2f081..8061149e 100644
--- a/frontend/src/pages/Workspaces.jsx
+++ b/frontend/src/pages/Workspaces.jsx
@@ -4,6 +4,8 @@ import { useToast } from '../contexts/ToastContext';
import { useAuth } from '../contexts/AuthContext';
import Spinner from '../components/Spinner';
import ConfirmDialog from '../components/ConfirmDialog';
+import EmptyState from '../components/EmptyState';
+import { LayoutGrid } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Textarea } from '@/components/ui/textarea';
@@ -154,9 +156,11 @@ const Workspaces = () => {
</div>
))}
{workspaces.length === 0 && (
- <div className="empty-state">
- <p>No workspaces yet. Create one to isolate servers by team or project.</p>
- </div>
+ <EmptyState
+ icon={LayoutGrid}
+ title="No workspaces yet"
+ description="Create one to isolate servers by team or project."
+ />
)}
</div>
diff --git a/frontend/src/styles/pages/_file-manager.scss b/frontend/src/styles/pages/_file-manager.scss
index 4f2db2f4..b35a5883 100644
--- a/frontend/src/styles/pages/_file-manager.scss
+++ b/frontend/src/styles/pages/_file-manager.scss
@@ -510,7 +510,7 @@ $ft-default: #94a3b8;
justify-content: space-between;
align-items: center;
padding: $space-2 $space-3 $space-2 $space-4;
- background: linear-gradient(135deg, fade($accent-primary-raw, 12%), fade($accent-primary-raw, 6%));
+ background: fade($accent-primary-raw, 10%);
border: 1px solid fade($accent-primary-raw, 35%);
border-radius: $radius-lg;
animation: slide-down 0.2s ease;
@@ -1374,7 +1374,6 @@ $ft-default: #94a3b8;
left: 4px;
padding: 1px 5px;
background: rgba(0, 0, 0, 0.6);
- backdrop-filter: blur(2px);
border-radius: $radius-sm;
font-family: $font-mono;
font-size: 9px;
diff --git a/frontend/src/styles/pages/_firewall.scss b/frontend/src/styles/pages/_firewall.scss
index 31f188aa..604ad6ce 100644
--- a/frontend/src/styles/pages/_firewall.scss
+++ b/frontend/src/styles/pages/_firewall.scss
@@ -80,10 +80,10 @@
padding: $space-5;
background: $bg-card;
border-radius: $radius-xl;
- border-left: 4px solid $border-subtle;
+ border: 1px solid $border-subtle;
&.success {
- border-left-color: $success;
+ border-color: fade($success, 45%);
.status-icon {
color: $success;
@@ -91,7 +91,7 @@
}
&.danger {
- border-left-color: $danger;
+ border-color: fade($danger, 45%);
.status-icon {
color: $danger;
@@ -99,7 +99,7 @@
}
&.warning {
- border-left-color: $warning;
+ border-color: fade($warning, 45%);
.status-icon {
color: $warning;
diff --git a/frontend/src/styles/pages/_ftp-server.scss b/frontend/src/styles/pages/_ftp-server.scss
index 884bb721..747f6f1e 100644
--- a/frontend/src/styles/pages/_ftp-server.scss
+++ b/frontend/src/styles/pages/_ftp-server.scss
@@ -78,10 +78,10 @@
padding: 20px;
background: var(--card-bg);
border-radius: 12px;
- border-left: 4px solid $border-subtle;
+ border: 1px solid $border-subtle;
&.success {
- border-left-color: var(--success);
+ border-color: fade($success, 45%);
.status-icon {
color: var(--success);
@@ -89,7 +89,7 @@
}
&.warning {
- border-left-color: var(--warning);
+ border-color: fade($warning, 45%);
.status-icon {
color: var(--warning);
diff --git a/frontend/src/styles/pages/_marketplace.scss b/frontend/src/styles/pages/_marketplace.scss
index b67423dc..c0588821 100644
--- a/frontend/src/styles/pages/_marketplace.scss
+++ b/frontend/src/styles/pages/_marketplace.scss
@@ -16,17 +16,7 @@
overflow: hidden;
border: 1px solid $border-subtle;
border-radius: $radius-lg;
- background:
- linear-gradient(135deg, fade($accent-primary-raw, 14%), transparent 36%),
- linear-gradient(180deg, fade($bg-elevated-raw, 88%), fade($bg-card-raw, 96%));
-
- &::before {
- content: '';
- position: absolute;
- inset: 0 0 auto;
- height: 2px;
- background: linear-gradient(90deg, $accent-primary, $success, $warning);
- }
+ background: $bg-card;
}
.marketplace-hero__content {
@@ -242,8 +232,7 @@
gap: $space-4;
min-height: 284px;
padding: $space-5;
- background:
- linear-gradient(180deg, fade($bg-elevated-raw, 76%), fade($bg-card-raw, 98%));
+ background: $bg-card;
transition:
transform $transition-base,
border-color $transition-base,
diff --git a/frontend/src/styles/pages/_monitoring.scss b/frontend/src/styles/pages/_monitoring.scss
index f9493c06..16e94b69 100644
--- a/frontend/src/styles/pages/_monitoring.scss
+++ b/frontend/src/styles/pages/_monitoring.scss
@@ -15,7 +15,7 @@
padding: $space-6;
border: 1px solid $border-subtle;
border-radius: $radius-lg;
- background: linear-gradient(135deg, $bg-card, $bg-elevated);
+ background: $bg-card;
&.is-active {
border-color: fade($success, 35%);
@@ -197,7 +197,7 @@
&.is-triggered {
border-color: fade($warning, 40%);
- background: linear-gradient(135deg, $bg-elevated, fade($warning, 6%));
+ background: $bg-elevated;
}
&__main {
@@ -381,10 +381,6 @@
}
}
- .monitoring-empty {
- min-height: 240px;
- }
-
.form-help {
display: block;
margin-top: $space-1;
diff --git a/frontend/src/styles/pages/_security.scss b/frontend/src/styles/pages/_security.scss
index 92e55bb7..bffa947f 100644
--- a/frontend/src/styles/pages/_security.scss
+++ b/frontend/src/styles/pages/_security.scss
@@ -357,15 +357,15 @@
padding: $space-4;
background: $bg-hover;
border-radius: $radius-md;
- border-left: 3px solid $border-subtle;
+ border: 1px solid $border-subtle;
&.malware {
- border-left-color: $danger;
+ border-color: fade($danger, 45%);
.event-icon { color: $danger; }
}
&.integrity {
- border-left-color: $warning;
+ border-color: fade($warning, 45%);
.event-icon { color: $warning; }
}
}
@@ -851,11 +851,11 @@
}
&.warning {
- border-left: 3px solid $warning;
+ border: 1px solid fade($warning, 45%);
}
&.suggestion {
- border-left: 3px solid $accent-primary;
+ border: 1px solid fade($accent-primary-raw, 45%);
}
}
}
diff --git a/frontend/src/styles/pages/_status-pages.scss b/frontend/src/styles/pages/_status-pages.scss
index cef0b136..fa0758a8 100644
--- a/frontend/src/styles/pages/_status-pages.scss
+++ b/frontend/src/styles/pages/_status-pages.scss
@@ -38,10 +38,6 @@
border-color: $accent-primary;
}
- &.active {
- box-shadow: inset 3px 0 0 $accent-primary;
- }
-
&__name {
font-size: $font-size-sm;
font-weight: $font-weight-semibold;
@@ -65,7 +61,7 @@
}
}
- .status-pages-empty {
+ .status-pages-list .empty-state {
min-height: 160px;
}
@@ -295,21 +291,20 @@
gap: $space-3;
padding: $space-4;
border: 1px solid $border-subtle;
- border-left-width: 3px;
border-radius: $radius-md;
background: $bg-elevated;
&--resolved {
- border-left-color: $success;
+ border-color: fade($success, 45%);
}
&--investigating,
&--identified {
- border-left-color: $warning;
+ border-color: fade($warning, 45%);
}
&--monitoring {
- border-left-color: $info;
+ border-color: fade($info, 45%);
}
&__header {
@@ -427,9 +422,7 @@
.public-status-page {
min-height: 100vh;
padding: clamp(24px, 4vw, 56px);
- background:
- linear-gradient(180deg, fade($accent-primary-raw, 8%) 0%, transparent 280px),
- $bg-body;
+ background: $bg-body;
color: $text-primary;
.public-status-hero,
@@ -587,7 +580,7 @@
gap: $space-3;
&--active {
- border-left: 3px solid $warning;
+ border-color: fade($warning, 45%);
}
> div {
diff --git a/frontend/src/styles/pages/_templates.scss b/frontend/src/styles/pages/_templates.scss
index 1818ba40..36271d3d 100644
--- a/frontend/src/styles/pages/_templates.scss
+++ b/frontend/src/styles/pages/_templates.scss
@@ -295,7 +295,7 @@
align-items: center;
gap: $space-1;
padding: $space-1 $space-2;
- background: linear-gradient(135deg, $color-star, #d97706);
+ background: $color-star;
border-radius: $radius-sm;
font-size: $font-size-xs;
font-weight: $font-weight-medium;
@@ -459,9 +459,7 @@
align-items: flex-start;
padding: $space-6;
border-bottom: 1px solid $border-subtle;
- background:
- linear-gradient(135deg, $accent-glow, transparent 42%),
- linear-gradient(135deg, $bg-card, $bg-elevated);
+ background: $bg-elevated;
}
.modal-body {
@@ -589,10 +587,11 @@
padding: $space-3;
background: $bg-hover;
border-radius: $radius-md;
- border-left: 3px solid transparent;
+ border: 1px solid $border-subtle;
&.required {
- border-left-color: $accent-primary;
+ border-color: fade($accent-primary-raw, 45%);
+ background: fade($accent-primary-raw, 8%);
}
.variable-header {
diff --git a/frontend/src/styles/pages/_wordpress-pipeline.scss b/frontend/src/styles/pages/_wordpress-pipeline.scss
index 4c74a598..266995ef 100644
--- a/frontend/src/styles/pages/_wordpress-pipeline.scss
+++ b/frontend/src/styles/pages/_wordpress-pipeline.scss
@@ -159,7 +159,7 @@
.wp-project-page {
.wp-icon {
- background: linear-gradient(135deg, $color-wordpress 0%, #1a5f7f 100%) !important;
+ background: $color-wordpress !important;
}
}
@@ -206,8 +206,7 @@
position: relative;
&.production {
- border-color: fade($color-danger, 30%);
- border-left: 3px solid $color-danger;
+ border-color: fade($color-danger, 45%);
}
&.locked {
@@ -1388,8 +1387,7 @@
}
&.default {
- border-color: fade($accent-primary-raw, 30%);
- border-left: 3px solid $color-primary;
+ border-color: fade($accent-primary-raw, 45%);
}
}
diff --git a/frontend/src/styles/pages/_wordpress.scss b/frontend/src/styles/pages/_wordpress.scss
index df63a22a..e3d4a0db 100644
--- a/frontend/src/styles/pages/_wordpress.scss
+++ b/frontend/src/styles/pages/_wordpress.scss
@@ -396,8 +396,7 @@
border-radius: $radius-lg;
&.production {
- border-color: fade($color-danger, 30%);
- border-left: 3px solid $color-danger;
+ border-color: fade($color-danger, 45%);
}
&.stale {
diff --git a/frontend/src/styles/pages/_workflow.scss b/frontend/src/styles/pages/_workflow.scss
index 1ebe2ebd..0119d7df 100644
--- a/frontend/src/styles/pages/_workflow.scss
+++ b/frontend/src/styles/pages/_workflow.scss
@@ -2003,7 +2003,7 @@
margin-left: $space-3;
margin-bottom: $space-2;
padding-left: $space-2;
- border-left: 2px solid $border-subtle;
+ border: 1px solid $border-subtle;
}
.palette-subitem {