ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
feat(deploy-console): let the log fill the page, and add a focus mode
Juan Denis8953481d2575
diff --git a/frontend/src/components/deploy-console/ConsoleToolbar.jsx b/frontend/src/components/deploy-console/ConsoleToolbar.jsxindex 97ce1132..ac6aacb3 100644--- a/frontend/src/components/deploy-console/ConsoleToolbar.jsx+++ b/frontend/src/components/deploy-console/ConsoleToolbar.jsx@@ -1,4 +1,4 @@-import { ArrowDown, ArrowUp, Copy, Download, Search } from 'lucide-react';+import { ArrowDown, ArrowUp, Copy, Download, Maximize2, Minimize2, Search } from 'lucide-react';const LEVELS = ['all', 'info', 'warn', 'error', 'debug'];@@ -14,6 +14,7 @@ export default function ConsoleToolbar({onCopy, onDownload,errorCount = 0, warnCount = 0,navCount = 0, navPos = 0, navLabel = '', onNavPrev, onNavNext,+ focused = false, onToggleFocus,}) {// Clicking a count filters to it, and clicking again clears — the count is// worth seeing on its own, so it earns the space either way.@@ -117,6 +118,16 @@ export default function ConsoleToolbar({<button type="button" className="deploy-console__toggle" onClick={onDownload} title="Download logs as .txt"><Download size={14} /> Download</button>+ <button+ type="button"+ className={`deploy-console__toggle ${focused ? 'is-active' : ''}`}+ onClick={onToggleFocus}+ aria-pressed={focused}+ title={focused ? 'Show the deployment details again' : 'Give the log the whole page'}+ >+ {focused ? <Minimize2 size={14} /> : <Maximize2 size={14} />}+ {focused ? 'Exit' : 'Expand'}+ </button></div></div>);diff --git a/frontend/src/pages/DeployConsole.jsx b/frontend/src/pages/DeployConsole.jsxindex b72e85e4..a5d920a0 100644--- a/frontend/src/pages/DeployConsole.jsx+++ b/frontend/src/pages/DeployConsole.jsx@@ -76,6 +76,11 @@ export default function DeployConsole() {const [scrollTarget, setScrollTarget] = useState(null);const nonceRef = useRef(0);const autoJumpedRef = useRef(null);+ // Log-focus: the failure card, pipeline strip and run identity step aside+ // so the transcript gets the whole page. Not a browser fullscreen — the+ // nav stays put, because you are usually reading a log on the way to doing+ // something else.+ const [logFocus, setLogFocus] = useState(false);const status = job?.status || 'pending';@@ -240,7 +245,7 @@ export default function DeployConsole() {// whose content region is full-bleed by design — the wrapper is what// supplies the max-width and padding every sibling tab already has.// Without it the console ran edge-to-edge with no gutters at all.- <div className="sk-tabgroup__inner deploy-console">+ <div className={`sk-tabgroup__inner deploy-console${logFocus ? ' deploy-console--focus' : ''}`}><header className="deploy-console__header"><Link to="/deployments" className="deploy-console__back" title="Back to deployments"><ArrowLeft size={18} />@@ -277,7 +282,7 @@ export default function DeployConsole() {</div>)}- {status === 'failed' && (+ {status === 'failed' && !logFocus && (<ErrorCardfailedStepName={failedStepName}failureTail={job?.result?.failure_tail}@@ -288,19 +293,23 @@ export default function DeployConsole() {/>)}- {status === 'succeeded' && (+ {status === 'succeeded' && !logFocus && (<SuccessBanner job={job} appUrl={appUrl} />)}- <PipelineStrip steps={steps} selected={selectedStep} onStepClick={onStepClick} />+ {!logFocus && (+ <PipelineStrip steps={steps} selected={selectedStep} onStepClick={onStepClick} />+ )}- <div className="deploy-console__runmeta">- <span><b>{jobId}</b></span>- <span>trigger <b>{job?.trigger || 'manual'}</b></span>- {sourceLabel && <span>source <b>{sourceLabel}</b></span>}- <span>target <b>{job?.target_server_name || 'Local server'}</b></span>- <span>started <b>{fmtStarted(job?.started_at || job?.created_at)}</b></span>- </div>+ {!logFocus && (+ <div className="deploy-console__runmeta">+ <span><b>{jobId}</b></span>+ <span>trigger <b>{job?.trigger || 'manual'}</b></span>+ {sourceLabel && <span>source <b>{sourceLabel}</b></span>}+ <span>target <b>{job?.target_server_name || 'Local server'}</b></span>+ <span>started <b>{fmtStarted(job?.started_at || job?.created_at)}</b></span>+ </div>+ )}<div className="deploy-console__body"><div className="deploy-console__main">@@ -314,6 +323,7 @@ export default function DeployConsole() {errorCount={errorCount} warnCount={warnCount}navCount={navTargets.length} navPos={navPos} navLabel={navLabel}onNavPrev={() => goToNav(-1)} onNavNext={() => goToNav(1)}+ focused={logFocus} onToggleFocus={() => setLogFocus((v) => !v)}/><LogPanelines={visibleLines}diff --git a/frontend/src/styles/pages/_deploy-console.scss b/frontend/src/styles/pages/_deploy-console.scssindex ec35fa4c..d1413a9b 100644--- a/frontend/src/styles/pages/_deploy-console.scss+++ b/frontend/src/styles/pages/_deploy-console.scss@@ -20,6 +20,11 @@ $dc-surface-line: rgba(255, 255, 255, 0.04);// 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);+ // ...and actually grow into it. The tab-group content region is a column+ // flex container, where a child defaults to its content height — so the+ // min-height above set the floor but the log still stopped at its own+ // content, leaving dead space beneath a short log.+ flex: 1;&__spin {animation: dc-spin 1s linear infinite;@@ -737,3 +742,20 @@ $dc-surface-line: rgba(255, 255, 255, 0.04);// too — it is a preview of the log, not a second copy of it.&__error-tail { max-height: 180px; }}++// ---- log focus: the transcript takes the page ----+// Not browser fullscreen — the sidebar and tabs stay, because reading a log is+// usually a step on the way to doing something else. What goes is everything+// between the title and the log: the failure card, the pipeline strip and the+// run identity line.+.deploy-console--focus {+ // Wider than the reading measure the rest of the page uses: long build+ // output is what this mode is for.+ max-width: none;+ padding-bottom: $space-4;++ .deploy-console__header { margin-bottom: 0; }++ // The log claims the height the hidden blocks were using.+ .deploy-console__logwrap { min-height: 60vh; }+}