Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
style(portal): add operator runbooks to overview and services
rcourtman06dc6adc3a2d
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.jsonindex f516e00b9c..a3864c0737 100644--- a/internal/cloudcp/portal/dist/build_manifest.json+++ b/internal/cloudcp/portal/dist/build_manifest.json@@ -1,5 +1,5 @@{- "source_hash": "69bb383eb566fc7cd58d13fdd5aad0d3d5b2b43107d66fbebc9d700607af2d26",+ "source_hash": "0401fbaf26ce16d3985c1cca3d6116f9fc2f3cb72e756d1bb8bca91d0d8633e2","build_inputs": ["package.json","tsconfig.json",diff --git a/internal/cloudcp/portal/dist/portal_app.css b/internal/cloudcp/portal/dist/portal_app.cssindex 29cf3ac020..7ce8fca438 100644--- a/internal/cloudcp/portal/dist/portal_app.css+++ b/internal/cloudcp/portal/dist/portal_app.css@@ -720,6 +720,31 @@ header .logout-btn:hover,.overview-side-card-primary {background: var(--panel-strong);}+.overview-next-checklist {+ display: flex;+ flex-direction: column;+ gap: 10px;+ margin-top: 16px;+}+.overview-next-check {+ display: flex;+ flex-direction: column;+ gap: 4px;+ padding: 10px 12px;+ border: 1px solid var(--line);+ border-radius: 10px;+ background: rgba(255, 255, 255, 0.86);+}+.overview-next-check strong {+ font-size: 13px;+ line-height: 1.3;+ color: var(--ink);+}+.overview-next-check span {+ font-size: 12px;+ line-height: 1.55;+ color: var(--ink-soft);+}.overview-next-actions {display: flex;gap: 10px;@@ -1405,7 +1430,7 @@ header .logout-btn:hover,.service-shell-sidebar {display: flex;flex-direction: column;- gap: 12px;+ gap: 10px;}.service-shell-sidebar-head,.service-inline-support {@@ -1456,16 +1481,20 @@ header .logout-btn:hover,line-height: 1.6;color: var(--ink-soft);}-.service-empty-columns {+.service-empty-command-grid {display: grid;- grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);+ grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);gap: 14px;margin-top: 18px;}-.service-empty-column {+.service-empty-command-card {display: flex;flex-direction: column;gap: 12px;+ padding: 14px;+ border: 1px solid var(--line);+ border-radius: 12px;+ background: var(--panel-muted);}.service-empty-column-title {font-size: 12px;@@ -1582,10 +1611,18 @@ header .logout-btn:hover,grid-template-columns: repeat(2, minmax(0, 1fr));gap: 10px;}+.service-empty-points-stack {+ grid-template-columns: 1fr;+}+.service-empty-command-card-wide {+ grid-column: 2;+ background: #fff;+}+.service-empty-command-card-support {+ grid-column: 1 / -1;+}.service-empty-support {- margin-top: 16px;- padding-top: 14px;- border-top: 1px solid var(--line);+ margin-top: 2px;font-size: 13px;line-height: 1.55;color: var(--ink-soft);@@ -1633,6 +1670,31 @@ header .logout-btn:hover,line-height: 1.5;color: var(--ink-soft);}+.service-empty-flow-list {+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ gap: 10px;+}+.service-empty-flow {+ display: flex;+ flex-direction: column;+ gap: 6px;+ padding: 12px;+ border: 1px solid var(--line);+ border-radius: 12px;+ background: var(--panel-muted);+}+.service-empty-flow strong {+ font-size: 12px;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--ink-muted);+}+.service-empty-flow span {+ font-size: 12px;+ line-height: 1.45;+ color: var(--ink-soft);+}.service-section-auth {max-width: 760px;}diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.jsindex 692c877cae..d2e4ae10dd 100644--- a/internal/cloudcp/portal/dist/portal_app.js+++ b/internal/cloudcp/portal/dist/portal_app.js@@ -1818,6 +1818,7 @@var addWorkspaceForm = "";var nextStepTitle = unhealthyCount > 0 ? "Start in Workspaces" : checkingCount > 0 ? "Review pending checks" : "Fleet is clear";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." : "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 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>";if (account.can_manage) {if (account.kind === "msp") {@@ -1826,7 +1827,7 @@}return '<section class="account-content-panel account-content-panel-overview"><div class="account-command-deck"><div class="account-overview-card"><div class="account-overview-lead"><div class="account-panel-kicker">Hosted 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">Active workspaces</span><span class="account-stat-value">' + String(activeCount) + '</span></div><div class="account-stat-card account-stat-card-inline"><span class="account-stat-label">Healthy</span><span class="account-stat-value account-stat-healthy">' + String(healthyCount) + '</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></div>" + addWorkspaceForm + '<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>" + nextStepActions + "</div>" + renderAttentionPanel(workspaces) + "</div></div></section>";+ ) + '</div></div><div class="account-metric-strip"><div class="account-stat-card account-stat-card-inline"><span class="account-stat-label">Active workspaces</span><span class="account-stat-value">' + String(activeCount) + '</span></div><div class="account-stat-card account-stat-card-inline"><span class="account-stat-label">Healthy</span><span class="account-stat-value account-stat-healthy">' + String(healthyCount) + '</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></div>" + addWorkspaceForm + '<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>";}function renderAccountWorkspaceSection(account, accountAPIBasePath) {var workspaces = Array.isArray(account.workspaces) ? account.workspaces : [];@@ -1872,7 +1873,7 @@var hostedContent = accounts.map(function(account) {return '<section class="account-surface"><div class="account-surface-body">' + renderAccountOverviewSection(account) + renderAccountWorkspaceSection(account, context.accountAPIBasePath) + renderAccountTeamSection(account) + "</div></section>";}).join("");- 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 ? renderPrimaryAccountBar(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></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">Commercial actions</div><h3>Billing, licenses, refunds, and privacy</h3><p>Use these tools for self-hosted commercial actions. Hosted workspace operations stay in Workspaces and Team.</p></div><div class="service-action-list">' + renderServiceActionRow("open-manage-service", "Billing", "Manage subscriptions", "Open Stripe billing access for existing self-hosted subscriptions without leaving the Pulse Account shell.", "manage-service-panel", "manage-inline-email", ["Invoices and plan changes", "Subscription self-service"]) + renderServiceActionRow("open-retrieve-service", "Licenses", "Retrieve licenses", "Recover the latest active self-hosted license and invoice link for a commercial email address.", "retrieve-service-panel", "retrieve-inline-email", ["Latest active license", "Invoice lookup"]) + renderServiceActionRow("open-refund-service", "Refunds", "Refund requests", "Request an immediate self-serve refund for eligible self-hosted purchases with explicit revocation confirmation.", "refund-service-panel", "refund-inline-email", ["Eligibility check", "Explicit revocation"]) + renderServiceActionRow("open-data-service", "Privacy", "Data and privacy", "Request commercial data export or deletion without leaving the account shell.", "data-service-panel", "data-export-email", ["Export or deletion", "Support escalation path"]) + '</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">Select a service</div><h3>Choose the next commercial action</h3><p>Open a billing, license, refund, or privacy flow from the service navigator. The active request stays here so the account-services area behaves like one operating desk instead of a list of disconnected tools.</p><div class="service-empty-columns"><div class="service-empty-column"><div class="service-empty-column-title">Start here</div><div class="service-empty-points"><div class="service-empty-point"><strong>Billing</strong><span>Open Stripe customer portal access after verification.</span></div><div class="service-empty-point"><strong>Licenses</strong><span>Recover the latest active self-hosted license and invoice link.</span></div><div class="service-empty-point"><strong>Refunds</strong><span>Confirm eligibility before revoking active commercial access.</span></div><div class="service-empty-point"><strong>Privacy</strong><span>Request export or deletion without leaving Pulse Account.</span></div></div></div><div class="service-empty-column"><div class="service-empty-column-title">What to expect</div><div class="service-empty-checklist"><div class="service-empty-check"><strong>Verification first</strong><span>Each flow confirms the commercial email before opening sensitive account actions.</span></div><div class="service-empty-check"><strong>One task at a time</strong><span>The active commercial request stays in this panel until you finish or switch tools.</span></div><div class="service-empty-check"><strong>Support stays close</strong><span>If billing, licenses, refunds, or privacy behave unexpectedly, escalate from this surface.</span></div></div></div></div><div class="service-empty-support">Need help with billing, refund, privacy, or license actions? <a class="portal-support-link" href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + '</a></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 class="service-inline-support"><div class="account-panel-kicker">Support</div><p>Use support if a billing, refund, privacy, or license flow does not behave as expected for this account.</p><a class="portal-support-link" href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + '</a></div></div></div></section><section class="portal-content-panel portal-content-panel-support">' + renderSupportSection(context) + "</section></div></div></div>";+ 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 ? renderPrimaryAccountBar(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></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">Commercial actions</div><h3>Billing, licenses, refunds, and privacy</h3><p>Keep self-hosted commercial work here. Hosted workspace operations stay in Workspaces and Team.</p></div><div class="service-action-list">' + renderServiceActionRow("open-manage-service", "Billing", "Manage subscriptions", "Open Stripe billing access for existing self-hosted subscriptions without leaving the Pulse Account shell.", "manage-service-panel", "manage-inline-email", ["Invoices and plan changes", "Subscription self-service"]) + renderServiceActionRow("open-retrieve-service", "Licenses", "Retrieve licenses", "Recover the latest active self-hosted license and invoice link for a commercial email address.", "retrieve-service-panel", "retrieve-inline-email", ["Latest active license", "Invoice lookup"]) + renderServiceActionRow("open-refund-service", "Refunds", "Refund requests", "Request an immediate self-serve refund for eligible self-hosted purchases with explicit revocation confirmation.", "refund-service-panel", "refund-inline-email", ["Eligibility check", "Explicit revocation"]) + renderServiceActionRow("open-data-service", "Privacy", "Data and privacy", "Request commercial data export or deletion without leaving the account shell.", "data-service-panel", "data-export-email", ["Export or deletion", "Support escalation path"]) + '</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">Task desk</div><h3>Choose the next commercial action</h3><p>Open a billing, license, refund, or privacy flow from the service navigator. The active request stays here so this area behaves like one commercial operating desk.</p><div class="service-empty-command-grid"><div class="service-empty-command-card"><div class="service-empty-column-title">Start here</div><div class="service-empty-points service-empty-points-stack"><div class="service-empty-point"><strong>Verify first</strong><span>Each flow confirms the commercial email before opening sensitive actions.</span></div><div class="service-empty-point"><strong>One task at a time</strong><span>Keep the active request in this desk until you finish or switch tools.</span></div></div></div><div class="service-empty-command-card service-empty-command-card-wide"><div class="service-empty-column-title">Available flows</div><div class="service-empty-flow-list"><div class="service-empty-flow"><strong>Billing</strong><span>Stripe customer portal access after verification.</span></div><div class="service-empty-flow"><strong>Licenses</strong><span>Recover the latest active self-hosted license and invoice link.</span></div><div class="service-empty-flow"><strong>Refunds</strong><span>Confirm 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-command-card service-empty-command-card-support"><div class="service-empty-column-title">Support</div><div class="service-empty-checklist"><div class="service-empty-check"><strong>Escalate quickly</strong><span>If billing, licenses, refunds, or privacy behave unexpectedly, escalate from this surface.</span></div></div><div class="service-empty-support">Need help with billing, refund, privacy, or license actions? <a class="portal-support-link" href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + '</a></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 = "";diff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.tsindex 03816d0fb4..25896acb2a 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts@@ -179,7 +179,9 @@ describe('shell view', function() {expect(html).toContain('service-action-button');expect(html).toContain('id="service-panel-empty"');expect(html).toContain('Choose the next commercial action');- expect(html).toContain('What to expect');+ expect(html).toContain('Task desk');+ expect(html).toContain('Available flows');+ expect(html).toContain('Escalate quickly');expect(html).toContain('id="open-retrieve-service"');expect(html).toContain('id="data-service-panel"');});@@ -195,7 +197,8 @@ describe('shell view', function() {expect(html).toContain('Pulse Account');expect(html).toContain('Account console');- expect(html).toContain('Use these tools for self-hosted commercial actions.');+ expect(html).toContain('Use these account tools for self-hosted licenses, billing, refunds, and privacy actions.');+ expect(html).toContain('Keep self-hosted commercial work here.');expect(html).toContain('Account services');expect(html).not.toContain('Self-hosted licenses and billing');});diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.tsindex 7e15172fed..2897cc2e90 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts@@ -358,6 +358,29 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {: checkingCount > 0? 'The fleet is mostly healthy, but there are still workspaces waiting on a completed health check.': '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 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>' +@@ -429,6 +452,7 @@ function renderAccountOverviewSection(account: PortalAccountSummary): string {'<div class="account-panel-kicker">Next move</div>' +'<h4>' + escapeHTML(nextStepTitle) + '</h4>' +'<p>' + escapeHTML(nextStepCopy) + '</p>' ++ nextStepChecklist +nextStepActions +'</div>' +renderAttentionPanel(workspaces) +@@ -765,7 +789,7 @@ export function renderAuthenticatedPortalHTML(context: ShellViewContext): string'<div class="service-shell-sidebar-head">' +'<div class="account-panel-kicker">Commercial actions</div>' +'<h3>Billing, licenses, refunds, and privacy</h3>' +- '<p>Use these tools for self-hosted commercial actions. Hosted workspace operations stay in Workspaces and Team.</p>' ++ '<p>Keep self-hosted commercial work here. Hosted workspace operations stay in Workspaces and Team.</p>' +'</div>' +'<div class="service-action-list">' +renderServiceActionRow('open-manage-service', 'Billing', 'Manage subscriptions', 'Open Stripe billing access for existing self-hosted subscriptions without leaving the Pulse Account shell.', 'manage-service-panel', 'manage-inline-email', ['Invoices and plan changes', 'Subscription self-service']) +@@ -777,33 +801,38 @@ export function renderAuthenticatedPortalHTML(context: ShellViewContext): string'<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">Select a service</div>' ++ '<div class="account-panel-kicker">Task desk</div>' +'<h3>Choose the next commercial action</h3>' +- '<p>Open a billing, license, refund, or privacy flow from the service navigator. The active request stays here so the account-services area behaves like one operating desk instead of a list of disconnected tools.</p>' +- '<div class="service-empty-columns">' +- '<div class="service-empty-column">' ++ '<p>Open a billing, license, refund, or privacy flow from the service navigator. The active request stays here so this area behaves like one commercial operating desk.</p>' ++ '<div class="service-empty-command-grid">' ++ '<div class="service-empty-command-card">' +'<div class="service-empty-column-title">Start here</div>' +- '<div class="service-empty-points">' +- '<div class="service-empty-point"><strong>Billing</strong><span>Open Stripe customer portal access after verification.</span></div>' +- '<div class="service-empty-point"><strong>Licenses</strong><span>Recover the latest active self-hosted license and invoice link.</span></div>' +- '<div class="service-empty-point"><strong>Refunds</strong><span>Confirm eligibility before revoking active commercial access.</span></div>' +- '<div class="service-empty-point"><strong>Privacy</strong><span>Request export or deletion without leaving Pulse Account.</span></div>' ++ '<div class="service-empty-points service-empty-points-stack">' ++ '<div class="service-empty-point"><strong>Verify first</strong><span>Each flow confirms the commercial email before opening sensitive actions.</span></div>' ++ '<div class="service-empty-point"><strong>One task at a time</strong><span>Keep the active request in this desk until you finish or switch tools.</span></div>' ++ '</div>' ++ '</div>' ++ '<div class="service-empty-command-card service-empty-command-card-wide">' ++ '<div class="service-empty-column-title">Available flows</div>' ++ '<div class="service-empty-flow-list">' ++ '<div class="service-empty-flow"><strong>Billing</strong><span>Stripe customer portal access after verification.</span></div>' ++ '<div class="service-empty-flow"><strong>Licenses</strong><span>Recover the latest active self-hosted license and invoice link.</span></div>' ++ '<div class="service-empty-flow"><strong>Refunds</strong><span>Confirm 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-column">' +- '<div class="service-empty-column-title">What to expect</div>' ++ '<div class="service-empty-command-card service-empty-command-card-support">' ++ '<div class="service-empty-column-title">Support</div>' +'<div class="service-empty-checklist">' +- '<div class="service-empty-check"><strong>Verification first</strong><span>Each flow confirms the commercial email before opening sensitive account actions.</span></div>' +- '<div class="service-empty-check"><strong>One task at a time</strong><span>The active commercial request stays in this panel until you finish or switch tools.</span></div>' +- '<div class="service-empty-check"><strong>Support stays close</strong><span>If billing, licenses, refunds, or privacy behave unexpectedly, escalate from this surface.</span></div>' ++ '<div class="service-empty-check"><strong>Escalate quickly</strong><span>If billing, licenses, refunds, or privacy behave unexpectedly, escalate from this surface.</span></div>' +'</div>' ++ '<div class="service-empty-support">Need help with billing, refund, privacy, or license actions? <a class="portal-support-link" href="mailto:' ++ escapeAttr(context.bootstrap.support_email || '') ++ '">' ++ escapeHTML(context.bootstrap.support_email || '') ++ '</a></div>' +'</div>' +'</div>' +- '<div class="service-empty-support">Need help with billing, refund, privacy, or license actions? <a class="portal-support-link" href="mailto:' +- escapeAttr(context.bootstrap.support_email || '') +- '">' +- escapeHTML(context.bootstrap.support_email || '') +- '</a></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>' +@@ -820,15 +849,6 @@ export function renderAuthenticatedPortalHTML(context: ShellViewContext): string'</a>.</div>' +'</div>' +'</div>' +- '<div class="service-inline-support">' +- '<div class="account-panel-kicker">Support</div>' +- '<p>Use support if a billing, refund, privacy, or license flow does not behave as expected for this account.</p>' +- '<a class="portal-support-link" href="mailto:' +- escapeAttr(context.bootstrap.support_email || '') +- '">' +- escapeHTML(context.bootstrap.support_email || '') +- '</a>' +- '</div>' +'</div>' +'</div>' +'</section>' +diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.cssindex 7a08d9c68a..e0649ddf1b 100644--- a/internal/cloudcp/portal/frontend/src/styles.css+++ b/internal/cloudcp/portal/frontend/src/styles.css@@ -795,6 +795,35 @@ header .logout-btn:hover,background: var(--panel-strong);}+.overview-next-checklist {+ display: flex;+ flex-direction: column;+ gap: 10px;+ margin-top: 16px;+}++.overview-next-check {+ display: flex;+ flex-direction: column;+ gap: 4px;+ padding: 10px 12px;+ border: 1px solid var(--line);+ border-radius: 10px;+ background: rgba(255, 255, 255, 0.86);+}++.overview-next-check strong {+ font-size: 13px;+ line-height: 1.3;+ color: var(--ink);+}++.overview-next-check span {+ font-size: 12px;+ line-height: 1.55;+ color: var(--ink-soft);+}+.overview-next-actions {display: flex;gap: 10px;@@ -1589,7 +1618,7 @@ header .logout-btn:hover,.service-shell-sidebar {display: flex;flex-direction: column;- gap: 12px;+ gap: 10px;}.service-shell-sidebar-head,@@ -1649,17 +1678,21 @@ header .logout-btn:hover,color: var(--ink-soft);}-.service-empty-columns {+.service-empty-command-grid {display: grid;- grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);+ grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);gap: 14px;margin-top: 18px;}-.service-empty-column {+.service-empty-command-card {display: flex;flex-direction: column;gap: 12px;+ padding: 14px;+ border: 1px solid var(--line);+ border-radius: 12px;+ background: var(--panel-muted);}.service-empty-column-title {@@ -1793,10 +1826,21 @@ header .logout-btn:hover,gap: 10px;}+.service-empty-points-stack {+ grid-template-columns: 1fr;+}++.service-empty-command-card-wide {+ grid-column: 2;+ background: #fff;+}++.service-empty-command-card-support {+ grid-column: 1 / -1;+}+.service-empty-support {- margin-top: 16px;- padding-top: 14px;- border-top: 1px solid var(--line);+ margin-top: 2px;font-size: 13px;line-height: 1.55;color: var(--ink-soft);@@ -1852,6 +1896,35 @@ header .logout-btn:hover,color: var(--ink-soft);}+.service-empty-flow-list {+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ gap: 10px;+}++.service-empty-flow {+ display: flex;+ flex-direction: column;+ gap: 6px;+ padding: 12px;+ border: 1px solid var(--line);+ border-radius: 12px;+ background: var(--panel-muted);+}++.service-empty-flow strong {+ font-size: 12px;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--ink-muted);+}++.service-empty-flow span {+ font-size: 12px;+ line-height: 1.45;+ color: var(--ink-soft);+}+.service-section-auth {max-width: 760px;}