Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

feat(ui): restyle the Git page body to the new look

Juan Denis1490315f2519
diff --git a/frontend/src/pages/Git.jsx b/frontend/src/pages/Git.jsx
index c46a9e0e..daf217bc 100644
--- a/frontend/src/pages/Git.jsx
+++ b/frontend/src/pages/Git.jsx
@@ -6,8 +6,8 @@ import Spinner from '../components/Spinner';
import ConfirmDialog from '../components/ConfirmDialog';
import { DangerZone } from '../components/DangerZone';
import EmptyState from '../components/EmptyState';
-import { StatStrip, Stat } from '../components/StatCard';
-import { AlertCircle, FolderGit2, Webhook, Rocket } from 'lucide-react';
+import { Pill, MetricCard } from '../components/ds';
+import { AlertCircle, FolderGit2, Webhook, Rocket, Server, Globe, Terminal, Tag, X } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Textarea } from '@/components/ui/textarea';
@@ -15,6 +15,9 @@ import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';
const VALID_TABS = ['overview', 'repositories', 'access', 'webhooks', 'deployments', 'settings'];
+// Brand initials for the webhook source tiles (brand colors live in _git.scss)
+const SOURCE_INITIALS = { github: 'GH', gitlab: 'GL', bitbucket: 'BB' };
+
function Git({ basePath = '/git' }) {
const [status, setStatus] = useState(null);
const [loading, setLoading] = useState(true);
@@ -428,12 +431,13 @@ function Git({ basePath = '/git' }) {
}
};
+ // Maps a deployment status to a Pill / dot tone.
const getStatusColor = (status) => {
switch (status) {
- case 'success': return 'success';
- case 'failed': return 'danger';
- case 'running': return 'warning';
- default: return '';
+ case 'success': return 'green';
+ case 'failed': return 'red';
+ case 'running': return 'amber';
+ default: return 'gray';
}
};
@@ -644,16 +648,35 @@ function Git({ basePath = '/git' }) {
</div>
) : (
<>
- <StatStrip ariaLabel="Git server status">
- <Stat
- label="Server Status"
+ <div className="git-kpis" aria-label="Git server status">
+ <MetricCard
+ className="git-kpi-text"
+ icon={<Server size={17} />}
+ tone={status?.running ? 'green' : 'red'}
value={status?.running ? 'Running' : 'Stopped'}
- state={status?.running ? 'success' : 'danger'}
+ label="Server status"
+ />
+ <MetricCard
+ className="git-kpi-text"
+ icon={<Globe size={17} />}
+ tone="accent"
+ value={status?.url_path || '/gitea'}
+ label="URL path"
+ />
+ <MetricCard
+ icon={<Terminal size={17} />}
+ tone="cyan"
+ value={status?.ssh_port || 'N/A'}
+ label="SSH port"
/>
- <Stat label="URL Path" value={status?.url_path || '/gitea'} />
- <Stat label="SSH Port" value={status?.ssh_port || 'N/A'} />
- <Stat label="Version" value={status?.version || 'Unknown'} />
- </StatStrip>
+ <MetricCard
+ className="git-kpi-text"
+ icon={<Tag size={17} />}
+ tone="violet"
+ value={status?.version || 'Unknown'}
+ label="Gitea version"
+ />
+ </div>
<Tabs value={activeTab} onValueChange={setActiveTab}>
<TabsList>
@@ -731,7 +754,12 @@ function Git({ basePath = '/git' }) {
) : repoView === 'list' ? (
<>
<div className="repos-header">
- <h3>Repositories</h3>
+ <h3>
+ Repositories
+ {repositories.length > 0 && (
+ <span className="git-count"> · {repositories.length}</span>
+ )}
+ </h3>
<Button
variant="outline"
size="sm"
@@ -754,60 +782,76 @@ function Git({ basePath = '/git' }) {
action={<Button onClick={openGitea}>Open Gitea</Button>}
/>
) : (
- <div className="repos-list">
- {repositories.map((repo) => (
- <div
- key={repo.id}
- className="repo-card"
- onClick={() => selectRepository(repo)}
- >
- <div className="repo-info">
- <div className="repo-name">
- <span className="owner">{repo.owner.login}/</span>
- <span className="name">{repo.name}</span>
- {repo.private && <span className="badge private">Private</span>}
- {repo.fork && <span className="badge fork">Fork</span>}
- </div>
- {repo.description && (
- <p className="repo-description">{repo.description}</p>
- )}
- <div className="repo-meta">
- <span className="meta-item">
- <svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2">
- <circle cx="18" cy="18" r="3"/>
- <circle cx="6" cy="6" r="3"/>
- <path d="M6 21V9a9 9 0 0 0 9 9"/>
- </svg>
- {repo.default_branch}
- </span>
- <span className="meta-item">
- <svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2">
- <polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/>
- </svg>
- {repo.stars}
- </span>
- <span className="meta-item">
- <svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2">
- <circle cx="12" cy="18" r="3"/>
- <circle cx="6" cy="6" r="3"/>
- <circle cx="18" cy="6" r="3"/>
- <path d="M18 9v1a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V9"/>
- <path d="M12 12v3"/>
+ <div className="git-table-card">
+ <table className="sk-dtable git-repos-table">
+ <thead>
+ <tr>
+ <th>Repository</th>
+ <th>Branch</th>
+ <th>Stars</th>
+ <th>Forks</th>
+ <th>Updated</th>
+ <th aria-label="Open"></th>
+ </tr>
+ </thead>
+ <tbody>
+ {repositories.map((repo) => (
+ <tr
+ key={repo.id}
+ className="is-clickable"
+ onClick={() => selectRepository(repo)}
+ >
+ <td>
+ <div className="sk-cell-name">
+ <span className="git-repo-ico">
+ {repo.private ? (
+ <svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2">
+ <rect x="3" y="11" width="18" height="11" rx="2" ry="2"/>
+ <path d="M7 11V7a5 5 0 0 1 10 0v4"/>
+ </svg>
+ ) : (
+ <svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2">
+ <circle cx="18" cy="18" r="3"/>
+ <circle cx="6" cy="6" r="3"/>
+ <path d="M6 21V9a9 9 0 0 0 9 9"/>
+ </svg>
+ )}
+ </span>
+ <div className="git-repocell">
+ <div className="git-reponame">
+ <span className="own">{repo.owner.login}/</span>{repo.name}
+ {repo.private && <span className="git-chip git-chip--amber">private</span>}
+ {repo.fork && <span className="git-chip git-chip--cyan">fork</span>}
+ </div>
+ {repo.description && (
+ <div className="sk-cell-sub git-repo-desc">{repo.description}</div>
+ )}
+ </div>
+ </div>
+ </td>
+ <td>
+ <span className="git-branch-chip">
+ <svg viewBox="0 0 24 24" width="11" height="11" stroke="currentColor" fill="none" strokeWidth="2">
+ <line x1="6" y1="3" x2="6" y2="15"/>
+ <circle cx="18" cy="6" r="3"/>
+ <circle cx="6" cy="18" r="3"/>
+ <path d="M18 9a9 9 0 0 1-9 9"/>
+ </svg>
+ {repo.default_branch}
+ </span>
+ </td>
+ <td className="sk-cell-mono">{repo.stars}</td>
+ <td className="sk-cell-mono">{repo.forks}</td>
+ <td className="sk-cell-mono">{formatDate(repo.updated_at)}</td>
+ <td>
+ <svg className="git-chev" viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" fill="none" strokeWidth="2">
+ <polyline points="9 18 15 12 9 6"/>
</svg>
- {repo.forks}
- </span>
- <span className="meta-item updated">
- Updated {formatDate(repo.updated_at)}
- </span>
- </div>
- </div>
- <div className="repo-arrow">
- <svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" fill="none" strokeWidth="2">
- <polyline points="9 18 15 12 9 6"/>
- </svg>
- </div>
- </div>
- ))}
+ </td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
</div>
)}
</>
@@ -821,7 +865,7 @@ function Git({ basePath = '/git' }) {
Back
</Button>
<div className="repo-title">
- <h3>{selectedRepo?.owner.login}/{selectedRepo?.name}</h3>
+ <h3><span className="own">{selectedRepo?.owner.login}/</span>{selectedRepo?.name}</h3>
{selectedRepo?.description && (
<p>{selectedRepo.description}</p>
)}
@@ -944,7 +988,7 @@ function Git({ basePath = '/git' }) {
</div>
</div>
<div className="commit-sha">
- <code>{commit.short_sha}</code>
+ <code className="git-hash">{commit.short_sha}</code>
</div>
</div>
))}
@@ -977,10 +1021,10 @@ function Git({ basePath = '/git' }) {
</svg>
{branch.name}
{branch.name === selectedRepo?.default_branch && (
- <span className="badge default">default</span>
+ <span className="git-chip git-chip--green">default</span>
)}
{branch.protected && (
- <span className="badge protected">protected</span>
+ <span className="git-chip git-chip--amber">protected</span>
)}
</div>
{branch.commit && (
@@ -1076,79 +1120,101 @@ function Git({ basePath = '/git' }) {
action={<Button onClick={() => setShowWebhookModal(true)}>Add Webhook</Button>}
/>
) : (
- <div className="webhooks-list">
- {webhooks.map((webhook) => (
- <div key={webhook.id} className={`webhook-card ${!webhook.is_active ? 'inactive' : ''}`}>
- <div className="webhook-header">
- <div className="webhook-info">
- <span className={`source-badge ${webhook.source}`}>
- {webhook.source}
- </span>
- <h4>{webhook.name}</h4>
- </div>
- <div className="webhook-status">
- <span className={`status-dot ${webhook.is_active ? 'active' : 'inactive'}`}></span>
- {webhook.is_active ? 'Active' : 'Inactive'}
- </div>
- </div>
-
- <div className="webhook-details">
- <div className="detail-item">
- <span className="label">Repository:</span>
- <span className="value">{webhook.source_repo_url}</span>
- </div>
- <div className="detail-item">
- <span className="label">Branch:</span>
- <span className="value">{webhook.source_branch}</span>
- </div>
- <div className="detail-item">
- <span className="label">Last Sync:</span>
- <span className="value">
- {webhook.last_sync_at
- ? new Date(webhook.last_sync_at).toLocaleString()
- : 'Never'}
- </span>
- </div>
- <div className="detail-item">
- <span className="label">Sync Count:</span>
- <span className="value">{webhook.sync_count}</span>
- </div>
- </div>
-
- <div className="webhook-actions">
- <Button
- size="sm"
- variant="outline"
- onClick={() => copyWebhookUrl(webhook)}
- title="Copy webhook URL"
- >
- Copy URL
- </Button>
- <Button
- size="sm"
- variant="outline"
- onClick={() => handleTestWebhook(webhook.id)}
- title="Test webhook"
- >
- Test
- </Button>
- <Button
- size="sm"
- variant={webhook.is_active ? 'secondary' : 'default'}
- onClick={() => handleToggleWebhook(webhook.id)}
- >
- {webhook.is_active ? 'Disable' : 'Enable'}
- </Button>
- <Button
- size="sm"
- variant="destructive"
- onClick={() => handleDeleteWebhook(webhook.id)}
- >
- Delete
- </Button>
- </div>
- </div>
- ))}
+ <div className="git-table-card">
+ <table className="sk-dtable git-webhooks-table">
+ <thead>
+ <tr>
+ <th>Webhook</th>
+ <th>Repository</th>
+ <th>Branch</th>
+ <th>Last sync</th>
+ <th>Syncs</th>
+ <th>Status</th>
+ <th aria-label="Actions"></th>
+ </tr>
+ </thead>
+ <tbody>
+ {webhooks.map((webhook) => (
+ <tr key={webhook.id} className={!webhook.is_active ? 'is-disabled' : ''}>
+ <td>
+ <div className="sk-cell-name">
+ <span className={`git-src-tile git-src-tile--${webhook.source}`}>
+ {SOURCE_INITIALS[webhook.source] || webhook.source?.slice(0, 2).toUpperCase()}
+ </span>
+ <div className="git-repocell">
+ <div className="git-reponame">{webhook.name}</div>
+ <div className="sk-cell-sub">
+ {webhook.source}
+ {webhook.deploy_on_push ? ' · deploy on push' : ''}
+ </div>
+ </div>
+ </div>
+ </td>
+ <td className="sk-cell-mono git-url" title={webhook.source_repo_url}>
+ {webhook.source_repo_url}
+ </td>
+ <td>
+ <span className="git-branch-chip">
+ <svg viewBox="0 0 24 24" width="11" height="11" stroke="currentColor" fill="none" strokeWidth="2">
+ <line x1="6" y1="3" x2="6" y2="15"/>
+ <circle cx="18" cy="6" r="3"/>
+ <circle cx="6" cy="18" r="3"/>
+ <path d="M18 9a9 9 0 0 1-9 9"/>
+ </svg>
+ {webhook.source_branch}
+ </span>
+ </td>
+ <td
+ className="sk-cell-mono"
+ title={webhook.last_sync_at ? new Date(webhook.last_sync_at).toLocaleString() : undefined}
+ >
+ {webhook.last_sync_at ? formatDate(webhook.last_sync_at) : 'never'}
+ </td>
+ <td className="sk-cell-mono">{webhook.sync_count}</td>
+ <td>
+ <Pill kind={webhook.is_active ? 'green' : 'gray'}>
+ {webhook.is_active ? 'Active' : 'Inactive'}
+ </Pill>
+ </td>
+ <td>
+ <div className="git-row-actions">
+ <Button
+ size="sm"
+ variant="ghost"
+ onClick={() => copyWebhookUrl(webhook)}
+ title="Copy webhook URL"
+ >
+ Copy URL
+ </Button>
+ <Button
+ size="sm"
+ variant="ghost"
+ onClick={() => handleTestWebhook(webhook.id)}
+ title="Test webhook"
+ >
+ Test
+ </Button>
+ <Button
+ size="sm"
+ variant="ghost"
+ onClick={() => handleToggleWebhook(webhook.id)}
+ >
+ {webhook.is_active ? 'Disable' : 'Enable'}
+ </Button>
+ <Button
+ size="sm"
+ variant="ghost"
+ className="git-danger-btn"
+ onClick={() => handleDeleteWebhook(webhook.id)}
+ >
+ Delete
+ </Button>
+ </div>
+ </td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
</div>
)}
</div>
@@ -1182,90 +1248,63 @@ function Git({ basePath = '/git' }) {
action={<Button onClick={() => setActiveTab('webhooks')}>Configure Webhooks</Button>}
/>
) : (
- <div className="deployments-list">
+ <div className="git-deploys-card">
{deployments.map((deployment) => (
- <div key={deployment.id} className={`deployment-card ${deployment.status}`}>
- <div className="deployment-header">
- <div className="deployment-version">
- <span className="version">v{deployment.version}</span>
+ <div key={deployment.id} className="git-deploy-row">
+ <span className={`git-deploy-dot git-deploy-dot--${getStatusColor(deployment.status)}`} />
+ <div className="git-deploy-body">
+ <div className="git-deploy-top">
+ <span className="git-deploy-version">v{deployment.version}</span>
+ <Pill kind={getStatusColor(deployment.status)}>{deployment.status}</Pill>
{deployment.is_rollback && (
- <span className="badge rollback">Rollback</span>
+ <span className="git-chip git-chip--cyan">rollback</span>
+ )}
+ {deployment.commit_sha && (
+ <code className="git-hash">{deployment.commit_sha.slice(0, 7)}</code>
)}
- <span className={`status-badge ${deployment.status}`}>
- {deployment.status}
- </span>
- </div>
- <div className="deployment-time">
- {formatDate(deployment.created_at)}
</div>
- </div>
-
- <div className="deployment-details">
- {deployment.commit_sha && (
- <div className="detail-item">
- <span className="label">Commit:</span>
- <code>{deployment.commit_sha.slice(0, 7)}</code>
- </div>
- )}
{deployment.commit_message && (
- <div className="detail-item commit-message">
- <span className="message">{deployment.commit_message.split('\n')[0]}</span>
- </div>
+ <div className="git-deploy-msg">{deployment.commit_message.split('\n')[0]}</div>
)}
- <div className="detail-item">
- <span className="label">Branch:</span>
- <span className="value">{deployment.branch}</span>
- </div>
- <div className="detail-item">
- <span className="label">Triggered by:</span>
- <span className="value">{deployment.triggered_by}</span>
+ <div className="git-deploy-meta">
+ <span>{deployment.branch}</span>
+ <span>{deployment.triggered_by}</span>
+ {deployment.webhook_name && <span>{deployment.webhook_name}</span>}
+ {deployment.duration_seconds != null && <span>{deployment.duration_seconds}s</span>}
</div>
- {deployment.webhook_name && (
- <div className="detail-item">
- <span className="label">Webhook:</span>
- <span className="value">{deployment.webhook_name}</span>
- </div>
- )}
- {deployment.duration_seconds != null && (
- <div className="detail-item">
- <span className="label">Duration:</span>
- <span className="value">{deployment.duration_seconds}s</span>
- </div>
- )}
{deployment.error_message && (
- <div className="detail-item error">
- <span className="label">Error:</span>
- <span className="value">{deployment.error_message}</span>
- </div>
+ <div className="git-deploy-error">{deployment.error_message}</div>
)}
</div>
-
- <div className="deployment-actions">
- <Button
- size="sm"
- variant="outline"
- onClick={() => viewDeploymentLogs(deployment.id)}
- >
- View Logs
- </Button>
- {deployment.status === 'success' && !deployment.is_rollback && (
- <Button
- size="sm"
- variant="secondary"
- onClick={() => handleRollback(deployment.app_id, deployment.version)}
- >
- Rollback to This
- </Button>
- )}
- {deployment.status === 'success' && (
+ <div className="git-deploy-side">
+ <span className="git-deploy-time">{formatDate(deployment.created_at)}</span>
+ <div className="git-deploy-actions">
<Button
size="sm"
- onClick={() => handleTriggerDeploy(deployment.app_id)}
- disabled={deployingAppId === deployment.app_id}
+ variant="outline"
+ onClick={() => viewDeploymentLogs(deployment.id)}
>
- {deployingAppId === deployment.app_id ? 'Deploying...' : 'Redeploy'}
+ View Logs
</Button>
- )}
+ {deployment.status === 'success' && !deployment.is_rollback && (
+ <Button
+ size="sm"
+ variant="secondary"
+ onClick={() => handleRollback(deployment.app_id, deployment.version)}
+ >
+ Rollback to This
+ </Button>
+ )}
+ {deployment.status === 'success' && (
+ <Button
+ size="sm"
+ onClick={() => handleTriggerDeploy(deployment.app_id)}
+ disabled={deployingAppId === deployment.app_id}
+ >
+ {deployingAppId === deployment.app_id ? 'Deploying...' : 'Redeploy'}
+ </Button>
+ )}
+ </div>
</div>
</div>
))}
@@ -1322,7 +1361,7 @@ function Git({ basePath = '/git' }) {
<div className="modal-header">
<h2>Install Git Server</h2>
<button className="btn btn-icon" onClick={() => setShowInstallModal(false)}>
- <span className="icon">close</span>
+ <X size={18} />
</button>
</div>
<div className="modal-body">
@@ -1391,7 +1430,7 @@ function Git({ basePath = '/git' }) {
<div className="modal-header">
<h2>Add Webhook</h2>
<button className="btn btn-icon" onClick={() => setShowWebhookModal(false)}>
- <span className="icon">close</span>
+ <X size={18} />
</button>
</div>
<div className="modal-body">
@@ -1568,7 +1607,7 @@ function Git({ basePath = '/git' }) {
<div className="modal-header">
<h2>Webhook Secret</h2>
<button className="btn btn-icon" onClick={() => setWebhookSecret(null)}>
- <span className="icon">close</span>
+ <X size={18} />
</button>
</div>
<div className="modal-body">
@@ -1613,21 +1652,21 @@ function Git({ basePath = '/git' }) {
<div className="modal-header">
<h2>Deployment v{selectedDeployment.version} Logs</h2>
<button className="btn btn-icon" onClick={() => setShowDeploymentLogs(false)}>
- <span className="icon">close</span>
+ <X size={18} />
</button>
</div>
<div className="modal-body">
<div className="deployment-summary">
<div className="summary-item">
<span className="label">Status:</span>
- <span className={`status-badge ${selectedDeployment.status}`}>
+ <Pill kind={getStatusColor(selectedDeployment.status)}>
{selectedDeployment.status}
- </span>
+ </Pill>
</div>
{selectedDeployment.commit_sha && (
<div className="summary-item">
<span className="label">Commit:</span>
- <code>{selectedDeployment.commit_sha.slice(0, 7)}</code>
+ <code className="git-hash">{selectedDeployment.commit_sha.slice(0, 7)}</code>
</div>
)}
<div className="summary-item">
diff --git a/frontend/src/styles/pages/_git.scss b/frontend/src/styles/pages/_git.scss
index 488d49ea..52320982 100644
--- a/frontend/src/styles/pages/_git.scss
+++ b/frontend/src/styles/pages/_git.scss
@@ -1,6 +1,10 @@
// ============================================
-// GIT PAGE
+// GIT PAGE (redesign — infra console look)
// ============================================
+// Consumes the sk- design-system primitives (MetricCard, Pill, .sk-dtable,
+// .sk-cell-*); page-specific atoms are prefixed `git-`. Everything stays
+// scoped under .git-page. Provider-OAuth / Gitea-metrics prototype regions
+// are intentionally absent (no backend — see docs/REDESIGN_MAP.md §5).
.git-page {
.page-header {
@@ -19,7 +23,7 @@
}
.page-description {
- color: $text-secondary;
+ color: var(--text-dim);
margin: 0;
}
}
@@ -37,38 +41,58 @@
min-height: 400px;
}
+ .loading-state {
+ display: flex;
+ justify-content: center;
+ padding: $space-10;
+ }
+
+ // ── not-installed empty state ───────────────────────────
.empty-state-large {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px $space-6;
- background: $bg-card;
- border-radius: $radius-xl;
+ background: var(--surface);
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius-lg);
text-align: center;
.empty-icon {
- color: $text-tertiary;
+ width: 84px;
+ height: 84px;
+ border-radius: 20px;
+ display: grid;
+ place-items: center;
+ background: var(--accent-bg);
+ color: var(--accent-bright);
margin-bottom: $space-6;
+
+ svg {
+ width: 40px;
+ height: 40px;
+ }
}
h2 {
margin: 0 0 $space-3 0;
font-size: $font-size-2xl;
font-weight: $font-weight-semibold;
+ letter-spacing: -0.01em;
}
p {
margin: 0 0 $space-6 0;
- color: $text-secondary;
+ color: var(--text-dim);
max-width: 400px;
}
}
.resource-warning {
- background: fade($warning, 10%);
- border: 1px solid fade($warning, 30%);
- border-radius: $radius-lg;
+ background: var(--amber-bg);
+ border: 1px solid rgba(245, 185, 69, 0.3);
+ border-radius: var(--radius);
padding: $space-5;
margin-bottom: $space-6;
text-align: left;
@@ -79,17 +103,22 @@
align-items: center;
gap: $space-2;
margin-bottom: $space-3;
- color: $warning;
+ color: var(--amber);
strong {
- color: $text-primary;
+ font-family: var(--mono);
+ font-size: 11px;
+ font-weight: $font-weight-semibold;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--amber);
}
}
ul {
margin: 0;
padding-left: $space-5;
- color: $text-secondary;
+ color: var(--text-dim);
font-size: $font-size-sm;
li {
@@ -100,129 +129,290 @@
}
strong {
- color: $text-primary;
+ color: var(--text);
}
}
}
}
- .tabs {
+ // ── KPI strip (real `status` payload only) ──────────────
+ .git-kpis {
+ display: grid;
+ grid-template-columns: repeat(4, 1fr);
+ gap: $space-4;
+ margin-bottom: $space-5;
+
+ @media (max-width: $breakpoint-lg) { grid-template-columns: repeat(2, 1fr); }
+ @media (max-width: $breakpoint-sm) { grid-template-columns: 1fr; }
+ }
+
+ // Text-valued KPIs ("Running", "/gitea", "1.21.x") read smaller than numerals
+ .git-kpi-text .sk-kpi__val {
display: flex;
- gap: $space-1;
- margin-bottom: $space-6;
- border-bottom: 1px solid $border-subtle;
+ align-items: center;
+ min-height: 27px;
+ font-size: 18px;
+ line-height: 1.25;
+ overflow-wrap: anywhere;
+ }
- .tab {
- padding: $space-3 $space-5;
- background: none;
- border: none;
- font-size: $font-size-base;
- font-weight: $font-weight-medium;
- color: $text-secondary;
- cursor: pointer;
- position: relative;
- transition: color $transition-fast;
+ // ── tab strip — accent wash on active (ids untouched) ───
+ .tabs {
+ gap: 2px;
+ margin-bottom: $space-5;
+ border-bottom: 1px solid var(--border-soft);
+ }
- &:hover {
- color: $text-primary;
- }
+ .tab {
+ padding: 8px 13px;
+ border-radius: 8px 8px 0 0;
+ border-bottom: 2px solid transparent;
+ margin-bottom: -1px;
+ font-size: 13px;
+ color: var(--text-dim);
+
+ &:hover {
+ color: var(--text);
+ background: var(--surface-hover);
+ }
- &.active {
- color: $accent-primary;
-
- &::after {
- content: '';
- position: absolute;
- bottom: -1px;
- left: 0;
- right: 0;
- height: 2px;
- background: $accent-primary;
- }
- }
+ &.active,
+ &[data-state="active"] {
+ color: var(--accent-bright);
+ background: var(--accent-bg);
+ border-bottom-color: var(--accent-bright);
}
}
- .tab-content {
- .section-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: $space-4;
+ // ── shared page atoms ───────────────────────────────────
+ // Count suffix inside an eyebrow heading ("Repositories · 4")
+ .git-count {
+ font-weight: $font-weight-medium;
+ color: var(--text-faint);
+ letter-spacing: 0;
+ }
- h3 {
- margin: 0;
- font-size: $font-size-md;
- font-weight: $font-weight-semibold;
- }
+ // Mono category chip (private / fork / default / protected / rollback)
+ .git-chip {
+ display: inline-flex;
+ align-items: center;
+ vertical-align: middle;
+ margin-left: 7px;
+ padding: 1px 6px;
+ border-radius: 5px;
+ font-family: var(--mono);
+ font-size: 10px;
+ font-weight: $font-weight-semibold;
+ letter-spacing: 0.05em;
+ text-transform: uppercase;
+ white-space: nowrap;
+ color: var(--text-faint);
+ background: var(--surface-3);
+
+ &--amber { color: var(--amber); background: var(--amber-bg); }
+ &--cyan { color: var(--cyan); background: var(--cyan-bg); }
+ &--green { color: var(--green); background: var(--green-bg); }
+ }
+
+ // Branch chip (mono, bordered — prototype .branch-chip)
+ .git-branch-chip {
+ display: inline-flex;
+ align-items: center;
+ gap: 5px;
+ padding: 2px 8px;
+ border: 1px solid var(--border);
+ border-radius: 6px;
+ background: var(--surface-2);
+ font-family: var(--mono);
+ font-size: 11.5px;
+ color: var(--text-dim);
+ white-space: nowrap;
+
+ svg {
+ color: var(--text-faint);
+ flex-shrink: 0;
}
}
- // Overview Tab
+ // Commit hash chip (prototype .commit .hash)
+ .git-hash {
+ font-family: var(--mono);
+ font-size: 11px;
+ color: var(--accent-bright);
+ background: var(--accent-bg);
+ padding: 2px 7px;
+ border-radius: 5px;
+ flex-shrink: 0;
+ white-space: nowrap;
+ }
+
+ // Card wrapping a .sk-dtable
+ .git-table-card {
+ background: var(--surface);
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius);
+ overflow: hidden;
+ }
+
+ // Repo / webhook icon tiles
+ .git-repo-ico {
+ width: 28px;
+ height: 28px;
+ border-radius: 8px;
+ display: grid;
+ place-items: center;
+ flex-shrink: 0;
+ background: var(--accent-bg);
+ color: var(--accent-bright);
+ }
+
+ // Brand tiles are intentional categorical colors (solid, theme-stable)
+ .git-src-tile {
+ width: 28px;
+ height: 28px;
+ border-radius: 8px;
+ display: grid;
+ place-items: center;
+ flex-shrink: 0;
+ font-family: var(--mono);
+ font-size: 10px;
+ font-weight: 700;
+ background: var(--surface-3);
+ color: var(--text-dim);
+
+ &--github { background: #24292f; color: #fff; }
+ &--gitlab { background: #fc6d26; color: #fff; }
+ &--bitbucket { background: #0052cc; color: #fff; }
+ }
+
+ .git-repocell {
+ min-width: 0;
+ }
+
+ .git-reponame {
+ font-weight: 550;
+ color: var(--text);
+
+ .own {
+ color: var(--text-faint);
+ font-weight: $font-weight-normal;
+ }
+ }
+
+ // Repo description sub-line stays prose, not mono
+ .git-repo-desc {
+ font-family: $font-main;
+ max-width: 420px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+
+ .git-chev {
+ display: block;
+ color: var(--text-ghost);
+ }
+
+ .git-row-actions {
+ display: flex;
+ justify-content: flex-end;
+ gap: 2px;
+ }
+
+ .git-danger-btn {
+ color: var(--red);
+
+ &:hover {
+ background: var(--red-bg);
+ color: var(--red);
+ }
+ }
+
+ // ── info cards (overview / access / settings) ───────────
+ .info-card {
+ background: var(--surface);
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius);
+ padding: $space-5;
+
+ h3 {
+ margin: 0 0 $space-4 0;
+ font-family: var(--mono);
+ font-size: 10.5px;
+ font-weight: $font-weight-semibold;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--text-faint);
+ }
+
+ .text-muted {
+ color: var(--text-dim);
+ font-size: $font-size-sm;
+ margin: 0 0 $space-4 0;
+ }
+ }
+
+ // ── Overview tab ─────────────────────────────────────────
.overview-tab {
display: grid;
grid-template-columns: 1fr 1fr;
- gap: $space-6;
+ gap: $space-4;
@media (max-width: $breakpoint-md) {
grid-template-columns: 1fr;
}
- .info-card {
- background: $bg-card;
- border-radius: $radius-lg;
- padding: $space-5;
-
- h3 {
- margin: 0 0 $space-4 0;
- font-size: $font-size-md;
- font-weight: $font-weight-semibold;
- }
- }
-
.info-grid {
display: grid;
- gap: $space-3;
}
.info-item {
display: flex;
justify-content: space-between;
align-items: center;
- padding: $space-2 0;
- border-bottom: 1px solid $border-subtle;
+ gap: $space-4;
+ padding: 11px 0;
+ border-bottom: 1px solid var(--border-soft);
+ font-size: 13px;
&:last-child {
border-bottom: none;
}
.info-label {
- font-size: $font-size-sm;
- color: $text-secondary;
+ font-family: var(--mono);
+ font-size: 12px;
+ color: var(--text-faint);
+ flex-shrink: 0;
}
.info-value {
- font-size: $font-size-sm;
- font-weight: $font-weight-medium;
+ font-family: var(--mono);
+ font-size: 12.5px;
+ color: var(--text);
+ text-align: right;
+ min-width: 0;
+ overflow-wrap: anywhere;
&.text-success {
- color: $success;
+ color: var(--green);
}
&.text-danger {
- color: $danger;
+ color: var(--red);
}
&.code {
- font-family: $font-mono;
- font-size: $font-size-xs;
- background: $bg-hover;
- padding: $space-1 $space-2;
+ background: var(--bg-code);
+ color: var(--text-code);
+ border: 1px solid var(--border-soft);
+ padding: 3px 8px;
border-radius: $radius-sm;
+ font-size: 11.5px;
}
a {
- color: $accent-primary;
+ color: var(--accent-bright);
text-decoration: none;
&:hover {
@@ -239,649 +429,161 @@
}
}
- // Access Tab
+ // ── Access tab ───────────────────────────────────────────
.access-tab {
display: flex;
flex-direction: column;
gap: $space-4;
- .info-card {
- background: $bg-card;
- border-radius: $radius-lg;
- padding: $space-5;
-
- h3 {
- margin: 0 0 $space-2 0;
- font-size: $font-size-md;
- font-weight: $font-weight-semibold;
- }
-
- .text-muted {
- color: $text-secondary;
- font-size: $font-size-sm;
- margin: 0 0 $space-4 0;
- }
- }
-
.access-url {
display: flex;
align-items: center;
gap: $space-3;
- background: $bg-hover;
+ background: var(--bg-code);
+ border: 1px solid var(--border-soft);
padding: $space-3 $space-4;
- border-radius: $radius-md;
+ border-radius: var(--radius-sm);
margin-bottom: $space-3;
code {
flex: 1;
- font-family: $font-mono;
- font-size: $font-size-sm;
- color: $accent-primary;
+ font-family: var(--mono);
+ font-size: 12.5px;
+ color: var(--accent-bright);
word-break: break-all;
}
}
.ssh-note {
font-size: $font-size-sm;
- color: $text-secondary;
- padding: $space-3;
- background: fade($info, 10%);
- border-radius: $radius-md;
- border: 1px solid fade($info, 35%);
+ color: var(--text-dim);
+ padding: $space-3 $space-4;
+ background: var(--cyan-bg);
+ border: 1px solid rgba(73, 199, 240, 0.25);
+ border-radius: var(--radius-sm);
strong {
- color: $text-primary;
+ color: var(--cyan);
}
}
}
- // Settings Tab
+ // ── Settings tab ─────────────────────────────────────────
.settings-tab {
display: flex;
flex-direction: column;
gap: $space-4;
- .info-card {
- background: $bg-card;
- border-radius: $radius-lg;
- padding: $space-5;
-
- h3 {
- margin: 0 0 $space-4 0;
- font-size: $font-size-md;
- font-weight: $font-weight-semibold;
- }
-
- &.danger-zone {
- border: 1px solid fade($danger, 30%);
- background: fade($danger, 5%);
-
- h3 {
- color: $danger;
- }
-
- .text-muted {
- color: $text-secondary;
- font-size: $font-size-sm;
- margin: 0;
- }
- }
- }
-
.settings-actions {
display: flex;
gap: $space-3;
+ flex-wrap: wrap;
}
}
- // Install Modal
- .modal-lg {
- max-width: 500px;
- }
-
- .install-warning {
- display: flex;
- gap: $space-3;
- background: fade($info, 10%);
- border: 1px solid fade($info, 30%);
- border-radius: $radius-lg;
- padding: $space-4;
- margin-bottom: $space-5;
-
- svg {
- flex-shrink: 0;
- color: $info;
- }
-
- strong {
- display: block;
- margin-bottom: $space-2;
- }
-
- ul {
- margin: 0;
- padding-left: $space-4;
- font-size: $font-size-sm;
- color: $text-secondary;
-
- li {
- margin-bottom: $space-1;
- }
- }
- }
-
- .required {
- color: $danger;
- }
-
- // Webhooks Tab
- .webhooks-tab {
- .webhooks-header {
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- margin-bottom: $space-5;
-
- h3 {
- margin: 0 0 $space-1 0;
- font-size: $font-size-md;
- font-weight: $font-weight-semibold;
- }
-
- .text-muted {
- color: $text-secondary;
- font-size: $font-size-sm;
- margin: 0;
- }
- }
-
- .loading-state {
- display: flex;
- justify-content: center;
- padding: $space-10;
- }
-
- .empty-state {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: $space-10;
- background: $bg-card;
- border-radius: $radius-xl;
- text-align: center;
-
- svg {
- color: $text-tertiary;
- margin-bottom: $space-4;
- }
-
- h4 {
- margin: 0 0 $space-2 0;
- font-size: $font-size-lg;
- font-weight: $font-weight-semibold;
- }
-
- p {
- margin: 0 0 $space-5 0;
- color: $text-secondary;
- }
- }
-
- .webhooks-list {
- display: flex;
- flex-direction: column;
- gap: $space-4;
- }
-
- .webhook-card {
- background: $bg-card;
- border-radius: $radius-lg;
- padding: $space-5;
- border: 1px solid $border-subtle;
- transition: border-color $transition-fast;
-
- &:hover {
- border-color: $border-default;
- }
-
- &.inactive {
- opacity: 0.7;
- background: $bg-hover;
- }
-
- .webhook-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: $space-4;
-
- .webhook-info {
- display: flex;
- align-items: center;
- gap: $space-3;
-
- h4 {
- margin: 0;
- font-size: $font-size-md;
- font-weight: $font-weight-semibold;
- }
- }
-
- .webhook-status {
- display: flex;
- align-items: center;
- gap: $space-2;
- font-size: $font-size-sm;
- color: $text-secondary;
-
- .status-dot {
- width: 8px;
- height: 8px;
- border-radius: 50%;
- background: $text-tertiary;
-
- &.active {
- background: $success;
- }
-
- &.inactive {
- background: $text-tertiary;
- }
- }
- }
- }
-
- .webhook-details {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: $space-3;
- margin-bottom: $space-4;
- padding: $space-4;
- background: $bg-hover;
- border-radius: $radius-md;
-
- .detail-item {
- display: flex;
- flex-direction: column;
- gap: $space-1;
-
- .label {
- font-size: $font-size-xs;
- color: $text-tertiary;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- }
-
- .value {
- font-size: $font-size-sm;
- color: $text-primary;
- word-break: break-all;
- }
- }
- }
-
- .webhook-actions {
- display: flex;
- gap: $space-2;
- flex-wrap: wrap;
- }
- }
-
- .source-badge {
- display: inline-flex;
- align-items: center;
- padding: $space-1 $space-2;
- border-radius: $radius-md;
- font-size: $font-size-xs;
- font-weight: $font-weight-medium;
- text-transform: uppercase;
-
- &.github {
- background: fade(#333, 15%);
- color: #333;
-
- @media (prefers-color-scheme: dark) {
- background: fade(#f0f0f0, 15%);
- color: #f0f0f0;
- }
- }
-
- &.gitlab {
- background: fade(#fc6d26, 15%);
- color: #fc6d26;
- }
-
- &.bitbucket {
- background: fade(#0052cc, 15%);
- color: #0052cc;
- }
- }
- }
-
- // Webhook Modal
- .form-row {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: $space-4;
-
- @media (max-width: $breakpoint-sm) {
- grid-template-columns: 1fr;
- }
- }
-
- .form-group.checkbox {
- label {
- display: flex;
- align-items: center;
- gap: $space-2;
- cursor: pointer;
- font-weight: $font-weight-normal;
-
- input[type="checkbox"] {
- width: 18px;
- height: 18px;
- cursor: pointer;
- }
- }
- }
-
- // Secret Display
- .secret-warning {
- display: flex;
- align-items: center;
- gap: $space-3;
- padding: $space-4;
- background: fade($warning, 15%);
- border: 1px solid fade($warning, 30%);
- border-radius: $radius-md;
- margin-bottom: $space-4;
-
- svg {
- color: $warning;
- flex-shrink: 0;
- }
-
- span {
- font-weight: $font-weight-medium;
- }
- }
-
- .secret-display {
- display: flex;
- align-items: center;
- gap: $space-3;
- padding: $space-4;
- background: $bg-hover;
- border-radius: $radius-md;
- margin-bottom: $space-4;
-
- code {
- flex: 1;
- font-family: $font-mono;
- font-size: $font-size-sm;
- word-break: break-all;
- }
- }
-
- // Repositories Tab
+ // ── Repositories tab ─────────────────────────────────────
.repositories-tab {
.repos-header {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: $space-5;
+ gap: $space-3;
+ margin-bottom: $space-3;
h3 {
margin: 0;
- font-size: $font-size-md;
+ font-family: var(--mono);
+ font-size: 10.5px;
font-weight: $font-weight-semibold;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--text-faint);
}
}
- .loading-state {
- display: flex;
- justify-content: center;
- padding: $space-10;
- }
-
- .empty-state {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: $space-10;
- background: $bg-card;
- border-radius: $radius-xl;
- text-align: center;
-
- svg {
- color: $text-tertiary;
- margin-bottom: $space-4;
- }
-
- h4 {
- margin: 0 0 $space-2 0;
- font-size: $font-size-lg;
- font-weight: $font-weight-semibold;
- }
-
- p {
- margin: 0 0 $space-5 0;
- color: $text-secondary;
- }
- }
-
- .repos-list {
- display: flex;
- flex-direction: column;
- gap: $space-3;
- }
-
- .repo-card {
- display: flex;
- align-items: center;
- padding: $space-4;
- background: $bg-card;
- border-radius: $radius-lg;
- border: 1px solid $border-subtle;
- cursor: pointer;
- transition: all $transition-fast;
-
- &:hover {
- border-color: $accent-primary;
- background: $bg-hover;
-
- .repo-arrow {
- color: $accent-primary;
- }
- }
-
- .repo-info {
- flex: 1;
- min-width: 0;
-
- .repo-name {
- display: flex;
- align-items: center;
- gap: $space-2;
- margin-bottom: $space-2;
-
- .owner {
- color: $text-secondary;
- }
-
- .name {
- font-weight: $font-weight-semibold;
- }
-
- .badge {
- padding: 2px $space-2;
- border-radius: $radius-sm;
- font-size: $font-size-xs;
- font-weight: $font-weight-medium;
-
- &.private {
- background: fade($warning, 20%);
- color: $warning;
- }
-
- &.fork {
- background: fade($info, 20%);
- color: $info;
- }
- }
- }
-
- .repo-description {
- margin: 0 0 $space-2 0;
- font-size: $font-size-sm;
- color: $text-secondary;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .repo-meta {
- display: flex;
- align-items: center;
- gap: $space-4;
- font-size: $font-size-xs;
- color: $text-tertiary;
-
- .meta-item {
- display: flex;
- align-items: center;
- gap: $space-1;
-
- svg {
- opacity: 0.6;
- }
-
- &.updated {
- margin-left: auto;
- }
- }
- }
- }
-
- .repo-arrow {
- color: $text-tertiary;
- transition: color $transition-fast;
- }
+ .git-repos-table {
+ th:nth-child(2) { width: 170px; }
+ th:nth-child(3),
+ th:nth-child(4) { width: 70px; }
+ th:nth-child(5) { width: 120px; }
+ th:last-child { width: 1%; }
}
- // Repository Detail View
- .repo-detail {
- .repo-detail-header {
- display: flex;
- align-items: flex-start;
- gap: $space-4;
- margin-bottom: $space-5;
- padding-bottom: $space-4;
- border-bottom: 1px solid $border-subtle;
-
- .btn-ghost {
- padding: $space-2;
- }
+ // ── repository detail view ──
+ .repo-detail-header {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ margin-bottom: $space-4;
+ padding-bottom: $space-4;
+ border-bottom: 1px solid var(--border-soft);
- .repo-title {
- flex: 1;
+ .repo-title {
+ flex: 1;
+ min-width: 0;
- h3 {
- margin: 0 0 $space-1 0;
- font-size: $font-size-lg;
- font-weight: $font-weight-semibold;
- }
+ h3 {
+ margin: 0;
+ font-size: 15px;
+ font-weight: $font-weight-semibold;
+ overflow-wrap: anywhere;
- p {
- margin: 0;
- font-size: $font-size-sm;
- color: $text-secondary;
+ .own {
+ color: var(--text-faint);
+ font-weight: $font-weight-normal;
}
}
- .branch-selector {
- select {
- padding: $space-2 $space-4;
- background: $bg-card;
- border: 1px solid $border-default;
- border-radius: $radius-md;
- font-size: $font-size-sm;
- color: $text-primary;
- cursor: pointer;
-
- &:focus {
- outline: none;
- border-color: $accent-primary;
- }
- }
+ p {
+ margin: 2px 0 0;
+ font-size: 12.5px;
+ color: var(--text-faint);
}
}
- .repo-detail-tabs {
- display: flex;
- gap: $space-1;
- margin-bottom: $space-4;
- border-bottom: 1px solid $border-subtle;
-
- .tab {
- display: flex;
- align-items: center;
- gap: $space-2;
- padding: $space-3 $space-4;
- background: none;
- border: none;
- font-size: $font-size-sm;
- font-weight: $font-weight-medium;
- color: $text-secondary;
- cursor: pointer;
- position: relative;
- transition: color $transition-fast;
-
- &:hover {
- color: $text-primary;
- }
+ .branch-selector select {
+ padding: 6px 10px;
+ background: var(--surface-2);
+ border: 1px solid var(--border);
+ border-radius: $radius-md;
+ font-family: var(--mono);
+ font-size: 12px;
+ color: var(--text);
+ cursor: pointer;
- &.active {
- color: $accent-primary;
-
- &::after {
- content: '';
- position: absolute;
- bottom: -1px;
- left: 0;
- right: 0;
- height: 2px;
- background: $accent-primary;
- }
- }
+ &:focus {
+ outline: none;
+ border-color: var(--accent);
}
}
+ }
- .repo-detail-content {
- background: $bg-card;
- border-radius: $radius-lg;
- border: 1px solid $border-subtle;
- }
+ .repo-detail-content {
+ background: var(--surface);
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius);
+ overflow: hidden;
}
- // Files Browser
+ // ── files browser (mono tree, re-tinted only) ──
.files-browser {
.breadcrumb {
display: flex;
align-items: center;
- padding: $space-3 $space-4;
- background: $bg-hover;
- border-bottom: 1px solid $border-subtle;
- font-size: $font-size-sm;
+ flex-wrap: wrap;
+ padding: 9px $space-4;
+ background: var(--surface-2);
+ border-bottom: 1px solid var(--border-soft);
+ font-family: var(--mono);
+ font-size: 12px;
button {
background: none;
border: none;
- color: $accent-primary;
- cursor: pointer;
padding: 0;
+ font: inherit;
+ color: var(--accent-bright);
+ cursor: pointer;
&:hover {
text-decoration: underline;
@@ -889,8 +591,8 @@
}
.separator {
- margin: 0 $space-2;
- color: $text-tertiary;
+ margin: 0 6px;
+ color: var(--text-ghost);
}
}
@@ -899,9 +601,9 @@
display: flex;
align-items: center;
gap: $space-3;
- padding: $space-3 $space-4;
- border-bottom: 1px solid $border-subtle;
- transition: background $transition-fast;
+ padding: 9px $space-4;
+ border-bottom: 1px solid var(--border-soft);
+ transition: background 0.12s;
&:last-child {
border-bottom: none;
@@ -911,40 +613,44 @@
cursor: pointer;
&:hover {
- background: $bg-hover;
+ background: var(--surface-2);
}
}
.file-icon {
- color: $text-tertiary;
+ display: inline-flex;
+ color: var(--text-faint);
}
- &.dir .file-icon svg {
- color: $info;
+ &.dir .file-icon {
+ color: var(--accent-bright);
}
.file-name {
flex: 1;
- font-size: $font-size-sm;
+ min-width: 0;
+ font-family: var(--mono);
+ font-size: 12.5px;
+ overflow-wrap: anywhere;
}
.file-size {
- font-size: $font-size-xs;
- color: $text-tertiary;
- font-family: $font-mono;
+ font-family: var(--mono);
+ font-size: 11px;
+ color: var(--text-faint);
}
}
}
}
- // Commits List
+ // ── commits (feed-style rows + hash chips) ──
.commits-list {
.commit-item {
display: flex;
align-items: flex-start;
- gap: $space-4;
- padding: $space-4;
- border-bottom: 1px solid $border-subtle;
+ gap: $space-3;
+ padding: 12px $space-4;
+ border-bottom: 1px solid var(--border-soft);
&:last-child {
border-bottom: none;
@@ -955,100 +661,85 @@
min-width: 0;
.commit-message {
- font-size: $font-size-sm;
+ font-size: 13px;
font-weight: $font-weight-medium;
- margin-bottom: $space-1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.commit-meta {
- font-size: $font-size-xs;
- color: $text-tertiary;
+ margin-top: 3px;
+ font-family: var(--mono);
+ font-size: 11px;
+ color: var(--text-faint);
.author {
- color: $text-secondary;
+ color: var(--text-dim);
margin-right: $space-2;
}
}
}
.commit-sha {
- code {
- padding: $space-1 $space-2;
- background: $bg-hover;
- border-radius: $radius-sm;
- font-size: $font-size-xs;
- font-family: $font-mono;
- color: $accent-primary;
- }
+ flex-shrink: 0;
+ margin-top: 1px;
}
}
.btn-block {
- width: 100%;
+ width: calc(100% - #{$space-8});
margin: $space-4;
- width: calc(100% - $space-8);
}
}
- // Branches List
+ // ── branches ──
.branches-list {
.branch-item {
display: flex;
align-items: center;
gap: $space-4;
- padding: $space-4;
- border-bottom: 1px solid $border-subtle;
+ padding: 11px $space-4;
+ border-bottom: 1px solid var(--border-soft);
&:last-child {
border-bottom: none;
}
&.active {
- background: fade($accent-primary-raw, 5%);
+ background: var(--accent-bg-soft);
}
.branch-info {
flex: 1;
+ min-width: 0;
.branch-name {
display: flex;
align-items: center;
gap: $space-2;
- font-size: $font-size-sm;
+ font-family: var(--mono);
+ font-size: 12.5px;
font-weight: $font-weight-medium;
- margin-bottom: $space-1;
svg {
- color: $text-tertiary;
+ color: var(--text-faint);
+ flex-shrink: 0;
}
- .badge {
- padding: 2px $space-2;
- border-radius: $radius-sm;
- font-size: $font-size-xs;
- font-weight: $font-weight-medium;
-
- &.default {
- background: fade($success, 20%);
- color: $success;
- }
-
- &.protected {
- background: fade($warning, 20%);
- color: $warning;
- }
+ .git-chip {
+ margin-left: 0;
}
}
.branch-commit {
- font-size: $font-size-xs;
- color: $text-tertiary;
+ margin-top: 3px;
+ font-family: var(--mono);
+ font-size: 11px;
+ color: var(--text-faint);
code {
- color: $accent-primary;
+ color: var(--accent-bright);
margin-right: $space-2;
}
}
@@ -1057,216 +748,333 @@
}
}
- // Deployments Tab
- .deployments-tab {
- .deployments-header {
+ // ── Webhooks tab ─────────────────────────────────────────
+ .webhooks-tab {
+ .webhooks-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
- margin-bottom: $space-5;
+ gap: $space-4;
+ margin-bottom: $space-4;
h3 {
- margin: 0 0 $space-1 0;
- font-size: $font-size-md;
+ margin: 0;
+ font-family: var(--mono);
+ font-size: 10.5px;
font-weight: $font-weight-semibold;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--text-faint);
}
.text-muted {
- color: $text-secondary;
- font-size: $font-size-sm;
- margin: 0;
+ color: var(--text-dim);
+ font-size: 12.5px;
+ margin: $space-2 0 0;
}
}
- .loading-state {
- display: flex;
- justify-content: center;
- padding: $space-10;
- }
+ .git-webhooks-table {
+ th:last-child { width: 1%; }
+ td:last-child { white-space: nowrap; }
- .empty-state {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: $space-10;
- background: $bg-card;
- border-radius: $radius-xl;
- text-align: center;
+ .git-url {
+ max-width: 280px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
- svg {
- color: $text-tertiary;
- margin-bottom: $space-4;
+ // disabled hooks dim, but their action buttons stay legible
+ tbody tr.is-disabled td:not(:last-child) {
+ opacity: 0.55;
}
+ }
+ }
+
+ // ── Deployments tab (feed-style history rows) ────────────
+ .deployments-tab {
+ .deployments-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-start;
+ gap: $space-4;
+ margin-bottom: $space-4;
- h4 {
- margin: 0 0 $space-2 0;
- font-size: $font-size-lg;
+ h3 {
+ margin: 0;
+ font-family: var(--mono);
+ font-size: 10.5px;
font-weight: $font-weight-semibold;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--text-faint);
}
- p {
- margin: 0 0 $space-5 0;
- color: $text-secondary;
+ .text-muted {
+ color: var(--text-dim);
+ font-size: 12.5px;
+ margin: $space-2 0 0;
}
}
+ }
- .deployments-list {
- display: flex;
- flex-direction: column;
- gap: $space-4;
+ .git-deploys-card {
+ background: var(--surface);
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius);
+ padding: 2px $space-5;
+ }
+
+ .git-deploy-row {
+ display: flex;
+ align-items: flex-start;
+ gap: 13px;
+ padding: 13px 0;
+ border-top: 1px solid var(--border-soft);
+
+ &:first-child {
+ border-top: none;
}
- .deployment-card {
- background: $bg-card;
- border-radius: $radius-lg;
- padding: $space-5;
- border: 1px solid $border-subtle;
+ @media (max-width: $breakpoint-sm) {
+ flex-wrap: wrap;
+ }
+ }
- &.success {
- border-color: fade($success, 45%);
- }
+ .git-deploy-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: 3px;
+ margin-top: 6px;
+ flex-shrink: 0;
+ background: var(--text-ghost);
+
+ &--green { background: var(--green); box-shadow: 0 0 6px var(--green); }
+ &--red { background: var(--red); }
+ &--amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
+ }
- &.failed {
- border-color: fade($danger, 45%);
- }
+ .git-deploy-body {
+ flex: 1;
+ min-width: 0;
+ }
- &.running {
- border-color: fade($warning, 45%);
- }
+ .git-deploy-top {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ flex-wrap: wrap;
+ }
- .deployment-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: $space-4;
+ .git-deploy-version {
+ font-family: var(--mono);
+ font-size: 13px;
+ font-weight: $font-weight-semibold;
+ color: var(--text);
+ }
- .deployment-version {
- display: flex;
- align-items: center;
- gap: $space-3;
+ .git-deploy-msg {
+ margin-top: 4px;
+ font-size: 13px;
+ color: var(--text-dim);
+ overflow-wrap: anywhere;
+ }
- .version {
- font-size: $font-size-lg;
- font-weight: $font-weight-semibold;
- }
+ .git-deploy-meta {
+ margin-top: 4px;
+ display: flex;
+ flex-wrap: wrap;
+ gap: 4px;
+ font-family: var(--mono);
+ font-size: 11px;
+ color: var(--text-faint);
+
+ span + span::before {
+ content: '·';
+ margin-right: 4px;
+ color: var(--text-ghost);
+ }
+ }
- .badge {
- padding: 2px $space-2;
- border-radius: $radius-sm;
- font-size: $font-size-xs;
- font-weight: $font-weight-medium;
+ .git-deploy-error {
+ margin-top: 6px;
+ padding: 6px 10px;
+ border-radius: $radius-sm;
+ background: var(--red-bg);
+ color: var(--red);
+ font-size: 12px;
+ overflow-wrap: anywhere;
+ }
- &.rollback {
- background: fade($info, 20%);
- color: $info;
- }
- }
+ .git-deploy-side {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-end;
+ gap: $space-2;
+ flex-shrink: 0;
- .status-badge {
- padding: $space-1 $space-2;
- border-radius: $radius-md;
- font-size: $font-size-xs;
- font-weight: $font-weight-medium;
- text-transform: uppercase;
+ @media (max-width: $breakpoint-sm) {
+ width: 100%;
+ flex-direction: row;
+ align-items: center;
+ justify-content: space-between;
+ padding-left: 21px;
+ }
+ }
- &.success {
- background: fade($success, 15%);
- color: $success;
- }
+ .git-deploy-time {
+ font-family: var(--mono);
+ font-size: 10.5px;
+ color: var(--text-faint);
+ }
- &.failed {
- background: fade($danger, 15%);
- color: $danger;
- }
+ .git-deploy-actions {
+ display: flex;
+ gap: $space-1;
+ flex-wrap: wrap;
+ justify-content: flex-end;
+ }
- &.running {
- background: fade($warning, 15%);
- color: $warning;
- }
- }
- }
+ // tables scroll instead of crushing on small screens
+ @media (max-width: $breakpoint-md) {
+ .git-table-card {
+ overflow-x: auto;
+ }
- .deployment-time {
- font-size: $font-size-sm;
- color: $text-tertiary;
- }
- }
+ .git-repos-table {
+ min-width: 720px;
+ }
- .deployment-details {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
- gap: $space-3;
- margin-bottom: $space-4;
- padding: $space-4;
- background: $bg-hover;
- border-radius: $radius-md;
+ .git-webhooks-table {
+ min-width: 960px;
+ }
+ }
- .detail-item {
- display: flex;
- align-items: center;
- gap: $space-2;
- font-size: $font-size-sm;
+ // ── Modals ───────────────────────────────────────────────
+ .modal-lg {
+ max-width: 500px;
+ }
- .label {
- color: $text-tertiary;
- }
+ .modal-xl {
+ max-width: 800px;
+ }
- .value {
- color: $text-primary;
- }
+ .modal-header .btn-icon {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 30px;
+ height: 30px;
+ padding: 0;
+ border: none;
+ background: none;
+ border-radius: $radius-md;
+ color: var(--text-faint);
+ cursor: pointer;
+ transition: background $transition-fast, color $transition-fast;
- code {
- padding: 2px $space-2;
- background: $bg-card;
- border-radius: $radius-sm;
- font-size: $font-size-xs;
- font-family: $font-mono;
- color: $accent-primary;
- }
+ &:hover {
+ background: var(--surface-hover);
+ color: var(--text);
+ }
+ }
- &.commit-message {
- grid-column: 1 / -1;
+ // field labels → mono eyebrows (checkbox rows stay sentence-case)
+ .modal {
+ .form-group:not(.checkbox) > label {
+ font-family: var(--mono);
+ font-size: 10.5px;
+ font-weight: $font-weight-semibold;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--text-faint);
+ }
+ }
- .message {
- color: $text-secondary;
- font-style: italic;
- }
- }
+ .required {
+ color: var(--red);
+ }
+
+ .install-warning {
+ display: flex;
+ gap: $space-3;
+ background: var(--accent-bg-soft);
+ border: 1px solid var(--accent-dim);
+ border-radius: var(--radius);
+ padding: $space-4;
+ margin-bottom: $space-5;
+ font-size: $font-size-sm;
- &.error {
- grid-column: 1 / -1;
- color: $danger;
+ svg {
+ flex-shrink: 0;
+ color: var(--accent-bright);
+ }
- .value {
- color: $danger;
- }
- }
- }
+ strong {
+ display: block;
+ margin-bottom: $space-2;
+ color: var(--text);
+ }
+
+ ul {
+ margin: 0;
+ padding-left: $space-4;
+ font-size: $font-size-sm;
+ color: var(--text-dim);
+
+ li {
+ margin-bottom: $space-1;
}
+ }
+ }
- .deployment-actions {
- display: flex;
- gap: $space-2;
- flex-wrap: wrap;
+ .form-row {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: $space-4;
+
+ @media (max-width: $breakpoint-sm) {
+ grid-template-columns: 1fr;
+ }
+ }
+
+ .form-group.checkbox {
+ label {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ cursor: pointer;
+ font-size: 13px;
+ font-weight: $font-weight-normal;
+ color: var(--text);
+
+ input[type="checkbox"] {
+ width: 16px;
+ height: 16px;
+ cursor: pointer;
+ accent-color: var(--accent);
}
}
}
- // Form section for webhook modal
.form-section {
margin-top: $space-5;
padding-top: $space-5;
- border-top: 1px solid $border-subtle;
+ border-top: 1px solid var(--border-soft);
h4 {
margin: 0 0 $space-1 0;
- font-size: $font-size-base;
+ font-family: var(--mono);
+ font-size: 10.5px;
font-weight: $font-weight-semibold;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--text-faint);
}
.text-muted {
- color: $text-secondary;
+ color: var(--text-dim);
font-size: $font-size-sm;
margin: 0 0 $space-4 0;
}
@@ -1274,100 +1082,115 @@
.form-hint {
display: block;
- font-size: $font-size-xs;
- color: $text-tertiary;
+ font-family: var(--mono);
+ font-size: 11px;
+ color: var(--text-faint);
margin-top: $space-1;
}
+ // deploy-script editors sit on the code surface
.form-group textarea {
width: 100%;
min-height: 80px;
padding: $space-3;
- font-family: $font-mono;
- font-size: $font-size-sm;
- background: $bg-elevated;
- border: 1px solid $border-default;
+ font-family: var(--mono);
+ font-size: 12px;
+ line-height: 1.6;
+ background: var(--bg-code);
+ color: var(--text-code);
+ border: 1px solid var(--border);
border-radius: $radius-md;
- color: $text-primary;
resize: vertical;
&:focus {
outline: none;
- border-color: $accent-primary;
+ border-color: var(--accent);
}
&::placeholder {
- color: $text-tertiary;
+ color: var(--text-ghost);
}
}
- // Modal XL size
- .modal-xl {
- max-width: 800px;
+ // ── webhook secret modal ──
+ .secret-warning {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ background: var(--amber-bg);
+ border: 1px solid rgba(245, 185, 69, 0.3);
+ border-radius: var(--radius-sm);
+ margin-bottom: $space-4;
+
+ svg {
+ color: var(--amber);
+ flex-shrink: 0;
+ }
+
+ span {
+ font-size: 13px;
+ font-weight: $font-weight-medium;
+ color: var(--text);
+ }
+ }
+
+ .secret-display {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ background: var(--bg-code);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-sm);
+ margin-bottom: $space-4;
+
+ code {
+ flex: 1;
+ font-family: var(--mono);
+ font-size: 12.5px;
+ color: var(--accent-bright);
+ word-break: break-all;
+ }
}
- // Deployment Logs Modal
+ // ── deployment logs modal ──
.deployment-summary {
display: flex;
flex-wrap: wrap;
- gap: $space-4;
- padding: $space-4;
- background: $bg-hover;
- border-radius: $radius-md;
+ gap: $space-3 $space-5;
+ padding: $space-3 $space-4;
+ background: var(--surface-2);
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius-sm);
margin-bottom: $space-4;
.summary-item {
display: flex;
align-items: center;
gap: $space-2;
- font-size: $font-size-sm;
+ font-family: var(--mono);
+ font-size: 12px;
+ color: var(--text);
.label {
- color: $text-tertiary;
- }
-
- .status-badge {
- padding: $space-1 $space-2;
- border-radius: $radius-md;
- font-size: $font-size-xs;
- font-weight: $font-weight-medium;
+ font-size: 10.5px;
+ letter-spacing: 0.05em;
text-transform: uppercase;
-
- &.success {
- background: fade($success, 15%);
- color: $success;
- }
-
- &.failed {
- background: fade($danger, 15%);
- color: $danger;
- }
-
- &.running {
- background: fade($warning, 15%);
- color: $warning;
- }
- }
-
- code {
- padding: 2px $space-2;
- background: $bg-card;
- border-radius: $radius-sm;
- font-size: $font-size-xs;
- font-family: $font-mono;
- color: $accent-primary;
+ color: var(--text-faint);
}
}
}
.deployment-error {
- padding: $space-4;
- background: fade($danger, 10%);
- border: 1px solid fade($danger, 30%);
- border-radius: $radius-md;
+ padding: $space-3 $space-4;
+ background: var(--red-bg);
+ border: 1px solid rgba(251, 111, 111, 0.3);
+ border-radius: var(--radius-sm);
margin-bottom: $space-4;
- color: $danger;
- font-size: $font-size-sm;
+ color: var(--red);
+ font-size: 13px;
+ overflow-wrap: anywhere;
strong {
margin-right: $space-2;
@@ -1379,29 +1202,37 @@
h4 {
margin: 0 0 $space-2 0;
- font-size: $font-size-sm;
+ font-family: var(--mono);
+ font-size: 10.5px;
font-weight: $font-weight-semibold;
- color: $text-secondary;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--text-faint);
}
+ // Git-owned console well (independent of any other page's partial)
.log-output {
- padding: $space-4;
- background: $bg-hover;
- border-radius: $radius-md;
- font-family: $font-mono;
- font-size: $font-size-xs;
- color: $text-primary;
+ margin: 0;
+ padding: $space-3 $space-4;
+ background: var(--bg-code);
+ color: var(--text-code);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-sm);
+ font-family: var(--mono);
+ font-size: 12px;
+ line-height: 1.62;
white-space: pre-wrap;
word-break: break-all;
max-height: 300px;
overflow-y: auto;
- margin: 0;
+ @include custom-scrollbar();
}
}
.no-logs {
padding: $space-6;
text-align: center;
- color: $text-tertiary;
+ color: var(--text-faint);
+ font-size: 13px;
}
}