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
fix(deployments): full-width jobs table + console polish (plan 51.5 UI pass)
Juan Denisf2cf89563afb
diff --git a/docs/screenshots/deploy-console-failed.png b/docs/screenshots/deploy-console-failed.pngnew file mode 100644index 00000000..75d8dcaeBinary files /dev/null and b/docs/screenshots/deploy-console-failed.png differdiff --git a/docs/screenshots/deploy-console-running.png b/docs/screenshots/deploy-console-running.pngnew file mode 100644index 00000000..c486e8feBinary files /dev/null and b/docs/screenshots/deploy-console-running.png differdiff --git a/docs/screenshots/deploy-console-success.png b/docs/screenshots/deploy-console-success.pngnew file mode 100644index 00000000..1713279cBinary files /dev/null and b/docs/screenshots/deploy-console-success.png differdiff --git a/docs/screenshots/deployments.png b/docs/screenshots/deployments.pngnew file mode 100644index 00000000..d24c4c62Binary files /dev/null and b/docs/screenshots/deployments.png differdiff --git a/frontend/src/pages/Deployments.jsx b/frontend/src/pages/Deployments.jsxindex d6ad7b57..885d6dd4 100644--- a/frontend/src/pages/Deployments.jsx+++ b/frontend/src/pages/Deployments.jsx@@ -1,5 +1,5 @@import { useState, useEffect, useRef, useMemo } from 'react';-import { Link, useNavigate } from 'react-router-dom';+import { useNavigate } from 'react-router-dom';import {CheckCircle2,XCircle,@@ -7,21 +7,27 @@ import {RefreshCw,Server,Loader2,- GitBranch,PlayCircle,FlaskConical,} from 'lucide-react';import api from '../services/api';import { StatStrip, Stat } from '../components/StatCard';import Modal from '../components/Modal';+import Skeleton from '../components/Skeleton';import { Button } from '@/components/ui/button';import { useTopbarActions } from '@/hooks/useTopbarActions';-const STATUS_COLORS = {- pending: { bg: 'var(--surface-3)', fg: 'var(--text-faint)', icon: Clock },- running: { bg: 'var(--accent-bg)', fg: 'var(--accent-bright)', icon: Loader2 },- succeeded: { bg: 'var(--green-bg)', fg: 'var(--green)', icon: CheckCircle2 },- failed: { bg: 'var(--red-bg)', fg: 'var(--red)', icon: XCircle },+const STATUS_ICONS = {+ pending: Clock,+ running: Loader2,+ succeeded: CheckCircle2,+ failed: XCircle,+};++const KIND_LABELS = {+ app_deploy: 'App deploy',+ template_install: 'Template install',+ demo_deploy: 'Test (simulated)',};const formatTime = (iso) => {@@ -34,12 +40,11 @@ const formatTime = (iso) => {};const StatusBadge = ({ status }) => {- const cfg = STATUS_COLORS[status] || STATUS_COLORS.pending;- const Icon = cfg.icon;- const spin = status === 'running';+ const cls = STATUS_ICONS[status] ? status : 'pending';+ const Icon = STATUS_ICONS[cls];return (- <span className="deployments-page__status-badge" style={{ background: cfg.bg, color: cfg.fg }}>- <Icon size={14} className={spin ? 'deployments-page__spin' : ''} />+ <span className={`deployments-page__status-badge deployments-page__status-badge--${cls}`}>+ <Icon size={14} className={cls === 'running' ? 'deployments-page__spin' : ''} />{status}</span>);@@ -130,12 +135,6 @@ const Deployments = () => {Test deployment</Button>)}- <Button variant="outline" size="sm" asChild>- <Link to="/services/new">- <GitBranch size={16} />- New Service- </Link>- </Button><Buttonvariant={autoRefresh ? 'default' : 'outline'}size="sm"@@ -185,73 +184,77 @@ const Deployments = () => {</div></div>- <div className="deployments-page__workspace">- <div className="deployments-page__panel deployments-page__jobs-panel">- <div className="deployments-page__panel-header">- <div>- <h2>Jobs</h2>- <span>{jobs.length} visible</span>- </div>+ <div className="deployments-page__panel deployments-page__jobs-panel">+ <div className="deployments-page__panel-header">+ <div>+ <h2>Jobs</h2>+ <span>{jobs.length} visible</span></div>- {loading ? (- <div className="deployments-page__empty">Loading...</div>- ) : jobs.length === 0 ? (- <div className="deployments-page__empty">- <PlayCircle size={34} />- <strong>No deployment jobs yet</strong>- <span>- Create a service from a repository or install a template to see activity here.- </span>- </div>- ) : (- <table className="deployments-page__jobs-table">- <thead>- <tr>- <th>Status</th>- <th>Kind</th>- <th>Target</th>- <th>App</th>- <th>Progress</th>- <th>Started</th>- </tr>- </thead>- <tbody>- {jobs.map((job) => (- <tr- key={job.id}- onClick={() => navigate(`/deployments/${job.id}`)}- title="Open the Deploy Console"- >- <td><StatusBadge status={job.status} /></td>- <td>{job.kind}</td>- <td>- <span className="deployments-page__server-cell">- <Server size={12} />- {job.target_server_name || 'Local server'}- </span>- </td>- <td>{job.app_name || '—'}</td>- <td>- <div className="deployments-page__progress">- <div- style={{- width: `${job.progress_percent || 0}%`,- background:- job.status === 'failed' ? 'var(--red)' : 'var(--accent-primary)',- }}- />- </div>- <div className="deployments-page__progress-meta">- {job.current_step || 0}/{job.total_steps || 0}- </div>- </td>- <td className="deployments-page__time-cell">{formatTime(job.started_at || job.created_at)}</td>- </tr>- ))}- </tbody>- </table>- )}</div>+ {loading ? (+ <div className="deployments-page__loading" aria-busy="true">+ {[0, 1, 2, 3].map((i) => (+ <div key={i} className="deployments-page__loading-row">+ <Skeleton variant="line" width={96} />+ <Skeleton variant="line" width="34%" />+ <Skeleton variant="line" width="20%" />+ <Skeleton variant="line" width="26%" />+ </div>+ ))}+ </div>+ ) : jobs.length === 0 ? (+ <div className="deployments-page__empty">+ <PlayCircle size={34} />+ <strong>No deployment jobs yet</strong>+ <span>+ Create a service from a repository or install a template to see activity here.+ </span>+ </div>+ ) : (+ <table className="deployments-page__jobs-table">+ <thead>+ <tr>+ <th>Status</th>+ <th>Kind</th>+ <th>Target</th>+ <th>App</th>+ <th>Progress</th>+ <th>Started</th>+ </tr>+ </thead>+ <tbody>+ {jobs.map((job) => (+ <tr+ key={job.id}+ onClick={() => navigate(`/deployments/${job.id}`)}+ title="Open the Deploy Console"+ >+ <td><StatusBadge status={job.status} /></td>+ <td>{KIND_LABELS[job.kind] || job.kind}</td>+ <td>+ <span className="deployments-page__server-cell">+ <Server size={12} />+ {job.target_server_name || 'Local server'}+ </span>+ </td>+ <td>{job.app_name || '—'}</td>+ <td>+ <div className="deployments-page__progress">+ <div+ className={`deployments-page__progress-fill${job.status === 'failed' ? ' deployments-page__progress-fill--failed' : ''}`}+ style={{ width: `${job.progress_percent || 0}%` }}+ />+ </div>+ <div className="deployments-page__progress-meta">+ {job.current_step || 0}/{job.total_steps || 0}+ </div>+ </td>+ <td className="deployments-page__time-cell">{formatTime(job.started_at || job.created_at)}</td>+ </tr>+ ))}+ </tbody>+ </table>+ )}</div><Modaldiff --git a/frontend/src/styles/pages/_deploy-console.scss b/frontend/src/styles/pages/_deploy-console.scssindex 5cf21c9a..65da0680 100644--- a/frontend/src/styles/pages/_deploy-console.scss+++ b/frontend/src/styles/pages/_deploy-console.scss@@ -16,7 +16,10 @@ $dc-surface-line: rgba(255, 255, 255, 0.04);display: flex;flex-direction: column;gap: $space-3;- min-height: 0;+ // Fill the content area so the log pane reaches the bottom of the+ // viewport instead of stopping at its 320px floor (topbar + main-content+ // padding ≈ 200px, same per-page constant idiom as _terminal.scss).+ min-height: calc(100vh - 200px);&__spin {animation: dc-spin 1s linear infinite;@@ -120,9 +123,10 @@ $dc-surface-line: rgba(255, 255, 255, 0.04);// ---- body: rail + main ----&__body {display: grid;- grid-template-columns: 220px minmax(0, 1fr);+ grid-template-columns: 248px minmax(0, 1fr);gap: $space-3;align-items: stretch;+ flex: 1;min-height: 0;@media (max-width: 720px) {@@ -203,7 +207,7 @@ $dc-surface-line: rgba(255, 255, 255, 0.04);align-items: center;justify-content: space-between;gap: $space-2;- padding: $space-2;+ padding: $space-2 $space-3;background: $bg-card;border-bottom: 1px solid $border-subtle;flex-wrap: wrap;@@ -252,6 +256,9 @@ $dc-surface-line: rgba(255, 255, 255, 0.04);border-radius: $radius-md;border: 1px solid $border-subtle;color: $text-tertiary;+ flex: 1 1 160px;+ max-width: 280px;+ min-height: 28px;input {border: none;@@ -259,7 +266,8 @@ $dc-surface-line: rgba(255, 255, 255, 0.04);color: $text-primary;font-size: $font-size-sm;outline: none;- width: 140px;+ width: 100%;+ min-width: 0;}}diff --git a/frontend/src/styles/pages/_deployments.scss b/frontend/src/styles/pages/_deployments.scssindex 96d8f1e1..d2ff607c 100644--- a/frontend/src/styles/pages/_deployments.scss+++ b/frontend/src/styles/pages/_deployments.scss@@ -1,45 +1,11 @@// ============================================-// DEPLOYMENTS PAGE+// DEPLOYMENTS PAGE (/deployments)+// Jobs index only — each row deep-links to the Deploy Console+// (/deployments/:jobId, _deploy-console.scss). The old side detail pane was+// removed in plan 51; plan 51.5 removed its leftover grid + styles.// ============================================.deployments-page {- --deployments-panel-min-height: 430px;-- &__header {- align-items: flex-start;- gap: $space-4;- margin-bottom: $space-5;-- .page-title {- display: flex;- align-items: center;- gap: $space-2;- margin: 0;-- svg {- color: $text-secondary;- }- }- }-- &__heading {- min-width: 0;- }-- &__description {- margin: $space-1 0 0;- color: $text-tertiary;- font-size: $font-size-sm;- line-height: 1.45;- }-- &__actions {- display: flex;- align-items: center;- gap: $space-2;- flex-shrink: 0;- }-&__toolbar {display: flex;align-items: center;@@ -80,14 +46,7 @@}}- &__workspace {- display: grid;- grid-template-columns: minmax(0, 1fr) minmax(360px, 1.12fr);- gap: $space-4;- }-&__panel {- min-height: var(--deployments-panel-min-height);background: $bg-card;border: 1px solid $border-subtle;border-radius: $radius-lg;@@ -117,8 +76,21 @@}}+ &__loading {+ display: grid;+ gap: $space-4;+ padding: $space-4;+ }++ &__loading-row {+ display: grid;+ grid-template-columns: 110px 1fr 1fr 1fr;+ gap: $space-4;+ align-items: center;+ }+&__empty {- min-height: calc(var(--deployments-panel-min-height) - 52px);+ min-height: 320px;display: flex;flex-direction: column;align-items: center;@@ -173,15 +145,10 @@cursor: pointer;transition: background $transition-fast;- &:hover,- &.is-selected {+ &:hover {background: $bg-hover;}- &.is-selected {- box-shadow: inset 3px 0 0 $accent-primary;- }-&:last-child td {border-bottom: none;}@@ -199,15 +166,21 @@&__progress {width: 100%;min-width: 88px;+ max-width: 220px;height: 6px;background: $bg-elevated;border-radius: $radius-full;overflow: hidden;+ }++ &__progress-fill {+ height: 100%;+ border-radius: inherit;+ background: var(--accent-primary);+ transition: width 200ms ease;- > div {- height: 100%;- border-radius: inherit;- transition: width 200ms ease;+ &--failed {+ background: var(--red);}}@@ -221,119 +194,6 @@margin-top: 3px;}- &__detail-panel {- display: flex;- flex-direction: column;- }-- &__detail-content {- display: flex;- min-height: calc(var(--deployments-panel-min-height) - 52px);- flex-direction: column;- padding: $space-4;- }-- &__detail-title {- display: flex;- justify-content: space-between;- align-items: flex-start;- gap: $space-3;-- h3 {- margin: 0;- color: $text-primary;- font-size: $font-size-lg;- }-- div div {- margin-top: 3px;- color: $text-tertiary;- font-size: $font-size-xs;- word-break: break-all;- }- }-- &__detail-grid {- display: grid;- grid-template-columns: repeat(4, minmax(0, 1fr));- gap: $space-3;- margin-top: $space-4;- }-- &__detail-metric {- padding: $space-3;- background: $bg-elevated;- border: 1px solid $border-subtle;- border-radius: $radius-md;-- span {- display: block;- margin-bottom: 3px;- color: $text-tertiary;- font-size: $font-size-xs;- font-weight: $font-weight-semibold;- text-transform: uppercase;- }-- div {- color: $text-primary;- font-size: $font-size-sm;- word-break: break-word;- }- }-- &__notice {- display: flex;- align-items: center;- gap: $space-2;- margin-top: $space-3;- padding: $space-3;- border-radius: $radius-md;- font-size: $font-size-sm;-- &--running {- background: fade($accent-primary-raw, 10%);- color: #818cf8;- }-- &--error {- background: fade($danger-raw, 10%);- border: 1px solid fade($danger-raw, 30%);- color: $danger;- }- }-- &__logs-title {- margin: $space-5 0 $space-2;- color: $text-primary;- font-size: $font-size-sm;- font-weight: $font-weight-semibold;- }-- &__logs {- flex: 1;- min-height: 260px;- max-height: 420px;- padding: $space-3;- overflow-y: auto;- background: #0b0f1a;- border: 1px solid rgba(148, 163, 184, 0.16);- border-radius: $radius-md;- color: #cbd5e1;- font-family: $font-mono;- font-size: $font-size-xs;- line-height: 1.6;- white-space: pre-wrap;- }-- &__log-time {- color: #64748b;- }-- &__log-level {- color: #94a3b8;- }-&__status-badge {display: inline-flex;align-items: center;@@ -345,6 +205,11 @@line-height: 1;text-transform: capitalize;white-space: nowrap;++ &--pending { background: var(--surface-3); color: var(--text-faint); }+ &--running { background: var(--accent-bg); color: var(--accent-bright); }+ &--succeeded { background: var(--green-bg); color: var(--green); }+ &--failed { background: var(--red-bg); color: var(--red); }}&__spin {@@ -438,34 +303,10 @@}}-@media (max-width: $breakpoint-xl) {- .deployments-page {- &__detail-grid {- grid-template-columns: repeat(2, minmax(0, 1fr));- }- }-}--@media (max-width: $breakpoint-lg) {- .deployments-page {- &__workspace {- grid-template-columns: 1fr;- }- }-}-@media (max-width: $breakpoint-md) {.deployments-page {- &__header {- flex-direction: column;- }-- &__actions,&__toolbar {width: 100%;- }-- &__toolbar {flex-direction: column;align-items: stretch;}@@ -483,16 +324,3 @@}}}--@media (max-width: $breakpoint-sm) {- .deployments-page {- &__detail-grid {- grid-template-columns: 1fr;- }-- &__actions {- flex-direction: column;- align-items: stretch;- }- }-}