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
portal: redesign signed-in shell to object-first settings layout
rcourtman41f0b3604c04
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 1669917042..d24b4ab431 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -419,8 +419,10 @@ visual posture across all portal scenarios: no gradients, heavy shadows, ordecorative dashboard chrome. The shell uses a compact identity bar (account name,role, kind) and a horizontal tab bar for Workspaces, Access, Billing, andSupport. Content panels render directly below the tab bar without redundant-page headers, summary strips, or fact chips. Section block headers render the-account name and inline actions only. Hierarchy is driven by spacing,+page headers, summary strips, or fact chips. Action buttons (Create workspace,+Invite people, Change roles, Remove access) are integrated into toolbar rows+within their respective bordered data cards rather than existing as+free-floating elements above content. Hierarchy is driven by spacing,typography, and 1px borders rather than cards, pills, stacked metrics, orornamental side rails competing with the active task.That same typed page contract also applies before auth: the signed-out portaldiff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex 105c3c7c6d..2d4a323287 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -274,7 +274,7 @@ deployment instead of appearing only after a live push. The portal page itselfmust also reference that shared favicon through a versioned href so updatedicon revisions bypass browser cache on deploy instead of waiting for assetexpiry.-That same frontend delivery boundary must keep the account portal visual language sharp and restrained, avoiding gradients, heavy shadows, decorative SaaS styling, and shell chrome that dominates the active task. The canonical target is a calm, flat account-operations surface closer to GitHub Settings or Android Settings than to a dashboard: a compact identity bar (account name, role, kind), a horizontal tab bar for section navigation, and direct content panels for Workspaces, Access, Billing, and Support. Shell framing uses white backgrounds, 1px borders, minimal border-radius, and hierarchy driven by spacing and typography rather than cards, pills, or ornamental headers. Section block headers render the account name and inline actions only; fact chips, summary strips, and decorative kicker labels do not appear in the primary task surface.+That same frontend delivery boundary must keep the account portal visual language sharp and restrained, avoiding gradients, heavy shadows, decorative SaaS styling, and shell chrome that dominates the active task. The canonical target is a calm, flat account-operations surface closer to GitHub Settings or Android Settings than to a dashboard: a compact identity bar (account name, role, kind), a horizontal tab bar for section navigation, and direct content panels for Workspaces, Access, Billing, and Support. Shell framing uses white backgrounds, 1px borders, minimal border-radius, and hierarchy driven by spacing and typography rather than cards, pills, or ornamental headers. Section block headers render inline actions only inside the data container toolbar row rather than floating orphaned above content; fact chips, summary strips, decorative kicker labels, and redundant section headings do not appear in the primary task surface. Action buttons (Create workspace, Invite people, Change roles, Remove access) are integrated into toolbar rows within their respective bordered data cards rather than existing as free-floating elements above the content.That same portal delivery boundary also owns the checked-in embedded bundle in`internal/cloudcp/portal/dist/`. Visual or interaction changes are notcomplete when they exist only in the local preview runtime or in hand-editeddiff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.tsindex 6b7d1a4397..05f9fdef7c 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts@@ -76,13 +76,7 @@ describe('shell view', function() {it('renders empty accounts state with support contact', function() {var html = renderAccountsHTML(createContext());- expect(html).toContain('Current state');- expect(html).toContain('No hosted account');- expect(html).toContain('0 hosted workspaces');- expect(html).toContain('Billing available');- expect(html).toContain('0 hosted workspaces need review');- expect(html).toContain('Billing is available');- expect(html).toContain('Open billing');+ expect(html).toContain('overview-task-grid');});it('renders authenticated portal accounts, workspaces, and hosted-only billing entrypoints', function() {@@ -131,27 +125,21 @@ describe('shell view', function() {);expect(html).toContain('portal-tab-bar');- expect(html).toContain('Summary');expect(html).toContain('Access');expect(html).toContain('Billing');expect(html).toContain('Support');expect(html).toContain('Workspaces');- expect(html).toContain('Ready');- expect(html).toContain('2 workspaces to review');expect(html).toContain('id="billing-section"');expect(html).toContain('portal-identity-bar');expect(html).toContain('Owner');expect(html).toContain('MSP account');expect(html).toContain('Acme MSP');- expect(html).toContain('3 workspaces');expect(html).toContain('Create workspace');expect(html).not.toContain('Manage billing');expect(html).not.toContain('Manage team');- expect(html).toContain('0 suspended workspaces');expect(html).toContain('Alpha Workspace');expect(html).toContain('Beta Workspace');expect(html).toContain('Gamma Workspace');- expect(html).toContain('1 ready workspace');expect(html).toContain('Unhealthy</span>');expect(html).toContain('Checking</span>');expect(html).toContain('This workspace is in a failed state.');@@ -159,36 +147,29 @@ describe('shell view', function() {expect(html).toContain('/api/accounts/acct_1/tenants/ws_active/handoff');expect(html).toContain('Open workspace');expect(html).toContain('data-action="select-workspace"');- expect(html).toContain('Workspace task');- expect(html).toContain('Work on one workspace');- expect(html).toContain('Open lifecycle for one workspace, or create a new one. Keep access and billing separate.');- expect(html).toContain('Open a new hosted workspace');+ expect(html).toContain('Create a workspace');expect(html).toContain('Access changes stay in Access. Billing changes stay in Billing.');expect(html).toContain('Close panel');expect(html).toContain('id="workspace-management-acct_1" hidden');expect(html).toContain('id="workspace-operations-detail-acct_1" hidden');- expect(html.indexOf('id="add-ws-form-acct_1"')).toBeGreaterThan(html.indexOf('Open a new hosted workspace'));expect(html).toContain('data-action="clear-workspace-selection"');expect(html).toContain('Invite people');expect(html).toContain('Change roles');expect(html).toContain('Remove access');expect(html).toContain('data-action="set-access-job"');- expect(html).toContain('Access task');expect(html).toContain('id="access-detail-acct_1" hidden');expect(html).toContain('Choose the smallest role');expect(html).toContain('Full account, billing, and access control.');expect(html).toContain('Workspace control, billing, and roster management.');expect(html).toContain('Workspace control without billing or roster ownership.');expect(html).toContain('Review access without control-plane changes.');- expect(html).toContain('People on this account');expect(html).toContain('data-can-manage="true"');expect(html).toContain('Remove stale access');expect(html).toContain('data-action="workspace-action"');expect(html).toContain('Hosted billing');expect(html).toContain('Try first');- expect(html).toContain('Path');- expect(html).toContain('Account or email');- expect(html).toContain('Failed action');+ expect(html).toContain('Scope');+ expect(html).toContain('Include');expect(html).toContain('Billing');expect(html).not.toContain('Hosted only');expect(html).not.toContain('Self-hosted tools');@@ -388,16 +369,11 @@ describe('shell view', function() {);expect(html).toContain('Tech');- expect(html).toContain('1 workspace is ready to use');- expect(html).toContain('Owner or admin required');- expect(html).toContain('Review the hosted roster here. An owner or admin must make changes.');+ expect(html).toContain('Review who has access. An owner or admin must make changes.');expect(html).toContain('An owner or admin on this account needs to open hosted billing.');expect(html).toContain('Try first');- expect(html).toContain('Review Workspaces or Access first. If billing is involved, hand it to an owner or admin before you escalate.');- expect(html).toContain('Path');- expect(html).toContain('Workspaces review, Access review, owner/admin handoff, or hosted billing.');- expect(html).toContain('Account or email');- expect(html).toContain('Hosted account and workspace, or hosted billing account.');+ expect(html).toContain('Scope');+ expect(html).toContain('Include');expect(html).toContain('data-can-manage="false"');expect(html).not.toContain('Invite people, change roles, and remove account access.');expect(html).not.toContain('data-action="invite-member"');@@ -463,7 +439,7 @@ describe('shell view', function() {);expect(html).toContain('No hosted workspaces are attached yet. An owner or admin must create the first one.');- expect(html).toContain('Owner or admin required');+ expect(html).toContain('data-can-manage="false"');});it('keeps workspaces empty state honest for hosted view-only accounts with no workspace yet', function() {@@ -487,9 +463,8 @@ describe('shell view', function() {}));- expect(html).toContain('0 ready workspaces');- expect(html).toContain('No hosted workspace exists yet. An owner or admin must create the first one.');- expect(html).not.toContain('Open Workspaces to see the current state of each hosted workspace.');+ expect(html).toContain('No hosted workspaces are attached yet. An owner or admin must create the first one.');+ expect(html).toContain('data-can-manage="false"');});it('keeps workspaces empty state honest for managed hosted accounts with no workspace yet', function() {@@ -513,9 +488,8 @@ describe('shell view', function() {}));- expect(html).toContain('0 ready workspaces');- expect(html).toContain('No hosted workspace exists yet. Create the first one in Workspaces.');- expect(html).not.toContain('Open Workspaces to see the current state of each hosted workspace.');+ expect(html).toContain('No hosted workspaces yet. Create one to get started.');+ expect(html).toContain('Create workspace');});it('keeps suspended hosted view-only accounts on review surfaces', function() {@@ -548,8 +522,8 @@ describe('shell view', function() {);expect(html).toContain('Paused Workspace');- expect(html).toContain('1 suspended workspace');- expect(html).toContain('Owner or admin required');+ expect(html).toContain('Suspended');+ expect(html).toContain('data-can-manage="false"');});it('keeps workspace facts honest when only suspended workspaces remain', function() {@@ -581,8 +555,8 @@ describe('shell view', function() {}));- expect(html).toContain('0 ready workspaces');- expect(html).toContain('1 suspended workspace');+ expect(html).toContain('Suspended');+ expect(html).toContain('Paused Workspace');expect(html).not.toContain('Active workspaces look clear for routine use.');});@@ -596,15 +570,12 @@ describe('shell view', function() {);expect(html).toContain('Support');- expect(html).not.toContain('Current state');expect(html).not.toContain('data-shell-section="workspaces"');expect(html).not.toContain('data-shell-section="access"');expect(html).toContain('Self-hosted billing');expect(html).toContain('Use self-hosted billing only for self-hosted purchases.');expect(html).toContain('Escalate with the same self-hosted billing path and the exact failed step.');expect(html).toContain('Billing');- expect(html).toContain('Account or email');- expect(html).toContain('Commercial billing email used for the self-hosted purchase.');expect(html).not.toContain('Escalate with the same hosted billing action or self-hosted path and the exact failed step.');expect(html).not.toContain('Workspace or access path failed');expect(html).not.toContain('Hosted workspace or access');@@ -680,10 +651,8 @@ describe('shell view', function() {);expect(html).toContain('Suspended');- expect(html).toContain('0 workspaces to review');- expect(html).toContain('0 ready workspaces');expect(html).toContain('Create workspace');- expect(html).toContain('1 suspended workspace');+ expect(html).toContain('Paused Workspace');});it('preserves the simplified top-tab shell hooks in the rendered shell', function() {diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.tsindex d6f7b46238..a8a0bae417 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts@@ -58,9 +58,7 @@ function workspaceCountLabel(count: number): string {return count === 1 ? '1 workspace' : String(count) + ' workspaces';}-function workspaceTotalChipLabel(count: number): string {- return count === 1 ? '1 workspace total' : String(count) + ' workspaces total';-}+function reviewWorkspaceHeadline(count: number): string {return count === 1 ? '1 workspace needs review' : String(count) + ' workspaces need review';@@ -70,9 +68,7 @@ function readyWorkspaceHeadline(count: number): string {return count === 1 ? '1 workspace is ready to use' : String(count) + ' workspaces are ready to use';}-function readyWorkspaceSectionChipLabel(count: number): string {- return count === 1 ? '1 workspace ready to use' : String(count) + ' workspaces ready to use';-}+function reviewWorkspaceChipLabel(count: number): string {return count === 1 ? '1 workspace to review' : String(count) + ' workspaces to review';@@ -86,27 +82,7 @@ function suspendedWorkspaceChipLabel(count: number): string {return count === 1 ? '1 suspended workspace' : String(count) + ' suspended workspaces';}-function suspendedWorkspaceSectionChipLabel(count: number): string {- return count === 1 ? '1 workspace suspended' : String(count) + ' workspaces suspended';-}--function billingHeaderChipLabels(hostedBillingCount: number, showSelfHostedCommercial: boolean): string[] {- return [- hostedBillingCount > 0 ? 'Hosted billing attached' : 'No hosted billing attached',- showSelfHostedCommercial ? 'Self-hosted billing available' : 'Hosted billing only',- ];-}-function supportSectionChipLabels(hasHostedAccounts: boolean, hostedViewOnly: boolean, supportEmail: string): string[] {- if (hasHostedAccounts) {- return [- 'Escalation only',- hostedViewOnly ? 'Review Workspaces or Access, or contact owner/admin first' : 'Open Workspaces, Access, or Billing first',- supportEmail ? 'Email support' : 'Support route',- ];- }- return ['Escalation only', 'Open Billing first', supportEmail ? 'Email support' : 'Support route'];-}function supportLeadCopy(hasHostedAccounts: boolean, hostedViewOnly: boolean, showSelfHostedCommercial: boolean): string {if (!hasHostedAccounts) return 'Use Support only after Billing fails.';@@ -751,30 +727,9 @@ function renderShellOverviewSection(context: ShellViewContext): string {var accounts = Array.isArray(context.bootstrap.accounts) ? context.bootstrap.accounts : [];var entries = collectOverviewWorkspaceEntries(accounts);var showSelfHostedCommercial = hasSelfHostedCommercial(context.bootstrap);- var totalCount = entries.length;- var readyCount = readyOverviewEntries(entries).length;- var attentionCount = attentionOverviewEntries(entries).length;- var suspendedCount = countWorkspacesByState(collectWorkspaces(accounts), 'suspended');- var chips = accounts.length- ? [- accounts.length === 1 ? '1 account' : String(accounts.length) + ' accounts',- workspaceCountLabel(totalCount),- readyWorkspaceChipLabel(readyCount),- reviewWorkspaceChipLabel(attentionCount),- suspendedWorkspaceChipLabel(suspendedCount),- ]- : ['No hosted account', '0 hosted workspaces', 'Billing available', 'Support only on escalation'];return ('<section class="account-content-panel account-content-panel-overview">' +- '<div class="account-stage-header account-stage-header-overview overview-stage-header">' +- '<div>' +- '<div class="account-panel-kicker">Summary</div>' +- '<h3>Current state</h3>' +- '<p>Use this summary only when you need a quick account readout.</p>' +- renderSectionContextChips(chips) +- '</div>' +- '</div>' +'<div class="overview-task-grid overview-task-grid-compact">' +renderOverviewAttentionCard(accounts, entries, showSelfHostedCommercial) +renderOverviewReadyCard(accounts, entries, context.accountAPIBasePath) +@@ -784,43 +739,22 @@ function renderShellOverviewSection(context: ShellViewContext): string {);}-function renderPageHeader(kicker: string, title: string, copy: string, summaryHTML = ''): string {- return (- '<div class="portal-page-header">' +- '<h2>' + escapeHTML(title) + '</h2>' +- (copy ? '<p>' + escapeHTML(copy) + '</p>' : '') +- '</div>'- );-}-function renderAccountBlockHeader(- account: PortalAccountSummary,- facts: string[],+ _account: PortalAccountSummary,actionsHTML = '',copy = ''): string {return (- '<div class="portal-section-header">' +- '<h3>' + escapeHTML(account.name) + '</h3>' +- (actionsHTML ? '<div>' + actionsHTML + '</div>' : '') +- '</div>'+ (actionsHTML ? '<div class="portal-section-header"><div></div><div>' + actionsHTML + '</div></div>' : '') ++ (copy ? '<p class="portal-section-copy">' + escapeHTML(copy) + '</p>' : ''));}function renderNoHostedWorkspacesSection(): string {return ('<section class="account-content-panel account-content-panel-workspaces">' +- '<div class="account-stage-header">' +- '<div>' +- '<div class="account-panel-kicker">Workspaces</div>' +- '<h3>Workspaces</h3>' +- '<p>No hosted workspace is attached to this account.</p>' +- renderSectionContextChips(['None attached', 'Billing instead']) +- '</div>' +- '</div>' +- '<div class="empty-state empty-state-spaced">' +- '<p>There is nothing to open or manage here yet.</p>' +- '<p class="support-copy">Use Billing for self-hosted subscriptions, licenses, refunds, or privacy requests.</p>' ++ '<div class="empty-state">' ++ '<p>No hosted workspaces are attached to this account. Use Billing for self-hosted subscriptions and licenses.</p>' +'</div>' +'</section>');@@ -829,17 +763,8 @@ function renderNoHostedWorkspacesSection(): string {function renderNoHostedAccessSection(): string {return ('<section class="account-content-panel account-content-panel-access">' +- '<div class="account-stage-header">' +- '<div>' +- '<div class="account-panel-kicker">Access</div>' +- '<h3>Access</h3>' +- '<p>No hosted account roster is attached here.</p>' +- renderSectionContextChips(['No hosted roster', 'Billing instead']) +- '</div>' +- '</div>' +- '<div class="empty-state empty-state-spaced">' +- '<p>There are no hosted roles or invites to manage for this account right now.</p>' +- '<p class="support-copy">If the task is commercial access to licenses, refunds, or privacy, stay in Billing.</p>' ++ '<div class="empty-state">' ++ '<p>No hosted account roster is attached. Use Billing for commercial access to licenses, refunds, or privacy.</p>' +'</div>' +'</section>');@@ -894,9 +819,8 @@ function renderAccountWorkspaceSection(account: PortalAccountSummary, accountAPI'" hidden>' +'<div class="workspace-management-header">' +'<div>' +- '<div class="account-panel-kicker">Workspace task</div>' +- '<h3>Work on one workspace</h3>' +- '<p>Open lifecycle for one workspace, or create a new one. Keep access and billing separate.</p>' ++ '<h3>Workspace lifecycle</h3>' ++ '<p>Manage this workspace or create a new one.</p>' +'</div>' +'<button type="button" class="btn-secondary btn-compact" id="workspace-management-close-' +escapeAttr(account.id) +@@ -910,9 +834,8 @@ function renderAccountWorkspaceSection(account: PortalAccountSummary, accountAPI'<div class="workspace-management-empty-shell">' +'<div class="workspace-management-empty-actions-card">' +'<div class="workspace-management-empty-actions-copy">' +- '<div class="account-panel-kicker">Create workspace</div>' +- '<h4>Open a new hosted workspace</h4>' +- '<p>Create one workspace here when you need a new customer or operating boundary.</p>' ++ '<h4>Create a workspace</h4>' ++ '<p>Add a new hosted workspace for a customer or operating boundary.</p>' +'</div>' +addWorkspaceForm +'</div>' +@@ -962,33 +885,24 @@ function renderAccountWorkspaceSection(account: PortalAccountSummary, accountAPIvar workspaceHTML = workspaces.length? '<div class="workspace-list-wrap">' +- '<div class="workspace-list-toolbar">' +- '<div class="workspace-list-summary">' + escapeHTML(workspaceListSummary) + '</div>' +- '</div>' +- '<div class="workspace-list-head">' +- '<span>Workspace</span>' +- '<span>Health</span>' +- '<span>Lifecycle</span>' +- '<span>Actions</span>' +- '</div>' +- '<div class="workspace-list">' + workspaces.map(function(workspace) {- return renderWorkspaceCard(account, workspace, accountAPIBasePath);- }).join('') + '</div>' +- '</div>'- : '<div class="empty-state"><p>' + escapeHTML(account.can_manage ? 'No hosted workspaces yet. Create one to get started.' : 'No hosted workspaces are attached yet. An owner or admin must create the first one.') + '</p></div>';+ (workspaceHeaderActions ? '<div class="workspace-list-toolbar">' + workspaceHeaderActions + '</div>' : '') ++ '<div class="workspace-list-head">' ++ '<span>Workspace</span>' ++ '<span>Health</span>' ++ '<span>Lifecycle</span>' ++ '<span>Actions</span>' ++ '</div>' ++ '<div class="workspace-list">' + workspaces.map(function(workspace) {+ return renderWorkspaceCard(account, workspace, accountAPIBasePath);+ }).join('') + '</div>' ++ '</div>'+ : '<div class="empty-state">' ++ '<p>' + escapeHTML(account.can_manage ? 'No hosted workspaces yet. Create one to get started.' : 'No hosted workspaces are attached yet. An owner or admin must create the first one.') + '</p>' ++ (workspaceHeaderActions ? '<div style="margin-top: 8px">' + workspaceHeaderActions + '</div>' : '') ++ '</div>';return ('<section class="account-content-panel account-content-panel-workspaces">' +- renderAccountBlockHeader(- account,- [- workspaceTotalChipLabel(workspaces.length),- readyWorkspaceSectionChipLabel(readyCount),- reviewWorkspaceChipLabel(attentionCount),- suspendedWorkspaceSectionChipLabel(suspendedCount),- ],- workspaceHeaderActions- ) +'<div class="workspace-operations-shell workspace-operations-shell-idle" id="workspace-operations-shell-' +escapeAttr(account.id) +'">' +@@ -1084,14 +998,9 @@ function renderAccountAccessSection(account: PortalAccountSummary): string {'" data-can-manage="' +escapeAttr(account.can_manage ? 'true' : 'false') +'">' +- renderAccountBlockHeader(- account,- [account.can_manage ? 'Manage access' : 'Review roster'],- accessTaskStrip,- account.can_manage- ? 'Open one access task at a time, then use the roster below.'- : 'Review who can act on this account. An owner or admin must make changes.'- ) ++ (!account.can_manage+ ? '<p class="portal-section-copy">' + escapeHTML('Review who has access. An owner or admin must make changes.') + '</p>'+ : '') +'<div class="access-management-stats" id="access-stats-' +escapeAttr(account.id) +'"></div>' +@@ -1102,7 +1011,6 @@ function renderAccountAccessSection(account: PortalAccountSummary): string {'<div class="access-task-panel" id="access-task-panel-' + escapeAttr(account.id) + '" hidden>' +'<div class="access-task-header">' +'<div>' +- '<div class="account-panel-kicker">Access task</div>' +'<h4 id="access-task-title-' + escapeAttr(account.id) + '">Invite people</h4>' +'<p id="access-task-copy-' + escapeAttr(account.id) + '"></p>' +'</div>' +@@ -1125,12 +1033,9 @@ function renderAccountAccessSection(account: PortalAccountSummary): string {'<div class="access-shell-main">' +'<div class="access-roster-column">' +'<div class="access-roster">' +- '<div class="access-panel-heading">' +- '<h4>People on this account</h4>' +- '<p>' + (account.can_manage- ? 'Review the hosted roster here, then open the exact access job you need.'- : 'Review the hosted roster here. An owner or admin must make changes.') + '</p>' +- '</div>' ++ (account.can_manage+ ? '<div class="access-roster-toolbar">' + accessTaskStrip + '</div>'+ : '') +'<div class="access-roster-list" id="access-list-' +escapeAttr(account.id) +'">' +@@ -1153,12 +1058,11 @@ function renderHostedBillingCards(accounts: PortalAccountSummary[], showSelfHostreturn ('<section class="billing-surface-block billing-surface-block-empty">' +'<div class="billing-surface-header">' +- '<div class="account-panel-kicker">Hosted billing</div>' +'<h3>No hosted billing attached</h3>' +'</div>' +'<p>' + escapeHTML(showSelfHostedCommercial- ? 'Use the self-hosted billing tools below only when the request belongs to a self-hosted purchase.'- : 'Hosted invoices, payment methods, and subscription changes are not attached to this account.'+ ? 'Use self-hosted billing tools below for self-hosted purchases.'+ : 'Hosted invoices and payment methods are not attached to this account.') + '</p>' +'</section>');@@ -1167,7 +1071,6 @@ function renderHostedBillingCards(accounts: PortalAccountSummary[], showSelfHostreturn ('<section class="billing-surface-block">' +'<div class="billing-surface-header">' +- '<div class="account-panel-kicker">Hosted billing</div>' +'<h3>Hosted billing</h3>' +'</div>' +'<div class="billing-action-list billing-action-list-surface">' +@@ -1198,7 +1101,6 @@ function renderBillingTaskPanel(title: string, copy: string, panelID: string, bo'<section class="billing-panel" id="' + escapeAttr(panelID) + '" hidden>' +'<div class="billing-task-header">' +'<div>' +- '<div class="account-panel-kicker">Billing task</div>' +'<h3>' + escapeHTML(title) + '</h3>' +'<p>' + escapeHTML(copy) + '</p>' +'</div>' +@@ -1238,15 +1140,13 @@ function renderSupportSection(context: ShellViewContext): string {: '<button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="billing">Billing</button>';return ('<section class="portal-support-panel">' +- '<h2>Support</h2>' +- '<p>Use Support only after the self-service path fails.</p>' ++ '<p>Use Support only after the self-service path fails. Retry the same step before you escalate.</p>' +'<div class="portal-support-simple">' +'<div class="portal-support-simple-card">' +'<div class="portal-support-simple-list">' +'<div class="portal-support-simple-row"><strong>Try first</strong><span>' + escapeHTML(retryCopy) + '</span></div>' +- '<div class="portal-support-simple-row"><strong>Path</strong><span>' + escapeHTML(supportRunbookPathCopy(isHosted, hostedViewOnly, showSelfHostedCommercial)) + '</span></div>' +- '<div class="portal-support-simple-row"><strong>Account or email</strong><span>' + escapeHTML(supportRunbookAccountCopy(isHosted, showSelfHostedCommercial)) + '</span></div>' +- '<div class="portal-support-simple-row"><strong>Failed action</strong><span>Name the exact button, form, or billing step that failed and what happened next.</span></div>' ++ '<div class="portal-support-simple-row"><strong>Scope</strong><span>' + escapeHTML(supportRunbookPathCopy(isHosted, hostedViewOnly, showSelfHostedCommercial)) + '</span></div>' ++ '<div class="portal-support-simple-row"><strong>Include</strong><span>Account, email, and the exact action that failed.</span></div>' +'</div>' +'<div class="portal-support-simple-actions">' +supportActions +@@ -1425,7 +1325,6 @@ export function renderSignedOutPortalHTML(context: ShellViewContext): string {return ('<section class="portal-auth-shell">' +'<div class="portal-auth-intro">' +- '<div class="account-panel-kicker">Pulse Account</div>' +'<h1>Sign in to Pulse Account</h1>' +'<p>Use one commercial email address for hosted workspaces, account access, billing, licenses, refunds, and privacy requests.</p>' +'<div class="portal-auth-scope-list" aria-label="Pulse Account scope">' +@@ -1436,7 +1335,6 @@ export function renderSignedOutPortalHTML(context: ShellViewContext): string {'</div>' +'<section class="portal-auth-panel" aria-labelledby="portal-auth-title">' +'<div class="portal-auth-card">' +- '<div class="account-panel-kicker">Sign in</div>' +'<h2 id="portal-auth-title">Email sign-in link</h2>' +'<p>Enter the commercial email address for your Pulse account. A sign-in link will be sent to that address.</p>' +'<div class="form-group portal-auth-form-group">' +diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.cssindex ff3c12bbfc..a8287ed1d3 100644--- a/internal/cloudcp/portal/frontend/src/styles.css+++ b/internal/cloudcp/portal/frontend/src/styles.css@@ -158,9 +158,9 @@ header .logout-btn:hover,/* ── Main container ───────────────────────────────────────────── */.main {- max-width: 960px;+ max-width: 800px;margin: 0 auto;- padding: 24px 24px 64px;+ padding: 0 24px 64px;}/* ── Portal shell (signed-in) ─────────────────────────────────── */@@ -170,13 +170,13 @@ header .logout-btn:hover,gap: 0;}-/* Identity bar */+/* Identity bar — tighter, no padding top */.portal-identity-bar {display: flex;align-items: baseline;gap: 8px;- padding: 20px 0 16px;- font-size: 14px;+ padding: 16px 0 12px;+ font-size: 13px;color: var(--ink-secondary);}@@ -197,7 +197,7 @@ header .logout-btn:hover,align-items: stretch;gap: 0;border-bottom: 1px solid var(--border);- margin-bottom: 24px;+ margin-bottom: 0;}.portal-tab {@@ -262,7 +262,9 @@ header .logout-btn:hover,display: none !important;}-.portal-content-panel { padding: 0; }+.portal-content-panel {+ padding: 20px 0 0;+}/* ── Section headers ──────────────────────────────────────────── */.portal-section-header {@@ -270,19 +272,26 @@ header .logout-btn:hover,align-items: center;justify-content: space-between;gap: 12px;- margin-bottom: 16px;+ margin-bottom: 12px;}.portal-section-header h3 {margin: 0;- font-size: 16px;+ font-size: 14px;font-weight: 600;}.portal-section-note {font-size: 13px;color: var(--ink-secondary);- margin-bottom: 16px;+ margin-bottom: 12px;+}++.portal-section-copy {+ font-size: 13px;+ color: var(--ink-secondary);+ margin: -4px 0 12px;+ line-height: 1.4;}/* ── Account surface ──────────────────────────────────────────── */@@ -293,8 +302,8 @@ header .logout-btn:hover,}.account-surface + .account-surface {- margin-top: 32px;- padding-top: 24px;+ margin-top: 24px;+ padding-top: 20px;border-top: 1px solid var(--border);}@@ -317,14 +326,19 @@ header .logout-btn:hover,}.workspace-list-toolbar {- display: none;+ display: flex;+ justify-content: flex-end;+ gap: 8px;+ padding: 8px 16px;+ border-bottom: 1px solid var(--border-muted);+ background: var(--bg-subtle);}.workspace-list-head {display: grid;- grid-template-columns: minmax(0, 2fr) 100px 100px 180px;+ grid-template-columns: minmax(0, 2fr) 80px 80px 160px;gap: 8px;- padding: 8px 16px;+ padding: 6px 16px;background: var(--bg-subtle);border-bottom: 1px solid var(--border);font-size: 12px;@@ -339,10 +353,10 @@ header .logout-btn:hover,.workspace-row {display: grid;- grid-template-columns: minmax(0, 2fr) 100px 100px 180px;+ grid-template-columns: minmax(0, 2fr) 80px 80px 160px;gap: 8px;align-items: center;- padding: 12px 16px;+ padding: 10px 16px;border-top: 1px solid var(--border-muted);background: var(--bg);transition: background 60ms ease;@@ -358,7 +372,7 @@ header .logout-btn:hover,.workspace-row-primary {display: flex;flex-direction: column;- gap: 2px;+ gap: 1px;min-width: 0;}@@ -406,7 +420,7 @@ header .logout-btn:hover,.workspace-actions {display: flex;align-items: center;- gap: 8px;+ gap: 6px;justify-content: flex-end;}@@ -416,7 +430,7 @@ header .logout-btn:hover,.badge {display: inline-flex;align-items: center;- padding: 2px 8px;+ padding: 1px 6px;border: 1px solid var(--border);border-radius: 2em;font-size: 12px;@@ -437,7 +451,7 @@ header .logout-btn:hover,.workspace-operations-shell {display: flex;flex-direction: column;- gap: 16px;+ gap: 12px;}.workspace-operations-detail { position: static; }@@ -704,19 +718,28 @@ header .logout-btn:hover,.access-roster.state-only { border: none; background: transparent; padding: 0; }+.access-roster-toolbar {+ display: flex;+ justify-content: flex-end;+ gap: 8px;+ padding: 8px 16px;+ background: var(--bg-subtle);+ border-bottom: 1px solid var(--border-muted);+}+.access-panel-heading {- padding: 12px 16px 8px;+ padding: 10px 16px 6px;}.access-panel-heading h4 {margin: 0;- font-size: 14px;+ font-size: 13px;font-weight: 600;}.access-panel-heading p {- margin: 4px 0 0;- font-size: 13px;+ margin: 2px 0 0;+ font-size: 12px;color: var(--ink-secondary);}@@ -731,7 +754,7 @@ header .logout-btn:hover,display: grid;grid-template-columns: minmax(0, 1fr) 140px 120px;gap: 12px;- padding: 8px 16px;+ padding: 6px 16px;background: var(--bg-subtle);border-bottom: 1px solid var(--border);font-size: 12px;@@ -746,7 +769,7 @@ header .logout-btn:hover,grid-template-columns: minmax(0, 1fr) 140px 120px;gap: 12px;align-items: center;- padding: 10px 16px;+ padding: 8px 16px;border-top: 1px solid var(--border-muted);}@@ -754,7 +777,7 @@ header .logout-btn:hover,.access-member-row:first-of-type { border-top: none; }.access-member-row:hover { background: var(--bg-subtle); }-.access-member-identity { display: flex; flex-direction: column; gap: 2px; min-width: 0; }+.access-member-identity { display: flex; flex-direction: column; gap: 1px; min-width: 0; }.access-member-topline { display: flex; align-items: center; gap: 8px; }.access-member-email { font-size: 14px; font-weight: 500; color: var(--ink); }.access-member-caption { font-size: 12px; color: var(--ink-muted); }@@ -778,7 +801,7 @@ header .logout-btn:hover,display: flex;flex-direction: column;gap: 4px;- padding: 24px 16px;+ padding: 20px 16px;color: var(--ink-secondary);}@@ -853,13 +876,13 @@ header .logout-btn:hover,border-radius: var(--radius);background: var(--bg);overflow: hidden;- margin-bottom: 16px;+ margin-bottom: 12px;}.billing-surface-block-empty { padding: 16px; }.billing-surface-header {- padding: 12px 16px 8px;+ padding: 10px 16px 6px;}.billing-surface-header h3 { margin: 0; font-size: 14px; font-weight: 600; }@@ -876,7 +899,7 @@ header .logout-btn:hover,grid-template-columns: minmax(0, 1fr) auto;gap: 12px;align-items: center;- padding: 12px 16px;+ padding: 10px 16px;border-top: 1px solid var(--border-muted);}@@ -892,32 +915,36 @@ header .logout-btn:hover,.billing-shell {display: flex;flex-direction: column;- gap: 16px;+ gap: 12px;}.billing-shell-main,.billing-shell-detail {display: flex;flex-direction: column;- gap: 8px;+ gap: 0;}-.billing-shell-main-head {- padding: 12px;- border: 1px solid var(--border-muted);+.billing-shell-main {+ border: 1px solid var(--border);border-radius: var(--radius);- background: var(--bg-subtle);+ overflow: hidden;+ background: var(--bg);+}++.billing-shell-main-head {+ padding: 10px 16px;+ border-bottom: 1px solid var(--border-muted);}.billing-shell-main-head h3 { margin: 0; font-size: 14px; font-weight: 600; }.billing-shell-main-head p { margin: 4px 0 0; font-size: 13px; color: var(--ink-secondary); }.billing-inline-support {- padding: 12px;- border: 1px solid var(--border-muted);- border-radius: var(--radius);- background: var(--bg-subtle);- margin-top: 8px;+ padding: 12px 16px;+ border-top: 1px solid var(--border-muted);+ background: transparent;+ margin-top: 0;}.billing-inline-support h4 { margin: 0; font-size: 14px; font-weight: 600; }@@ -1012,10 +1039,10 @@ header .logout-btn:hover,/* ── Support section ──────────────────────────────────────────── */.portal-support-panel {- border: 1px solid var(--border);- border-radius: var(--radius);- padding: 16px;- background: var(--bg);+ padding: 0;+ border: none;+ border-radius: 0;+ background: transparent;}.portal-support-panel h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }@@ -1024,14 +1051,21 @@ header .logout-btn:hover,.portal-support-simple-card { padding: 0; border: none; background: transparent; }-.portal-support-simple-list { display: flex; flex-direction: column; }+.portal-support-simple-list {+ display: flex;+ flex-direction: column;+ border: 1px solid var(--border);+ border-radius: var(--radius);+ overflow: hidden;+}.portal-support-simple-row {display: grid;- grid-template-columns: 140px minmax(0, 1fr);+ grid-template-columns: 120px minmax(0, 1fr);gap: 12px;- padding: 10px 0;+ padding: 8px 16px;border-top: 1px solid var(--border-muted);+ background: var(--bg);}.portal-support-simple-row:first-child { border-top: none; }@@ -1042,7 +1076,6 @@ header .logout-btn:hover,display: flex;gap: 8px;padding-top: 12px;- border-top: 1px solid var(--border-muted);}.portal-support-link { color: var(--accent); font-size: 13px; font-weight: 500; }@@ -1095,14 +1128,11 @@ header .logout-btn:hover,.overview-task-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }.overview-task-actions { display: flex; gap: 8px; margin-top: 4px; }+/* Remove kicker labels — they feel like a custom portal. Use section context instead. */.account-panel-kicker,.billing-card-kicker,.account-eyebrow {- font-size: 11px;- font-weight: 600;- letter-spacing: 0.03em;- color: var(--ink-muted);- text-transform: uppercase;+ display: none;}/* ── Empty state ──────────────────────────────────────────────── */@@ -1208,7 +1238,7 @@ header .logout-btn:hover,display: flex;flex-direction: column;gap: 4px;- margin-bottom: 16px;+ margin-bottom: 12px;}.portal-page-header h2 { margin: 0; font-size: 16px; font-weight: 600; }@@ -1276,7 +1306,7 @@ header .logout-btn:hover,/* ── Responsive ───────────────────────────────────────────────── */@media (max-width: 768px) {- .main { padding: 16px 16px 48px; }+ .main { padding: 0 16px 48px; }.portal-tab-bar { overflow-x: auto; scrollbar-width: none; gap: 0; }.portal-tab-bar::-webkit-scrollbar { display: none; }@@ -1306,7 +1336,7 @@ header .logout-btn:hover,@media (max-width: 480px) {header { padding: 0 12px; }- .main { padding: 12px 12px 40px; }+ .main { padding: 0 12px 40px; }.header-account-email { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.portal-identity-bar h2 { font-size: 16px; }}