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): restructure overview operator briefing

rcourtmanebaf78d05e4d
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.json
index 75ee2f3400..5276763444 100644
--- a/internal/cloudcp/portal/dist/build_manifest.json
+++ b/internal/cloudcp/portal/dist/build_manifest.json
@@ -1,5 +1,5 @@
{
- "source_hash": "cc5e6e2e2b15520aa30d95476146f677ca43cfdaaa4ffce79a2f3d4ea99cb798",
+ "source_hash": "2c079e03326c1b7a60cf1be6e64b93a7897d504e31f0e5cb1a94c55634748874",
"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 c2183dd678..7530fa1f10 100644
--- a/internal/cloudcp/portal/dist/portal_app.css
+++ b/internal/cloudcp/portal/dist/portal_app.css
@@ -658,50 +658,65 @@ header .logout-btn:hover,
}
.account-command-deck {
display: grid;
- grid-template-columns: 1fr;
+ grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.82fr);
gap: 14px;
- align-items: stretch;
+ align-items: start;
padding: 0;
border: none;
border-radius: 0;
background: transparent;
}
+.account-overview-main-column,
+.account-overview-side-column {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ min-width: 0;
+}
.account-overview-card {
- display: grid;
- grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
- gap: 16px;
- align-items: stretch;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
}
.account-overview-lead {
display: flex;
flex-direction: column;
min-width: 0;
}
+.account-overview-metrics {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ padding: 14px;
+ border: 1px solid var(--line);
+ border-radius: 12px;
+ background: #fbfcfd;
+}
.account-metric-strip {
display: grid;
- grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
+ grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0;
- padding: 10px;
- border: 1px solid var(--line);
- border-radius: 12px;
- background: #f8fafc;
+ padding: 0;
+ border: none;
+ border-radius: 0;
+ background: transparent;
}
.account-stat-card-inline {
min-width: 0;
- padding: 8px 10px;
+ padding: 10px 12px;
border: none;
border-left: 1px solid var(--line);
+ border-top: 1px solid var(--line);
border-radius: 0;
background: transparent;
box-shadow: none;
}
-.account-stat-card-inline:first-child {
- border-left: none;
+.account-stat-card-inline:first-child,
+.account-stat-card-inline:nth-child(2) {
+ border-top: none;
}
-.team-management-stats {
- display: flex;
- gap: 10px;
- flex-wrap: wrap;
+.account-stat-card-inline:nth-child(odd) {
+ border-left: none;
}
.account-stat-label,
.team-stat-label {
@@ -757,7 +772,7 @@ header .logout-btn:hover,
grid-column: 1 / -1;
}
.overview-side-card {
- padding: 16px;
+ padding: 14px;
border: 1px solid var(--line);
border-radius: 12px;
background: #fcfcfd;
@@ -817,13 +832,13 @@ header .logout-btn:hover,
display: flex;
flex-direction: column;
gap: 0;
- margin-top: 14px;
+ margin-top: 12px;
}
.overview-next-check {
display: flex;
flex-direction: column;
gap: 3px;
- padding: 11px 0 11px 14px;
+ padding: 9px 0 9px 12px;
border-top: 1px solid var(--line);
border-left: 3px solid rgba(15, 118, 110, 0.2);
background: transparent;
@@ -846,20 +861,20 @@ header .logout-btn:hover,
display: flex;
gap: 10px;
flex-wrap: wrap;
- margin-top: 14px;
+ margin-top: 12px;
}
.overview-alert-list {
display: flex;
flex-direction: column;
gap: 0;
- margin-top: 14px;
+ margin-top: 12px;
}
.overview-alert-row {
display: flex;
align-items: start;
justify-content: space-between;
gap: 12px;
- padding: 11px 0 11px 14px;
+ padding: 9px 0 9px 12px;
border-top: 1px solid var(--line);
border-left: 3px solid rgba(154, 52, 18, 0.16);
}
diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.js
index b15fa32084..395e2394da 100644
--- a/internal/cloudcp/portal/dist/portal_app.js
+++ b/internal/cloudcp/portal/dist/portal_app.js
@@ -1891,9 +1891,9 @@
String(totalCount) + " total",
String(readyCount) + " ready",
suspendedCount > 0 ? String(suspendedCount) + " suspended" : "Active fleet"
- ]) + '</div></div><div class="account-command-deck"><div class="account-overview-card"><div class="account-overview-lead"><div class="account-panel-kicker">Fleet posture</div><h3>' + escapeHTML(postureTitle) + "</h3><p>" + escapeHTML(postureCopy) + '</p><div class="account-overview-callout">' + escapeHTML(
+ ]) + '</div></div><div class="account-command-deck"><div class="account-overview-main-column"><div class="account-overview-card"><div class="account-overview-lead"><div class="account-panel-kicker">Fleet posture</div><h3>' + escapeHTML(postureTitle) + "</h3><p>" + escapeHTML(postureCopy) + '</p><div class="account-overview-callout">' + escapeHTML(
account.kind === "msp" ? "Use this console to run client workspaces, account billing, and operator access from one place." : "Use this console to run hosted workspaces, account billing, and operator access from one place."
- ) + '</div></div><div class="account-metric-strip"><div class="account-stat-card account-stat-card-inline"><span class="account-stat-label">Total</span><span class="account-stat-value">' + String(totalCount) + '</span></div><div class="account-stat-card account-stat-card-inline"><span class="account-stat-label">Ready now</span><span class="account-stat-value account-stat-healthy">' + String(readyCount) + '</span></div><div class="account-stat-card account-stat-card-inline"><span class="account-stat-label">Checking</span><span class="account-stat-value account-stat-checking">' + String(checkingCount) + '</span></div><div class="account-stat-card account-stat-card-inline"><span class="account-stat-label">Needs attention</span><span class="account-stat-value account-stat-unhealthy">' + String(unhealthyCount) + '</span></div><div class="account-stat-card account-stat-card-inline"><span class="account-stat-label">Suspended</span><span class="account-stat-value">' + String(suspendedCount) + '</span></div></div></div><div class="account-overview-secondary"><div class="overview-side-card overview-side-card-primary"><div class="account-panel-kicker">Next move</div><h4>' + escapeHTML(nextStepTitle) + "</h4><p>" + escapeHTML(nextStepCopy) + "</p>" + nextStepChecklist + nextStepActions + "</div>" + renderAttentionPanel(workspaces) + "</div></div></section>";
+ ) + '</div></div></div><div class="overview-side-card overview-side-card-primary"><div class="account-panel-kicker">Next move</div><h4>' + escapeHTML(nextStepTitle) + "</h4><p>" + escapeHTML(nextStepCopy) + "</p>" + nextStepChecklist + nextStepActions + '</div></div><div class="account-overview-side-column"><div class="account-overview-metrics"><div class="account-panel-kicker">Live posture</div><div class="account-metric-strip"><div class="account-stat-card account-stat-card-inline"><span class="account-stat-label">Total</span><span class="account-stat-value">' + String(totalCount) + '</span></div><div class="account-stat-card account-stat-card-inline"><span class="account-stat-label">Ready now</span><span class="account-stat-value account-stat-healthy">' + String(readyCount) + '</span></div><div class="account-stat-card account-stat-card-inline"><span class="account-stat-label">Checking</span><span class="account-stat-value account-stat-checking">' + String(checkingCount) + '</span></div><div class="account-stat-card account-stat-card-inline"><span class="account-stat-label">Needs attention</span><span class="account-stat-value account-stat-unhealthy">' + String(unhealthyCount) + '</span></div><div class="account-stat-card account-stat-card-inline"><span class="account-stat-label">Suspended</span><span class="account-stat-value">' + String(suspendedCount) + "</span></div></div></div>" + renderAttentionPanel(workspaces) + "</div></div></section>";
}
function renderAccountWorkspaceSection(account, accountAPIBasePath) {
var workspaces = Array.isArray(account.workspaces) ? account.workspaces : [];
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.ts
index 515310daaa..539e1fb419 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts
@@ -460,40 +460,18 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {
'</div>' +
'</div>' +
'<div class="account-command-deck">' +
- '<div class="account-overview-card">' +
- '<div class="account-overview-lead">' +
- '<div class="account-panel-kicker">Fleet posture</div>' +
- '<h3>' + escapeHTML(postureTitle) + '</h3>' +
- '<p>' + escapeHTML(postureCopy) + '</p>' +
- '<div class="account-overview-callout">' + escapeHTML(account.kind === 'msp'
- ? 'Use this console to run client workspaces, account billing, and operator access from one place.'
- : 'Use this console to run hosted workspaces, account billing, and operator access from one place.'
- ) + '</div>' +
- '</div>' +
- '<div class="account-metric-strip">' +
- '<div class="account-stat-card account-stat-card-inline">' +
- '<span class="account-stat-label">Total</span>' +
- '<span class="account-stat-value">' + String(totalCount) + '</span>' +
- '</div>' +
- '<div class="account-stat-card account-stat-card-inline">' +
- '<span class="account-stat-label">Ready now</span>' +
- '<span class="account-stat-value account-stat-healthy">' + String(readyCount) + '</span>' +
- '</div>' +
- '<div class="account-stat-card account-stat-card-inline">' +
- '<span class="account-stat-label">Checking</span>' +
- '<span class="account-stat-value account-stat-checking">' + String(checkingCount) + '</span>' +
- '</div>' +
- '<div class="account-stat-card account-stat-card-inline">' +
- '<span class="account-stat-label">Needs attention</span>' +
- '<span class="account-stat-value account-stat-unhealthy">' + String(unhealthyCount) + '</span>' +
- '</div>' +
- '<div class="account-stat-card account-stat-card-inline">' +
- '<span class="account-stat-label">Suspended</span>' +
- '<span class="account-stat-value">' + String(suspendedCount) + '</span>' +
+ '<div class="account-overview-main-column">' +
+ '<div class="account-overview-card">' +
+ '<div class="account-overview-lead">' +
+ '<div class="account-panel-kicker">Fleet posture</div>' +
+ '<h3>' + escapeHTML(postureTitle) + '</h3>' +
+ '<p>' + escapeHTML(postureCopy) + '</p>' +
+ '<div class="account-overview-callout">' + escapeHTML(account.kind === 'msp'
+ ? 'Use this console to run client workspaces, account billing, and operator access from one place.'
+ : 'Use this console to run hosted workspaces, account billing, and operator access from one place.'
+ ) + '</div>' +
'</div>' +
'</div>' +
- '</div>' +
- '<div class="account-overview-secondary">' +
'<div class="overview-side-card overview-side-card-primary">' +
'<div class="account-panel-kicker">Next move</div>' +
'<h4>' + escapeHTML(nextStepTitle) + '</h4>' +
@@ -501,6 +479,33 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {
nextStepChecklist +
nextStepActions +
'</div>' +
+ '</div>' +
+ '<div class="account-overview-side-column">' +
+ '<div class="account-overview-metrics">' +
+ '<div class="account-panel-kicker">Live posture</div>' +
+ '<div class="account-metric-strip">' +
+ '<div class="account-stat-card account-stat-card-inline">' +
+ '<span class="account-stat-label">Total</span>' +
+ '<span class="account-stat-value">' + String(totalCount) + '</span>' +
+ '</div>' +
+ '<div class="account-stat-card account-stat-card-inline">' +
+ '<span class="account-stat-label">Ready now</span>' +
+ '<span class="account-stat-value account-stat-healthy">' + String(readyCount) + '</span>' +
+ '</div>' +
+ '<div class="account-stat-card account-stat-card-inline">' +
+ '<span class="account-stat-label">Checking</span>' +
+ '<span class="account-stat-value account-stat-checking">' + String(checkingCount) + '</span>' +
+ '</div>' +
+ '<div class="account-stat-card account-stat-card-inline">' +
+ '<span class="account-stat-label">Needs attention</span>' +
+ '<span class="account-stat-value account-stat-unhealthy">' + String(unhealthyCount) + '</span>' +
+ '</div>' +
+ '<div class="account-stat-card account-stat-card-inline">' +
+ '<span class="account-stat-label">Suspended</span>' +
+ '<span class="account-stat-value">' + String(suspendedCount) + '</span>' +
+ '</div>' +
+ '</div>' +
+ '</div>' +
renderAttentionPanel(workspaces) +
'</div>' +
'</div>' +
diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.css
index efd062734d..607ee4c5eb 100644
--- a/internal/cloudcp/portal/frontend/src/styles.css
+++ b/internal/cloudcp/portal/frontend/src/styles.css
@@ -734,20 +734,27 @@ header .logout-btn:hover,
.account-command-deck {
display: grid;
- grid-template-columns: 1fr;
+ grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.82fr);
gap: 14px;
- align-items: stretch;
+ align-items: start;
padding: 0;
border: none;
border-radius: 0;
background: transparent;
}
+.account-overview-main-column,
+.account-overview-side-column {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ min-width: 0;
+}
+
.account-overview-card {
- display: grid;
- grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
- gap: 16px;
- align-items: stretch;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
}
.account-overview-lead {
@@ -756,34 +763,44 @@ header .logout-btn:hover,
min-width: 0;
}
+.account-overview-metrics {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ padding: 14px;
+ border: 1px solid var(--line);
+ border-radius: 12px;
+ background: #fbfcfd;
+}
+
.account-metric-strip {
display: grid;
- grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
+ grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0;
- padding: 10px;
- border: 1px solid var(--line);
- border-radius: 12px;
- background: #f8fafc;
+ padding: 0;
+ border: none;
+ border-radius: 0;
+ background: transparent;
}
.account-stat-card-inline {
min-width: 0;
- padding: 8px 10px;
+ padding: 10px 12px;
border: none;
border-left: 1px solid var(--line);
+ border-top: 1px solid var(--line);
border-radius: 0;
background: transparent;
box-shadow: none;
}
-.account-stat-card-inline:first-child {
- border-left: none;
+.account-stat-card-inline:first-child,
+.account-stat-card-inline:nth-child(2) {
+ border-top: none;
}
-.team-management-stats {
- display: flex;
- gap: 10px;
- flex-wrap: wrap;
+.account-stat-card-inline:nth-child(odd) {
+ border-left: none;
}
.account-stat-label,
@@ -841,7 +858,7 @@ header .logout-btn:hover,
}
.overview-side-card {
- padding: 16px;
+ padding: 14px;
border: 1px solid var(--line);
border-radius: 12px;
background: #fcfcfd;
@@ -911,14 +928,14 @@ header .logout-btn:hover,
display: flex;
flex-direction: column;
gap: 0;
- margin-top: 14px;
+ margin-top: 12px;
}
.overview-next-check {
display: flex;
flex-direction: column;
gap: 3px;
- padding: 11px 0 11px 14px;
+ padding: 9px 0 9px 12px;
border-top: 1px solid var(--line);
border-left: 3px solid rgba(15, 118, 110, 0.2);
background: transparent;
@@ -945,14 +962,14 @@ header .logout-btn:hover,
display: flex;
gap: 10px;
flex-wrap: wrap;
- margin-top: 14px;
+ margin-top: 12px;
}
.overview-alert-list {
display: flex;
flex-direction: column;
gap: 0;
- margin-top: 14px;
+ margin-top: 12px;
}
.overview-alert-row {
@@ -960,7 +977,7 @@ header .logout-btn:hover,
align-items: start;
justify-content: space-between;
gap: 12px;
- padding: 11px 0 11px 14px;
+ padding: 9px 0 9px 12px;
border-top: 1px solid var(--line);
border-left: 3px solid rgba(154, 52, 18, 0.16);
}