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

rcourtman139fa5783a34
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.json
index f295f884cf..309fef8fe3 100644
--- a/internal/cloudcp/portal/dist/build_manifest.json
+++ b/internal/cloudcp/portal/dist/build_manifest.json
@@ -1,5 +1,5 @@
{
- "source_hash": "25922a8a8e1860ec8376cf3eaa5a2755e770149b9fd8fc274b4a6769112f8483",
+ "source_hash": "249ad27da128ca4b8ec2642c2d7d5cd39d642929a2c109b21e94918d5f6d1a85",
"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 cf451d4fd6..6bd84d8d01 100644
--- a/internal/cloudcp/portal/dist/portal_app.css
+++ b/internal/cloudcp/portal/dist/portal_app.css
@@ -732,7 +732,7 @@ header .logout-btn:hover,
}
.account-command-deck {
display: grid;
- grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.82fr);
+ grid-template-columns: minmax(0, 1.36fr) minmax(320px, 0.78fr);
gap: 14px;
align-items: start;
padding: 0;
@@ -752,11 +752,44 @@ header .logout-btn:hover,
flex-direction: column;
gap: 12px;
}
+.account-overview-briefing-card {
+ gap: 16px;
+ background:
+ linear-gradient(
+ 180deg,
+ rgba(250, 252, 253, 0.98),
+ rgba(245, 248, 251, 0.98));
+}
.account-overview-lead {
display: flex;
flex-direction: column;
min-width: 0;
}
+.account-overview-next-block {
+ display: flex;
+ flex-direction: column;
+ gap: 0;
+ padding-top: 14px;
+ border-top: 1px solid var(--line);
+}
+.account-overview-next-block h4 {
+ margin: 6px 0 0;
+ font-family:
+ "Iowan Old Style",
+ "Palatino Linotype",
+ "Book Antiqua",
+ Georgia,
+ serif;
+ font-size: 18px;
+ line-height: 1.08;
+ letter-spacing: -0.03em;
+}
+.account-overview-next-block > p {
+ margin: 8px 0 0;
+ font-size: 13px;
+ line-height: 1.55;
+ color: var(--ink-soft);
+}
.account-overview-metrics {
display: flex;
flex-direction: column;
@@ -766,6 +799,15 @@ header .logout-btn:hover,
border-radius: 12px;
background: #fbfcfd;
}
+.account-overview-metrics-header {
+ margin-top: 12px;
+ padding: 12px;
+ background:
+ linear-gradient(
+ 180deg,
+ rgba(250, 252, 253, 0.98),
+ rgba(244, 248, 251, 0.98));
+}
.account-metric-strip {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -864,10 +906,6 @@ header .logout-btn:hover,
line-height: 1.55;
color: var(--ink-soft);
}
-.overview-side-card-primary {
- background: #f8fbfd;
- border-color: #d7e6ea;
-}
.overview-side-card-stable {
display: flex;
flex-direction: column;
@@ -1148,7 +1186,7 @@ header .logout-btn:hover,
color: var(--ink-soft);
}
.account-stage-header-overview {
- margin-bottom: 10px;
+ margin-bottom: 12px;
}
.workspace-list-wrap {
display: flex;
diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.js
index 03e79630a8..94c77aa045 100644
--- a/internal/cloudcp/portal/dist/portal_app.js
+++ b/internal/cloudcp/portal/dist/portal_app.js
@@ -1829,6 +1829,9 @@
}).join("");
return '<div class="overview-side-card"><div class="account-panel-kicker">Attention</div><h4>Needs review</h4><p>These workspaces should be checked before you treat the hosted fleet as fully healthy.</p><div class="overview-alert-list">' + items + "</div></div>";
}
+ function renderOverviewMetricStrip(totalCount, readyCount, checkingCount, unhealthyCount, suspendedCount) {
+ return '<div class="account-overview-metrics account-overview-metrics-header"><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>";
+ }
function renderAccountContextStrip(account) {
var workspaceLabel = workspaceCountLabel((account.workspaces || []).length);
var billingLabel = account.has_billing ? "Billing enabled" : "Billing offline";
@@ -1891,9 +1894,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-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(
+ ]) + renderOverviewMetricStrip(totalCount, readyCount, checkingCount, unhealthyCount, suspendedCount) + '</div></div><div class="account-command-deck"><div class="account-overview-main-column"><div class="account-overview-card account-overview-briefing-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 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>";
+ ) + '</div></div><div class="account-overview-next-block"><div class="account-panel-kicker">Next move</div><h4>' + escapeHTML(nextStepTitle) + "</h4><p>" + escapeHTML(nextStepCopy) + "</p>" + nextStepChecklist + nextStepActions + '</div></div></div><div class="account-overview-side-column">' + 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 5fe55311ed..8e4f1c1bdd 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts
@@ -240,6 +240,42 @@ function renderAttentionPanel(workspaces: PortalWorkspaceSummary[]): string {
);
}
+function renderOverviewMetricStrip(
+ totalCount: number,
+ readyCount: number,
+ checkingCount: number,
+ unhealthyCount: number,
+ suspendedCount: number
+): string {
+ return (
+ '<div class="account-overview-metrics account-overview-metrics-header">' +
+ '<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>'
+ );
+}
+
function renderAccountContextStrip(account: PortalAccountSummary): string {
var workspaceLabel = workspaceCountLabel((account.workspaces || []).length);
var billingLabel = account.has_billing ? 'Billing enabled' : 'Billing offline';
@@ -460,11 +496,12 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {
String(readyCount) + ' ready',
suspendedCount > 0 ? String(suspendedCount) + ' suspended' : 'Active fleet',
]) +
+ renderOverviewMetricStrip(totalCount, readyCount, checkingCount, unhealthyCount, suspendedCount) +
'</div>' +
'</div>' +
'<div class="account-command-deck">' +
'<div class="account-overview-main-column">' +
- '<div class="account-overview-card">' +
+ '<div class="account-overview-card account-overview-briefing-card">' +
'<div class="account-overview-lead">' +
'<div class="account-panel-kicker">Fleet posture</div>' +
'<h3>' + escapeHTML(postureTitle) + '</h3>' +
@@ -474,41 +511,16 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {
: 'Use this console to run hosted workspaces, account billing, and operator access from one place.'
) + '</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 class="account-overview-next-block">' +
+ '<div class="account-panel-kicker">Next move</div>' +
+ '<h4>' + escapeHTML(nextStepTitle) + '</h4>' +
+ '<p>' + escapeHTML(nextStepCopy) + '</p>' +
+ nextStepChecklist +
+ nextStepActions +
+ '</div>' +
'</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 ad84c68738..b03b9e3be9 100644
--- a/internal/cloudcp/portal/frontend/src/styles.css
+++ b/internal/cloudcp/portal/frontend/src/styles.css
@@ -771,7 +771,7 @@ header .logout-btn:hover,
.account-command-deck {
display: grid;
- grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.82fr);
+ grid-template-columns: minmax(0, 1.36fr) minmax(320px, 0.78fr);
gap: 14px;
align-items: start;
padding: 0;
@@ -794,12 +794,40 @@ header .logout-btn:hover,
gap: 12px;
}
+.account-overview-briefing-card {
+ gap: 16px;
+ background: linear-gradient(180deg, rgba(250, 252, 253, 0.98), rgba(245, 248, 251, 0.98));
+}
+
.account-overview-lead {
display: flex;
flex-direction: column;
min-width: 0;
}
+.account-overview-next-block {
+ display: flex;
+ flex-direction: column;
+ gap: 0;
+ padding-top: 14px;
+ border-top: 1px solid var(--line);
+}
+
+.account-overview-next-block h4 {
+ margin: 6px 0 0;
+ font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
+ font-size: 18px;
+ line-height: 1.08;
+ letter-spacing: -0.03em;
+}
+
+.account-overview-next-block > p {
+ margin: 8px 0 0;
+ font-size: 13px;
+ line-height: 1.55;
+ color: var(--ink-soft);
+}
+
.account-overview-metrics {
display: flex;
flex-direction: column;
@@ -810,6 +838,12 @@ header .logout-btn:hover,
background: #fbfcfd;
}
+.account-overview-metrics-header {
+ margin-top: 12px;
+ padding: 12px;
+ background: linear-gradient(180deg, rgba(250, 252, 253, 0.98), rgba(244, 248, 251, 0.98));
+}
+
.account-metric-strip {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -916,11 +950,6 @@ header .logout-btn:hover,
color: var(--ink-soft);
}
-.overview-side-card-primary {
- background: #f8fbfd;
- border-color: #d7e6ea;
-}
-
.overview-side-card-stable {
display: flex;
flex-direction: column;
@@ -1240,7 +1269,7 @@ header .logout-btn:hover,
}
.account-stage-header-overview {
- margin-bottom: 10px;
+ margin-bottom: 12px;
}
.workspace-list-wrap {