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): compact account services desk
rcourtman49bb2b2102fa
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.jsonindex c81e6556eb..b090f72b39 100644--- a/internal/cloudcp/portal/dist/build_manifest.json+++ b/internal/cloudcp/portal/dist/build_manifest.json@@ -1,5 +1,5 @@{- "source_hash": "d2b9970bc8e3f9257e0b7787eccf2d4e1518bd40b59d7769e88bd3109c82ada5",+ "source_hash": "2324de98cb9a3d6571d6c87e10650a7e57a4793c7209a03e84b165b53b3e36f4","build_inputs": ["package.json","tsconfig.json",diff --git a/internal/cloudcp/portal/dist/portal_app.css b/internal/cloudcp/portal/dist/portal_app.cssindex bcd3e6537a..fb837d15ac 100644--- a/internal/cloudcp/portal/dist/portal_app.css+++ b/internal/cloudcp/portal/dist/portal_app.css@@ -1954,7 +1954,7 @@ header .logout-btn:hover,padding: 11px 12px;border: 1px solid var(--line);border-radius: 12px;- background: #fff;+ background: var(--panel-strong);}.service-shell-sidebar-head h3 {margin: 4px 0 0;@@ -2004,6 +2004,36 @@ header .logout-btn:hover,margin-top: 12px;align-items: start;}+.service-empty-intro {+ grid-column: 1 / -1;+ display: grid;+ grid-template-columns: repeat(3, minmax(0, 1fr));+ gap: 10px;+}+.service-empty-intro-item {+ display: flex;+ flex-direction: column;+ gap: 4px;+ padding: 10px 12px;+ border: 1px solid var(--line);+ border-radius: 12px;+ background:+ linear-gradient(+ 180deg,+ #fbfdfd 0%,+ #f5faf9 100%);+}+.service-empty-intro-item strong {+ font-size: 11px;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--accent-strong);+}+.service-empty-intro-item span {+ font-size: 11px;+ line-height: 1.45;+ color: var(--ink-soft);+}.service-empty-primary,.service-empty-side {display: flex;@@ -2064,6 +2094,21 @@ header .logout-btn:hover,justify-content: flex-start;gap: 6px;}+.service-action-tags-tight {+ flex-wrap: wrap;+}+.service-action-meta-chip {+ display: inline-flex;+ align-items: center;+ min-height: 20px;+ padding: 0 8px;+ border-radius: 999px;+ background: #eef4f8;+ color: var(--ink-muted);+ font-size: 10px;+ font-weight: 700;+ letter-spacing: 0.04em;+}.service-action-copy {display: flex;flex-direction: column;@@ -2082,13 +2127,6 @@ header .logout-btn:hover,color: var(--ink-soft);max-width: 520px;}-.service-action-meta {- font-size: 10px;- line-height: 1.35;- color: var(--ink-muted);- margin-top: 2px;- letter-spacing: 0.03em;-}.service-action-cta {display: flex;align-items: center;@@ -2378,6 +2416,7 @@ header .logout-btn:hover,.service-shell,.service-action-list,.service-empty-shell,+ .service-empty-intro,.service-empty-points,.workspace-operations-shell {grid-template-columns: 1fr;@@ -2497,6 +2536,7 @@ header .logout-btn:hover,.service-action-row,.service-shell,.service-empty-shell,+ .service-empty-intro,.workspace-operations-shell,.account-overview-card,.account-overview-secondary,diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.jsindex 803267f308..fac13e5d41 100644--- a/internal/cloudcp/portal/dist/portal_app.js+++ b/internal/cloudcp/portal/dist/portal_app.js@@ -1778,7 +1778,7 @@}function renderServiceActionRow(id, kicker, title, actionLabel, description, panelID, focusID, highlights) {var meta = highlights.join(" \u2022 ");- return '<article class="service-action-row"><div class="service-action-main"><div class="service-action-tags"><span class="service-card-kicker">' + kicker + '</span></div><div class="service-action-copy"><h3>' + title + "</h3><p>" + description + '</p></div><div class="service-action-meta">' + escapeHTML(meta) + '</div></div><div class="service-action-cta"><button class="btn-secondary service-action-button" type="button" id="' + id + '" data-account-service-action="open-service-panel" data-account-service-panel="' + panelID + '" data-account-service-focus="' + focusID + '" data-shell-target="services">' + escapeHTML(actionLabel) + "</button></div></article>";+ return '<article class="service-action-row"><div class="service-action-main"><div class="service-action-tags service-action-tags-tight"><span class="service-card-kicker">' + kicker + '</span><span class="service-action-meta-chip">' + escapeHTML(meta) + '</span></div><div class="service-action-copy"><h3>' + title + "</h3><p>" + description + '</p></div></div><div class="service-action-cta"><button class="btn-secondary service-action-button" type="button" id="' + id + '" data-account-service-action="open-service-panel" data-account-service-panel="' + panelID + '" data-account-service-focus="' + focusID + '" data-shell-target="services">' + escapeHTML(actionLabel) + "</button></div></article>";}function renderSectionContextChips(chips) {if (!chips.length) return "";@@ -1962,7 +1962,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 desks"- ]) + '</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 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-shell"><div class="service-empty-primary"><div class="service-empty-section service-empty-section-compact"><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-section service-empty-section-compact"><div class="service-empty-column-title">Desk 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><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, 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><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 desks</h3><p>Pick one commercial workflow and keep it isolated from hosted workspace and team operations.</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">Desk brief</div><h3>Choose a desk to begin</h3><p>Use one self-hosted desk at a time. Each desk 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-intro"><div class="service-empty-intro-item"><strong>One request</strong><span>Keep a single commercial task active instead of bouncing across desks.</span></div><div class="service-empty-intro-item"><strong>Identity first</strong><span>Verification happens before any sensitive account action opens.</span></div><div class="service-empty-intro-item"><strong>Escalate fast</strong><span>Route unusual billing, refund, privacy, or license failures to support from this desk.</span></div></div><div class="service-empty-primary"><div class="service-empty-section service-empty-section-compact"><div class="service-empty-column-title">Workflow map</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-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>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><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, 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><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 bdfe46ce8d..aacb02289b 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts@@ -201,11 +201,13 @@ 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('Choose a desk');- expect(html).toContain('Active service desk');+ expect(html).toContain('Choose a desk to begin');+ expect(html).toContain('Desk brief');expect(html).toContain('Self-hosted only');- expect(html).toContain('Desk coverage');+ expect(html).toContain('Workflow map');+ expect(html).toContain('Before you start');expect(html).toContain('Escalate quickly');+ expect(html).toContain('Identity first');expect(html).toContain('id="open-retrieve-service"');expect(html).toContain('id="data-service-panel"');expect(html).toContain('Billing desk');@@ -230,7 +232,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('Choose one billing, license, refund, or privacy request and keep it contained here.');+ expect(html).toContain('Pick one commercial workflow and keep it isolated from hosted workspace and team operations.');expect(html).toContain('Account services');expect(html).not.toContain('Self-hosted commercial desk');});diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.tsindex 957ca90d77..6c90b1c837 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts@@ -137,14 +137,14 @@ function renderServiceActionRow(return ('<article class="service-action-row">' +'<div class="service-action-main">' +- '<div class="service-action-tags">' ++ '<div class="service-action-tags service-action-tags-tight">' +'<span class="service-card-kicker">' + kicker + '</span>' ++ '<span class="service-action-meta-chip">' + escapeHTML(meta) + '</span>' +'</div>' +'<div class="service-action-copy">' +'<h3>' + title + '</h3>' +'<p>' + description + '</p>' +'</div>' +- '<div class="service-action-meta">' + escapeHTML(meta) + '</div>' +'</div>' +'<div class="service-action-cta">' +'<button class="btn-secondary service-action-button" type="button" id="' + id + '" data-account-service-action="open-service-panel" data-account-service-panel="' + panelID + '" data-account-service-focus="' + focusID + '" data-shell-target="services">' + escapeHTML(actionLabel) + '</button>' +@@ -959,8 +959,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>Commercial desks</h3>' +- '<p>Choose one billing, license, refund, or privacy request and keep it contained here.</p>' ++ '<h3>Self-hosted desks</h3>' ++ '<p>Pick one commercial workflow and keep it isolated from hosted workspace and team operations.</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']) +@@ -972,13 +972,18 @@ 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">Active service desk</div>' +- '<h3>Choose a desk</h3>' +- '<p>Open one commercial request from the navigator and keep it in this desk until it is finished.</p>' ++ '<div class="account-panel-kicker">Desk brief</div>' ++ '<h3>Choose a desk to begin</h3>' ++ '<p>Use one self-hosted desk at a time. Each desk 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-intro">' ++ '<div class="service-empty-intro-item"><strong>One request</strong><span>Keep a single commercial task active instead of bouncing across desks.</span></div>' ++ '<div class="service-empty-intro-item"><strong>Identity first</strong><span>Verification happens before any sensitive account action opens.</span></div>' ++ '<div class="service-empty-intro-item"><strong>Escalate fast</strong><span>Route unusual billing, refund, privacy, or license failures to support from this desk.</span></div>' ++ '</div>' +'<div class="service-empty-primary">' +'<div class="service-empty-section service-empty-section-compact">' +- '<div class="service-empty-column-title">Desk coverage</div>' ++ '<div class="service-empty-column-title">Workflow map</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>' +@@ -987,7 +992,7 @@ export function renderAuthenticatedPortalHTML(context: ShellViewContext): string'</div>' +'</div>' +'<div class="service-empty-section service-empty-section-compact">' +- '<div class="service-empty-column-title">Desk rules</div>' ++ '<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>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>' +diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.cssindex 75aa9cbf1a..6d18bba38f 100644--- a/internal/cloudcp/portal/frontend/src/styles.css+++ b/internal/cloudcp/portal/frontend/src/styles.css@@ -2150,7 +2150,7 @@ header .logout-btn:hover,padding: 11px 12px;border: 1px solid var(--line);border-radius: 12px;- background: #fff;+ background: var(--panel-strong);}.service-shell-sidebar-head h3 {@@ -2209,6 +2209,36 @@ header .logout-btn:hover,align-items: start;}+.service-empty-intro {+ grid-column: 1 / -1;+ display: grid;+ grid-template-columns: repeat(3, minmax(0, 1fr));+ gap: 10px;+}++.service-empty-intro-item {+ display: flex;+ flex-direction: column;+ gap: 4px;+ padding: 10px 12px;+ border: 1px solid var(--line);+ border-radius: 12px;+ background: linear-gradient(180deg, #fbfdfd 0%, #f5faf9 100%);+}++.service-empty-intro-item strong {+ font-size: 11px;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--accent-strong);+}++.service-empty-intro-item span {+ font-size: 11px;+ line-height: 1.45;+ color: var(--ink-soft);+}+.service-empty-primary,.service-empty-side {display: flex;@@ -2275,6 +2305,23 @@ header .logout-btn:hover,gap: 6px;}+.service-action-tags-tight {+ flex-wrap: wrap;+}++.service-action-meta-chip {+ display: inline-flex;+ align-items: center;+ min-height: 20px;+ padding: 0 8px;+ border-radius: 999px;+ background: #eef4f8;+ color: var(--ink-muted);+ font-size: 10px;+ font-weight: 700;+ letter-spacing: 0.04em;+}+.service-action-copy {display: flex;flex-direction: column;@@ -2296,14 +2343,6 @@ header .logout-btn:hover,max-width: 520px;}-.service-action-meta {- font-size: 10px;- line-height: 1.35;- color: var(--ink-muted);- margin-top: 2px;- letter-spacing: 0.03em;-}-.service-action-cta {display: flex;align-items: center;@@ -2638,6 +2677,7 @@ header .logout-btn:hover,.service-shell,.service-action-list,.service-empty-shell,+ .service-empty-intro,.service-empty-points,.workspace-operations-shell {grid-template-columns: 1fr;@@ -2786,6 +2826,7 @@ header .logout-btn:hover,.service-action-row,.service-shell,.service-empty-shell,+ .service-empty-intro,.workspace-operations-shell,.account-overview-card,.account-overview-secondary,