Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

style(portal): tighten service and support desks

rcourtman07fead5d6db7
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.json
index 001b009e6d..78ae80bce3 100644
--- a/internal/cloudcp/portal/dist/build_manifest.json
+++ b/internal/cloudcp/portal/dist/build_manifest.json
@@ -1,5 +1,5 @@
{
- "source_hash": "3137eb659c3ae6edbc58ff2b2fe53da1aad36bbb3332af14220daa64eb43b0af",
+ "source_hash": "806a127c6c783dabd9816a07fbb71135291e7ef266fdb72fbddc7b8eb1c71c47",
"build_inputs": [
"package.json",
"tsconfig.json",
diff --git a/internal/cloudcp/portal/dist/portal_app.css b/internal/cloudcp/portal/dist/portal_app.css
index 11d50678dd..8864139624 100644
--- a/internal/cloudcp/portal/dist/portal_app.css
+++ b/internal/cloudcp/portal/dist/portal_app.css
@@ -910,12 +910,12 @@ header .logout-btn:hover,
}
.portal-support-card-grid {
display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
+ grid-template-columns: 1fr;
gap: 14px;
}
.portal-support-layout {
display: grid;
- grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.88fr);
+ grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
gap: 14px;
margin-top: 18px;
}
@@ -1828,21 +1828,20 @@ header .logout-btn:hover,
line-height: 1.6;
color: var(--ink-soft);
}
-.service-empty-command-grid {
- display: grid;
- grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
- gap: 10px;
+.service-empty-stack {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
margin-top: 12px;
}
-.service-empty-command-card {
+.service-empty-section {
display: flex;
flex-direction: column;
- gap: 8px;
- padding: 10px 0 10px 12px;
- border: none;
- border-left: 2px solid #dbe5ee;
- border-radius: 0;
- background: transparent;
+ gap: 10px;
+ padding: 12px;
+ border: 1px solid var(--line);
+ border-radius: 12px;
+ background: #fbfcfd;
}
.service-empty-column-title {
font-size: 12px;
@@ -1946,13 +1945,6 @@ header .logout-btn:hover,
.service-empty-points-stack {
grid-template-columns: 1fr;
}
-.service-empty-command-card-wide {
- grid-column: 2;
- background: #fff;
-}
-.service-empty-command-card-support {
- grid-column: 1 / -1;
-}
.service-empty-support {
margin-top: 2px;
font-size: 13px;
@@ -2011,9 +2003,9 @@ header .logout-btn:hover,
color: var(--ink-soft);
}
.service-empty-flow-list {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 10px;
+ display: flex;
+ flex-direction: column;
+ gap: 0;
}
.service-empty-flow {
display: flex;
@@ -2024,7 +2016,7 @@ header .logout-btn:hover,
border-left: 2px solid #dbe5ee;
background: transparent;
}
-.service-empty-flow:nth-child(-n+2) {
+.service-empty-flow:first-child {
border-top: none;
padding-top: 0;
}
diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.js
index 64a66503bb..63d26392fe 100644
--- a/internal/cloudcp/portal/dist/portal_app.js
+++ b/internal/cloudcp/portal/dist/portal_app.js
@@ -1947,7 +1947,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 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>";
+ ]) + '</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-stack"><div class="service-empty-section"><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-section"><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-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.ts b/internal/cloudcp/portal/frontend/src/shell_view.ts
index 552afe6272..37570649fd 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts
@@ -951,15 +951,15 @@ export function renderAuthenticatedPortalHTML(context: ShellViewContext): string
'<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-stack">' +
+ '<div class="service-empty-section">' +
'<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-section">' +
'<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>' +
@@ -968,7 +968,7 @@ export function renderAuthenticatedPortalHTML(context: ShellViewContext): string
'<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-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>' +
diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.css
index 62b57645f8..f32933615d 100644
--- a/internal/cloudcp/portal/frontend/src/styles.css
+++ b/internal/cloudcp/portal/frontend/src/styles.css
@@ -1021,13 +1021,13 @@ header .logout-btn:hover,
.portal-support-card-grid {
display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
+ grid-template-columns: 1fr;
gap: 14px;
}
.portal-support-layout {
display: grid;
- grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.88fr);
+ grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
gap: 14px;
margin-top: 18px;
}
@@ -2079,22 +2079,21 @@ header .logout-btn:hover,
color: var(--ink-soft);
}
-.service-empty-command-grid {
- display: grid;
- grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
- gap: 10px;
+.service-empty-stack {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
margin-top: 12px;
}
-.service-empty-command-card {
+.service-empty-section {
display: flex;
flex-direction: column;
- gap: 8px;
- padding: 10px 0 10px 12px;
- border: none;
- border-left: 2px solid #dbe5ee;
- border-radius: 0;
- background: transparent;
+ gap: 10px;
+ padding: 12px;
+ border: 1px solid var(--line);
+ border-radius: 12px;
+ background: #fbfcfd;
}
.service-empty-column-title {
@@ -2214,15 +2213,6 @@ header .logout-btn:hover,
grid-template-columns: 1fr;
}
-.service-empty-command-card-wide {
- grid-column: 2;
- background: #fff;
-}
-
-.service-empty-command-card-support {
- grid-column: 1 / -1;
-}
-
.service-empty-support {
margin-top: 2px;
font-size: 13px;
@@ -2291,9 +2281,9 @@ header .logout-btn:hover,
}
.service-empty-flow-list {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 10px;
+ display: flex;
+ flex-direction: column;
+ gap: 0;
}
.service-empty-flow {
@@ -2306,7 +2296,7 @@ header .logout-btn:hover,
background: transparent;
}
-.service-empty-flow:nth-child(-n+2) {
+.service-empty-flow:first-child {
border-top: none;
padding-top: 0;
}