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 section desk headers
rcourtman38ece544493c
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.jsonindex 5276763444..a9b4ddac0a 100644--- a/internal/cloudcp/portal/dist/build_manifest.json+++ b/internal/cloudcp/portal/dist/build_manifest.json@@ -1,5 +1,5 @@{- "source_hash": "2c079e03326c1b7a60cf1be6e64b93a7897d504e31f0e5cb1a94c55634748874",+ "source_hash": "d1f2ee7f8960be7590b67fde2ede543cff8f70158ff78250c2c09917e01be6bc","build_inputs": ["package.json","tsconfig.json",diff --git a/internal/cloudcp/portal/dist/portal_app.css b/internal/cloudcp/portal/dist/portal_app.cssindex 7530fa1f10..fec5fa88f3 100644--- a/internal/cloudcp/portal/dist/portal_app.css+++ b/internal/cloudcp/portal/dist/portal_app.css@@ -513,23 +513,23 @@ header .logout-btn:hover,.portal-top-section-header h2,.service-header h2 {margin: 4px 0 0;- font-size: clamp(1.42rem, 1.8vw, 1.9rem);+ font-size: clamp(1.34rem, 1.7vw, 1.72rem);line-height: 1.02;letter-spacing: -0.045em;}.portal-top-section-header p,.service-note {margin: 6px 0 0;- font-size: 13px;- line-height: 1.45;+ font-size: 12px;+ line-height: 1.42;color: var(--ink-soft);- max-width: 800px;+ max-width: 520px;}.service-header {display: flex;- align-items: end;+ align-items: start;justify-content: space-between;- gap: 16px;+ gap: 12px;flex-wrap: wrap;}.account-surface {@@ -906,21 +906,21 @@ header .logout-btn:hover,.portal-support-panel {border: 1px solid var(--line);border-radius: var(--radius-lg);- padding: 16px 18px;+ padding: 14px 16px;background: #fff;box-shadow: none;}.portal-support-panel h2 {margin: 8px 0 0;- font-size: clamp(1.8rem, 2.4vw, 2.5rem);+ font-size: clamp(1.48rem, 2vw, 1.95rem);line-height: 1.02;letter-spacing: -0.05em;}.portal-support-panel > p {- margin: 12px 0 0;- max-width: 760px;- font-size: 15px;- line-height: 1.7;+ margin: 10px 0 0;+ max-width: 680px;+ font-size: 13px;+ line-height: 1.55;color: var(--ink-soft);}.portal-support-card-grid {@@ -1014,7 +1014,7 @@ header .logout-btn:hover,margin-top: auto;}.account-stage-header {- padding: 0 2px 12px;+ padding: 0 2px 8px;border-bottom: none;margin-bottom: 0;}@@ -1022,14 +1022,14 @@ header .logout-btn:hover,display: flex;align-items: flex-start;justify-content: space-between;- gap: 18px;+ gap: 12px;}.section-context-strip {display: flex;align-items: center;gap: 8px;flex-wrap: wrap;- margin-top: 10px;+ margin-top: 8px;}.section-context-chip {display: inline-flex;@@ -1048,27 +1048,27 @@ header .logout-btn:hover,.account-stage-header-actions {display: flex;align-items: center;- gap: 10px;+ gap: 8px;flex-wrap: wrap;justify-content: flex-end;flex: 0 0 auto;- padding-top: 2px;+ padding-top: 0;}.account-stage-header h3 {- margin: 8px 0 0;- font-size: 24px;+ margin: 7px 0 0;+ font-size: 21px;line-height: 1.02;letter-spacing: -0.05em;}.account-stage-header p {- margin: 10px 0 0;- max-width: 820px;- font-size: 14px;- line-height: 1.65;+ margin: 8px 0 0;+ max-width: 720px;+ font-size: 13px;+ line-height: 1.55;color: var(--ink-soft);}.account-stage-header-overview {- margin-bottom: 14px;+ margin-bottom: 10px;}.workspace-list-wrap {display: flex;diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.jsindex 395e2394da..7f7ed1f2fe 100644--- a/internal/cloudcp/portal/dist/portal_app.js+++ b/internal/cloudcp/portal/dist/portal_app.js@@ -1932,14 +1932,14 @@}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 operations plus billing for the account.</span></div><div class="team-policy-row"><strong>Tech</strong><span>Workspace operations 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>';- 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>Control who can operate this account</h3><p>Owners manage billing and access. Admins and techs keep the hosted fleet running day to day.</p>' + renderSectionContextChips([+ 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([account.can_manage ? "Managed roster" : "View only","Least privilege","Hosted access"]) + '</div><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="workspaces">Close team desk</button></div><div class="team-management-stats" id="team-stats-' + escapeAttr(account.id) + '"></div><div class="team-management-grid"><div class="team-roster-column"><div class="team-roster"><div class="team-panel-heading"><h4>People on this account</h4><p>Keep the roster small and role assignment explicit. The people listed here are the ones who can operate the hosted fleet.</p></div><div class="team-roster-list" id="team-list-' + escapeAttr(account.id) + '"><div class="team-list-message">Loading\u2026</div></div><div class="team-review-strip"><div class="team-panel-heading team-panel-heading-tight"><div class="account-panel-kicker">Review desk</div><h4>Keep access disciplined</h4><p>Use the roster as a controlled operator surface, 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 operators narrow</strong><span>Use Tech for workspace operations 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></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 desk</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 operator with the minimum role they need for this account.</p></div><div class="team-invite"><div><label for="invite-email-' + escapeAttr(account.id) + '">Email</label><input type="email" id="invite-email-' + escapeAttr(account.id) + '" placeholder="[email protected]" autocomplete="off"></div><div><label for="invite-role-' + escapeAttr(account.id) + '">Role</label><select id="invite-role-' + escapeAttr(account.id) + '"><option value="admin">Admin</option><option value="tech">Tech</option><option value="read_only">Read-only</option></select></div><button type="button" class="btn-primary btn-compact" data-action="invite-member" data-account-id="' + escapeAttr(account.id) + '">Invite</button></div></div>' + accessPolicy + "</div></div></div></div></section></section>";}function renderSupportSection(context) {- return '<section class="portal-support-panel"><div class="account-panel-kicker">Support</div><h2>Support and escalation</h2><p>Use support when hosted access looks wrong, billing does not behave as expected, or you need help with commercial licensing and privacy actions.</p>' + renderSectionContextChips(["Hosted issues", "Commercial requests", context.bootstrap.support_email ? "Email" : "Support"]) + '<div class="portal-support-layout"><div class="portal-support-card-grid"><div class="portal-support-card"><div class="account-panel-kicker">Hosted account</div><h3>Account support</h3><p>Use this route when tenant handoff, workspace access, team control, or hosted billing looks wrong.</p><div class="portal-support-points"><div class="portal-support-point"><strong>Route here for hosted issues</strong><span>Access, handoff, team, and hosted billing all belong on the hosted account path.</span></div><div class="portal-support-point"><strong>Keep the account context intact</strong><span>Include the account, workspace, and action that failed so support can pick up the same operator path quickly.</span></div></div><div class="portal-support-actions"><a class="portal-support-link" href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + '</a></div></div><div class="portal-support-card"><div class="account-panel-kicker">Commercial</div><h3>Commercial services</h3><p>Self-hosted subscriptions, license recovery, refunds, and privacy requests all route through the account services desk first.</p><div class="portal-support-points"><div class="portal-support-point"><strong>Start in Account services</strong><span>Use the billing, license, refund, or privacy desk before escalating a commercial issue.</span></div><div class="portal-support-point"><strong>Escalate from the same desk</strong><span>Keep the request in one place instead of splitting it between billing and operator surfaces.</span></div></div><div class="portal-support-actions"><button type="button" class="btn-secondary" data-shell-action="activate-section" data-shell-section="services">Open account services</button></div></div></div><div class="portal-support-runbook"><div class="account-panel-kicker">Escalation desk</div><h3>Route the issue cleanly</h3><p>Keep hosted operations, commercial requests, and pure support escalation on their own paths so the next person does not have to reconstruct the account state.</p><div class="portal-support-runbook-list"><div class="portal-support-runbook-step"><strong>1. Confirm the scope</strong><span>Decide whether the problem is hosted operations, commercial self-service, or direct support escalation.</span></div><div class="portal-support-runbook-step"><strong>2. Keep hosted and commercial separate</strong><span>Workspace and team problems stay in their own desks. Billing, license, refund, and privacy work stay in Account services.</span></div><div class="portal-support-runbook-step"><strong>3. Escalate with context</strong><span>Include the account, workspace, and exact failed action so the escalation path starts with the same facts you saw.</span></div></div></div></div></section>';+ return '<section class="portal-support-panel"><div class="account-panel-kicker">Support</div><h2>Support desk</h2><p>Use this desk when hosted access looks wrong, billing behaves unexpectedly, or you need help with commercial requests.</p>' + renderSectionContextChips(["Hosted issues", "Commercial requests", context.bootstrap.support_email ? "Email" : "Support"]) + '<div class="portal-support-layout"><div class="portal-support-card-grid"><div class="portal-support-card"><div class="account-panel-kicker">Hosted account</div><h3>Account support</h3><p>Use this route when tenant handoff, workspace access, team control, or hosted billing looks wrong.</p><div class="portal-support-points"><div class="portal-support-point"><strong>Route here for hosted issues</strong><span>Access, handoff, team, and hosted billing all belong on the hosted account path.</span></div><div class="portal-support-point"><strong>Keep the account context intact</strong><span>Include the account, workspace, and action that failed so support can pick up the same operator path quickly.</span></div></div><div class="portal-support-actions"><a class="portal-support-link" href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + '</a></div></div><div class="portal-support-card"><div class="account-panel-kicker">Commercial</div><h3>Commercial services</h3><p>Self-hosted subscriptions, license recovery, refunds, and privacy requests all route through the account services desk first.</p><div class="portal-support-points"><div class="portal-support-point"><strong>Start in Account services</strong><span>Use the billing, license, refund, or privacy desk before escalating a commercial issue.</span></div><div class="portal-support-point"><strong>Escalate from the same desk</strong><span>Keep the request in one place instead of splitting it between billing and operator surfaces.</span></div></div><div class="portal-support-actions"><button type="button" class="btn-secondary" data-shell-action="activate-section" data-shell-section="services">Open account services</button></div></div></div><div class="portal-support-runbook"><div class="account-panel-kicker">Escalation desk</div><h3>Route the issue cleanly</h3><p>Keep hosted operations, commercial requests, and pure support escalation on their own paths so the next person does not have to reconstruct the account state.</p><div class="portal-support-runbook-list"><div class="portal-support-runbook-step"><strong>1. Confirm the scope</strong><span>Decide whether the problem is hosted operations, commercial self-service, or direct support escalation.</span></div><div class="portal-support-runbook-step"><strong>2. Keep hosted and commercial separate</strong><span>Workspace and team problems stay in their own desks. Billing, license, refund, and privacy work stay in Account services.</span></div><div class="portal-support-runbook-step"><strong>3. Escalate with context</strong><span>Include the account, workspace, and exact failed action so the escalation path starts with the same facts you saw.</span></div></div></div></div></section>';}function renderHeaderHTML(context) {if (context.bootstrap.authenticated) {@@ -1951,8 +1951,8 @@var accounts = Array.isArray(context.bootstrap.accounts) ? context.bootstrap.accounts : [];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 requests." : "Use these account tools for self-hosted licenses, billing, refunds, and privacy actions.";+ var serviceHeading = hosted ? "Self-hosted commercial desk" : "Account services";+ var serviceNote = hosted ? "Hosted operations stay in Workspaces and Team. Use this desk 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("");diff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.tsindex 8c817883da..1076623925 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts@@ -135,7 +135,7 @@ describe('shell view', function() {expect(html).toContain('Support');expect(html).toContain('Manage');expect(html).toContain('id="account-services-section"');- expect(html).toContain('Self-hosted licenses and billing');+ expect(html).toContain('Self-hosted commercial desk');expect(html).toContain('portal-account-context');expect(html).toContain('Owner access');expect(html).toContain('portal-account-context-summary');@@ -232,7 +232,7 @@ describe('shell view', function() {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('Account services');- expect(html).not.toContain('Self-hosted licenses and billing');+ expect(html).not.toContain('Self-hosted commercial desk');});it('renders signed-out portal with error and success login states', function() {diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.tsindex 539e1fb419..e52538f6ac 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts@@ -731,8 +731,8 @@ function renderAccountTeamSection(account: PortalAccountSummary): string {'<div class="team-management-header">' +'<div>' +'<div class="account-panel-kicker">Team management</div>' +- '<h3>Control who can operate this account</h3>' +- '<p>Owners manage billing and access. Admins and techs keep the hosted fleet running day to day.</p>' ++ '<h3>Account access</h3>' ++ '<p>Owners govern billing and access. Admins and techs keep hosted work moving day to day.</p>' +renderSectionContextChips([account.can_manage ? 'Managed roster' : 'View only','Least privilege',@@ -822,8 +822,8 @@ function renderSupportSection(context: ShellViewContext): string {return ('<section class="portal-support-panel">' +'<div class="account-panel-kicker">Support</div>' +- '<h2>Support and escalation</h2>' +- '<p>Use support when hosted access looks wrong, billing does not behave as expected, or you need help with commercial licensing and privacy actions.</p>' ++ '<h2>Support desk</h2>' ++ '<p>Use this desk when hosted access looks wrong, billing behaves unexpectedly, or you need help with commercial requests.</p>' +renderSectionContextChips(['Hosted issues', 'Commercial requests', context.bootstrap.support_email ? 'Email' : 'Support']) +'<div class="portal-support-layout">' +'<div class="portal-support-card-grid">' +@@ -903,9 +903,9 @@ export function renderAuthenticatedPortalHTML(context: ShellViewContext): stringvar accounts = Array.isArray(context.bootstrap.accounts) ? context.bootstrap.accounts : [];var hosted = hasHostedAccounts(accounts);var activeSection = context.activeSection || 'overview';- var serviceHeading = hosted ? 'Self-hosted licenses and billing' : 'Account services';+ var serviceHeading = hosted ? 'Self-hosted commercial desk' : 'Account services';var serviceNote = hosted- ? 'Hosted operations stay in Workspaces and Team. Use this area only for self-hosted commercial requests.'+ ? 'Hosted operations stay in Workspaces and Team. Use this desk 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 (diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.cssindex 607ee4c5eb..902282ad8d 100644--- a/internal/cloudcp/portal/frontend/src/styles.css+++ b/internal/cloudcp/portal/frontend/src/styles.css@@ -570,7 +570,7 @@ header .logout-btn:hover,.portal-top-section-header h2,.service-header h2 {margin: 4px 0 0;- font-size: clamp(1.42rem, 1.8vw, 1.9rem);+ font-size: clamp(1.34rem, 1.7vw, 1.72rem);line-height: 1.02;letter-spacing: -0.045em;}@@ -578,17 +578,17 @@ header .logout-btn:hover,.portal-top-section-header p,.service-note {margin: 6px 0 0;- font-size: 13px;- line-height: 1.45;+ font-size: 12px;+ line-height: 1.42;color: var(--ink-soft);- max-width: 800px;+ max-width: 520px;}.service-header {display: flex;- align-items: end;+ align-items: start;justify-content: space-between;- gap: 16px;+ gap: 12px;flex-wrap: wrap;}@@ -1016,23 +1016,23 @@ header .logout-btn:hover,.portal-support-panel {border: 1px solid var(--line);border-radius: var(--radius-lg);- padding: 16px 18px;+ padding: 14px 16px;background: #fff;box-shadow: none;}.portal-support-panel h2 {margin: 8px 0 0;- font-size: clamp(1.8rem, 2.4vw, 2.5rem);+ font-size: clamp(1.48rem, 2vw, 1.95rem);line-height: 1.02;letter-spacing: -0.05em;}.portal-support-panel > p {- margin: 12px 0 0;- max-width: 760px;- font-size: 15px;- line-height: 1.7;+ margin: 10px 0 0;+ max-width: 680px;+ font-size: 13px;+ line-height: 1.55;color: var(--ink-soft);}@@ -1141,7 +1141,7 @@ header .logout-btn:hover,}.account-stage-header {- padding: 0 2px 12px;+ padding: 0 2px 8px;border-bottom: none;margin-bottom: 0;}@@ -1150,7 +1150,7 @@ header .logout-btn:hover,display: flex;align-items: flex-start;justify-content: space-between;- gap: 18px;+ gap: 12px;}.section-context-strip {@@ -1158,7 +1158,7 @@ header .logout-btn:hover,align-items: center;gap: 8px;flex-wrap: wrap;- margin-top: 10px;+ margin-top: 8px;}.section-context-chip {@@ -1179,30 +1179,30 @@ header .logout-btn:hover,.account-stage-header-actions {display: flex;align-items: center;- gap: 10px;+ gap: 8px;flex-wrap: wrap;justify-content: flex-end;flex: 0 0 auto;- padding-top: 2px;+ padding-top: 0;}.account-stage-header h3 {- margin: 8px 0 0;- font-size: 24px;+ margin: 7px 0 0;+ font-size: 21px;line-height: 1.02;letter-spacing: -0.05em;}.account-stage-header p {- margin: 10px 0 0;- max-width: 820px;- font-size: 14px;- line-height: 1.65;+ margin: 8px 0 0;+ max-width: 720px;+ font-size: 13px;+ line-height: 1.55;color: var(--ink-soft);}.account-stage-header-overview {- margin-bottom: 14px;+ margin-bottom: 10px;}.workspace-list-wrap {