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): tighten commercial service desk
rcourtman448a3867bfeb
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.jsonindex 326a575b2f..4c136c0841 100644--- a/internal/cloudcp/portal/dist/build_manifest.json+++ b/internal/cloudcp/portal/dist/build_manifest.json@@ -1,5 +1,5 @@{- "source_hash": "f374aa4ed68985b2d2042a4f69351a2fcb2c764b487e156d3268d35f54001394",+ "source_hash": "b9049839b03a01ccb2dda0792ffa994b72eadda3cd4c830baab8b38bb3345eeb","build_inputs": ["package.json","tsconfig.json",diff --git a/internal/cloudcp/portal/dist/portal_app.css b/internal/cloudcp/portal/dist/portal_app.cssindex ce1cbc225a..9931ded8bc 100644--- a/internal/cloudcp/portal/dist/portal_app.css+++ b/internal/cloudcp/portal/dist/portal_app.css@@ -1601,12 +1601,12 @@ header .logout-btn:hover,.service-shell {display: grid;grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);- gap: 12px;+ gap: 14px;align-items: start;- padding: 12px;+ padding: 14px;border: 1px solid var(--line);border-radius: var(--radius-lg);- background: #f7fafc;+ background: #fff;}.service-shell-main,.service-shell-sidebar {@@ -1616,10 +1616,10 @@ header .logout-btn:hover,}.service-shell-sidebar-head,.service-inline-support {- padding: 10px 12px;+ padding: 12px 14px;border: 1px solid var(--line);border-radius: 10px;- background: #fff;+ background: var(--panel-muted);}.service-shell-sidebar-head h3 {margin: 6px 0 0;@@ -1637,7 +1637,7 @@ header .logout-btn:hover,.service-detail-shell {border: 1px solid var(--line);border-radius: var(--radius-md);- background: #fff;+ background: #fbfcfd;box-shadow: none;overflow: hidden;}@@ -1675,7 +1675,7 @@ header .logout-btn:hover,padding: 12px;border: 1px solid var(--line);border-radius: 12px;- background: var(--panel-muted);+ background: #fff;}.service-empty-column-title {font-size: 12px;@@ -1689,11 +1689,14 @@ header .logout-btn:hover,grid-template-columns: minmax(0, 1fr) auto;align-items: center;gap: 12px;- padding: 9px 12px;+ padding: 11px 12px;border: none;border-top: 1px solid var(--line);background: #fff;- transition: border-color 140ms ease, background 140ms ease;+ transition:+ border-color 140ms ease,+ background 140ms ease,+ box-shadow 140ms ease;}.service-action-row:first-child {border-top: none;@@ -1702,6 +1705,7 @@ header .logout-btn:hover,.service-action-row.active {border-color: rgba(15, 109, 115, 0.28);background: #f8fbfd;+ box-shadow: inset 3px 0 0 rgba(15, 109, 115, 0.62);}.service-action-main {display: flex;@@ -1737,13 +1741,14 @@ header .logout-btn:hover,font-size: 11px;line-height: 1.35;color: var(--ink-muted);+ margin-top: 2px;}.service-action-cta {display: flex;align-items: center;}.service-action-button {- min-width: 86px;+ min-width: 98px;}.service-panel {padding: 16px;diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.jsindex b15c077f53..5f7d9f04fe 100644--- a/internal/cloudcp/portal/dist/portal_app.js+++ b/internal/cloudcp/portal/dist/portal_app.js@@ -1902,11 +1902,11 @@var hosted = hasHostedAccounts(accounts);var activeSection = context.activeSection || "overview";var serviceHeading = hosted ? "Self-hosted licenses and billing" : "Account services";- var serviceNote = hosted ? "Hosted operations stay in Workspaces and Team. Use this area only for self-hosted commercial tasks." : "Use these account tools for self-hosted licenses, billing, refunds, and privacy actions.";+ var serviceNote = hosted ? "Hosted operations stay in Workspaces and Team. Use this area only for self-hosted commercial requests." : "Use these account tools for self-hosted licenses, billing, refunds, and privacy actions.";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 ? 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></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 service desk</h3><p>Pick one billing, license, refund, or privacy task and keep it contained here.</p></div><div class="service-action-list">' + renderServiceActionRow("open-manage-service", "Billing", "Manage subscriptions", "Billing desk", "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", "License desk", "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", "Refund desk", "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 desk", "Request export or deletion for commercial account data.", "data-service-panel", "data-export-email", ["Export", "Deletion"]) + '</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">Active service desk</div><h3>Open one commercial flow at a time</h3><p>Open one task from the navigator and keep the active request in this desk until it is finished.</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 desks</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 a billing, license, refund, or privacy task does not behave as expected, escalate from this desk.</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>";+ 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></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>Commercial desks</h3><p>Choose one billing, license, refund, or privacy request and keep it contained here.</p></div><div class="service-action-list">' + renderServiceActionRow("open-manage-service", "Billing", "Manage subscriptions", "Billing desk", "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", "License desk", "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", "Refund desk", "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 desk", "Request export or deletion for commercial account data.", "data-service-panel", "data-export-email", ["Export", "Deletion"]) + '</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">Active service desk</div><h3>Choose a commercial desk</h3><p>Open one commercial request from the navigator and keep it in this desk until it is finished.</p><div class="service-empty-command-grid"><div class="service-empty-command-card"><div class="service-empty-column-title">Request rules</div><div class="service-empty-points service-empty-points-stack"><div class="service-empty-point"><strong>Verify first</strong><span>Each desk confirms the commercial email before opening sensitive actions.</span></div><div class="service-empty-point"><strong>Stay focused</strong><span>Keep one commercial request in flight instead of bouncing between desks.</span></div></div></div><div class="service-empty-command-card service-empty-command-card-wide"><div class="service-empty-column-title">Desk coverage</div><div class="service-empty-flow-list"><div class="service-empty-flow"><strong>Billing desk</strong><span>Stripe customer portal access for invoices, payment methods, and plan changes.</span></div><div class="service-empty-flow"><strong>License desk</strong><span>Recover the latest active self-hosted license and the matching invoice link.</span></div><div class="service-empty-flow"><strong>Refund desk</strong><span>Check eligibility before revoking active commercial access.</span></div><div class="service-empty-flow"><strong>Privacy desk</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">Escalation</div><div class="service-empty-checklist"><div class="service-empty-check"><strong>Escalate quickly</strong><span>If billing, license, refund, or privacy work does not behave as expected, escalate from this desk.</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></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 f7a77eb68b..c0253c8a53 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts@@ -192,9 +192,9 @@ describe('shell view', function() {expect(html).toContain('service-action-row');expect(html).toContain('service-action-button');expect(html).toContain('id="service-panel-empty"');- expect(html).toContain('Open one commercial flow at a time');+ expect(html).toContain('Choose a commercial desk');expect(html).toContain('Active service desk');- expect(html).toContain('Available desks');+ expect(html).toContain('Desk coverage');expect(html).toContain('Escalate quickly');expect(html).toContain('id="open-retrieve-service"');expect(html).toContain('id="data-service-panel"');@@ -216,7 +216,7 @@ describe('shell view', function() {expect(html).toContain('Pulse Account');expect(html).toContain('Account console');expect(html).toContain('Use these account tools for self-hosted licenses, billing, refunds, and privacy actions.');- expect(html).toContain('Pick one billing, license, refund, or privacy task and keep it contained here.');+ expect(html).toContain('Choose one billing, license, refund, or privacy request and keep it contained 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 902df53371..ed7f102660 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts@@ -815,7 +815,7 @@ export function renderAuthenticatedPortalHTML(context: ShellViewContext): stringvar activeSection = context.activeSection || 'overview';var serviceHeading = hosted ? 'Self-hosted licenses and billing' : 'Account services';var serviceNote = hosted- ? 'Hosted operations stay in Workspaces and Team. Use this area only for self-hosted commercial tasks.'+ ? 'Hosted operations stay in Workspaces and Team. Use this area only for self-hosted commercial requests.': 'Use these account tools for self-hosted licenses, billing, refunds, and privacy actions.';var hostedContent = accounts.map(function(account) {return (@@ -850,8 +850,8 @@ export function renderAuthenticatedPortalHTML(context: ShellViewContext): string'<aside class="service-shell-sidebar">' +'<div class="service-shell-sidebar-head">' +'<div class="account-panel-kicker">Service navigator</div>' +- '<h3>Self-hosted service desk</h3>' +- '<p>Pick one billing, license, refund, or privacy task and keep it contained here.</p>' ++ '<h3>Commercial desks</h3>' ++ '<p>Choose one billing, license, refund, or privacy request and keep it contained here.</p>' +'</div>' +'<div class="service-action-list">' +renderServiceActionRow('open-manage-service', 'Billing', 'Manage subscriptions', 'Billing desk', 'Open Stripe for self-hosted plan, invoice, and payment changes.', 'manage-service-panel', 'manage-inline-email', ['Plan changes', 'Invoices']) +@@ -864,31 +864,31 @@ export function renderAuthenticatedPortalHTML(context: ShellViewContext): string'<div class="service-detail-shell">' +'<div class="service-panel service-panel-empty visible" id="service-panel-empty">' +'<div class="account-panel-kicker">Active service desk</div>' +- '<h3>Open one commercial flow at a time</h3>' +- '<p>Open one task from the navigator and keep the active request in this desk until it is finished.</p>' ++ '<h3>Choose a commercial desk</h3>' ++ '<p>Open one commercial request from the navigator and keep it in this desk until it is finished.</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-column-title">Request rules</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 class="service-empty-point"><strong>Verify first</strong><span>Each desk confirms the commercial email before opening sensitive actions.</span></div>' ++ '<div class="service-empty-point"><strong>Stay focused</strong><span>Keep one commercial request in flight instead of bouncing between desks.</span></div>' +'</div>' +'</div>' +'<div class="service-empty-command-card service-empty-command-card-wide">' +- '<div class="service-empty-column-title">Available desks</div>' ++ '<div class="service-empty-column-title">Desk coverage</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 class="service-empty-flow"><strong>Billing desk</strong><span>Stripe customer portal access for invoices, payment methods, and plan changes.</span></div>' ++ '<div class="service-empty-flow"><strong>License desk</strong><span>Recover the latest active self-hosted license and the matching invoice link.</span></div>' ++ '<div class="service-empty-flow"><strong>Refund desk</strong><span>Check eligibility before revoking active commercial access.</span></div>' ++ '<div class="service-empty-flow"><strong>Privacy desk</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-column-title">Escalation</div>' +'<div class="service-empty-checklist">' +- '<div class="service-empty-check"><strong>Escalate quickly</strong><span>If a billing, license, refund, or privacy task does not behave as expected, escalate from this desk.</span></div>' ++ '<div class="service-empty-check"><strong>Escalate quickly</strong><span>If billing, license, refund, or privacy work does not behave as expected, escalate from this desk.</span></div>' +'</div>' +- '<div class="service-empty-support">Need help with billing, refund, privacy, or license actions? <a class="portal-support-link" href="mailto:' ++ '<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 || '') +diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.cssindex 16420bf9e9..b264fad4e9 100644--- a/internal/cloudcp/portal/frontend/src/styles.css+++ b/internal/cloudcp/portal/frontend/src/styles.css@@ -1824,12 +1824,12 @@ header .logout-btn:hover,.service-shell {display: grid;grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);- gap: 12px;+ gap: 14px;align-items: start;- padding: 12px;+ padding: 14px;border: 1px solid var(--line);border-radius: var(--radius-lg);- background: #f7fafc;+ background: #fff;}.service-shell-main,@@ -1841,10 +1841,10 @@ header .logout-btn:hover,.service-shell-sidebar-head,.service-inline-support {- padding: 10px 12px;+ padding: 12px 14px;border: 1px solid var(--line);border-radius: 10px;- background: #fff;+ background: var(--panel-muted);}.service-shell-sidebar-head h3 {@@ -1865,7 +1865,7 @@ header .logout-btn:hover,.service-detail-shell {border: 1px solid var(--line);border-radius: var(--radius-md);- background: #fff;+ background: #fbfcfd;box-shadow: none;overflow: hidden;}@@ -1909,7 +1909,7 @@ header .logout-btn:hover,padding: 12px;border: 1px solid var(--line);border-radius: 12px;- background: var(--panel-muted);+ background: #fff;}.service-empty-column-title {@@ -1925,11 +1925,11 @@ header .logout-btn:hover,grid-template-columns: minmax(0, 1fr) auto;align-items: center;gap: 12px;- padding: 9px 12px;+ padding: 11px 12px;border: none;border-top: 1px solid var(--line);background: #fff;- transition: border-color 140ms ease, background 140ms ease;+ transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;}.service-action-row:first-child {@@ -1940,6 +1940,7 @@ header .logout-btn:hover,.service-action-row.active {border-color: rgba(15, 109, 115, 0.28);background: #f8fbfd;+ box-shadow: inset 3px 0 0 rgba(15, 109, 115, 0.62);}.service-action-main {@@ -1981,6 +1982,7 @@ header .logout-btn:hover,font-size: 11px;line-height: 1.35;color: var(--ink-muted);+ margin-top: 2px;}.service-action-cta {@@ -1989,7 +1991,7 @@ header .logout-btn:hover,}.service-action-button {- min-width: 86px;+ min-width: 98px;}.service-panel {