Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

style(portal): strengthen shell navigation frame

rcourtmanf91a2ccdcf9b
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.json
index a9b4ddac0a..916a8bf491 100644
--- a/internal/cloudcp/portal/dist/build_manifest.json
+++ b/internal/cloudcp/portal/dist/build_manifest.json
@@ -1,5 +1,5 @@
{
- "source_hash": "d1f2ee7f8960be7590b67fde2ede543cff8f70158ff78250c2c09917e01be6bc",
+ "source_hash": "be9202f30927d5a31935ff9bbbe923c55dfb13670584977e6d722f223c1393c2",
"build_inputs": [
"package.json",
"tsconfig.json",
diff --git a/internal/cloudcp/portal/dist/portal_app.css b/internal/cloudcp/portal/dist/portal_app.css
index fec5fa88f3..8cade3eaa9 100644
--- a/internal/cloudcp/portal/dist/portal_app.css
+++ b/internal/cloudcp/portal/dist/portal_app.css
@@ -291,7 +291,7 @@ header .logout-btn:hover,
display: flex;
flex-direction: column;
gap: 5px;
- padding: 14px 14px 12px;
+ padding: 16px 14px 12px;
border-bottom: 1px solid var(--nav-line);
}
.portal-shell-nav-eyebrow {
@@ -310,36 +310,46 @@ header .logout-btn:hover,
}
.portal-shell-nav-support {
font-size: 11px;
- line-height: 1.45;
+ line-height: 1.4;
color: var(--nav-copy);
+ max-width: 180px;
}
.portal-shell-nav-group {
display: flex;
flex-direction: column;
- gap: 6px;
+ gap: 4px;
padding: 10px;
}
.portal-shell-nav-link {
display: flex;
flex-direction: column;
- gap: 5px;
+ gap: 4px;
width: 100%;
- padding: 10px 12px;
- border: none;
+ padding: 11px 12px 10px;
+ border: 1px solid transparent;
border-radius: 12px;
background: transparent;
text-align: left;
cursor: pointer;
- transition: background 140ms ease, color 140ms ease;
+ transition:
+ background 140ms ease,
+ color 140ms ease,
+ border-color 140ms ease;
}
.portal-shell-nav-link + .portal-shell-nav-link {
border-top: none;
}
.portal-shell-nav-link:hover {
background: rgba(255, 255, 255, 0.05);
+ border-color: rgba(255, 255, 255, 0.05);
}
.portal-shell-nav-link.active {
- background: rgba(120, 182, 192, 0.16);
+ background:
+ linear-gradient(
+ 180deg,
+ rgba(120, 182, 192, 0.18),
+ rgba(120, 182, 192, 0.12));
+ border-color: rgba(120, 182, 192, 0.24);
box-shadow: inset 2px 0 0 #78b6c0;
}
.portal-shell-nav-row {
@@ -348,6 +358,25 @@ header .logout-btn:hover,
justify-content: space-between;
gap: 8px;
}
+.portal-shell-nav-label-group {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ min-width: 0;
+}
+.portal-shell-nav-index {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ min-width: 22px;
+ height: 18px;
+ border-radius: 999px;
+ background: rgba(255, 255, 255, 0.06);
+ color: #8fb8bf;
+ font-size: 9px;
+ font-weight: 900;
+ letter-spacing: 0.12em;
+}
.portal-shell-nav-label {
display: block;
font-size: 13px;
@@ -381,6 +410,10 @@ header .logout-btn:hover,
background: rgba(120, 182, 192, 0.16);
color: #dff6fa;
}
+.portal-shell-nav-link.active .portal-shell-nav-index {
+ background: rgba(120, 182, 192, 0.22);
+ color: #e7fbff;
+}
.portal-shell-main {
min-width: 0;
padding: 0 0 24px;
@@ -391,10 +424,10 @@ header .logout-btn:hover,
}
.portal-account-context {
display: grid;
- grid-template-columns: minmax(0, 1fr);
- gap: 10px;
+ grid-template-columns: minmax(0, 1fr) auto;
+ gap: 16px;
align-items: start;
- padding: 12px 14px 10px;
+ padding: 12px 14px 12px;
border-bottom: 1px solid var(--line);
background: #fff;
}
@@ -445,18 +478,20 @@ header .logout-btn:hover,
.portal-account-context-summary {
display: flex;
align-items: center;
- gap: 14px;
+ justify-content: flex-end;
+ gap: 10px;
flex-wrap: wrap;
}
.portal-account-context-stat {
display: flex;
- align-items: baseline;
- gap: 7px;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 3px;
min-width: 0;
- padding: 0;
- border: none;
- border-radius: 0;
- background: transparent;
+ padding: 8px 10px;
+ border: 1px solid var(--line);
+ border-radius: 10px;
+ background: #fbfcfd;
}
.portal-account-context-stat span {
font-size: 10px;
diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.js
index 7f7ed1f2fe..03e79630a8 100644
--- a/internal/cloudcp/portal/dist/portal_app.js
+++ b/internal/cloudcp/portal/dist/portal_app.js
@@ -1834,9 +1834,9 @@
var billingLabel = account.has_billing ? "Billing enabled" : "Billing offline";
return '<section class="portal-account-context"><div class="portal-account-context-copy"><div class="portal-account-context-meta"><span class="account-eyebrow">' + escapeHTML(accountKindLabel(account)) + '</span><span class="portal-account-context-separator">/</span><span class="portal-account-context-access">' + escapeHTML(titleCase(account.role)) + ' access</span></div><div class="portal-account-context-row"><h2>' + escapeHTML(account.name) + '</h2><div class="portal-account-context-chips"><span class="account-context-chip">' + escapeHTML(account.kind_label) + '</span><span class="account-context-chip">' + escapeHTML(titleCase(account.role)) + '</span><span class="account-context-chip">' + escapeHTML(workspaceLabel) + "</span></div></div><p>" + escapeHTML(account.kind === "msp" ? "Operator workspace account for hosted fleet, team control, and account billing." : "Hosted account operations for workspace access, team control, and billing.") + '</p></div><div class="portal-account-context-summary"><div class="portal-account-context-stat"><span>Role</span><strong>' + escapeHTML(titleCase(account.role)) + '</strong></div><div class="portal-account-context-stat"><span>Hosted fleet</span><strong>' + escapeHTML(workspaceLabel) + '</strong></div><div class="portal-account-context-stat"><span>Commercial</span><strong>' + escapeHTML(billingLabel) + "</strong></div></div></section>";
}
- function shellSectionButton(section, activeSection, title, copy, badge) {
+ function shellSectionButton(section, activeSection, index, title, copy, badge) {
var badgeHTML = badge ? '<span class="portal-shell-nav-badge">' + escapeHTML(badge) + "</span>" : "";
- return '<button class="portal-shell-nav-link' + (activeSection === section ? " active" : "") + '" type="button" data-shell-action="activate-section" data-shell-section="' + section + '"><span class="portal-shell-nav-row"><span class="portal-shell-nav-label">' + title + "</span>" + badgeHTML + '</span><span class="portal-shell-nav-copy">' + copy + "</span></button>";
+ return '<button class="portal-shell-nav-link' + (activeSection === section ? " active" : "") + '" type="button" data-shell-action="activate-section" data-shell-section="' + section + '"><span class="portal-shell-nav-row"><span class="portal-shell-nav-label-group"><span class="portal-shell-nav-index">' + escapeHTML(index) + '</span><span class="portal-shell-nav-label">' + title + "</span></span>" + badgeHTML + '</span><span class="portal-shell-nav-copy">' + copy + "</span></button>";
}
function renderShellNavigation(accounts, supportEmail, activeSection) {
var hosted = hasHostedAccounts(accounts);
@@ -1850,7 +1850,7 @@
break;
}
}
- return '<aside class="portal-shell-nav" aria-label="Pulse Account sections"><div class="portal-shell-nav-header"><div class="portal-shell-nav-eyebrow">Pulse Account</div><div class="portal-shell-nav-title">' + (hosted ? "Operator console" : "Account console") + '</div><div class="portal-shell-nav-support">' + (hosted ? "Hosted operations and account services" : "Commercial account services and support") + '</div></div><div class="portal-shell-nav-group">' + shellSectionButton("overview", activeSection, "Overview", hosted ? "Posture, accounts, and quick actions" : "Account summary and access state", hosted ? String(totalWorkspaces) + " total" : "Summary") + shellSectionButton("workspaces", activeSection, hosted ? "Workspaces" : "Hosted access", hosted ? "Hosted fleet and lifecycle actions" : "No hosted workspaces are attached yet", hosted ? String(readyWorkspaces) + " ready" : "None") + shellSectionButton("team", activeSection, "Team", hosted ? "Access and operator roster" : "Account membership", canManage ? "Manage" : "View") + shellSectionButton("services", activeSection, "Account services", "Licenses, billing, refunds, and privacy", "4 desks") + shellSectionButton("support", activeSection, "Support", hosted ? "Escalation and account support" : supportEmail || "Support contact", supportEmail ? "Email" : "Help") + "</div></aside>";
+ return '<aside class="portal-shell-nav" aria-label="Pulse Account sections"><div class="portal-shell-nav-header"><div class="portal-shell-nav-eyebrow">Pulse Account</div><div class="portal-shell-nav-title">' + (hosted ? "Operator console" : "Account console") + '</div><div class="portal-shell-nav-support">' + (hosted ? "Hosted operations, account access, and commercial desks" : "Commercial account services and support") + '</div></div><div class="portal-shell-nav-group">' + shellSectionButton("overview", activeSection, "01", "Overview", hosted ? "Posture, account status, and next actions" : "Account summary and access state", hosted ? String(totalWorkspaces) + " total" : "Summary") + shellSectionButton("workspaces", activeSection, "02", hosted ? "Workspaces" : "Hosted access", hosted ? "Hosted fleet and lifecycle actions" : "No hosted workspaces are attached yet", hosted ? String(readyWorkspaces) + " ready" : "None") + shellSectionButton("team", activeSection, "03", "Team", hosted ? "Access and operator roster" : "Account membership", canManage ? "Manage" : "View") + shellSectionButton("services", activeSection, "04", "Account services", "Licenses, billing, refunds, and privacy", "4 desks") + shellSectionButton("support", activeSection, "05", "Support", hosted ? "Escalation and account support" : supportEmail || "Support contact", supportEmail ? "Email" : "Help") + "</div></aside>";
}
function renderWorkspaceCard(account, workspace, accountAPIBasePath) {
var status = workspaceHealthState(workspace);
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.ts
index e52538f6ac..5fe55311ed 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts
@@ -280,14 +280,17 @@ function renderAccountContextStrip(account: PortalAccountSummary): string {
);
}
-function shellSectionButton(section: PortalShellSection, activeSection: PortalShellSection, title: string, copy: string, badge?: string): string {
+function shellSectionButton(section: PortalShellSection, activeSection: PortalShellSection, index: string, title: string, copy: string, badge?: string): string {
var badgeHTML = badge
? '<span class="portal-shell-nav-badge">' + escapeHTML(badge) + '</span>'
: '';
return (
'<button class="portal-shell-nav-link' + (activeSection === section ? ' active' : '') + '" type="button" data-shell-action="activate-section" data-shell-section="' + section + '">' +
'<span class="portal-shell-nav-row">' +
- '<span class="portal-shell-nav-label">' + title + '</span>' +
+ '<span class="portal-shell-nav-label-group">' +
+ '<span class="portal-shell-nav-index">' + escapeHTML(index) + '</span>' +
+ '<span class="portal-shell-nav-label">' + title + '</span>' +
+ '</span>' +
badgeHTML +
'</span>' +
'<span class="portal-shell-nav-copy">' + copy + '</span>' +
@@ -312,14 +315,14 @@ function renderShellNavigation(accounts: PortalAccountSummary[], supportEmail: s
'<div class="portal-shell-nav-header">' +
'<div class="portal-shell-nav-eyebrow">Pulse Account</div>' +
'<div class="portal-shell-nav-title">' + (hosted ? 'Operator console' : 'Account console') + '</div>' +
- '<div class="portal-shell-nav-support">' + (hosted ? 'Hosted operations and account services' : 'Commercial account services and support') + '</div>' +
+ '<div class="portal-shell-nav-support">' + (hosted ? 'Hosted operations, account access, and commercial desks' : 'Commercial account services and support') + '</div>' +
'</div>' +
'<div class="portal-shell-nav-group">' +
- shellSectionButton('overview', activeSection, 'Overview', hosted ? 'Posture, accounts, and quick actions' : 'Account summary and access state', hosted ? String(totalWorkspaces) + ' total' : 'Summary') +
- shellSectionButton('workspaces', activeSection, hosted ? 'Workspaces' : 'Hosted access', hosted ? 'Hosted fleet and lifecycle actions' : 'No hosted workspaces are attached yet', hosted ? String(readyWorkspaces) + ' ready' : 'None') +
- shellSectionButton('team', activeSection, 'Team', hosted ? 'Access and operator roster' : 'Account membership', canManage ? 'Manage' : 'View') +
- shellSectionButton('services', activeSection, 'Account services', 'Licenses, billing, refunds, and privacy', '4 desks') +
- shellSectionButton('support', activeSection, 'Support', hosted ? 'Escalation and account support' : (supportEmail || 'Support contact'), supportEmail ? 'Email' : 'Help') +
+ shellSectionButton('overview', activeSection, '01', 'Overview', hosted ? 'Posture, account status, and next actions' : 'Account summary and access state', hosted ? String(totalWorkspaces) + ' total' : 'Summary') +
+ shellSectionButton('workspaces', activeSection, '02', hosted ? 'Workspaces' : 'Hosted access', hosted ? 'Hosted fleet and lifecycle actions' : 'No hosted workspaces are attached yet', hosted ? String(readyWorkspaces) + ' ready' : 'None') +
+ shellSectionButton('team', activeSection, '03', 'Team', hosted ? 'Access and operator roster' : 'Account membership', canManage ? 'Manage' : 'View') +
+ shellSectionButton('services', activeSection, '04', 'Account services', 'Licenses, billing, refunds, and privacy', '4 desks') +
+ shellSectionButton('support', activeSection, '05', 'Support', hosted ? 'Escalation and account support' : (supportEmail || 'Support contact'), supportEmail ? 'Email' : 'Help') +
'</div>' +
'</aside>'
);
diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.css
index 902282ad8d..f2a9681cdf 100644
--- a/internal/cloudcp/portal/frontend/src/styles.css
+++ b/internal/cloudcp/portal/frontend/src/styles.css
@@ -313,7 +313,7 @@ header .logout-btn:hover,
display: flex;
flex-direction: column;
gap: 5px;
- padding: 14px 14px 12px;
+ padding: 16px 14px 12px;
border-bottom: 1px solid var(--nav-line);
}
@@ -335,29 +335,30 @@ header .logout-btn:hover,
.portal-shell-nav-support {
font-size: 11px;
- line-height: 1.45;
+ line-height: 1.4;
color: var(--nav-copy);
+ max-width: 180px;
}
.portal-shell-nav-group {
display: flex;
flex-direction: column;
- gap: 6px;
+ gap: 4px;
padding: 10px;
}
.portal-shell-nav-link {
display: flex;
flex-direction: column;
- gap: 5px;
+ gap: 4px;
width: 100%;
- padding: 10px 12px;
- border: none;
+ padding: 11px 12px 10px;
+ border: 1px solid transparent;
border-radius: 12px;
background: transparent;
text-align: left;
cursor: pointer;
- transition: background 140ms ease, color 140ms ease;
+ transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.portal-shell-nav-link + .portal-shell-nav-link {
@@ -366,10 +367,12 @@ header .logout-btn:hover,
.portal-shell-nav-link:hover {
background: rgba(255, 255, 255, 0.05);
+ border-color: rgba(255, 255, 255, 0.05);
}
.portal-shell-nav-link.active {
- background: rgba(120, 182, 192, 0.16);
+ background: linear-gradient(180deg, rgba(120, 182, 192, 0.18), rgba(120, 182, 192, 0.12));
+ border-color: rgba(120, 182, 192, 0.24);
box-shadow: inset 2px 0 0 #78b6c0;
}
@@ -380,6 +383,27 @@ header .logout-btn:hover,
gap: 8px;
}
+.portal-shell-nav-label-group {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ min-width: 0;
+}
+
+.portal-shell-nav-index {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ min-width: 22px;
+ height: 18px;
+ border-radius: 999px;
+ background: rgba(255, 255, 255, 0.06);
+ color: #8fb8bf;
+ font-size: 9px;
+ font-weight: 900;
+ letter-spacing: 0.12em;
+}
+
.portal-shell-nav-label {
display: block;
font-size: 13px;
@@ -417,6 +441,11 @@ header .logout-btn:hover,
color: #dff6fa;
}
+.portal-shell-nav-link.active .portal-shell-nav-index {
+ background: rgba(120, 182, 192, 0.22);
+ color: #e7fbff;
+}
+
.portal-shell-main {
min-width: 0;
padding: 0 0 24px;
@@ -429,10 +458,10 @@ header .logout-btn:hover,
.portal-account-context {
display: grid;
- grid-template-columns: minmax(0, 1fr);
- gap: 10px;
+ grid-template-columns: minmax(0, 1fr) auto;
+ gap: 16px;
align-items: start;
- padding: 12px 14px 10px;
+ padding: 12px 14px 12px;
border-bottom: 1px solid var(--line);
background: #fff;
}
@@ -491,19 +520,21 @@ header .logout-btn:hover,
.portal-account-context-summary {
display: flex;
align-items: center;
- gap: 14px;
+ justify-content: flex-end;
+ gap: 10px;
flex-wrap: wrap;
}
.portal-account-context-stat {
display: flex;
- align-items: baseline;
- gap: 7px;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 3px;
min-width: 0;
- padding: 0;
- border: none;
- border-radius: 0;
- background: transparent;
+ padding: 8px 10px;
+ border: 1px solid var(--line);
+ border-radius: 10px;
+ background: #fbfcfd;
}
.portal-account-context-stat span {