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.

copy(portal): tighten hosted overview guidance

rcourtman909f2abcf7cd
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.json
index 4e6670b468..6ead28897f 100644
--- a/internal/cloudcp/portal/dist/build_manifest.json
+++ b/internal/cloudcp/portal/dist/build_manifest.json
@@ -1,5 +1,5 @@
{
- "source_hash": "2bdb80b87f56b5dcbf4982fc5e11926270026429c25557bf4a8980bd2029723f",
+ "source_hash": "53c95be428bd99e679f7eb23ca0108eab98f2a1981fc77f3e65134df39b13528",
"build_inputs": [
"package.json",
"tsconfig.json",
diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.js
index 405eb3f930..11c35cba9d 100644
--- a/internal/cloudcp/portal/dist/portal_app.js
+++ b/internal/cloudcp/portal/dist/portal_app.js
@@ -1796,7 +1796,7 @@
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>' + escapeHTML(suspendedCount > 0 ? "Active fleet is stable" : "Fleet is stable") + "</h4><p>" + escapeHTML(
+ return '<div class="overview-side-card overview-side-card-stable"><div class="account-panel-kicker">Attention</div><h4>' + escapeHTML(suspendedCount > 0 ? "No active blockers" : "Fleet is clear") + "</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."
@@ -1851,13 +1851,13 @@
var checkingCount = countWorkspacesByHealth(workspaces, "checking");
var unhealthyCount = countWorkspacesByHealth(workspaces, "unhealthy");
var suspendedCount = countWorkspacesByState(workspaces, "suspended");
- var postureTitle = unhealthyCount > 0 ? "Hosted posture needs review" : checkingCount > 0 ? "Hosted posture is still settling" : suspendedCount > 0 ? "Active fleet is stable" : "Hosted posture is stable";
+ var postureTitle = unhealthyCount > 0 ? "Needs review" : checkingCount > 0 ? "Still settling" : suspendedCount > 0 ? "Active fleet is stable" : "Fleet is stable";
var postureCopy = unhealthyCount > 0 ? "One or more workspaces still need attention before the hosted fleet is trustworthy." : checkingCount > 0 ? "The hosted fleet is mostly healthy, but some workspaces are still waiting on a completed health check." : suspendedCount > 0 ? "Active hosted workspaces are healthy while suspended workspaces stay parked until you resume them." : "The hosted fleet is healthy and ready for routine operator work.";
- var nextStepTitle = unhealthyCount > 0 ? "Start in Workspaces" : checkingCount > 0 ? "Review pending checks" : suspendedCount > 0 ? "Active fleet is clear" : "Fleet is clear";
+ var nextStepTitle = unhealthyCount > 0 ? "Start in workspaces" : checkingCount > 0 ? "Review pending checks" : suspendedCount > 0 ? "Next operator step" : "Next operator step";
var nextStepCopy = unhealthyCount > 0 ? "One or more workspaces need review before you treat the hosted fleet as trustworthy." : checkingCount > 0 ? "The fleet is mostly healthy, but there are still workspaces waiting on a completed health check." : suspendedCount > 0 ? "Active hosted workspaces look stable. Resume a suspended workspace only when you are ready to bring it back into the operator path." : "Hosted posture looks stable. Move into team or account services only if you need to change access or billing.";
- var nextStepChecklist = unhealthyCount > 0 ? '<div class="overview-next-checklist"><div class="overview-next-check"><strong>1. Review attention items</strong><span>Open the fleet and inspect any workspace marked as checking or needs attention.</span></div><div class="overview-next-check"><strong>2. Resolve operator blockers</strong><span>Use Team if the right people are not already attached to the hosted account.</span></div><div class="overview-next-check"><strong>3. Escalate billing separately</strong><span>Keep account billing or self-hosted license work out of the workspace review flow.</span></div></div>' : checkingCount > 0 ? '<div class="overview-next-checklist"><div class="overview-next-check"><strong>1. Verify pending health checks</strong><span>Open the workspaces still settling and confirm they are safe to operate.</span></div><div class="overview-next-check"><strong>2. Keep the roster lean</strong><span>Review Team only if a pending workspace needs a different operator mix.</span></div><div class="overview-next-check"><strong>3. Leave billing as a separate action</strong><span>Use account services or billing only when the hosted fleet is already understood.</span></div></div>' : '<div class="overview-next-checklist"><div class="overview-next-check"><strong>1. Use Workspaces for the next operational task</strong><span>Open a client workspace directly when you are ready to do hosted work.</span></div><div class="overview-next-check"><strong>2. Use Team for access changes only</strong><span>Keep roster changes explicit instead of mixing them into routine workspace work.</span></div><div class="overview-next-check"><strong>3. Use account services when the task is commercial</strong><span>Licenses, refunds, privacy, and self-hosted billing stay in their own section.</span></div></div>';
+ var nextStepChecklist = unhealthyCount > 0 ? '<div class="overview-next-checklist"><div class="overview-next-check"><strong>1. Review attention items</strong><span>Open the fleet and inspect any workspace marked as checking or needs attention.</span></div><div class="overview-next-check"><strong>2. Resolve operator blockers</strong><span>Use Team if the right people are not already attached to the hosted account.</span></div><div class="overview-next-check"><strong>3. Escalate billing separately</strong><span>Keep account billing or self-hosted license work out of the workspace review flow.</span></div></div>' : checkingCount > 0 ? '<div class="overview-next-checklist"><div class="overview-next-check"><strong>1. Verify pending checks</strong><span>Open the workspaces still settling and confirm they are safe to operate.</span></div><div class="overview-next-check"><strong>2. Keep access deliberate</strong><span>Change Team only if a pending workspace needs a different operator mix.</span></div><div class="overview-next-check"><strong>3. Keep commercial work separate</strong><span>Use account services or billing only when the hosted fleet is already understood.</span></div></div>' : '<div class="overview-next-checklist"><div class="overview-next-check"><strong>1. Open a workspace for the next operational task</strong><span>Move into Workspaces when you are ready to do hosted work.</span></div><div class="overview-next-check"><strong>2. Change access in Team only</strong><span>Keep roster changes explicit instead of mixing them into routine workspace work.</span></div><div class="overview-next-check"><strong>3. Keep billing and privacy separate</strong><span>Licenses, refunds, privacy, and self-hosted billing stay in their own section.</span></div></div>';
var nextStepActions = '<div class="overview-next-actions"><button class="btn-primary btn-compact" type="button" data-shell-action="activate-section" data-shell-section="workspaces">Open workspaces</button><button class="btn-secondary btn-compact" type="button" data-shell-action="activate-section" data-shell-section="' + (account.can_manage ? "team" : "services") + '">' + (account.can_manage ? "Review team access" : "Open account services") + "</button></div>";
- return '<section class="account-content-panel account-content-panel-overview"><div class="account-stage-header account-stage-header-overview"><div><div class="account-panel-kicker">Overview</div><h3>Hosted posture</h3><p>Start here to judge fleet posture, pick the next operator action, and keep commercial account work separate from hosted operations.</p></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(
+ return '<section class="account-content-panel account-content-panel-overview"><div class="account-stage-header account-stage-header-overview"><div><div class="account-panel-kicker">Overview</div><h3>Hosted posture</h3><p>Review hosted posture first, then move into the next operator desk.</p></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></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>";
}
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.ts
index b8e462f000..ff0b0c336d 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts
@@ -143,10 +143,10 @@ describe('shell view', function() {
expect(html).toContain('Manage billing');
expect(html).toContain('Manage team');
expect(html).toContain('Hosted posture');
- expect(html).toContain('Start here to judge fleet posture');
+ expect(html).toContain('Review hosted posture first');
expect(html).toContain('Next move');
- expect(html).toContain('Start in Workspaces');
- expect(html).toContain('Hosted posture needs review');
+ expect(html).toContain('Start in workspaces');
+ expect(html).toContain('Needs review');
expect(html).toContain('Fleet posture');
expect(html).toContain('Use this console to run client workspaces, account billing, and operator access from one place.');
expect(html).toContain('Open workspaces');
@@ -284,9 +284,9 @@ describe('shell view', function() {
);
expect(html).toContain('Suspended until you resume it');
- expect(html).toContain('Active fleet is stable');
+ expect(html).toContain('No active blockers');
expect(html).toContain('Active hosted workspaces are healthy while suspended workspaces stay parked until you resume them.');
- expect(html).toContain('Active fleet is clear');
+ expect(html).toContain('Next operator step');
expect(html).toContain('Active hosted workspaces look stable. Resume a suspended workspace only when you are ready to bring it back into the operator path.');
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.ts
index 562231780c..76f538b910 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts
@@ -183,7 +183,7 @@ function renderAttentionPanel(workspaces: PortalWorkspaceSummary[]): string {
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>' +
+ '<h4>' + escapeHTML(suspendedCount > 0 ? 'No active blockers' : 'Fleet is clear') + '</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.'
@@ -347,12 +347,12 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {
var unhealthyCount = countWorkspacesByHealth(workspaces, 'unhealthy');
var suspendedCount = countWorkspacesByState(workspaces, 'suspended');
var postureTitle = unhealthyCount > 0
- ? 'Hosted posture needs review'
+ ? 'Needs review'
: checkingCount > 0
- ? 'Hosted posture is still settling'
+ ? 'Still settling'
: suspendedCount > 0
? 'Active fleet is stable'
- : 'Hosted posture is stable';
+ : 'Fleet is stable';
var postureCopy = unhealthyCount > 0
? 'One or more workspaces still need attention before the hosted fleet is trustworthy.'
: checkingCount > 0
@@ -361,12 +361,12 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {
? 'Active hosted workspaces are healthy while suspended workspaces stay parked until you resume them.'
: 'The hosted fleet is healthy and ready for routine operator work.';
var nextStepTitle = unhealthyCount > 0
- ? 'Start in Workspaces'
+ ? 'Start in workspaces'
: checkingCount > 0
? 'Review pending checks'
: suspendedCount > 0
- ? 'Active fleet is clear'
- : 'Fleet is clear';
+ ? 'Next operator step'
+ : 'Next operator step';
var nextStepCopy = unhealthyCount > 0
? 'One or more workspaces need review before you treat the hosted fleet as trustworthy.'
: checkingCount > 0
@@ -385,16 +385,16 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {
: checkingCount > 0
? (
'<div class="overview-next-checklist">' +
- '<div class="overview-next-check"><strong>1. Verify pending health checks</strong><span>Open the workspaces still settling and confirm they are safe to operate.</span></div>' +
- '<div class="overview-next-check"><strong>2. Keep the roster lean</strong><span>Review Team only if a pending workspace needs a different operator mix.</span></div>' +
- '<div class="overview-next-check"><strong>3. Leave billing as a separate action</strong><span>Use account services or billing only when the hosted fleet is already understood.</span></div>' +
+ '<div class="overview-next-check"><strong>1. Verify pending checks</strong><span>Open the workspaces still settling and confirm they are safe to operate.</span></div>' +
+ '<div class="overview-next-check"><strong>2. Keep access deliberate</strong><span>Change Team only if a pending workspace needs a different operator mix.</span></div>' +
+ '<div class="overview-next-check"><strong>3. Keep commercial work separate</strong><span>Use account services or billing only when the hosted fleet is already understood.</span></div>' +
'</div>'
)
: (
'<div class="overview-next-checklist">' +
- '<div class="overview-next-check"><strong>1. Use Workspaces for the next operational task</strong><span>Open a client workspace directly when you are ready to do hosted work.</span></div>' +
- '<div class="overview-next-check"><strong>2. Use Team for access changes only</strong><span>Keep roster changes explicit instead of mixing them into routine workspace work.</span></div>' +
- '<div class="overview-next-check"><strong>3. Use account services when the task is commercial</strong><span>Licenses, refunds, privacy, and self-hosted billing stay in their own section.</span></div>' +
+ '<div class="overview-next-check"><strong>1. Open a workspace for the next operational task</strong><span>Move into Workspaces when you are ready to do hosted work.</span></div>' +
+ '<div class="overview-next-check"><strong>2. Change access in Team only</strong><span>Keep roster changes explicit instead of mixing them into routine workspace work.</span></div>' +
+ '<div class="overview-next-check"><strong>3. Keep billing and privacy separate</strong><span>Licenses, refunds, privacy, and self-hosted billing stay in their own section.</span></div>' +
'</div>'
);
var nextStepActions =
@@ -409,7 +409,7 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {
'<div>' +
'<div class="account-panel-kicker">Overview</div>' +
'<h3>Hosted posture</h3>' +
- '<p>Start here to judge fleet posture, pick the next operator action, and keep commercial account work separate from hosted operations.</p>' +
+ '<p>Review hosted posture first, then move into the next operator desk.</p>' +
'</div>' +
'</div>' +
'<div class="account-command-deck">' +