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
copy(portal): tighten shell semantics
rcourtman1fdb3ea40b4e
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.jsonindex 3bbedbb73d..bf02c2fc8d 100644--- a/internal/cloudcp/portal/dist/build_manifest.json+++ b/internal/cloudcp/portal/dist/build_manifest.json@@ -1,5 +1,5 @@{- "source_hash": "b6ef0e7aad80ca276362c7682e23436b23256c3220a3f314b3421997ccf5d892",+ "source_hash": "24eca64ed3e3f3d28e8f79039475c0cbe700eac74299bd055b19c9d724e72b85","build_inputs": ["package.json","tsconfig.json",diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.jsindex d7db5a6050..b1a4e00135 100644--- a/internal/cloudcp/portal/dist/portal_app.js+++ b/internal/cloudcp/portal/dist/portal_app.js@@ -1835,7 +1835,7 @@function renderAccountContextStrip(account) {var workspaceLabel = workspaceCountLabel((account.workspaces || []).length);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" ? "Hosted workspace account for fleet access, team control, and account billing." : "Hosted account access for workspaces, 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>";+ 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" ? "Hosted workspace account for workspace access, team control, and billing." : "Hosted account 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, index, title, copy, badge) {var badgeHTML = badge ? '<span class="portal-shell-nav-badge">' + escapeHTML(badge) + "</span>" : "";@@ -1853,7 +1853,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">Account center</div><div class="portal-shell-nav-support">' + (hosted ? "Hosted workspaces, account access, and commercial services" : "Commercial account services and support") + '</div></div><div class="portal-shell-nav-group">' + shellSectionButton("overview", activeSection, "01", "Overview", hosted ? "Status, account health, 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 team roster" : "Account membership", canManage ? "Manage" : "View") + shellSectionButton("services", activeSection, "04", "Account services", "Licenses, billing, refunds, and privacy", "4 tools") + shellSectionButton("support", activeSection, "05", "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">Account center</div><div class="portal-shell-nav-support">' + (hosted ? "Hosted workspaces, account access, and commercial services" : "Commercial account services and support") + '</div></div><div class="portal-shell-nav-group">' + shellSectionButton("overview", activeSection, "01", "Overview", hosted ? "Status, priorities, and next actions" : "Account summary and access state", hosted ? String(totalWorkspaces) + " total" : "Summary") + shellSectionButton("workspaces", activeSection, "02", hosted ? "Workspaces" : "Hosted access", hosted ? "Hosted workspaces and lifecycle actions" : "No hosted workspaces are attached yet", hosted ? String(readyWorkspaces) + " ready" : "None") + shellSectionButton("team", activeSection, "03", "Team", hosted ? "Access and team roster" : "Account membership", canManage ? "Manage" : "View") + shellSectionButton("services", activeSection, "04", "Account services", "Licenses, billing, refunds, and privacy", "4 tools") + 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);@@ -1887,11 +1887,11 @@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 use.";var nextStepTitle = unhealthyCount > 0 ? "Start in workspaces" : checkingCount > 0 ? "Review pending checks" : suspendedCount > 0 ? "Next step" : "Next 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 regular use." : "Hosted status looks stable. Move into Team or Account services only if you need to change access or billing.";+ 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 regular use." : "Everything 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 access 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 mix of access.</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>";- var accountScopeCopy = account.kind === "msp" ? "Run client workspaces, account billing, and team access from one place." : "Run hosted workspaces, account billing, and team access from one place.";- var overviewBriefStrip = '<div class="account-overview-brief-strip"><div class="account-overview-brief-point account-overview-brief-point-wide"><strong>Account role</strong><span>' + escapeHTML(accountScopeCopy) + '</span></div><div class="account-overview-brief-point"><strong>Hosted path</strong><span>Use Workspaces for tenant access and lifecycle changes, and Team only when access needs to change.</span></div><div class="account-overview-brief-point"><strong>Commercial path</strong><span>Keep licenses, refunds, privacy, and self-hosted billing in Account services instead of mixing them into hosted work.</span></div></div>';+ var accountScopeCopy = account.kind === "msp" ? "Manage client workspaces, billing, and team access from one place." : "Manage hosted workspaces, billing, and team access from one place.";+ var overviewBriefStrip = '<div class="account-overview-brief-strip"><div class="account-overview-brief-point account-overview-brief-point-wide"><strong>Account scope</strong><span>' + escapeHTML(accountScopeCopy) + '</span></div><div class="account-overview-brief-point"><strong>Hosted path</strong><span>Use Workspaces for tenant access and lifecycle changes, and Team only when access needs to change.</span></div><div class="account-overview-brief-point"><strong>Commercial path</strong><span>Keep licenses, refunds, privacy, and self-hosted billing in Account services instead of mixing them into hosted work.</span></div></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 status</h3><p>Review hosted status first, then move into the next section.</p>' + renderSectionContextChips([String(totalCount) + " total",String(readyCount) + " ready",@@ -1943,7 +1943,7 @@]) + '</div><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="workspaces">Close team view</button></div><div class="team-management-stats" id="team-stats-' + escapeAttr(account.id) + '"></div><div class="team-management-grid"><div class="team-roster-column"><div class="team-roster"><div class="team-panel-heading"><h4>People on this account</h4><p>Keep the roster small and role assignment explicit. The people listed here are the ones who can operate the hosted fleet.</p></div><div class="team-roster-list" id="team-list-' + escapeAttr(account.id) + '"><div class="team-list-message">Loading\u2026</div></div></div>' + reviewDesk + '</div><div class="team-side-column"><div class="team-operations-panel"><div class="team-panel-heading team-panel-heading-tight"><div class="account-panel-kicker">Access controls</div><h4>Invite and role policy</h4><p>Keep the roster deliberate. Invite the smallest role first, then tighten access as responsibilities become clearer.</p></div><div class="team-operations-grid"><div class="team-invite-panel"><div class="team-panel-heading"><h4>Invite someone new</h4><p>Add another person with the minimum role they need for this account.</p></div><div class="team-invite"><div><label for="invite-email-' + escapeAttr(account.id) + '">Email</label><input type="email" id="invite-email-' + escapeAttr(account.id) + '" placeholder="[email protected]" autocomplete="off"></div><div><label for="invite-role-' + escapeAttr(account.id) + '">Role</label><select id="invite-role-' + escapeAttr(account.id) + '"><option value="admin">Admin</option><option value="tech">Tech</option><option value="read_only">Read-only</option></select></div><button type="button" class="btn-primary btn-compact" data-action="invite-member" data-account-id="' + escapeAttr(account.id) + '">Invite</button></div></div>' + accessPolicy + "</div></div></div></div></section></section>";}function renderSupportSection(context) {- return '<section class="portal-support-panel"><div class="account-panel-kicker">Support</div><h2>Support</h2><p>Use this section when hosted access looks wrong, billing behaves unexpectedly, or you need help with commercial requests.</p>' + renderSectionContextChips(["Hosted issues", "Commercial requests", context.bootstrap.support_email ? "Email" : "Support"]) + '<div class="portal-support-brief-strip"><div class="portal-support-brief-card"><strong>Hosted path</strong><span>Workspace access, team control, tenant handoff, and hosted billing stay on the hosted account route.</span></div><div class="portal-support-brief-card"><strong>Commercial path</strong><span>Self-hosted billing, licenses, refunds, and privacy requests stay in Account services until escalation is needed.</span></div><div class="portal-support-brief-card"><strong>Escalate with context</strong><span>Include the exact account, workspace, section, and failed action so support can continue the same path immediately.</span></div></div><div class="portal-support-layout"><div class="portal-support-route-grid"><div class="portal-support-route-card"><div class="account-panel-kicker">Hosted account</div><h3>Account support</h3><p>Use this route when tenant handoff, workspace access, team control, or hosted billing looks wrong.</p><div class="portal-support-points"><div class="portal-support-point"><strong>Route here for hosted issues</strong><span>Access, handoff, team, and hosted billing all belong on the hosted account path.</span></div><div class="portal-support-point"><strong>Keep the account context intact</strong><span>Include the account, workspace, and action that failed so support can pick up the same issue quickly.</span></div></div><div class="portal-support-actions"><a class="portal-support-link" href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + '</a></div></div><div class="portal-support-route-card"><div class="account-panel-kicker">Commercial</div><h3>Commercial services</h3><p>Self-hosted subscriptions, license recovery, refunds, and privacy requests all route through Account services first.</p><div class="portal-support-points"><div class="portal-support-point"><strong>Start in Account services</strong><span>Use Billing, Licenses, Refunds, or Privacy before escalating a commercial issue.</span></div><div class="portal-support-point"><strong>Escalate from the same path</strong><span>Keep the request in one place instead of splitting it between billing and account sections.</span></div></div><div class="portal-support-actions"><button type="button" class="btn-secondary" data-shell-action="activate-section" data-shell-section="services">Open account services</button></div></div></div><div class="portal-support-runbook"><div class="account-panel-kicker">Escalation guide</div><h3>Route the issue cleanly</h3><p>Keep hosted workspace issues, commercial requests, and pure support escalation on their own paths so the next person does not have to reconstruct the account state.</p><div class="portal-support-runbook-brief"><div class="portal-support-runbook-brief-card"><strong>Confirm scope</strong><span>Decide first whether the issue is a hosted workspace problem, a commercial self-service request, or direct support escalation.</span></div><div class="portal-support-runbook-brief-card"><strong>Keep paths separate</strong><span>Workspace and team problems stay out of billing, refund, privacy, and license work.</span></div><div class="portal-support-runbook-brief-card"><strong>Escalate with facts</strong><span>Bring the exact account, workspace, section, and failed action so support starts with the same state you saw.</span></div></div><div class="portal-support-runbook-grid"><div class="portal-support-runbook-section"><div class="portal-support-runbook-section-title">Route checklist</div><div class="portal-support-runbook-list"><div class="portal-support-runbook-step"><strong>1. Confirm the scope</strong><span>Decide whether the problem is a hosted workspace issue, a commercial self-service request, or direct support escalation.</span></div><div class="portal-support-runbook-step"><strong>2. Keep hosted and commercial separate</strong><span>Workspace and team problems stay in their own sections. Billing, license, refund, and privacy work stay in Account services.</span></div><div class="portal-support-runbook-step"><strong>3. Escalate with context</strong><span>Include the account, workspace, and exact failed action so the escalation path starts with the same facts you saw.</span></div></div></div><div class="portal-support-runbook-section"><div class="portal-support-runbook-section-title">Escalation packet</div><div class="portal-support-handoff-note"><strong>Include in the escalation</strong><span>Account name, workspace name if relevant, the section you were in, the exact button or request that failed, and whether the issue was hosted or commercial.</span></div></div></div></div></div></section>';+ return '<section class="portal-support-panel"><div class="account-panel-kicker">Support</div><h2>Support</h2><p>Use this section when hosted access looks wrong, billing behaves unexpectedly, or you need help with commercial requests.</p>' + renderSectionContextChips(["Hosted issues", "Commercial requests", context.bootstrap.support_email ? "Email" : "Support"]) + '<div class="portal-support-brief-strip"><div class="portal-support-brief-card"><strong>Hosted path</strong><span>Workspace access, team control, tenant handoff, and hosted billing stay on the hosted account route.</span></div><div class="portal-support-brief-card"><strong>Commercial path</strong><span>Self-hosted billing, licenses, refunds, and privacy requests stay in Account services until escalation is needed.</span></div><div class="portal-support-brief-card"><strong>Escalate with context</strong><span>Include the exact account, workspace, section, and failed action so support can continue the same path immediately.</span></div></div><div class="portal-support-layout"><div class="portal-support-route-grid"><div class="portal-support-route-card"><div class="account-panel-kicker">Hosted account</div><h3>Hosted support</h3><p>Use this route when tenant handoff, workspace access, team control, or hosted billing looks wrong.</p><div class="portal-support-points"><div class="portal-support-point"><strong>Route here for hosted issues</strong><span>Access, handoff, team, and hosted billing all belong on the hosted account path.</span></div><div class="portal-support-point"><strong>Keep the account context intact</strong><span>Include the account, workspace, and action that failed so support can pick up the same issue quickly.</span></div></div><div class="portal-support-actions"><a class="portal-support-link" href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + '</a></div></div><div class="portal-support-route-card"><div class="account-panel-kicker">Commercial</div><h3>Commercial requests</h3><p>Self-hosted subscriptions, license recovery, refunds, and privacy requests all route through Account services first.</p><div class="portal-support-points"><div class="portal-support-point"><strong>Start in Account services</strong><span>Use Billing, Licenses, Refunds, or Privacy before escalating a commercial issue.</span></div><div class="portal-support-point"><strong>Escalate from the same path</strong><span>Keep the request in one place instead of splitting it between billing and account sections.</span></div></div><div class="portal-support-actions"><button type="button" class="btn-secondary" data-shell-action="activate-section" data-shell-section="services">Open account services</button></div></div></div><div class="portal-support-runbook"><div class="account-panel-kicker">Escalation guide</div><h3>Choose the right path</h3><p>Keep hosted workspace issues, commercial requests, and pure support escalation on their own paths so the next person does not have to reconstruct the account state.</p><div class="portal-support-runbook-brief"><div class="portal-support-runbook-brief-card"><strong>Confirm scope</strong><span>Decide first whether the issue is a hosted workspace problem, a commercial self-service request, or direct support escalation.</span></div><div class="portal-support-runbook-brief-card"><strong>Keep paths separate</strong><span>Workspace and team problems stay out of billing, refund, privacy, and license work.</span></div><div class="portal-support-runbook-brief-card"><strong>Escalate with facts</strong><span>Bring the exact account, workspace, section, and failed action so support starts with the same state you saw.</span></div></div><div class="portal-support-runbook-grid"><div class="portal-support-runbook-section"><div class="portal-support-runbook-section-title">Route checklist</div><div class="portal-support-runbook-list"><div class="portal-support-runbook-step"><strong>1. Confirm the scope</strong><span>Decide whether the problem is a hosted workspace issue, a commercial self-service request, or direct support escalation.</span></div><div class="portal-support-runbook-step"><strong>2. Keep hosted and commercial separate</strong><span>Workspace and team problems stay in their own sections. Billing, license, refund, and privacy work stay in Account services.</span></div><div class="portal-support-runbook-step"><strong>3. Escalate with context</strong><span>Include the account, workspace, and exact failed action so the escalation path starts with the same facts you saw.</span></div></div></div><div class="portal-support-runbook-section"><div class="portal-support-runbook-section-title">Escalation packet</div><div class="portal-support-handoff-note"><strong>Include in the escalation</strong><span>Account name, workspace name if relevant, the section you were in, the exact button or request that failed, and whether the issue was hosted or commercial.</span></div></div></div></div></div></section>';}function renderHeaderHTML(context) {if (context.bootstrap.authenticated) {diff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.tsindex e26a98497d..916a581417 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts@@ -155,8 +155,8 @@ describe('shell view', function() {expect(html).toContain('Start in workspaces');expect(html).toContain('Needs review');expect(html).toContain('Fleet status');- expect(html).toContain('Account role');- expect(html).toContain('Run client workspaces, account billing, and team access from one place.');+ expect(html).toContain('Account scope');+ expect(html).toContain('Manage client workspaces, billing, and team access from one place.');expect(html).toContain('Hosted path');expect(html).toContain('Commercial path');expect(html).toContain('Open workspaces');@@ -221,7 +221,7 @@ describe('shell view', function() {expect(html).toContain('>Licenses<');expect(html).toContain('>Refunds<');expect(html).toContain('>Privacy<');- expect(html).toContain('Route the issue cleanly');+ expect(html).toContain('Choose the right path');expect(html).toContain('Hosted path');expect(html).toContain('Commercial path');expect(html).toContain('Route checklist');diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.tsindex 31b5dfc009..61e5102a70 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts@@ -296,7 +296,7 @@ function renderAccountContextStrip(account: PortalAccountSummary): string {'<span class="account-context-chip">' + escapeHTML(workspaceLabel) + '</span>' +'</div>' +'</div>' +- '<p>' + escapeHTML(account.kind === 'msp' ? 'Hosted workspace account for fleet access, team control, and account billing.' : 'Hosted account access for workspaces, team control, and billing.') + '</p>' ++ '<p>' + escapeHTML(account.kind === 'msp' ? 'Hosted workspace account for workspace access, team control, and billing.' : 'Hosted account for workspace access, team control, and billing.') + '</p>' +'</div>' +'<div class="portal-account-context-summary">' +'<div class="portal-account-context-stat">' +@@ -354,8 +354,8 @@ function renderShellNavigation(accounts: PortalAccountSummary[], supportEmail: s'<div class="portal-shell-nav-support">' + (hosted ? 'Hosted workspaces, account access, and commercial services' : 'Commercial account services and support') + '</div>' +'</div>' +'<div class="portal-shell-nav-group">' +- shellSectionButton('overview', activeSection, '01', 'Overview', hosted ? 'Status, account health, 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('overview', activeSection, '01', 'Overview', hosted ? 'Status, priorities, and next actions' : 'Account summary and access state', hosted ? String(totalWorkspaces) + ' total' : 'Summary') ++ shellSectionButton('workspaces', activeSection, '02', hosted ? 'Workspaces' : 'Hosted access', hosted ? 'Hosted workspaces and lifecycle actions' : 'No hosted workspaces are attached yet', hosted ? String(readyWorkspaces) + ' ready' : 'None') +shellSectionButton('team', activeSection, '03', 'Team', hosted ? 'Access and team roster' : 'Account membership', canManage ? 'Manage' : 'View') +shellSectionButton('services', activeSection, '04', 'Account services', 'Licenses, billing, refunds, and privacy', '4 tools') +shellSectionButton('support', activeSection, '05', 'Support', hosted ? 'Escalation and account support' : (supportEmail || 'Support contact'), supportEmail ? 'Email' : 'Help') +@@ -454,7 +454,7 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {? '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 regular use.'- : 'Hosted status looks stable. Move into Team or Account services only if you need to change access or billing.';+ : 'Everything 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">' +@@ -484,12 +484,12 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {'<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>';var accountScopeCopy = account.kind === 'msp'- ? 'Run client workspaces, account billing, and team access from one place.'- : 'Run hosted workspaces, account billing, and team access from one place.';+ ? 'Manage client workspaces, billing, and team access from one place.'+ : 'Manage hosted workspaces, billing, and team access from one place.';var overviewBriefStrip ='<div class="account-overview-brief-strip">' +'<div class="account-overview-brief-point account-overview-brief-point-wide">' +- '<strong>Account role</strong>' ++ '<strong>Account scope</strong>' +'<span>' + escapeHTML(accountScopeCopy) + '</span>' +'</div>' +'<div class="account-overview-brief-point">' +@@ -877,7 +877,7 @@ function renderSupportSection(context: ShellViewContext): string {'<div class="portal-support-route-grid">' +'<div class="portal-support-route-card">' +'<div class="account-panel-kicker">Hosted account</div>' +- '<h3>Account support</h3>' ++ '<h3>Hosted support</h3>' +'<p>Use this route when tenant handoff, workspace access, team control, or hosted billing looks wrong.</p>' +'<div class="portal-support-points">' +'<div class="portal-support-point"><strong>Route here for hosted issues</strong><span>Access, handoff, team, and hosted billing all belong on the hosted account path.</span></div>' +@@ -889,7 +889,7 @@ function renderSupportSection(context: ShellViewContext): string {'</div>' +'<div class="portal-support-route-card">' +'<div class="account-panel-kicker">Commercial</div>' +- '<h3>Commercial services</h3>' ++ '<h3>Commercial requests</h3>' +'<p>Self-hosted subscriptions, license recovery, refunds, and privacy requests all route through Account services first.</p>' +'<div class="portal-support-points">' +'<div class="portal-support-point"><strong>Start in Account services</strong><span>Use Billing, Licenses, Refunds, or Privacy before escalating a commercial issue.</span></div>' +@@ -902,7 +902,7 @@ function renderSupportSection(context: ShellViewContext): string {'</div>' +'<div class="portal-support-runbook">' +'<div class="account-panel-kicker">Escalation guide</div>' +- '<h3>Route the issue cleanly</h3>' ++ '<h3>Choose the right path</h3>' +'<p>Keep hosted workspace issues, commercial requests, and pure support escalation on their own paths so the next person does not have to reconstruct the account state.</p>' +'<div class="portal-support-runbook-brief">' +'<div class="portal-support-runbook-brief-card"><strong>Confirm scope</strong><span>Decide first whether the issue is a hosted workspace problem, a commercial self-service request, or direct support escalation.</span></div>' +