Complete Track C roadmap: dashboard, job follow, actions, activity, roles
CI / test (push) Successful in 9m55s

Ship the modern dashboard, job tray log follow, container overflow actions, stacks search, activity history, role-gated controls, invite form with copy token, first-connect checklist, and mark Track C done on the roadmap.
This commit is contained in:
2026-07-10 22:31:16 -04:00
parent 2d8b24ec0e
commit a42f5e4dcf
7 changed files with 1350 additions and 523 deletions
+613 -128
View File
@@ -576,7 +576,9 @@ body {
max-width: 100%;
}
/* ─── Dashboard: fit viewport, no outer scroll ─── */
/* ═══════════════════════════════════════════════════════════
Dashboard redesign — modern fit-to-viewport shell
═══════════════════════════════════════════════════════════ */
#dashboard-view.view {
display: flex !important;
flex-direction: column;
@@ -584,229 +586,551 @@ body {
height: 100% !important;
max-height: 100%;
min-height: 0;
padding: 12px 16px 12px !important;
padding: 0 !important;
background:
radial-gradient(900px 420px at 8% -10%, rgba(52, 211, 153, 0.1), transparent 55%),
radial-gradient(700px 360px at 100% 0%, rgba(56, 189, 248, 0.07), transparent 50%),
transparent;
}
#dashboard-view.hidden {
display: none !important;
}
#dashboard-view .dashboard-layout {
#dashboard-view .dashboard-layout.dash {
flex: 1 1 auto;
min-height: 0;
height: 100%;
max-height: 100%;
display: grid;
grid-template-rows: auto auto minmax(0, 1fr) auto;
gap: 10px;
gap: 14px;
width: 100%;
max-width: 100%;
overflow: hidden;
padding: 18px 22px 16px;
box-sizing: border-box;
}
#dashboard-view .dashboard-header {
flex: 0 0 auto;
margin-bottom: 0 !important;
min-height: 0;
}
#dashboard-view .dashboard-header h2 {
font-size: 1.2rem;
margin-bottom: 0;
}
#dashboard-view .dashboard-header .page-subtitle {
font-size: 12px;
line-height: 1.3;
}
#dashboard-view .dashboard-stats-row {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
margin: 0 !important;
min-height: 0;
flex: 0 0 auto;
}
#dashboard-view .stat-card {
/* Header */
.dash-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
min-width: 0;
max-width: 100%;
overflow: hidden;
height: auto;
}
.dash-kicker {
margin: 0 0 2px;
font-size: 11px;
font-weight: 650;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--accent-primary);
}
.dash-title {
margin: 0;
font-size: 1.55rem;
font-weight: 750;
letter-spacing: -0.03em;
color: var(--text-primary);
line-height: 1.15;
}
.dash-subtitle {
margin: 4px 0 0;
font-size: 13px;
color: var(--text-muted);
line-height: 1.4;
}
.dash-header-actions {
display: flex;
align-items: center;
padding: 10px 12px !important;
gap: 10px !important;
}
#dashboard-view .stat-card:hover,
#dashboard-view .info-card:hover {
transform: none; /* avoid hover lift causing perceived overflow */
}
#dashboard-view .stat-card-icon {
width: 36px !important;
height: 36px !important;
font-size: 1rem !important;
border-radius: 8px;
gap: 8px;
flex-shrink: 0;
}
#dashboard-view .stat-card-content {
.dash-icon-btn {
width: 36px;
height: 36px;
border-radius: 10px;
border: 1px solid var(--border-color);
background: rgba(26, 34, 46, 0.85);
color: var(--text-secondary);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.dash-icon-btn:hover {
color: var(--accent-primary);
border-color: rgba(52, 211, 153, 0.4);
background: rgba(52, 211, 153, 0.08);
}
.dash-icon-btn--sm {
width: 30px;
height: 30px;
border-radius: 8px;
font-size: 12px;
}
.dash-chip-btn {
display: inline-flex;
align-items: center;
gap: 8px;
height: 36px;
padding: 0 14px;
border-radius: 999px;
border: none;
cursor: pointer;
font-weight: 650;
font-size: 13px;
color: #052e1c;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
box-shadow: 0 6px 20px rgba(52, 211, 153, 0.25);
transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dash-chip-btn:hover {
transform: translateY(-1px);
box-shadow: 0 8px 24px rgba(52, 211, 153, 0.35);
}
/* KPI strip */
.dash-kpis {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
min-width: 0;
overflow: hidden;
}
#dashboard-view .stat-card-value {
font-size: 1.35rem !important;
margin-bottom: 2px !important;
.dash-kpi {
position: relative;
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
padding: 14px 16px;
border-radius: 16px;
border: 1px solid var(--border-color);
background:
linear-gradient(145deg, rgba(26, 34, 46, 0.95), rgba(15, 19, 26, 0.9));
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 1.1;
transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
#dashboard-view .stat-card-label {
font-size: 0.7rem !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.2;
margin: 0;
letter-spacing: 0.04em;
.dash-kpi:hover {
border-color: rgba(52, 211, 153, 0.28);
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(52, 211, 153, 0.08);
}
/* 2×2 panels share remaining viewport height */
#dashboard-view .dashboard-panels {
.dash-kpi-icon {
width: 42px;
height: 42px;
border-radius: 12px;
display: grid;
place-items: center;
flex-shrink: 0;
font-size: 15px;
}
.dash-kpi--ok .dash-kpi-icon {
background: rgba(74, 222, 128, 0.14);
color: #4ade80;
}
.dash-kpi--stop .dash-kpi-icon {
background: rgba(248, 113, 113, 0.14);
color: #f87171;
}
.dash-kpi--info .dash-kpi-icon {
background: rgba(56, 189, 248, 0.14);
color: #38bdf8;
}
.dash-kpi--teal .dash-kpi-icon {
background: rgba(45, 212, 191, 0.14);
color: #2dd4bf;
}
.dash-kpi-meta {
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.dash-kpi-label {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--text-muted);
}
.dash-kpi-value {
font-size: 1.65rem;
font-weight: 750;
letter-spacing: -0.03em;
line-height: 1.05;
color: var(--text-primary);
font-variant-numeric: tabular-nums;
}
.dash-kpi-glow {
position: absolute;
right: -20%;
top: -40%;
width: 90px;
height: 90px;
border-radius: 50%;
opacity: 0.18;
pointer-events: none;
filter: blur(8px);
}
.dash-kpi--ok .dash-kpi-glow { background: #4ade80; }
.dash-kpi--stop .dash-kpi-glow { background: #f87171; }
.dash-kpi--info .dash-kpi-glow { background: #38bdf8; }
.dash-kpi--teal .dash-kpi-glow { background: #2dd4bf; }
/* Panels */
.dash-panels {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
gap: 10px;
gap: 12px;
min-height: 0;
overflow: hidden;
}
#dashboard-view .info-card {
.dash-card {
min-width: 0;
max-width: 100%;
min-height: 0;
height: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
padding: 10px 12px !important;
}
#dashboard-view .info-card-title {
font-size: 0.85rem !important;
margin-bottom: 6px !important;
padding-bottom: 6px !important;
flex: 0 0 auto;
white-space: nowrap;
border-radius: 16px;
border: 1px solid var(--border-color);
background:
linear-gradient(180deg, rgba(26, 34, 46, 0.92) 0%, rgba(15, 19, 26, 0.88) 100%);
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
overflow: hidden;
text-overflow: ellipsis;
}
#dashboard-view .info-card-heading {
.dash-card-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 12px 14px 8px;
flex: 0 0 auto;
margin-bottom: 6px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
#dashboard-view .info-card-heading .info-card-title {
margin-bottom: 0 !important;
padding-bottom: 0 !important;
border-bottom: none !important;
.dash-card-title {
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 12.5px;
font-weight: 650;
letter-spacing: 0.02em;
color: var(--text-primary);
}
#dashboard-view .info-card-body {
min-width: 0;
min-height: 0;
.dash-card-title i {
color: var(--accent-primary);
font-size: 12px;
opacity: 0.95;
}
.dash-card-body {
flex: 1 1 auto;
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
font-size: 0.8rem;
padding: 10px 14px 14px;
font-size: 13px;
}
#dashboard-view .info-card-body .key-value {
.dash-empty {
color: var(--text-muted);
font-size: 12.5px;
padding: 18px 4px;
text-align: center;
}
/* Metric rows inside cards */
.dash-metric {
display: flex;
align-items: center;
justify-content: space-between;
align-items: flex-start;
gap: 10px;
gap: 12px;
padding: 7px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.045);
min-width: 0;
padding: 3px 0 !important;
}
#dashboard-view .info-card-body .key-value .key,
#dashboard-view .info-card-body .key-value span:first-child {
.dash-metric:last-child {
border-bottom: none;
}
.dash-metric-label {
color: var(--text-muted);
font-size: 12px;
flex: 0 1 auto;
min-width: 0;
color: var(--text-secondary);
font-size: 0.78rem;
}
#dashboard-view .info-card-body .key-value .value,
#dashboard-view .info-card-body .key-value strong {
flex: 1 1 auto;
min-width: 0;
.dash-metric-value {
color: var(--text-primary);
font-weight: 600;
font-size: 12.5px;
text-align: right;
min-width: 0;
overflow-wrap: anywhere;
word-break: break-word;
color: var(--text-primary);
font-size: 0.78rem;
font-variant-numeric: tabular-nums;
}
#dashboard-view .info-card-body .d-flex {
/* Disk usage bars */
.dash-disk-row {
display: grid;
gap: 4px;
padding: 8px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.dash-disk-row:last-child {
border-bottom: none;
}
.dash-disk-top {
display: flex;
justify-content: space-between;
gap: 10px;
font-size: 12px;
}
.dash-disk-top span {
color: var(--text-muted);
}
.dash-disk-top strong {
color: var(--text-primary);
font-weight: 650;
font-variant-numeric: tabular-nums;
}
.dash-disk-bar {
height: 6px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.06);
overflow: hidden;
}
.dash-disk-bar > i {
display: block;
height: 100%;
border-radius: 999px;
background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
min-width: 0;
max-width: 100%;
}
#dashboard-view .events-timeline {
/* Events */
.dash-events.events-timeline {
max-height: none !important;
height: 100%;
min-height: 0;
font-size: 0.72rem;
}
#dashboard-view .dashboard-actions {
flex: 0 0 auto;
height: auto !important;
min-height: 0;
padding: 8px 12px !important;
#dashboard-view .events-timeline .event-row {
grid-template-columns: 58px minmax(48px, 64px) minmax(0, 1fr);
gap: 6px;
padding: 6px 4px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 6px;
}
#dashboard-view .dashboard-actions .info-card-title {
margin-bottom: 6px !important;
padding-bottom: 6px !important;
#dashboard-view .events-timeline .event-row:hover {
background: rgba(255, 255, 255, 0.03);
}
#dashboard-view .dashboard-actions .info-card-body {
overflow: visible;
flex: 0 0 auto;
/* Skeleton */
.dash-skeleton {
display: grid;
gap: 10px;
padding: 6px 0;
}
#dashboard-view .dashboard-action-btns .btn {
.dash-skel-line {
height: 12px;
border-radius: 6px;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0.04),
rgba(255, 255, 255, 0.09),
rgba(255, 255, 255, 0.04)
);
background-size: 200% 100%;
animation: dashShimmer 1.2s ease-in-out infinite;
}
.dash-skel-line.short {
width: 55%;
}
@keyframes dashShimmer {
0% { background-position: 100% 0; }
100% { background-position: -100% 0; }
}
/* Actions dock */
.dash-actions {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
min-width: 0;
padding: 10px 12px;
border-radius: 14px;
border: 1px solid var(--border-color);
background: rgba(15, 19, 26, 0.75);
backdrop-filter: blur(10px);
}
.dash-actions-label {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 11px;
font-weight: 650;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--text-muted);
flex-shrink: 0;
}
.dash-actions-label i {
color: var(--accent-primary);
}
.dash-actions-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
min-width: 0;
flex: 1 1 auto;
}
.dash-action {
display: inline-flex;
align-items: center;
gap: 7px;
height: 32px;
padding: 0 12px;
border-radius: 999px;
border: 1px solid var(--border-color);
background: rgba(26, 34, 46, 0.9);
color: var(--text-secondary);
font-size: 12.5px;
font-weight: 600;
cursor: pointer;
transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
white-space: nowrap;
}
.dash-action:hover {
color: var(--text-primary);
border-color: rgba(52, 211, 153, 0.4);
background: rgba(52, 211, 153, 0.1);
}
.dash-action--warn {
border-color: rgba(251, 191, 36, 0.25);
color: #fbbf24;
}
.dash-action--warn:hover {
border-color: rgba(251, 191, 36, 0.5);
background: rgba(251, 191, 36, 0.1);
color: #fcd34d;
}
/* Compat: key-value blocks injected by JS map to metric style */
#dashboard-view .key-value {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
padding: 7px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.045);
min-width: 0;
}
#dashboard-view .key-value:last-child {
border-bottom: none;
}
#dashboard-view .key-value .key,
#dashboard-view .key-value > span:first-child {
color: var(--text-muted);
font-size: 12px;
}
#dashboard-view .key-value .value,
#dashboard-view .key-value strong {
color: var(--text-primary);
font-weight: 600;
font-size: 12.5px;
text-align: right;
min-width: 0;
overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
#dashboard-view .dashboard-stats-row {
.dash-kpis {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 900px) {
#dashboard-view .dashboard-panels {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: none;
overflow-y: auto;
}
#dashboard-view .dashboard-layout {
grid-template-rows: auto auto minmax(0, 1fr) auto;
}
#dashboard-view.view {
overflow-y: auto !important;
}
#dashboard-view .dashboard-layout.dash {
grid-template-rows: auto auto auto auto;
height: auto;
max-height: none;
overflow: visible;
}
.dash-panels {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: none;
overflow: visible;
}
.dash-card {
min-height: 180px;
}
}
@media (prefers-reduced-motion: reduce) {
.dash-skel-line {
animation: none;
}
.dash-chip-btn:hover {
transform: none;
}
}
.page-header {
@@ -1290,6 +1614,167 @@ textarea::placeholder {
box-shadow: var(--shadow-md);
}
/* Role-gated controls */
.role-hidden {
display: none !important;
}
/* Container action overflow */
.container-actions {
display: flex;
align-items: center;
gap: 4px;
flex-wrap: nowrap;
justify-content: flex-end;
}
.container-actions-primary {
flex-wrap: nowrap;
}
.container-actions-cell {
white-space: nowrap;
width: 1%;
}
.container-actions .dropdown-menu {
min-width: 10rem;
font-size: 13px;
}
/* Activity history tray */
.activity-tray {
position: relative;
flex-shrink: 0;
}
.activity-panel {
position: absolute;
right: 0;
top: calc(100% + 8px);
width: min(320px, 90vw);
max-height: min(420px, 70vh);
overflow: hidden;
display: flex;
flex-direction: column;
background: var(--bg-elevated);
border: 1px solid var(--border-strong);
border-radius: 12px;
box-shadow: var(--shadow-lg);
z-index: 1200;
}
.activity-panel.hidden {
display: none !important;
}
.activity-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 12px;
border-bottom: 1px solid var(--border-color);
}
.activity-panel-list {
overflow-y: auto;
flex: 1 1 auto;
min-height: 0;
}
.activity-item {
width: 100%;
display: grid;
grid-template-columns: 1fr auto;
grid-template-rows: auto auto;
gap: 2px 8px;
text-align: left;
padding: 10px 12px;
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
background: transparent;
color: var(--text-primary);
cursor: pointer;
}
.activity-item:hover {
background: var(--bg-hover);
}
.activity-item-kind {
font-weight: 600;
font-size: 13px;
}
.activity-item-meta {
grid-column: 1 / -1;
font-size: 11px;
}
/* First-connect checklist */
.first-connect-checklist {
position: fixed;
inset: 0;
z-index: 2000;
display: flex;
align-items: center;
justify-content: center;
background: rgba(5, 8, 12, 0.55);
backdrop-filter: blur(6px);
padding: 20px;
}
.first-connect-checklist.hidden {
display: none !important;
}
.first-connect-card {
width: min(420px, 100%);
background: var(--bg-elevated);
border: 1px solid var(--border-strong);
border-radius: 16px;
padding: 20px 22px;
box-shadow: var(--shadow-lg);
}
.first-connect-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
margin-bottom: 8px;
}
.first-connect-head h3 {
margin: 0;
font-size: 1.15rem;
font-weight: 700;
}
.first-connect-steps {
margin: 0 0 16px;
padding-left: 1.2rem;
color: var(--text-secondary);
font-size: 13.5px;
line-height: 1.55;
}
.first-connect-link {
appearance: none;
border: none;
background: none;
color: var(--accent-primary);
font-weight: 600;
padding: 0;
cursor: pointer;
text-decoration: underline;
text-underline-offset: 2px;
}
.invite-token-result.hidden {
display: none !important;
}
/* Template list URLs in Settings */
.settings-template-urls {
max-height: 200px;
+32 -1
View File
@@ -144,6 +144,14 @@ export function showJob(job) {
drawer.classList.add('job-drawer--visible')
drawer.setAttribute('data-job-status', job.status || 'running')
// Keep following after paint unless user paused scroll
const logEl = drawer.querySelector('.job-log')
if (logEl && logEl.dataset.following !== '0') {
requestAnimationFrame(() => {
logEl.scrollTop = logEl.scrollHeight
})
}
if (job.status === 'success') {
scheduleJobDrawerDismiss(drawer)
} else if (job.status === 'error') {
@@ -153,6 +161,12 @@ export function showJob(job) {
jobDismissTimer = null
}
drawer.classList.remove('job-drawer--leaving')
// Always jump to end on error so the failure line is visible
if (logEl) {
requestAnimationFrame(() => {
logEl.scrollTop = logEl.scrollHeight
})
}
}
}
@@ -694,7 +708,24 @@ export function initOpsApp({ navigateToView, sendCommand }) {
applySettings(loadSettings())
templateUrlsDraft = getTemplateListUrls()
subscribeJobs((job) => showJob(job))
subscribeJobs((job) => {
showJob(job)
// Keep activity history panel live if open
const panel = document.getElementById('activity-panel')
if (panel && !panel.classList.contains('hidden') && typeof window.renderActivityPanel === 'function') {
window.renderActivityPanel()
}
})
manager.on('connect', () => {
// Role may arrive after handshake
setTimeout(() => {
if (typeof window.applyRoleUI === 'function') window.applyRoleUI()
}, 50)
})
manager.on('active', () => {
if (typeof window.applyRoleUI === 'function') window.applyRoleUI()
})
// Allow clicking the job panel header area to dismiss early
document.getElementById('job-drawer')?.addEventListener('click', (e) => {
+48 -3
View File
@@ -161,18 +161,63 @@
.job-step-error { grid-column: 2; color: #f87171; font-size: 0.8rem; }
.job-step-detail { grid-column: 2; font-size: 0.8rem; }
.job-log-details { margin-top: 0.75rem; }
.job-log-details > summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
cursor: pointer;
list-style: none;
user-select: none;
color: var(--text-secondary, #c8d1df);
font-size: 0.85rem;
}
.job-log-details > summary::-webkit-details-marker { display: none; }
.job-log-follow-hint {
font-size: 0.7rem;
color: #34d399;
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 0.3rem;
white-space: nowrap;
}
.job-log-follow-hint.is-paused {
color: #fbbf24;
}
.job-log {
max-height: 12rem;
overflow: auto;
max-height: 14rem;
overflow-x: hidden;
overflow-y: auto;
background: #020617;
border-radius: 8px;
padding: 0.5rem 0.75rem;
font-family: 'JetBrains Mono', ui-monospace, monospace;
font-size: 0.75rem;
margin-top: 0.35rem;
scroll-behavior: auto;
overscroll-behavior: contain;
}
.job-log-line {
white-space: pre-wrap;
word-break: break-word;
color: #cbd5e1;
line-height: 1.35;
padding: 1px 0;
}
.job-log-line:last-child {
/* Keep latest line comfortable when following */
scroll-margin-bottom: 4px;
}
.job-log-ts {
color: #64748b;
margin-right: 0.35rem;
user-select: none;
}
.job-log-line { white-space: pre-wrap; color: #cbd5e1; }
.job-log--error { color: #fca5a5; }
.job-log--warn,
.job-log--warning { color: #fcd34d; }
.job-log-empty { color: #64748b; }
#active-peer-chip {
display: inline-flex;