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
Add Overview tab; revamp logs & services UI
Juan Denisaea2f01b3257
diff --git a/frontend/src/components/service-detail/LogsTab.jsx b/frontend/src/components/service-detail/LogsTab.jsxindex 3c40dba2..f7c75655 100644--- a/frontend/src/components/service-detail/LogsTab.jsx+++ b/frontend/src/components/service-detail/LogsTab.jsx@@ -1,66 +1,221 @@-import React, { useState, useEffect } from 'react';+import React, { useState, useEffect, useRef, useMemo } from 'react';import api from '../../services/api';+const LOG_LEVELS = ['all', 'error', 'warn', 'info', 'debug'];+const LogsTab = ({ app }) => {- const [logs, setLogs] = useState('');+ const [rawLogs, setRawLogs] = useState('');const [loading, setLoading] = useState(true);const [autoRefresh, setAutoRefresh] = useState(false);+ const [searchTerm, setSearchTerm] = useState('');+ const [levelFilter, setLevelFilter] = useState('all');+ const [lineCount, setLineCount] = useState(200);+ const [autoScroll, setAutoScroll] = useState(true);+ const logRef = useRef(null);const isDockerApp = app.app_type === 'docker';const isPythonApp = ['flask', 'django'].includes(app.app_type);useEffect(() => {loadLogs();- }, [app.id]);+ }, [app.id, lineCount]);useEffect(() => {if (!autoRefresh) return;const interval = setInterval(loadLogs, 5000);return () => clearInterval(interval);- }, [autoRefresh, app.id]);+ }, [autoRefresh, app.id, lineCount]);++ useEffect(() => {+ if (autoScroll && logRef.current) {+ logRef.current.scrollTop = logRef.current.scrollHeight;+ }+ }, [rawLogs, autoScroll]);async function loadLogs() {try {let data;if (isDockerApp) {- data = await api.getDockerAppLogs(app.id, 200);+ data = await api.getDockerAppLogs(app.id, lineCount);} else if (isPythonApp) {- data = await api.getPythonAppLogs(app.id, 200);+ data = await api.getPythonAppLogs(app.id, lineCount);} else {data = { logs: 'Logs not available for this app type.' };}- setLogs(data.logs || 'No logs available');+ setRawLogs(data.logs || 'No logs available');} catch (err) {console.error('Failed to load logs:', err);- setLogs('Failed to load logs');+ setRawLogs('Failed to load logs');} finally {setLoading(false);}}+ const filteredLines = useMemo(() => {+ if (!rawLogs) return [];+ let lines = rawLogs.split('\n');++ // Level filter+ if (levelFilter !== 'all') {+ lines = lines.filter(line => {+ const lower = line.toLowerCase();+ if (levelFilter === 'error') return lower.includes('error') || lower.includes('critical') || lower.includes('fatal');+ if (levelFilter === 'warn') return lower.includes('warn');+ if (levelFilter === 'info') return lower.includes('info');+ if (levelFilter === 'debug') return lower.includes('debug');+ return true;+ });+ }++ // Search filter+ if (searchTerm) {+ const term = searchTerm.toLowerCase();+ lines = lines.filter(line => line.toLowerCase().includes(term));+ }++ return lines;+ }, [rawLogs, searchTerm, levelFilter]);++ function getLineClass(line) {+ const lower = line.toLowerCase();+ if (lower.includes('error') || lower.includes('critical') || lower.includes('fatal')) return 'logs-viewer__line--error';+ if (lower.includes('warn')) return 'logs-viewer__line--warn';+ if (lower.includes('debug') || lower.includes('trace')) return 'logs-viewer__line--debug';+ return '';+ }++ function handleDownload() {+ const blob = new Blob([rawLogs], { type: 'text/plain' });+ const url = URL.createObjectURL(blob);+ const a = document.createElement('a');+ a.href = url;+ a.download = `${app.name}-logs-${new Date().toISOString().slice(0, 10)}.txt`;+ a.click();+ URL.revokeObjectURL(url);+ }++ function handleCopy() {+ navigator.clipboard.writeText(rawLogs);+ }++ const matchCount = searchTerm ? filteredLines.length : null;+return (- <div className="logs-tab">- <div className="logs-header">- <h3>Application Logs</h3>- <div className="logs-controls">- {isPythonApp && <span className="hint">Gunicorn/systemd Logs</span>}- {isDockerApp && <span className="hint">Docker Compose Logs</span>}- <label className="checkbox-inline">+ <div className="logs-tab-v2">+ {/* Toolbar */}+ <div className="logs-toolbar">+ <div className="logs-toolbar__left">+ <div className="logs-toolbar__search">+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <circle cx="11" cy="11" r="8"/>+ <line x1="21" y1="21" x2="16.65" y2="16.65"/>+ </svg><input- type="checkbox"- checked={autoRefresh}- onChange={(e) => setAutoRefresh(e.target.checked)}+ type="text"+ placeholder="Search logs..."+ value={searchTerm}+ onChange={(e) => setSearchTerm(e.target.value)}/>- Auto-refresh+ {matchCount !== null && (+ <span className="logs-toolbar__match-count">{matchCount} matches</span>+ )}+ </div>+ <select+ className="logs-toolbar__select"+ value={levelFilter}+ onChange={(e) => setLevelFilter(e.target.value)}+ >+ {LOG_LEVELS.map(l => (+ <option key={l} value={l}>+ {l === 'all' ? 'All Levels' : l.charAt(0).toUpperCase() + l.slice(1)}+ </option>+ ))}+ </select>+ <select+ className="logs-toolbar__select"+ value={lineCount}+ onChange={(e) => setLineCount(Number(e.target.value))}+ >+ <option value={100}>100 lines</option>+ <option value={200}>200 lines</option>+ <option value={500}>500 lines</option>+ <option value={1000}>1000 lines</option>+ </select>+ </div>+ <div className="logs-toolbar__right">+ <label className="logs-toolbar__toggle">+ <input type="checkbox" checked={autoScroll} onChange={(e) => setAutoScroll(e.target.checked)} />+ <span>Auto-scroll</span></label>- <button className="btn btn-secondary btn-sm" onClick={loadLogs}>- Refresh+ <label className="logs-toolbar__toggle">+ <input type="checkbox" checked={autoRefresh} onChange={(e) => setAutoRefresh(e.target.checked)} />+ <span>Live</span>+ </label>+ <div className="logs-toolbar__divider" />+ <button className="btn btn-ghost btn-sm" onClick={handleCopy} title="Copy logs">+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <rect x="9" y="9" width="13" height="13" rx="2" ry="2"/>+ <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>+ </svg>+ </button>+ <button className="btn btn-ghost btn-sm" onClick={handleDownload} title="Download logs">+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>+ <polyline points="7 10 12 15 17 10"/>+ <line x1="12" y1="15" x2="12" y2="3"/>+ </svg>+ </button>+ <button className="btn btn-ghost btn-sm" onClick={loadLogs} title="Refresh">+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <polyline points="23 4 23 10 17 10"/>+ <path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/>+ </svg></button></div></div>- <pre className="log-viewer">{loading ? 'Loading...' : logs}</pre>++ {/* Log Source Hint */}+ <div className="logs-source-hint">+ {isPythonApp && 'Gunicorn / systemd logs'}+ {isDockerApp && 'Docker Compose logs'}+ {!isPythonApp && !isDockerApp && 'Application logs'}+ {autoRefresh && <span className="logs-source-hint__live">LIVE</span>}+ </div>++ {/* Log Viewer */}+ <div className="logs-viewer" ref={logRef}>+ {loading ? (+ <div className="logs-viewer__loading">Loading logs...</div>+ ) : filteredLines.length === 0 ? (+ <div className="logs-viewer__empty">+ {searchTerm || levelFilter !== 'all'+ ? 'No log lines match your filters.'+ : 'No logs available.'}+ </div>+ ) : (+ filteredLines.map((line, i) => (+ <div key={i} className={`logs-viewer__line ${getLineClass(line)}`}>+ <span className="logs-viewer__line-num">{i + 1}</span>+ <span className="logs-viewer__line-text">+ {searchTerm ? highlightSearch(line, searchTerm) : line}+ </span>+ </div>+ ))+ )}+ </div></div>);};+function highlightSearch(text, term) {+ if (!term) return text;+ const regex = new RegExp(`(${term.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')})`, 'gi');+ const parts = text.split(regex);+ return parts.map((part, i) =>+ regex.test(part)+ ? <mark key={i} className="logs-viewer__highlight">{part}</mark>+ : part+ );+}+export default LogsTab;diff --git a/frontend/src/components/service-detail/OverviewTab.jsx b/frontend/src/components/service-detail/OverviewTab.jsxnew file mode 100644index 00000000..516b13fb--- /dev/null+++ b/frontend/src/components/service-detail/OverviewTab.jsx@@ -0,0 +1,340 @@+import React, { useState, useEffect } from 'react';+import api from '../../services/api';+import { useDeployments } from '../../hooks/useDeployments';+import { getDeployStatus, formatRelativeTime, formatDuration } from '../../utils/serviceTypes';++const OverviewTab = ({ app, deployConfig }) => {+ const [metrics, setMetrics] = useState(null);+ const [metricsLoading, setMetricsLoading] = useState(true);+ const { deployments, loading: deploymentsLoading } = useDeployments(app.id);++ const isDocker = app.app_type === 'docker';+ const isPython = ['flask', 'django'].includes(app.app_type);++ useEffect(() => {+ loadMetrics();+ const interval = setInterval(loadMetrics, 10000);+ return () => clearInterval(interval);+ }, [app.id]);++ async function loadMetrics() {+ try {+ if (isDocker) {+ const data = await api.getContainers(true);+ const appContainers = (data.containers || []).filter(c =>+ c.Names?.some(n => n.includes(app.name)) ||+ c.Labels?.['com.docker.compose.project'] === app.name+ );+ if (appContainers.length > 0) {+ const containerStats = await api.getContainerStats(appContainers[0].Id);+ setMetrics({+ cpu: parseFloat(containerStats.cpu_percent || containerStats.CPUPerc || 0),+ memory: parseFloat(containerStats.memory_percent || containerStats.MemPerc || 0),+ memUsage: containerStats.memory_usage || containerStats.MemUsage || 'N/A',+ netIO: containerStats.net_io || containerStats.NetIO || 'N/A',+ pids: containerStats.pids || containerStats.PIDs || 'N/A',+ });+ }+ } else if (isPython) {+ const data = await api.getPythonAppStatus(app.id);+ setMetrics({+ active: data.active,+ pid: data.pid,+ memory: data.memory,+ uptime: data.uptime,+ workers: data.workers,+ });+ }+ } catch (err) {+ console.error('Failed to load metrics:', err);+ } finally {+ setMetricsLoading(false);+ }+ }++ const successfulDeploys = deployments.filter(d => d.status === 'success');+ const failedDeploys = deployments.filter(d => d.status === 'failed');++ function getBarColor(percent) {+ if (percent > 80) return 'var(--danger, #ef4444)';+ if (percent > 60) return 'var(--warning, #f59e0b)';+ return 'var(--success, #10b981)';+ }++ return (+ <div className="overview-tab">+ {/* Quick Stats Row */}+ <div className="overview-tab__stats-row">+ <div className="overview-tab__stat-card">+ <div className="overview-tab__stat-icon overview-tab__stat-icon--status">+ <span className={`overview-tab__pulse overview-tab__pulse--${app.isRunning ? 'live' : 'stopped'}`} />+ </div>+ <div className="overview-tab__stat-info">+ <span className="overview-tab__stat-value">{app.isRunning ? 'Live' : 'Stopped'}</span>+ <span className="overview-tab__stat-label">Status</span>+ </div>+ </div>++ <div className="overview-tab__stat-card">+ <div className="overview-tab__stat-icon overview-tab__stat-icon--deploys">+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <polyline points="23 4 23 10 17 10"/>+ <path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/>+ </svg>+ </div>+ <div className="overview-tab__stat-info">+ <span className="overview-tab__stat-value">{deployments.length}</span>+ <span className="overview-tab__stat-label">Total Deploys</span>+ </div>+ </div>++ <div className="overview-tab__stat-card">+ <div className="overview-tab__stat-icon overview-tab__stat-icon--success">+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <polyline points="20 6 9 17 4 12"/>+ </svg>+ </div>+ <div className="overview-tab__stat-info">+ <span className="overview-tab__stat-value">{successfulDeploys.length}</span>+ <span className="overview-tab__stat-label">Successful</span>+ </div>+ </div>++ <div className="overview-tab__stat-card">+ <div className="overview-tab__stat-icon overview-tab__stat-icon--failed">+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <line x1="18" y1="6" x2="6" y2="18"/>+ <line x1="6" y1="6" x2="18" y2="18"/>+ </svg>+ </div>+ <div className="overview-tab__stat-info">+ <span className="overview-tab__stat-value">{failedDeploys.length}</span>+ <span className="overview-tab__stat-label">Failed</span>+ </div>+ </div>+ </div>++ <div className="overview-tab__grid">+ {/* Service Info Card */}+ <div className="overview-tab__card">+ <h3 className="overview-tab__card-title">Service Info</h3>+ <div className="overview-tab__info-list">+ <div className="overview-tab__info-row">+ <span className="overview-tab__info-label">Type</span>+ <span+ className="overview-tab__info-badge"+ style={{ backgroundColor: app.typeInfo.bgColor, color: app.typeInfo.color, borderColor: app.typeInfo.borderColor }}+ >+ {app.typeInfo.label}+ </span>+ </div>+ {app.domain && (+ <div className="overview-tab__info-row">+ <span className="overview-tab__info-label">Domain</span>+ <a+ href={`https://${app.domain}`}+ target="_blank"+ rel="noopener noreferrer"+ className="overview-tab__info-link"+ >+ {app.domain}+ <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>+ <polyline points="15 3 21 3 21 9"/>+ <line x1="10" y1="14" x2="21" y2="3"/>+ </svg>+ </a>+ </div>+ )}+ {app.port && (+ <div className="overview-tab__info-row">+ <span className="overview-tab__info-label">Port</span>+ <span className="overview-tab__info-value mono">{app.port}</span>+ </div>+ )}+ <div className="overview-tab__info-row">+ <span className="overview-tab__info-label">Created</span>+ <span className="overview-tab__info-value">+ {new Date(app.created_at).toLocaleDateString('en-US', {+ year: 'numeric', month: 'short', day: 'numeric'+ })}+ </span>+ </div>+ {deployConfig && (+ <div className="overview-tab__info-row">+ <span className="overview-tab__info-label">Repository</span>+ <span className="overview-tab__info-value mono">+ {extractRepoDisplay(deployConfig.repo_url)}+ <span className="overview-tab__branch">{deployConfig.branch || 'main'}</span>+ </span>+ </div>+ )}+ {app.environment_type && app.environment_type !== 'standalone' && (+ <div className="overview-tab__info-row">+ <span className="overview-tab__info-label">Environment</span>+ <span className={`overview-tab__env-badge overview-tab__env-badge--${app.environment_type}`}>+ {app.environment_type}+ </span>+ </div>+ )}+ </div>+ </div>++ {/* Resource Usage Card */}+ <div className="overview-tab__card">+ <h3 className="overview-tab__card-title">Resource Usage</h3>+ {metricsLoading ? (+ <div className="overview-tab__loading">Loading metrics...</div>+ ) : isDocker && metrics ? (+ <div className="overview-tab__metrics">+ <div className="overview-tab__metric">+ <div className="overview-tab__metric-header">+ <span>CPU</span>+ <span className="overview-tab__metric-value">{metrics.cpu.toFixed(1)}%</span>+ </div>+ <div className="overview-tab__metric-bar">+ <div+ className="overview-tab__metric-bar-fill"+ style={{ width: `${Math.min(metrics.cpu, 100)}%`, backgroundColor: getBarColor(metrics.cpu) }}+ />+ </div>+ </div>+ <div className="overview-tab__metric">+ <div className="overview-tab__metric-header">+ <span>Memory</span>+ <span className="overview-tab__metric-value">{metrics.memory.toFixed(1)}%</span>+ </div>+ <div className="overview-tab__metric-bar">+ <div+ className="overview-tab__metric-bar-fill"+ style={{ width: `${Math.min(metrics.memory, 100)}%`, backgroundColor: getBarColor(metrics.memory) }}+ />+ </div>+ <span className="overview-tab__metric-detail">{metrics.memUsage}</span>+ </div>+ <div className="overview-tab__metric-row">+ <div className="overview-tab__metric-item">+ <span className="overview-tab__metric-item-label">Network I/O</span>+ <span className="overview-tab__metric-item-value">{metrics.netIO}</span>+ </div>+ <div className="overview-tab__metric-item">+ <span className="overview-tab__metric-item-label">Processes</span>+ <span className="overview-tab__metric-item-value">{metrics.pids}</span>+ </div>+ </div>+ </div>+ ) : isPython && metrics ? (+ <div className="overview-tab__metrics">+ <div className="overview-tab__metric-row">+ <div className="overview-tab__metric-item">+ <span className="overview-tab__metric-item-label">Status</span>+ <span className="overview-tab__metric-item-value">+ {metrics.active ? 'Active' : 'Inactive'}+ </span>+ </div>+ {metrics.pid && (+ <div className="overview-tab__metric-item">+ <span className="overview-tab__metric-item-label">PID</span>+ <span className="overview-tab__metric-item-value mono">{metrics.pid}</span>+ </div>+ )}+ </div>+ {metrics.memory && (+ <div className="overview-tab__metric-row">+ <div className="overview-tab__metric-item">+ <span className="overview-tab__metric-item-label">Memory</span>+ <span className="overview-tab__metric-item-value">{metrics.memory}</span>+ </div>+ {metrics.workers && (+ <div className="overview-tab__metric-item">+ <span className="overview-tab__metric-item-label">Workers</span>+ <span className="overview-tab__metric-item-value">{metrics.workers}</span>+ </div>+ )}+ </div>+ )}+ {metrics.uptime && (+ <div className="overview-tab__metric-row">+ <div className="overview-tab__metric-item">+ <span className="overview-tab__metric-item-label">Uptime</span>+ <span className="overview-tab__metric-item-value">{metrics.uptime}</span>+ </div>+ </div>+ )}+ </div>+ ) : (+ <div className="overview-tab__no-metrics">+ <p>{app.isRunning ? 'No metrics available for this service type.' : 'Start the service to view metrics.'}</p>+ </div>+ )}+ </div>+ </div>++ {/* Recent Deployments */}+ <div className="overview-tab__card overview-tab__card--full">+ <div className="overview-tab__card-header-row">+ <h3 className="overview-tab__card-title">Recent Deployments</h3>+ {deployments.length > 3 && (+ <span className="overview-tab__see-all">+ {deployments.length} total+ </span>+ )}+ </div>+ {deploymentsLoading ? (+ <div className="overview-tab__loading">Loading...</div>+ ) : deployments.length === 0 ? (+ <div className="overview-tab__no-deploys">+ <p>No deployments yet. Deploy your service to see history here.</p>+ </div>+ ) : (+ <div className="overview-tab__deploy-list">+ {deployments.slice(0, 5).map((deploy, idx) => {+ const statusInfo = getDeployStatus(deploy.status);+ const isLatest = idx === 0 && deploy.status === 'success';+ return (+ <div key={deploy.id} className="overview-tab__deploy-row">+ <div+ className="overview-tab__deploy-dot"+ style={{ backgroundColor: statusInfo.color }}+ />+ <div className="overview-tab__deploy-info">+ <span className="overview-tab__deploy-message">+ {deploy.commitMessage || deploy.version || `Deployment #${deployments.length - idx}`}+ </span>+ <span className="overview-tab__deploy-meta">+ {deploy.commitSha && (+ <span className="overview-tab__deploy-sha">{deploy.commitSha.substring(0, 7)}</span>+ )}+ {deploy.branch && <span>{deploy.branch}</span>}+ {deploy.duration && <span>{formatDuration(deploy.duration)}</span>}+ <span>{formatRelativeTime(deploy.timestamp)}</span>+ </span>+ </div>+ <span+ className="overview-tab__deploy-badge"+ style={{ backgroundColor: statusInfo.color + '1a', color: statusInfo.color }}+ >+ {isLatest ? 'Live' : statusInfo.label}+ </span>+ </div>+ );+ })}+ </div>+ )}+ </div>+ </div>+ );+};++function extractRepoDisplay(url) {+ if (!url) return '';+ try {+ const cleaned = url.replace(/\.git$/, '');+ const parts = cleaned.split('/');+ return parts.slice(-2).join('/');+ } catch {+ return url;+ }+}++export default OverviewTab;diff --git a/frontend/src/pages/ServiceDetail.jsx b/frontend/src/pages/ServiceDetail.jsxindex 3ec73f30..c7931261 100644--- a/frontend/src/pages/ServiceDetail.jsx+++ b/frontend/src/pages/ServiceDetail.jsx@@ -15,8 +15,10 @@ import PackagesTab from '../components/service-detail/PackagesTab';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';const TAB_LABELS = {+ overview: 'Overview',events: 'Events',logs: 'Logs',environment: 'Environment',@@ -34,7 +36,7 @@ const ServiceDetail = () => {const toast = useToast();const { confirm, confirmState, handleConfirm, handleCancel } = useConfirm();const { service, deployConfig, loading, error, reload, performAction, deleteService } = useService(id);- const [activeTab, setActiveTab] = useState('events');+ const [activeTab, setActiveTab] = useState('overview');const [showDeployMenu, setShowDeployMenu] = useState(false);const [showMoreMenu, setShowMoreMenu] = useState(false);const [showGitModal, setShowGitModal] = useState(false);@@ -309,6 +311,7 @@ const ServiceDetail = () => {{/* Tab Content */}<div className="svc-detail__content">+ {activeTab === 'overview' && <OverviewTab app={service} deployConfig={deployConfig} />}{activeTab === 'events' && <EventsTab appId={service.id} />}{activeTab === 'logs' && <LogsTab app={service} />}{activeTab === 'environment' && <EnvironmentVariables appId={service.id} />}diff --git a/frontend/src/pages/Services.jsx b/frontend/src/pages/Services.jsxindex 17999f9b..35983eae 100644--- a/frontend/src/pages/Services.jsx+++ b/frontend/src/pages/Services.jsx@@ -6,6 +6,14 @@ import { getServiceType, getStatusConfig, formatRelativeTime } from '../utils/seconst SERVICE_TYPE_OPTIONS = ['all', 'docker', 'flask', 'django', 'php', 'static', 'wordpress'];const STATUS_OPTIONS = ['all', 'running', 'stopped'];+const SORT_OPTIONS = [+ { value: 'name-asc', label: 'Name A-Z' },+ { value: 'name-desc', label: 'Name Z-A' },+ { value: 'status', label: 'Status' },+ { value: 'type', label: 'Type' },+ { value: 'recent', label: 'Recently deployed' },+ { value: 'created', label: 'Recently created' },+];const Services = () => {const navigate = useNavigate();@@ -15,7 +23,10 @@ const Services = () => {const [searchTerm, setSearchTerm] = useState('');const [typeFilter, setTypeFilter] = useState('all');const [statusFilter, setStatusFilter] = useState('all');+ const [sortBy, setSortBy] = useState('status');const [actionLoading, setActionLoading] = useState(null);+ const [selectedIds, setSelectedIds] = useState(new Set());+ const [bulkLoading, setBulkLoading] = useState(false);useEffect(() => {loadApps();@@ -47,26 +58,83 @@ const Services = () => {}}+ async function handleBulkAction(action) {+ if (selectedIds.size === 0) return;+ setBulkLoading(true);+ try {+ const promises = [...selectedIds].map(id => {+ if (action === 'start') return api.startApp(id);+ if (action === 'stop') return api.stopApp(id);+ if (action === 'restart') return api.restartApp(id);+ return Promise.resolve();+ });+ await Promise.allSettled(promises);+ toast.success(`${action} sent to ${selectedIds.size} service(s)`);+ setSelectedIds(new Set());+ await loadApps();+ } catch (err) {+ toast.error(`Bulk ${action} failed`);+ } finally {+ setBulkLoading(false);+ }+ }++ function toggleSelect(e, appId) {+ e.stopPropagation();+ setSelectedIds(prev => {+ const next = new Set(prev);+ if (next.has(appId)) next.delete(appId);+ else next.add(appId);+ return next;+ });+ }++ function toggleSelectAll() {+ if (selectedIds.size === filteredApps.length) {+ setSelectedIds(new Set());+ } else {+ setSelectedIds(new Set(filteredApps.map(a => a.id)));+ }+ }+const filteredApps = useMemo(() => {- return apps.filter(app => {- if (searchTerm && !app.name.toLowerCase().includes(searchTerm.toLowerCase())) {- return false;- }- if (typeFilter !== 'all' && app.app_type !== typeFilter) {- return false;- }- if (statusFilter !== 'all' && app.status !== statusFilter) {- return false;- }+ let result = apps.filter(app => {+ if (searchTerm && !app.name.toLowerCase().includes(searchTerm.toLowerCase())) return false;+ if (typeFilter !== 'all' && app.app_type !== typeFilter) return false;+ if (statusFilter !== 'all' && (statusFilter === 'running' ? app.status !== 'running' : app.status === 'running')) return false;return true;});- }, [apps, searchTerm, typeFilter, statusFilter]);- const stats = useMemo(() => ({- total: apps.length,- running: apps.filter(a => a.status === 'running').length,- stopped: apps.filter(a => a.status !== 'running').length,- }), [apps]);+ result.sort((a, b) => {+ switch (sortBy) {+ case 'name-asc': return a.name.localeCompare(b.name);+ case 'name-desc': return b.name.localeCompare(a.name);+ case 'status': {+ const order = { running: 0, deploying: 1, building: 2, stopped: 3, failed: 4 };+ return (order[a.status] ?? 5) - (order[b.status] ?? 5);+ }+ case 'type': return (a.app_type || '').localeCompare(b.app_type || '');+ case 'recent': return new Date(b.last_deploy_at || 0) - new Date(a.last_deploy_at || 0);+ case 'created': return new Date(b.created_at || 0) - new Date(a.created_at || 0);+ default: return 0;+ }+ });++ return result;+ }, [apps, searchTerm, typeFilter, statusFilter, sortBy]);++ const stats = useMemo(() => {+ const running = apps.filter(a => a.status === 'running').length;+ const stopped = apps.filter(a => a.status !== 'running').length;+ const types = {};+ apps.forEach(a => { types[a.app_type] = (types[a.app_type] || 0) + 1; });+ const topType = Object.entries(types).sort((a, b) => b[1] - a[1])[0];+ const recentDeploy = apps+ .filter(a => a.last_deploy_at)+ .sort((a, b) => new Date(b.last_deploy_at) - new Date(a.last_deploy_at))[0];++ return { total: apps.length, running, stopped, topType, recentDeploy };+ }, [apps]);if (loading) {return <div className="loading">Loading services...</div>;@@ -90,6 +158,66 @@ const Services = () => {</Link></div>+ {/* Summary Cards */}+ {apps.length > 0 && (+ <div className="services-page__summary">+ <div className="services-page__summary-card">+ <div className="services-page__summary-icon services-page__summary-icon--live">+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <path d="M22 12h-4l-3 9L9 3l-3 9H2"/>+ </svg>+ </div>+ <div className="services-page__summary-info">+ <span className="services-page__summary-value">{stats.running}</span>+ <span className="services-page__summary-label">Running</span>+ </div>+ </div>+ <div className="services-page__summary-card">+ <div className="services-page__summary-icon services-page__summary-icon--stopped">+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <circle cx="12" cy="12" r="10"/>+ <line x1="15" y1="9" x2="9" y2="15"/>+ <line x1="9" y1="9" x2="15" y2="15"/>+ </svg>+ </div>+ <div className="services-page__summary-info">+ <span className="services-page__summary-value">{stats.stopped}</span>+ <span className="services-page__summary-label">Stopped</span>+ </div>+ </div>+ <div className="services-page__summary-card">+ <div className="services-page__summary-icon services-page__summary-icon--type">+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/>+ </svg>+ </div>+ <div className="services-page__summary-info">+ <span className="services-page__summary-value">{stats.total}</span>+ <span className="services-page__summary-label">+ Total{stats.topType ? ` (${stats.topType[1]} ${stats.topType[0]})` : ''}+ </span>+ </div>+ </div>+ <div className="services-page__summary-card">+ <div className="services-page__summary-icon services-page__summary-icon--deploy">+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <polyline points="23 4 23 10 17 10"/>+ <path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/>+ </svg>+ </div>+ <div className="services-page__summary-info">+ <span className="services-page__summary-value">+ {stats.recentDeploy ? formatRelativeTime(stats.recentDeploy.last_deploy_at) : 'N/A'}+ </span>+ <span className="services-page__summary-label">+ Last Deploy{stats.recentDeploy ? ` (${stats.recentDeploy.name})` : ''}+ </span>+ </div>+ </div>+ </div>+ )}++ {/* Filters + Sort */}<div className="services-page__filters"><div className="services-page__search"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">@@ -125,8 +253,38 @@ const Services = () => {</option>))}</select>+ <select+ value={sortBy}+ onChange={(e) => setSortBy(e.target.value)}+ className="services-page__filter-select"+ >+ {SORT_OPTIONS.map(opt => (+ <option key={opt.value} value={opt.value}>{opt.label}</option>+ ))}+ </select></div>+ {/* Bulk Actions Bar */}+ {selectedIds.size > 0 && (+ <div className="services-page__bulk-bar">+ <span>{selectedIds.size} selected</span>+ <div className="services-page__bulk-actions">+ <button className="btn btn-sm" onClick={() => handleBulkAction('restart')} disabled={bulkLoading}>+ Restart All+ </button>+ <button className="btn btn-sm" onClick={() => handleBulkAction('stop')} disabled={bulkLoading}>+ Stop All+ </button>+ <button className="btn btn-sm" onClick={() => handleBulkAction('start')} disabled={bulkLoading}>+ Start All+ </button>+ <button className="btn btn-ghost btn-sm" onClick={() => setSelectedIds(new Set())}>+ Clear+ </button>+ </div>+ </div>+ )}+{filteredApps.length === 0 ? (<div className="services-page__empty"><div className="services-page__empty-icon">@@ -144,6 +302,24 @@ const Services = () => {</div>) : (<div className="services-page__list">+ {/* List Header */}+ <div className="services-page__list-header">+ <div className="services-page__list-header-left">+ <input+ type="checkbox"+ checked={selectedIds.size === filteredApps.length && filteredApps.length > 0}+ onChange={toggleSelectAll}+ className="services-page__checkbox"+ />+ <span>Service</span>+ </div>+ <div className="services-page__list-header-right">+ <span>Status</span>+ <span>Last Deploy</span>+ <span>Actions</span>+ </div>+ </div>+{filteredApps.map(app => {const typeInfo = getServiceType(app.app_type);const statusInfo = getStatusConfig(app.status);@@ -152,7 +328,7 @@ const Services = () => {return (<divkey={app.id}- className="services-page__row"+ className={`services-page__row ${selectedIds.has(app.id) ? 'services-page__row--selected' : ''}`}onClick={() => {if (app.app_type === 'wordpress') {navigate(`/wordpress/${app.id}`);@@ -162,6 +338,13 @@ const Services = () => {}}><div className="services-page__row-main">+ <input+ type="checkbox"+ checked={selectedIds.has(app.id)}+ onChange={(e) => toggleSelect(e, app.id)}+ onClick={(e) => e.stopPropagation()}+ className="services-page__checkbox"+ /><divclassName="services-page__type-icon"style={{ backgroundColor: typeInfo.bgColor, color: typeInfo.color }}@@ -211,17 +394,29 @@ const Services = () => {<div className="services-page__actions" onClick={e => e.stopPropagation()}>{isRunning ? (- <button- className="btn btn-ghost btn-sm"- onClick={(e) => handleAction(e, app.id, 'restart')}- disabled={actionLoading === `${app.id}-restart`}- title="Restart"- >- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">- <polyline points="23 4 23 10 17 10"/>- <path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/>- </svg>- </button>+ <>+ <button+ className="btn btn-ghost btn-sm"+ onClick={(e) => handleAction(e, app.id, 'restart')}+ disabled={actionLoading === `${app.id}-restart`}+ title="Restart"+ >+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <polyline points="23 4 23 10 17 10"/>+ <path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/>+ </svg>+ </button>+ <button+ className="btn btn-ghost btn-sm"+ onClick={(e) => handleAction(e, app.id, 'stop')}+ disabled={actionLoading === `${app.id}-stop`}+ title="Stop"+ >+ <svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor">+ <rect x="6" y="6" width="12" height="12" rx="1"/>+ </svg>+ </button>+ </>) : (<buttonclassName="btn btn-ghost btn-sm"diff --git a/frontend/src/styles/pages/_service-detail.scss b/frontend/src/styles/pages/_service-detail.scssindex db227384..7bfe114d 100644--- a/frontend/src/styles/pages/_service-detail.scss+++ b/frontend/src/styles/pages/_service-detail.scss@@ -672,3 +672,529 @@padding: $space-2 !important;min-width: auto !important;}++// ============================================+// OVERVIEW TAB+// ============================================+.overview-tab {+ &__stats-row {+ display: grid;+ grid-template-columns: repeat(4, 1fr);+ gap: $space-4;+ margin-bottom: $space-6;++ @media (max-width: $breakpoint-md) {+ grid-template-columns: repeat(2, 1fr);+ }+ }++ &__stat-card {+ display: flex;+ align-items: center;+ gap: $space-3;+ padding: $space-4 $space-5;+ background: $bg-card;+ border: 1px solid $border-default;+ border-radius: $radius-lg;+ }++ &__stat-icon {+ width: 36px;+ height: 36px;+ border-radius: $radius-lg;+ display: flex;+ align-items: center;+ justify-content: center;+ flex-shrink: 0;++ &--status { background: $bg-secondary; }+ &--deploys { background: $info-bg; color: $info; }+ &--success { background: $success-bg; color: $success; }+ &--failed { background: $danger-bg; color: $danger; }+ }++ &__pulse {+ width: 10px;+ height: 10px;+ border-radius: 50%;++ &--live {+ background: $success;+ animation: pulse-dot 2s ease-in-out infinite;+ }++ &--stopped {+ background: $text-tertiary;+ }+ }++ &__stat-info {+ display: flex;+ flex-direction: column;+ }++ &__stat-value {+ font-size: $font-size-lg;+ font-weight: $font-weight-bold;+ color: $text-primary;+ line-height: 1.2;+ }++ &__stat-label {+ font-size: $font-size-xs;+ color: $text-tertiary;+ }++ // Grid layout for info + metrics+ &__grid {+ display: grid;+ grid-template-columns: 1fr 1fr;+ gap: $space-4;+ margin-bottom: $space-6;++ @media (max-width: $breakpoint-md) {+ grid-template-columns: 1fr;+ }+ }++ &__card {+ background: $bg-card;+ border: 1px solid $border-default;+ border-radius: $radius-lg;+ padding: $space-5;++ &--full {+ grid-column: 1 / -1;+ }+ }++ &__card-title {+ font-size: $font-size-base;+ font-weight: $font-weight-semibold;+ color: $text-primary;+ margin: 0 0 $space-4;+ }++ &__card-header-row {+ display: flex;+ justify-content: space-between;+ align-items: center;+ margin-bottom: $space-4;++ .overview-tab__card-title {+ margin: 0;+ }+ }++ &__see-all {+ font-size: $font-size-xs;+ color: $text-tertiary;+ }++ // Service Info List+ &__info-list {+ display: flex;+ flex-direction: column;+ }++ &__info-row {+ display: flex;+ justify-content: space-between;+ align-items: center;+ padding: $space-3 0;++ & + & {+ border-top: 1px solid $border-subtle;+ }+ }++ &__info-label {+ font-size: $font-size-sm;+ color: $text-tertiary;+ }++ &__info-value {+ font-size: $font-size-sm;+ color: $text-primary;++ &.mono {+ font-family: $font-mono;+ font-size: $font-size-xs;+ }+ }++ &__info-badge {+ font-size: $font-size-xs;+ font-weight: $font-weight-medium;+ padding: 2px $space-2;+ border-radius: $radius-full;+ border: 1px solid;+ }++ &__info-link {+ display: inline-flex;+ align-items: center;+ gap: $space-1;+ font-size: $font-size-sm;+ color: $accent-primary;+ text-decoration: none;++ &:hover {+ text-decoration: underline;+ }+ }++ &__branch {+ margin-left: $space-2;+ color: $accent-primary;+ font-weight: $font-weight-medium;+ }++ &__env-badge {+ font-size: $font-size-xs;+ font-weight: $font-weight-medium;+ padding: 2px $space-2;+ border-radius: $radius-sm;+ text-transform: capitalize;++ &--production { background: $danger-bg; color: $danger; }+ &--staging { background: $warning-bg; color: $warning; }+ &--development { background: $info-bg; color: $info; }+ }++ // Resource metrics+ &__metrics {+ display: flex;+ flex-direction: column;+ gap: $space-4;+ }++ &__metric-header {+ display: flex;+ justify-content: space-between;+ align-items: center;+ margin-bottom: $space-2;+ font-size: $font-size-sm;+ color: $text-secondary;+ }++ &__metric-value {+ font-weight: $font-weight-bold;+ color: $text-primary;+ }++ &__metric-bar {+ height: 6px;+ background: $bg-secondary;+ border-radius: $radius-full;+ overflow: hidden;+ }++ &__metric-bar-fill {+ height: 100%;+ border-radius: $radius-full;+ transition: width $transition-slow;+ }++ &__metric-detail {+ font-size: $font-size-xs;+ color: $text-tertiary;+ margin-top: $space-1;+ }++ &__metric-row {+ display: grid;+ grid-template-columns: 1fr 1fr;+ gap: $space-3;+ }++ &__metric-item {+ display: flex;+ flex-direction: column;+ gap: 2px;+ }++ &__metric-item-label {+ font-size: $font-size-xs;+ color: $text-tertiary;+ }++ &__metric-item-value {+ font-size: $font-size-sm;+ font-weight: $font-weight-medium;+ color: $text-primary;++ &.mono {+ font-family: $font-mono;+ }+ }++ &__loading, &__no-metrics, &__no-deploys {+ padding: $space-6;+ text-align: center;+ color: $text-tertiary;+ font-size: $font-size-sm;+ }++ // Recent Deployments list+ &__deploy-list {+ display: flex;+ flex-direction: column;+ }++ &__deploy-row {+ display: flex;+ align-items: center;+ gap: $space-3;+ padding: $space-3 0;++ & + & {+ border-top: 1px solid $border-subtle;+ }+ }++ &__deploy-dot {+ width: 8px;+ height: 8px;+ border-radius: 50%;+ flex-shrink: 0;+ }++ &__deploy-info {+ flex: 1;+ min-width: 0;+ }++ &__deploy-message {+ font-size: $font-size-sm;+ color: $text-primary;+ font-weight: $font-weight-medium;+ display: block;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ }++ &__deploy-meta {+ display: flex;+ align-items: center;+ gap: $space-3;+ font-size: $font-size-xs;+ color: $text-tertiary;+ margin-top: 2px;+ }++ &__deploy-sha {+ font-family: $font-mono;+ color: $accent-primary;+ background: $accent-glow;+ padding: 0 $space-1;+ border-radius: $radius-sm;+ }++ &__deploy-badge {+ font-size: $font-size-xs;+ font-weight: $font-weight-medium;+ padding: 2px $space-2;+ border-radius: $radius-sm;+ flex-shrink: 0;+ }+}++// ============================================+// LOGS TAB V2+// ============================================+.logs-tab-v2 {+ display: flex;+ flex-direction: column;+ gap: 0;+}++.logs-toolbar {+ display: flex;+ justify-content: space-between;+ align-items: center;+ gap: $space-3;+ padding: $space-3 $space-4;+ background: $bg-card;+ border: 1px solid $border-default;+ border-radius: $radius-lg $radius-lg 0 0;++ &__left {+ display: flex;+ align-items: center;+ gap: $space-3;+ flex: 1;+ }++ &__right {+ display: flex;+ align-items: center;+ gap: $space-2;+ flex-shrink: 0;+ }++ &__search {+ display: flex;+ align-items: center;+ gap: $space-2;+ background: $bg-body;+ border: 1px solid $border-default;+ border-radius: $radius-md;+ padding: 0 $space-2;+ flex: 1;+ max-width: 300px;++ &:focus-within {+ border-color: $accent-primary;+ }++ svg {+ color: $text-tertiary;+ flex-shrink: 0;+ }++ input {+ flex: 1;+ background: none;+ border: none;+ padding: $space-1 0;+ color: $text-primary;+ font-size: $font-size-sm;+ outline: none;+ min-width: 0;++ &::placeholder {+ color: $text-tertiary;+ }+ }+ }++ &__match-count {+ font-size: $font-size-xs;+ color: $accent-primary;+ white-space: nowrap;+ }++ &__select {+ background: $bg-body;+ border: 1px solid $border-default;+ border-radius: $radius-md;+ padding: $space-1 $space-2;+ color: $text-secondary;+ font-size: $font-size-xs;+ outline: none;+ cursor: pointer;++ &:focus { border-color: $accent-primary; }+ }++ &__toggle {+ display: flex;+ align-items: center;+ gap: $space-1;+ font-size: $font-size-xs;+ color: $text-tertiary;+ cursor: pointer;+ white-space: nowrap;++ input {+ accent-color: var(--accent-primary, #6366f1);+ }+ }++ &__divider {+ width: 1px;+ height: 16px;+ background: $border-default;+ }+}++.logs-source-hint {+ display: flex;+ align-items: center;+ gap: $space-2;+ padding: $space-1 $space-4;+ background: $bg-elevated;+ border-left: 1px solid $border-default;+ border-right: 1px solid $border-default;+ font-size: $font-size-xs;+ color: $text-tertiary;++ &__live {+ font-size: 9px;+ font-weight: $font-weight-bold;+ padding: 1px $space-1;+ background: $danger;+ color: white;+ border-radius: $radius-sm;+ animation: pulse-dot 1.5s ease-in-out infinite;+ }+}++.logs-viewer {+ background: #0d1117;+ border: 1px solid $border-default;+ border-top: none;+ border-radius: 0 0 $radius-lg $radius-lg;+ min-height: 400px;+ max-height: 600px;+ overflow-y: auto;+ font-family: $font-mono;+ font-size: $font-size-xs;+ line-height: 1.7;+ scroll-behavior: smooth;++ &__loading, &__empty {+ padding: $space-8;+ text-align: center;+ color: #8b949e;+ }++ &__line {+ display: flex;+ padding: 0 $space-4;+ transition: background 0.1s;++ &:hover {+ background: rgba(255, 255, 255, 0.03);+ }++ &--error {+ background: rgba(248, 81, 73, 0.06);+ .logs-viewer__line-text { color: #f85149; }+ }++ &--warn {+ background: rgba(210, 153, 34, 0.06);+ .logs-viewer__line-text { color: #d29922; }+ }++ &--debug {+ .logs-viewer__line-text { color: #8b949e; }+ }+ }++ &__line-num {+ width: 48px;+ padding-right: $space-3;+ color: #484f58;+ text-align: right;+ flex-shrink: 0;+ user-select: none;+ }++ &__line-text {+ flex: 1;+ color: #e6edf3;+ white-space: pre-wrap;+ word-break: break-all;+ }++ &__highlight {+ background: rgba(210, 153, 34, 0.3);+ color: #e6edf3;+ border-radius: 2px;+ padding: 0 1px;+ }+}diff --git a/frontend/src/styles/pages/_services.scss b/frontend/src/styles/pages/_services.scssindex 0aaca24c..98198d16 100644--- a/frontend/src/styles/pages/_services.scss+++ b/frontend/src/styles/pages/_services.scss@@ -259,6 +259,129 @@color: $text-tertiary;opacity: 0.5;}++ // Summary Cards+ &__summary {+ display: grid;+ grid-template-columns: repeat(4, 1fr);+ gap: $space-4;+ margin-bottom: $space-6;++ @media (max-width: $breakpoint-lg) {+ grid-template-columns: repeat(2, 1fr);+ }++ @media (max-width: $breakpoint-sm) {+ grid-template-columns: 1fr;+ }+ }++ &__summary-card {+ display: flex;+ align-items: center;+ gap: $space-3;+ padding: $space-4 $space-5;+ background: $bg-card;+ border: 1px solid $border-default;+ border-radius: $radius-lg;+ }++ &__summary-icon {+ width: 36px;+ height: 36px;+ border-radius: $radius-lg;+ display: flex;+ align-items: center;+ justify-content: center;+ flex-shrink: 0;++ &--live { background: $success-bg; color: $success; }+ &--stopped { background: $danger-bg; color: $danger; }+ &--type { background: $info-bg; color: $info; }+ &--deploy { background: $warning-bg; color: $warning; }+ }++ &__summary-info {+ display: flex;+ flex-direction: column;+ min-width: 0;+ }++ &__summary-value {+ font-size: $font-size-lg;+ font-weight: $font-weight-bold;+ color: $text-primary;+ line-height: 1.2;+ }++ &__summary-label {+ font-size: $font-size-xs;+ color: $text-tertiary;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ }++ // List Header+ &__list-header {+ display: flex;+ justify-content: space-between;+ align-items: center;+ padding: $space-2 $space-5;+ font-size: $font-size-xs;+ color: $text-tertiary;+ font-weight: $font-weight-medium;+ text-transform: uppercase;+ letter-spacing: 0.05em;+ border-bottom: 1px solid $border-subtle;+ background: $bg-elevated;+ }++ &__list-header-left {+ display: flex;+ align-items: center;+ gap: $space-3;+ }++ &__list-header-right {+ display: flex;+ align-items: center;+ gap: $space-8;+ }++ // Checkbox+ &__checkbox {+ width: 16px;+ height: 16px;+ accent-color: var(--accent-primary, #6366f1);+ cursor: pointer;+ flex-shrink: 0;+ }++ // Row selected state+ &__row--selected {+ background: var(--accent-glow, rgba(99, 102, 241, 0.08)) !important;+ }++ // Bulk Actions Bar+ &__bulk-bar {+ display: flex;+ justify-content: space-between;+ align-items: center;+ padding: $space-3 $space-5;+ background: var(--accent-glow, rgba(99, 102, 241, 0.08));+ border: 1px solid var(--accent-primary, #6366f1);+ border-radius: $radius-lg;+ margin-bottom: $space-4;+ font-size: $font-size-sm;+ font-weight: $font-weight-medium;+ color: $text-primary;+ }++ &__bulk-actions {+ display: flex;+ gap: $space-2;+ }}@keyframes pulse-dot {diff --git a/frontend/src/utils/serviceTypes.js b/frontend/src/utils/serviceTypes.jsindex 4625e6b0..d8cb0b62 100644--- a/frontend/src/utils/serviceTypes.js+++ b/frontend/src/utils/serviceTypes.js@@ -5,7 +5,7 @@ const SERVICE_TYPES = {bgColor: 'rgba(36, 150, 237, 0.1)',borderColor: 'rgba(36, 150, 237, 0.2)',icon: 'docker',- tabs: ['events', 'logs', 'environment', 'shell', 'metrics', 'settings'],+ tabs: ['overview', 'events', 'logs', 'environment', 'shell', 'metrics', 'settings'],},flask: {label: 'Flask',@@ -13,7 +13,7 @@ const SERVICE_TYPES = {bgColor: 'rgba(252, 211, 77, 0.1)',borderColor: 'rgba(252, 211, 77, 0.2)',icon: 'flask',- tabs: ['events', 'logs', 'environment', 'packages', 'gunicorn', 'commands', 'metrics', 'settings'],+ tabs: ['overview', 'events', 'logs', 'environment', 'packages', 'gunicorn', 'commands', 'metrics', 'settings'],},django: {label: 'Django',@@ -21,7 +21,7 @@ const SERVICE_TYPES = {bgColor: 'rgba(52, 211, 153, 0.1)',borderColor: 'rgba(52, 211, 153, 0.2)',icon: 'django',- tabs: ['events', 'logs', 'environment', 'packages', 'gunicorn', 'commands', 'metrics', 'settings'],+ tabs: ['overview', 'events', 'logs', 'environment', 'packages', 'gunicorn', 'commands', 'metrics', 'settings'],},php: {label: 'PHP',@@ -29,7 +29,7 @@ const SERVICE_TYPES = {bgColor: 'rgba(119, 123, 180, 0.1)',borderColor: 'rgba(119, 123, 180, 0.2)',icon: 'php',- tabs: ['events', 'logs', 'environment', 'settings'],+ tabs: ['overview', 'events', 'logs', 'environment', 'settings'],},static: {label: 'Static',@@ -37,7 +37,7 @@ const SERVICE_TYPES = {bgColor: 'rgba(96, 165, 250, 0.1)',borderColor: 'rgba(96, 165, 250, 0.2)',icon: 'static',- tabs: ['events', 'environment', 'settings'],+ tabs: ['overview', 'events', 'environment', 'settings'],},wordpress: {label: 'WordPress',@@ -45,7 +45,7 @@ const SERVICE_TYPES = {bgColor: 'rgba(33, 117, 155, 0.1)',borderColor: 'rgba(33, 117, 155, 0.2)',icon: 'wordpress',- tabs: ['events', 'logs', 'environment', 'settings'],+ tabs: ['overview', 'events', 'logs', 'environment', 'settings'],},};@@ -72,7 +72,7 @@ export function getServiceType(appType) {bgColor: 'rgba(161, 161, 170, 0.1)',borderColor: 'rgba(161, 161, 170, 0.2)',icon: 'default',- tabs: ['events', 'logs', 'environment', 'settings'],+ tabs: ['overview', 'events', 'logs', 'environment', 'settings'],};}