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): normalize remaining workspace account language
rcourtmanaaa008e48bb7
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.jsonindex a6122f6d4e..8c99bcccdf 100644--- a/internal/cloudcp/portal/dist/build_manifest.json+++ b/internal/cloudcp/portal/dist/build_manifest.json@@ -1,5 +1,5 @@{- "source_hash": "76d42d67fcfa327e662a150fb9ae74fe5ebc1cc020771aa889191ffb6e2c9be0",+ "source_hash": "59170a8df52cfe51c3e646dd1968ca1e89f250a1d12286ed374dacab67128d3c","build_inputs": ["package.json","tsconfig.json",diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.jsindex 449d63d16d..ed72b2dc69 100644--- a/internal/cloudcp/portal/dist/portal_app.js+++ b/internal/cloudcp/portal/dist/portal_app.js@@ -23,13 +23,13 @@function roleCapabilityCopy(role) {switch (normalizedTeamRole(role)) {case "owner":- return "Full account control, including billing, team access, and hosted workspace control.";+ return "Full account control, including billing, team access, and workspace control.";case "admin":- return "Can manage hosted workspaces and billing for this account.";+ return "Can manage workspaces and billing for this account.";case "tech":- return "Can manage hosted workspaces without billing ownership.";+ return "Can manage workspaces without billing ownership.";case "read_only":- return "Can review hosted state without making control-plane changes.";+ return "Can review workspace status without making control-plane changes.";case "member":return "Has access through the account roster.";default:@@ -70,10 +70,10 @@return "This workspace looks ready for normal use. Use the fleet table to open it, or suspend it here if you are intentionally taking it out of service.";}if (workspace.state === "active" && workspace.health_status === "checking") {- return "This workspace is active but still waiting on a completed health check. Review it before you treat the hosted posture as settled.";+ return "This workspace is active but still waiting on a completed health check. Review it before you treat the account status as settled.";}if (workspace.health_status === "unhealthy") {- return "This workspace needs review before it is treated as trustworthy. Use the management action only when you intend to suspend or remove it from the hosted fleet.";+ return "This workspace needs review before it is treated as trustworthy. Use the management action only when you intend to suspend or remove it from the workspace list.";}if (workspace.state === "suspended") {return "This workspace is already suspended. The remaining lifecycle action here is deletion, so treat it as a deliberate irreversible step.";@@ -312,7 +312,7 @@}if (!entry.teamQuery.data.length) {if (rosterPanel) rosterPanel.classList.add("state-only");- setContainerMessage(roster, "No one added yet", "Invite someone new when this hosted account needs shared access.", false);+ setContainerMessage(roster, "No one added yet", "Invite someone new when this account needs shared access.", false);return;}roster.textContent = "";@@ -1819,9 +1819,9 @@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 ? "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 status."+ suspendedCount > 0 ? "Active workspaces are healthy. Suspended workspaces stay parked until you resume them." : "Every active workspace currently reports a healthy status.") + '</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 use." : "All active hosted workspaces are clear for routine use."+ suspendedCount > 0 ? "Active workspaces are clear for routine use." : "All active workspaces are clear for routine use.") + "</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 day-to-day use.") + "</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) {@@ -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, 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>";+ 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 ? "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" : "Workspace access", hosted ? "Workspace access and lifecycle actions" : "No 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,15 +1887,15 @@var postureTitle = unhealthyCount > 0 ? "Needs review" : checkingCount > 0 ? "Still settling" : suspendedCount > 0 ? "Active workspaces are stable" : "Workspaces are stable";var postureCopy = unhealthyCount > 0 ? "One or more workspaces still need attention before this account looks healthy." : checkingCount > 0 ? "Most workspaces look healthy, but some are still waiting on a completed health check." : suspendedCount > 0 ? "Active workspaces are healthy while suspended workspaces stay parked until you resume them." : "All workspaces are 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 this account as healthy." : 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 workspace state 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 nextStepCopy = unhealthyCount > 0 ? "One or more workspaces need review before you treat this account as healthy." : checkingCount > 0 ? "The fleet is mostly healthy, but there are still workspaces waiting on a completed health check." : suspendedCount > 0 ? "Active 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 workspace state 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 workspace 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" ? "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>';+ var accountScopeCopy = account.kind === "msp" ? "Manage client workspaces, billing, and team access from one place." : "Manage 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>Workspace 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 workspace 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>Workspace status</h3><p>Review workspace status first, then move into the next section.</p>' + renderSectionContextChips([String(totalCount) + " total",String(readyCount) + " ready",- suspendedCount > 0 ? String(suspendedCount) + " suspended" : "Active fleet"+ suspendedCount > 0 ? String(suspendedCount) + " suspended" : "All active"]) + 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">Workspace summary</div><h3>' + escapeHTML(postureTitle) + "</h3><p>" + escapeHTML(postureCopy) + "</p>" + overviewBriefStrip + '</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) {@@ -1935,11 +1935,11 @@}function renderAccountTeamSection(account) {var accessPolicy = '<div class="team-policy-panel"><div class="team-panel-heading"><h4>Access model</h4><p>Assign the smallest role that still lets someone do the work they own on this account.</p></div><div class="team-policy-list"><div class="team-policy-row"><strong>Owner</strong><span>Billing, team access, and full hosted control.</span></div><div class="team-policy-row"><strong>Admin</strong><span>Hosted workspace control plus billing for the account.</span></div><div class="team-policy-row"><strong>Tech</strong><span>Workspace control without billing ownership.</span></div><div class="team-policy-row"><strong>Read-only</strong><span>State review and verification without control-plane changes.</span></div></div></div>';- var reviewDesk = '<div class="team-review-shell"><div class="team-review-strip"><div class="team-panel-heading team-panel-heading-tight"><div class="account-panel-kicker">Access review</div><h4>Keep access disciplined</h4><p>Use the roster as a controlled access list, not a dumping ground for vague shared access.</p></div><div class="team-review-grid"><div class="team-review-card"><strong>Owners stay rare</strong><span>Reserve Owner for billing, team, and full hosted control. Default to Admin, Tech, or Read-only first.</span></div><div class="team-review-card"><strong>Keep access narrow</strong><span>Use Tech for workspace control and Read-only for verification instead of handing out broader access.</span></div><div class="team-review-card"><strong>Remove stale access fast</strong><span>If someone no longer owns the work, remove them instead of leaving dormant access attached to the account.</span></div></div></div></div>';- return '<section class="account-content-panel account-content-panel-team"><section class="team-management-panel team-section team-section-shell" id="team-section-' + escapeAttr(account.id) + '" data-actor-role="' + escapeAttr(account.role) + '"><div class="team-management-header"><div><div class="account-panel-kicker">Team management</div><h3>Account access</h3><p>Owners govern billing and access. Admins and techs keep hosted work moving day to day.</p>' + renderSectionContextChips([+ var reviewDesk = '<div class="team-review-shell"><div class="team-review-strip"><div class="team-panel-heading team-panel-heading-tight"><div class="account-panel-kicker">Access review</div><h4>Keep access disciplined</h4><p>Use the roster as a controlled access list, not a dumping ground for vague shared access.</p></div><div class="team-review-grid"><div class="team-review-card"><strong>Owners stay rare</strong><span>Reserve Owner for billing, team, and full account control. Default to Admin, Tech, or Read-only first.</span></div><div class="team-review-card"><strong>Keep access narrow</strong><span>Use Tech for workspace control and Read-only for verification instead of handing out broader access.</span></div><div class="team-review-card"><strong>Remove stale access fast</strong><span>If someone no longer owns the work, remove them instead of leaving dormant access attached to the account.</span></div></div></div></div>';+ return '<section class="account-content-panel account-content-panel-team"><section class="team-management-panel team-section team-section-shell" id="team-section-' + escapeAttr(account.id) + '" data-actor-role="' + escapeAttr(account.role) + '"><div class="team-management-header"><div><div class="account-panel-kicker">Team management</div><h3>Account access</h3><p>Owners govern billing and access. Admins and techs keep workspace operations moving day to day.</p>' + renderSectionContextChips([account.can_manage ? "Managed roster" : "View only","Least privilege",- "Hosted access"+ "Workspace access"]) + '</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 manage these workspaces.</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) {@@ -1963,7 +1963,7 @@return '<div class="portal-shell" data-shell-section="' + activeSection + '"><div class="portal-shell-layout">' + renderShellNavigation(accounts, context.bootstrap.support_email || "", activeSection) + '<div class="portal-shell-main">' + (accounts.length === 1 ? renderAccountContextStrip(accounts[0]) : "") + '<section class="portal-content-panel portal-content-panel-overview"><div id="accounts-root">' + hostedContent + '</div></section><section class="portal-content-panel portal-content-panel-services service-section" id="account-services-section"><div class="service-header"><div><div class="account-panel-kicker">Account services</div><h2>' + serviceHeading + "</h2>" + renderSectionContextChips([hosted ? "Self-hosted only" : "Commercial","4 tools"- ]) + '</div><div class="service-note">' + serviceNote + '</div></div><div class="service-shell"><aside class="service-shell-sidebar"><div class="service-shell-sidebar-head"><div class="account-panel-kicker">Service navigator</div><h3>Self-hosted tools</h3><p>Pick one commercial request and keep it separate from hosted workspaces and team changes.</p></div><div class="service-action-list">' + renderServiceActionRow("open-manage-service", "Billing", "Manage subscriptions", "Billing", "Open Stripe for self-hosted plan, invoice, and payment changes.", "manage-service-panel", "manage-inline-email", ["Plan changes", "Invoices"]) + renderServiceActionRow("open-retrieve-service", "Licenses", "Retrieve licenses", "Licenses", "Recover the latest active self-hosted license and invoice link.", "retrieve-service-panel", "retrieve-inline-email", ["Latest active license", "Invoice lookup"]) + renderServiceActionRow("open-refund-service", "Refunds", "Refund requests", "Refunds", "Request a self-serve refund when the purchase is still eligible.", "refund-service-panel", "refund-inline-email", ["Eligibility check", "Revocation"]) + renderServiceActionRow("open-data-service", "Privacy", "Data and privacy", "Privacy", "Request export or deletion for commercial account data.", "data-service-panel", "data-export-email", ["Export", "Deletion"]) + '</div><div class="service-inline-support"><div class="account-panel-kicker">Commercial routing</div><h4>Keep this request separate</h4><p>Hosted workspace work stays in Workspaces and Team. Use Support only when a self-hosted billing, license, refund, or privacy request cannot complete cleanly.</p><div class="service-inline-support-points"><div class="service-inline-support-point"><strong>Hosted stays hosted</strong><span>Tenant handoff, team access, and hosted billing do not belong in this commercial section.</span></div><div class="service-inline-support-point"><strong>Escalate with context</strong><span>Bring the service name and exact failed action if a commercial request needs support.</span></div></div><div class="service-inline-support-actions"><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="support">Open support</button></div></div></aside><div class="service-shell-main"><div class="service-detail-shell"><div class="service-panel service-panel-empty visible" id="service-panel-empty"><div class="account-panel-kicker">Service brief</div><h3>Choose a service to begin</h3><p>Use one self-hosted request at a time. Each service verifies commercial identity first, then keeps billing, license, refund, or privacy work contained in one place.</p><div class="service-empty-shell"><div class="service-empty-primary"><div class="service-empty-section service-empty-section-compact"><div class="service-empty-column-title">What each tool does</div><div class="service-empty-flow-list"><div class="service-empty-flow"><strong>Billing</strong><span>Stripe customer portal access for invoices, payment methods, and plan changes.</span></div><div class="service-empty-flow"><strong>Licenses</strong><span>Recover the latest active self-hosted license and the matching invoice link.</span></div><div class="service-empty-flow"><strong>Refunds</strong><span>Check eligibility before revoking active commercial access.</span></div><div class="service-empty-flow"><strong>Privacy</strong><span>Request export or deletion without leaving Pulse Account.</span></div></div></div><div class="service-empty-section service-empty-section-compact"><div class="service-empty-column-title">Before you start</div><div class="service-empty-points service-empty-points-stack"><div class="service-empty-point"><strong>One request</strong><span>Keep a single commercial task active instead of bouncing across sections.</span></div><div class="service-empty-point"><strong>Identity first</strong><span>Verification happens before any sensitive account action opens.</span></div><div class="service-empty-point"><strong>Stay focused</strong><span>Keep one commercial request in flight instead of bouncing between services.</span></div></div></div></div><div class="service-empty-side"><div class="service-empty-section service-empty-section-support"><div class="service-empty-column-title">Escalation</div><div class="service-empty-checklist"><div class="service-empty-check"><strong>Escalate quickly</strong><span>If billing, licenses, refunds, or privacy do not behave as expected, escalate from this section.</span></div><div class="service-empty-check"><strong>Commercial packet</strong><span>Bring the service name, commercial email, and the exact failed action so support starts with the same request state.</span></div></div><div class="service-empty-support">Need help with billing, refund, privacy, or license requests? <a class="portal-support-link" href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + '</a></div><div class="service-empty-actions"><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="support">Open support</button></div></div></div></div></div><div class="service-panel" id="manage-service-panel"><div id="manage-service-root"></div></div><div class="service-panel" id="retrieve-service-panel"><div id="retrieve-service-root"></div></div><div class="service-panel" id="refund-service-panel"><div id="refund-service-root"></div></div><div class="service-panel" id="data-service-panel"><h3>Data and privacy</h3><p>Request export or deletion of the commercial data tied to an email address. Payment data held directly by Stripe still requires support handling.</p><div class="subsection"><div id="data-export-root"></div></div><div class="subsection"><div id="data-delete-root"></div></div><div class="helper-text">Payment-card data stays with Stripe. For Stripe deletion support, contact <a href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + '</a>.</div></div></div></div></div></section><section class="portal-content-panel portal-content-panel-support">' + renderSupportSection(context) + "</section></div></div></div>";+ ]) + '</div><div class="service-note">' + serviceNote + '</div></div><div class="service-shell"><aside class="service-shell-sidebar"><div class="service-shell-sidebar-head"><div class="account-panel-kicker">Service navigator</div><h3>Self-hosted tools</h3><p>Pick one commercial request and keep it separate from workspace and team changes.</p></div><div class="service-action-list">' + renderServiceActionRow("open-manage-service", "Billing", "Manage subscriptions", "Billing", "Open Stripe for self-hosted plan, invoice, and payment changes.", "manage-service-panel", "manage-inline-email", ["Plan changes", "Invoices"]) + renderServiceActionRow("open-retrieve-service", "Licenses", "Retrieve licenses", "Licenses", "Recover the latest active self-hosted license and invoice link.", "retrieve-service-panel", "retrieve-inline-email", ["Latest active license", "Invoice lookup"]) + renderServiceActionRow("open-refund-service", "Refunds", "Refund requests", "Refunds", "Request a self-serve refund when the purchase is still eligible.", "refund-service-panel", "refund-inline-email", ["Eligibility check", "Revocation"]) + renderServiceActionRow("open-data-service", "Privacy", "Data and privacy", "Privacy", "Request export or deletion for commercial account data.", "data-service-panel", "data-export-email", ["Export", "Deletion"]) + '</div><div class="service-inline-support"><div class="account-panel-kicker">Commercial routing</div><h4>Keep this request separate</h4><p>Hosted workspace work stays in Workspaces and Team. Use Support only when a self-hosted billing, license, refund, or privacy request cannot complete cleanly.</p><div class="service-inline-support-points"><div class="service-inline-support-point"><strong>Hosted stays hosted</strong><span>Tenant handoff, team access, and hosted billing do not belong in this commercial section.</span></div><div class="service-inline-support-point"><strong>Escalate with context</strong><span>Bring the service name and exact failed action if a commercial request needs support.</span></div></div><div class="service-inline-support-actions"><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="support">Open support</button></div></div></aside><div class="service-shell-main"><div class="service-detail-shell"><div class="service-panel service-panel-empty visible" id="service-panel-empty"><div class="account-panel-kicker">Service brief</div><h3>Choose a service to begin</h3><p>Use one self-hosted request at a time. Each service verifies commercial identity first, then keeps billing, license, refund, or privacy work contained in one place.</p><div class="service-empty-shell"><div class="service-empty-primary"><div class="service-empty-section service-empty-section-compact"><div class="service-empty-column-title">What each tool does</div><div class="service-empty-flow-list"><div class="service-empty-flow"><strong>Billing</strong><span>Stripe customer portal access for invoices, payment methods, and plan changes.</span></div><div class="service-empty-flow"><strong>Licenses</strong><span>Recover the latest active self-hosted license and the matching invoice link.</span></div><div class="service-empty-flow"><strong>Refunds</strong><span>Check eligibility before revoking active commercial access.</span></div><div class="service-empty-flow"><strong>Privacy</strong><span>Request export or deletion without leaving Pulse Account.</span></div></div></div><div class="service-empty-section service-empty-section-compact"><div class="service-empty-column-title">Before you start</div><div class="service-empty-points service-empty-points-stack"><div class="service-empty-point"><strong>One request</strong><span>Keep a single commercial task active instead of bouncing across sections.</span></div><div class="service-empty-point"><strong>Identity first</strong><span>Verification happens before any sensitive account action opens.</span></div><div class="service-empty-point"><strong>Stay focused</strong><span>Keep one commercial request in flight instead of bouncing between services.</span></div></div></div></div><div class="service-empty-side"><div class="service-empty-section service-empty-section-support"><div class="service-empty-column-title">Escalation</div><div class="service-empty-checklist"><div class="service-empty-check"><strong>Escalate quickly</strong><span>If billing, licenses, refunds, or privacy do not behave as expected, escalate from this section.</span></div><div class="service-empty-check"><strong>Commercial packet</strong><span>Bring the service name, commercial email, and the exact failed action so support starts with the same request state.</span></div></div><div class="service-empty-support">Need help with billing, refund, privacy, or license requests? <a class="portal-support-link" href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + '</a></div><div class="service-empty-actions"><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="support">Open support</button></div></div></div></div></div><div class="service-panel" id="manage-service-panel"><div id="manage-service-root"></div></div><div class="service-panel" id="retrieve-service-panel"><div id="retrieve-service-root"></div></div><div class="service-panel" id="refund-service-panel"><div id="refund-service-root"></div></div><div class="service-panel" id="data-service-panel"><h3>Data and privacy</h3><p>Request export or deletion of the commercial data tied to an email address. Payment data held directly by Stripe still requires support handling.</p><div class="subsection"><div id="data-export-root"></div></div><div class="subsection"><div id="data-delete-root"></div></div><div class="helper-text">Payment-card data stays with Stripe. For Stripe deletion support, contact <a href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + '</a>.</div></div></div></div></div></section><section class="portal-content-panel portal-content-panel-support">' + renderSupportSection(context) + "</section></div></div></div>";}function renderSignedOutPortalHTML(context) {var statusHTML = "";@@ -1973,7 +1973,7 @@var successMessage = context.loginState.successMessage || "If that email is registered, a magic link is on the way.";statusHTML = '<div class="service-status visible success">' + escapeHTML(successMessage) + `<br><br><strong>Don't see it?</strong> <a href="#" data-portal-action="resend-magic-link">Send a new link</a>.</div>`;}- return '<section class="intro-card"><div class="account-panel-kicker">Pulse Account</div><h1>Sign in to Pulse Account</h1><p>Use one commercial email address to get into hosted workspaces, MSP access, billing, license recovery, refunds, and privacy actions.</p></section><section class="service-section service-section-auth"><div class="service-panel visible auth-panel"><h3>Sign in</h3><p>Enter the commercial email address for your Pulse account. I will send a magic link so you can open Pulse Account without managing a password.</p><div class="form-group"><label for="portal-login-email">Email address</label><input id="portal-login-email" type="email" autocomplete="email" placeholder="[email protected]" value="' + escapeAttr(context.loginState.emailValue || "") + '" data-portal-input="login-email"></div><div class="form-actions"><button class="btn-primary" id="portal-login-send" type="button" data-portal-action="send-magic-link">' + (context.loginState.request.pending ? "Sending\u2026" : "Send magic link") + '</button><a class="btn-secondary link-button" href="' + escapeAttr(context.signupPath) + '">Create an account</a></div>' + statusHTML + "</div></section>";+ return '<section class="intro-card"><div class="account-panel-kicker">Pulse Account</div><h1>Sign in to Pulse Account</h1><p>Use one commercial email address to get into workspaces, MSP access, billing, license recovery, refunds, and privacy actions.</p></section><section class="service-section service-section-auth"><div class="service-panel visible auth-panel"><h3>Sign in</h3><p>Enter the commercial email address for your Pulse account. I will send a magic link so you can open Pulse Account without managing a password.</p><div class="form-group"><label for="portal-login-email">Email address</label><input id="portal-login-email" type="email" autocomplete="email" placeholder="[email protected]" value="' + escapeAttr(context.loginState.emailValue || "") + '" data-portal-input="login-email"></div><div class="form-actions"><button class="btn-primary" id="portal-login-send" type="button" data-portal-action="send-magic-link">' + (context.loginState.request.pending ? "Sending\u2026" : "Send magic link") + '</button><a class="btn-secondary link-button" href="' + escapeAttr(context.signupPath) + '">Create an account</a></div>' + statusHTML + "</div></section>";}// src/shell.tsdiff --git a/internal/cloudcp/portal/frontend/src/account_view.ts b/internal/cloudcp/portal/frontend/src/account_view.tsindex d3b8ed4328..42c6566c17 100644--- a/internal/cloudcp/portal/frontend/src/account_view.ts+++ b/internal/cloudcp/portal/frontend/src/account_view.ts@@ -33,13 +33,13 @@ function roleLabel(role: string): string {function roleCapabilityCopy(role: string): string {switch (normalizedTeamRole(role)) {case 'owner':- return 'Full account control, including billing, team access, and hosted workspace control.';+ return 'Full account control, including billing, team access, and workspace control.';case 'admin':- return 'Can manage hosted workspaces and billing for this account.';+ return 'Can manage workspaces and billing for this account.';case 'tech':- return 'Can manage hosted workspaces without billing ownership.';+ return 'Can manage workspaces without billing ownership.';case 'read_only':- return 'Can review hosted state without making control-plane changes.';+ return 'Can review workspace status without making control-plane changes.';case 'member':return 'Has access through the account roster.';default:@@ -88,10 +88,10 @@ function workspaceGuidance(workspace: PortalWorkspaceSummary): string {return 'This workspace looks ready for normal use. Use the fleet table to open it, or suspend it here if you are intentionally taking it out of service.';}if (workspace.state === 'active' && workspace.health_status === 'checking') {- return 'This workspace is active but still waiting on a completed health check. Review it before you treat the hosted posture as settled.';+ return 'This workspace is active but still waiting on a completed health check. Review it before you treat the account status as settled.';}if (workspace.health_status === 'unhealthy') {- return 'This workspace needs review before it is treated as trustworthy. Use the management action only when you intend to suspend or remove it from the hosted fleet.';+ return 'This workspace needs review before it is treated as trustworthy. Use the management action only when you intend to suspend or remove it from the workspace list.';}if (workspace.state === 'suspended') {return 'This workspace is already suspended. The remaining lifecycle action here is deletion, so treat it as a deliberate irreversible step.';@@ -369,7 +369,7 @@ export function renderTeamSection(accountID: string, entry: PortalAccountUIEntry}if (!entry.teamQuery.data.length) {if (rosterPanel) rosterPanel.classList.add('state-only');- setContainerMessage(roster, 'No one added yet', 'Invite someone new when this hosted account needs shared access.', false);+ setContainerMessage(roster, 'No one added yet', 'Invite someone new when this account needs shared access.', false);return;}diff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.tsindex a588075248..ef4eef48cf 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts@@ -157,7 +157,7 @@ describe('shell view', function() {expect(html).toContain('Workspace summary');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('Workspace path');expect(html).toContain('Commercial path');expect(html).toContain('Open workspaces');expect(html).toContain('Review team access');@@ -192,7 +192,7 @@ describe('shell view', function() {expect(html).toContain('data-action="clear-workspace-selection"');expect(html).toContain('Team management');expect(html).toContain('Least privilege');- expect(html).toContain('Hosted access');+ expect(html).toContain('Workspace access');expect(html).toContain('Invite someone new');expect(html).toContain('Access model');expect(html).toContain('Access review');@@ -245,7 +245,7 @@ describe('shell view', function() {expect(html).toContain('Summary');expect(html).toContain('None');expect(html).toContain('Use these account tools for self-hosted licenses, billing, refunds, and privacy actions.');- expect(html).toContain('Pick one commercial request and keep it separate from hosted workspaces and team changes.');+ expect(html).toContain('Pick one commercial request and keep it separate from workspace and team changes.');expect(html).toContain('Account services');expect(html).not.toContain('Self-hosted commercial services');});@@ -317,8 +317,8 @@ describe('shell view', function() {expect(html).toContain('No active blockers');expect(html).toContain('Active workspaces are healthy while suspended workspaces stay parked until you resume them.');expect(html).toContain('Next step');- expect(html).toContain('Active hosted workspaces look stable. Resume a suspended workspace only when you are ready to bring it back into regular use.');- expect(html).toContain('Active hosted workspaces are healthy. Suspended workspaces stay parked until you resume them.');+ expect(html).toContain('Active workspaces look stable. Resume a suspended workspace only when you are ready to bring it back into regular use.');+ expect(html).toContain('Active 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 1bdca66fdd..a9c3673e36 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts@@ -200,13 +200,13 @@ function renderAttentionPanel(workspaces: PortalWorkspaceSummary[]): string {'<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 status.'+ ? 'Active workspaces are healthy. Suspended workspaces stay parked until you resume them.'+ : 'Every active workspace currently reports a healthy status.') + '</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 use.'- : 'All active hosted workspaces are clear for routine use.'+ ? 'Active workspaces are clear for routine use.'+ : 'All active workspaces are clear for routine use.') + '</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 day-to-day use.') + '</span></div>'@@ -351,11 +351,11 @@ function renderShellNavigation(accounts: PortalAccountSummary[], supportEmail: s'<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 class="portal-shell-nav-support">' + (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('workspaces', activeSection, '02', hosted ? 'Workspaces' : 'Workspace access', hosted ? 'Workspace access and lifecycle actions' : 'No 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') +@@ -450,10 +450,10 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {: 'Next step';var nextStepCopy = unhealthyCount > 0? 'One or more workspaces need review before you treat this account as healthy.'- : checkingCount > 0- ? 'The fleet is mostly healthy, but there are still workspaces waiting on a completed health check.'+ : 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.'+ ? 'Active 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? (@@ -473,7 +473,7 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {): ('<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>1. Open a workspace for the next operational task</strong><span>Move into Workspaces when you are ready to do workspace 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>'@@ -485,7 +485,7 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {'</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.';+ : 'Manage 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">' +@@ -493,12 +493,12 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {'<span>' + escapeHTML(accountScopeCopy) + '</span>' +'</div>' +'<div class="account-overview-brief-point">' +- '<strong>Hosted path</strong>' ++ '<strong>Workspace 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>' ++ '<span>Keep licenses, refunds, privacy, and self-hosted billing in Account services instead of mixing them into workspace work.</span>' +'</div>' +'</div>';@@ -512,7 +512,7 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {renderSectionContextChips([String(totalCount) + ' total',String(readyCount) + ' ready',- suspendedCount > 0 ? String(suspendedCount) + ' suspended' : 'Active fleet',+ suspendedCount > 0 ? String(suspendedCount) + ' suspended' : 'All active',]) +renderOverviewMetricStrip(totalCount, readyCount, checkingCount, unhealthyCount, suspendedCount) +'</div>' +@@ -759,10 +759,10 @@ function renderAccountTeamSection(account: PortalAccountSummary): string {'<p>Use the roster as a controlled access list, not a dumping ground for vague shared access.</p>' +'</div>' +'<div class="team-review-grid">' +- '<div class="team-review-card">' +- '<strong>Owners stay rare</strong>' +- '<span>Reserve Owner for billing, team, and full hosted control. Default to Admin, Tech, or Read-only first.</span>' +- '</div>' ++ '<div class="team-review-card">' ++ '<strong>Owners stay rare</strong>' ++ '<span>Reserve Owner for billing, team, and full account control. Default to Admin, Tech, or Read-only first.</span>' ++ '</div>' +'<div class="team-review-card">' +'<strong>Keep access narrow</strong>' +'<span>Use Tech for workspace control and Read-only for verification instead of handing out broader access.</span>' +@@ -786,11 +786,11 @@ function renderAccountTeamSection(account: PortalAccountSummary): string {'<div>' +'<div class="account-panel-kicker">Team management</div>' +'<h3>Account access</h3>' +- '<p>Owners govern billing and access. Admins and techs keep hosted work moving day to day.</p>' ++ '<p>Owners govern billing and access. Admins and techs keep workspace operations moving day to day.</p>' +renderSectionContextChips([account.can_manage ? 'Managed roster' : 'View only','Least privilege',- 'Hosted access',+ 'Workspace access',]) +'</div>' +'<button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="workspaces">Close team view</button>' +@@ -1010,7 +1010,7 @@ export function renderAuthenticatedPortalHTML(context: ShellViewContext): string'<div class="service-shell-sidebar-head">' +'<div class="account-panel-kicker">Service navigator</div>' +'<h3>Self-hosted tools</h3>' +- '<p>Pick one commercial request and keep it separate from hosted workspaces and team changes.</p>' ++ '<p>Pick one commercial request and keep it separate from workspace and team changes.</p>' +'</div>' +'<div class="service-action-list">' +renderServiceActionRow('open-manage-service', 'Billing', 'Manage subscriptions', 'Billing', 'Open Stripe for self-hosted plan, invoice, and payment changes.', 'manage-service-panel', 'manage-inline-email', ['Plan changes', 'Invoices']) +@@ -1119,7 +1119,7 @@ export function renderSignedOutPortalHTML(context: ShellViewContext): string {'<section class="intro-card">' +'<div class="account-panel-kicker">Pulse Account</div>' +'<h1>Sign in to Pulse Account</h1>' +- '<p>Use one commercial email address to get into hosted workspaces, MSP access, billing, license recovery, refunds, and privacy actions.</p>' ++ '<p>Use one commercial email address to get into workspaces, MSP access, billing, license recovery, refunds, and privacy actions.</p>' +'</section>' +'<section class="service-section service-section-auth">' +'<div class="service-panel visible auth-panel">' +