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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
style(portal): clarify suspended workspace posture
rcourtmanbb20a61c4b17
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.jsonindex baf12c57a7..ff03297002 100644--- a/internal/cloudcp/portal/dist/build_manifest.json+++ b/internal/cloudcp/portal/dist/build_manifest.json@@ -1,5 +1,5 @@{- "source_hash": "7fae320e9bf427de97b3833306df5b1904f33b905e4e7fe151e8a02886e71c89",+ "source_hash": "53ef52e68bc30e2c6f494ddab770cd1a0c307b7b7521a22db366b067e603235f","build_inputs": ["package.json","tsconfig.json",diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.jsindex b5815e2075..421f98cbd3 100644--- a/internal/cloudcp/portal/dist/portal_app.js+++ b/internal/cloudcp/portal/dist/portal_app.js@@ -1751,12 +1751,18 @@}function workspaceStatusCopy(workspace) {var status = workspaceHealthState(workspace);+ var state = String(workspace.state || "");+ if (state === "suspended") return "This workspace is suspended and will stay closed until you resume it.";+ if (state === "failed") return "This workspace needs attention before it is trustworthy.";if (status === "healthy") return "Live updates and health checks are currently good.";if (status === "unhealthy") return "This workspace needs attention before it is trustworthy.";return "This workspace is still waiting on a completed health check.";}function workspaceRowNote(workspace) {var status = workspaceHealthState(workspace);+ var state = String(workspace.state || "");+ if (state === "suspended") return "Suspended until you resume it";+ if (state === "failed") return "Review this workspace before treating it as stable";if (status === "healthy") return "Ready for operator work";if (status === "unhealthy") return "Review this workspace before treating it as stable";return "Awaiting a completed health check";@@ -1773,8 +1779,13 @@}function renderAttentionPanel(workspaces) {var attention = attentionWorkspaces(workspaces);+ var suspendedCount = countWorkspacesByState(workspaces, "suspended");if (!attention.length) {- return '<div class="overview-side-card overview-side-card-stable"><div class="account-panel-kicker">Attention</div><h4>Fleet is stable</h4><p>Every visible hosted workspace currently reports a healthy posture.</p><div class="overview-stable-list"><div class="overview-stable-item"><strong>Healthy now</strong><span>All visible hosted workspaces are clear for routine operator work.</span></div><div class="overview-stable-item"><strong>Use Team only for change</strong><span>Keep roster edits explicit instead of mixing them into normal workspace work.</span></div><div class="overview-stable-item"><strong>Keep billing separate</strong><span>Use account services only when the task is commercial, not operational.</span></div></div></div>';+ return '<div class="overview-side-card overview-side-card-stable"><div class="account-panel-kicker">Attention</div><h4>' + escapeHTML(suspendedCount > 0 ? "Active fleet is stable" : "Fleet is stable") + "</h4><p>" + escapeHTML(+ suspendedCount > 0 ? "Active hosted workspaces are healthy. Suspended workspaces stay parked until you resume them." : "Every active hosted workspace currently reports a healthy posture."+ ) + '</p><div class="overview-stable-list"><div class="overview-stable-item"><strong>Healthy now</strong><span>' + escapeHTML(+ suspendedCount > 0 ? "Active hosted workspaces are clear for routine operator work." : "All active hosted workspaces are clear for routine operator work."+ ) + "</span></div>" + (suspendedCount > 0 ? '<div class="overview-stable-item"><strong>Suspended stays parked</strong><span>' + escapeHTML(String(suspendedCount) + " workspace" + (suspendedCount === 1 ? " is" : "s are") + " suspended and intentionally out of the day-to-day operator path.") + "</span></div>" : "") + '<div class="overview-stable-item"><strong>Use Team only for change</strong><span>Keep roster edits explicit instead of mixing them into normal workspace work.</span></div><div class="overview-stable-item"><strong>Keep billing separate</strong><span>Use account services only when the task is commercial, not operational.</span></div></div></div>';}var items = attention.slice(0, 3).map(function(workspace) {return '<div class="overview-alert-row"><div class="overview-alert-main"><strong>' + escapeHTML(workspace.display_name) + "</strong><span>" + escapeHTML(workspaceStatusCopy(workspace)) + "</span></div>" + healthBadgeHTML(workspace) + "</div>";diff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.tsindex e525bd3c39..810d3004a8 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts@@ -250,4 +250,40 @@ describe('shell view', function() {expect(successHTML).toContain('If that email is registered, a magic link is on the way.');expect(successHTML).toContain('data-portal-action="resend-magic-link"');});++ it('treats suspended workspaces as parked rather than ready', function() {+ var html = renderAuthenticatedPortalHTML(+ createContext({+ bootstrap: createBootstrap({+ accounts: [+ {+ id: 'acct_suspend',+ name: 'Suspended MSP',+ kind: 'msp',+ kind_label: 'MSP',+ role: 'owner',+ can_manage: true,+ has_billing: true,+ workspaces: [+ {+ id: 'ws_suspended',+ display_name: 'Paused Workspace',+ state: 'suspended',+ healthy: true,+ health_status: 'healthy',+ last_health_check: '2026-03-26T10:10:00Z',+ created_at: '2026-03-26T10:00:00Z',+ },+ ],+ },+ ],+ }),+ })+ );++ expect(html).toContain('Suspended until you resume it');+ expect(html).toContain('Active fleet is stable');+ expect(html).toContain('Active hosted workspaces are healthy. Suspended workspaces stay parked until you resume them.');+ expect(html).toContain('Suspended stays parked');+ });});diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.tsindex 23086b955f..b4ce8039a6 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts@@ -147,6 +147,9 @@ function renderServiceActionRow(function workspaceStatusCopy(workspace: PortalWorkspaceSummary): string {var status = workspaceHealthState(workspace);+ var state = String(workspace.state || '');+ if (state === 'suspended') return 'This workspace is suspended and will stay closed until you resume it.';+ if (state === 'failed') return 'This workspace needs attention before it is trustworthy.';if (status === 'healthy') return 'Live updates and health checks are currently good.';if (status === 'unhealthy') return 'This workspace needs attention before it is trustworthy.';return 'This workspace is still waiting on a completed health check.';@@ -154,6 +157,9 @@ function workspaceStatusCopy(workspace: PortalWorkspaceSummary): string {function workspaceRowNote(workspace: PortalWorkspaceSummary): string {var status = workspaceHealthState(workspace);+ var state = String(workspace.state || '');+ if (state === 'suspended') return 'Suspended until you resume it';+ if (state === 'failed') return 'Review this workspace before treating it as stable';if (status === 'healthy') return 'Ready for operator work';if (status === 'unhealthy') return 'Review this workspace before treating it as stable';return 'Awaiting a completed health check';@@ -172,14 +178,24 @@ function attentionWorkspaces(workspaces: PortalWorkspaceSummary[]): PortalWorkspfunction renderAttentionPanel(workspaces: PortalWorkspaceSummary[]): string {var attention = attentionWorkspaces(workspaces);+ var suspendedCount = countWorkspacesByState(workspaces, 'suspended');if (!attention.length) {return ('<div class="overview-side-card overview-side-card-stable">' +'<div class="account-panel-kicker">Attention</div>' +- '<h4>Fleet is stable</h4>' +- '<p>Every visible hosted workspace currently reports a healthy posture.</p>' ++ '<h4>' + escapeHTML(suspendedCount > 0 ? 'Active fleet is stable' : 'Fleet is stable') + '</h4>' ++ '<p>' + escapeHTML(suspendedCount > 0+ ? 'Active hosted workspaces are healthy. Suspended workspaces stay parked until you resume them.'+ : 'Every active hosted workspace currently reports a healthy posture.'+ ) + '</p>' +'<div class="overview-stable-list">' +- '<div class="overview-stable-item"><strong>Healthy now</strong><span>All visible hosted workspaces are clear for routine operator work.</span></div>' ++ '<div class="overview-stable-item"><strong>Healthy now</strong><span>' + escapeHTML(suspendedCount > 0+ ? 'Active hosted workspaces are clear for routine operator work.'+ : 'All active hosted workspaces are clear for routine operator work.'+ ) + '</span></div>' ++ (suspendedCount > 0+ ? '<div class="overview-stable-item"><strong>Suspended stays parked</strong><span>' + escapeHTML(String(suspendedCount) + ' workspace' + (suspendedCount === 1 ? ' is' : 's are') + ' suspended and intentionally out of the day-to-day operator path.') + '</span></div>'+ : '') +'<div class="overview-stable-item"><strong>Use Team only for change</strong><span>Keep roster edits explicit instead of mixing them into normal workspace work.</span></div>' +'<div class="overview-stable-item"><strong>Keep billing separate</strong><span>Use account services only when the task is commercial, not operational.</span></div>' +'</div>' +