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): densify team access console

rcourtmancc3b08b0fc9e
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.json
index 043a1b8731..75ee2f3400 100644
--- a/internal/cloudcp/portal/dist/build_manifest.json
+++ b/internal/cloudcp/portal/dist/build_manifest.json
@@ -1,5 +1,5 @@
{
- "source_hash": "c2e80ae3ffce514144cfb8c6a16fe50a1294976bbefa3192d202bf1eb448fc38",
+ "source_hash": "cc5e6e2e2b15520aa30d95476146f677ca43cfdaaa4ffce79a2f3d4ea99cb798",
"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 9d686487a9..c2183dd678 100644
--- a/internal/cloudcp/portal/dist/portal_app.css
+++ b/internal/cloudcp/portal/dist/portal_app.css
@@ -1450,27 +1450,29 @@ header .logout-btn:hover,
border-color: var(--accent);
}
.team-stat-card {
- min-width: 140px;
- padding: 12px 14px;
+ min-width: 0;
+ padding: 10px 12px;
border-radius: var(--radius-sm);
background: var(--panel-muted);
}
.team-management-stats {
- margin: 16px 0;
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 10px;
+ margin: 12px 0;
}
.team-stat-card {
- padding: 12px 14px;
border: 1px solid var(--line);
border-radius: 10px;
background: #fbfcfd;
}
.team-stat-value {
- margin-top: 8px;
- font-size: 24px;
+ margin-top: 6px;
+ font-size: 22px;
}
.team-management-grid {
display: grid;
- grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.92fr);
+ grid-template-columns: minmax(0, 1.82fr) minmax(292px, 0.84fr);
gap: 14px;
align-items: start;
}
@@ -1487,6 +1489,8 @@ header .logout-btn:hover,
display: flex;
flex-direction: column;
align-self: start;
+ position: sticky;
+ top: 14px;
}
.team-roster,
.team-invite-panel,
@@ -1496,6 +1500,9 @@ header .logout-btn:hover,
}
.team-roster {
align-self: start;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
}
.team-roster.state-only {
border: none;
@@ -1506,8 +1513,8 @@ header .logout-btn:hover,
.team-operations-panel {
display: flex;
flex-direction: column;
- gap: 14px;
- padding: 16px;
+ gap: 12px;
+ padding: 14px;
border: 1px solid var(--line);
border-radius: 12px;
}
@@ -1522,27 +1529,24 @@ header .logout-btn:hover,
background: var(--panel-muted);
padding: 14px;
}
-.team-review-desk {
+.team-review-strip {
display: flex;
flex-direction: column;
- gap: 14px;
- padding: 16px;
- border: 1px solid var(--line);
- border-radius: 12px;
- background: #fff;
+ gap: 10px;
+ padding-top: 2px;
}
.team-review-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
- gap: 12px;
+ gap: 10px;
}
.team-review-card {
display: flex;
flex-direction: column;
- gap: 8px;
- padding: 14px;
- border: 1px solid var(--line);
- border-radius: 12px;
+ gap: 6px;
+ padding: 12px;
+ border: 1px solid #dde5ef;
+ border-radius: 10px;
background: var(--panel-muted);
}
.team-review-card strong {
@@ -1556,7 +1560,7 @@ header .logout-btn:hover,
color: var(--ink-soft);
}
.team-panel-heading {
- margin-bottom: 12px;
+ margin-bottom: 10px;
}
.team-panel-heading-tight {
margin-bottom: 0;
@@ -1581,9 +1585,9 @@ header .logout-btn:hover,
}
.team-roster-head {
display: grid;
- grid-template-columns: minmax(0, 1fr) 156px 136px;
- gap: 16px;
- padding: 0 14px 8px;
+ grid-template-columns: minmax(0, 1fr) 142px 122px;
+ gap: 14px;
+ padding: 0 12px 8px;
border-bottom: 1px solid var(--line);
font-size: 11px;
font-weight: 800;
@@ -1593,10 +1597,10 @@ header .logout-btn:hover,
}
.team-member-row {
display: grid;
- grid-template-columns: minmax(0, 1fr) 156px 136px;
+ grid-template-columns: minmax(0, 1fr) 142px 122px;
align-items: center;
- gap: 12px;
- padding: 12px 14px 11px;
+ gap: 10px;
+ padding: 10px 12px;
border: none;
border-top: 1px solid var(--line);
background: #fff;
@@ -1610,7 +1614,7 @@ header .logout-btn:hover,
.team-member-identity {
display: flex;
flex-direction: column;
- gap: 6px;
+ gap: 4px;
min-width: 0;
}
.team-member-topline {
@@ -1626,8 +1630,8 @@ header .logout-btn:hover,
color: var(--ink);
}
.team-member-caption {
- font-size: 11px;
- line-height: 1.45;
+ font-size: 10px;
+ line-height: 1.4;
color: var(--ink-soft);
}
.team-control-cell {
@@ -1673,8 +1677,8 @@ header .logout-btn:hover,
.team-role-select {
width: 100%;
min-width: 0;
- min-height: 34px;
- padding-inline: 10px 28px;
+ min-height: 32px;
+ padding-inline: 9px 26px;
border-radius: 8px;
border: 1px solid var(--line-strong);
background: #fff;
@@ -2246,6 +2250,9 @@ header .logout-btn:hover,
.workspace-management-facts {
grid-template-columns: 1fr;
}
+ .team-side-column {
+ position: static;
+ }
.workspace-operations-shell-idle .workspace-management-empty-shell {
grid-template-columns: 1fr;
}
diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.js
index 9c0679c2ed..b15fa32084 100644
--- a/internal/cloudcp/portal/dist/portal_app.js
+++ b/internal/cloudcp/portal/dist/portal_app.js
@@ -1936,7 +1936,7 @@
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><div class="team-review-desk"><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 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>";
+ ]) + '</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>';
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.ts
index cd4e9b9864..515310daaa 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts
@@ -751,25 +751,25 @@ function renderAccountTeamSection(account: PortalAccountSummary): string {
'">' +
'<div class="team-list-message">Loading…</div>' +
'</div>' +
- '</div>' +
- '<div class="team-review-desk">' +
- '<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 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-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 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>' +
diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.css
index b5d5613c38..efd062734d 100644
--- a/internal/cloudcp/portal/frontend/src/styles.css
+++ b/internal/cloudcp/portal/frontend/src/styles.css
@@ -1644,31 +1644,33 @@ header .logout-btn:hover,
}
.team-stat-card {
- min-width: 140px;
- padding: 12px 14px;
+ min-width: 0;
+ padding: 10px 12px;
border-radius: var(--radius-sm);
background: var(--panel-muted);
}
.team-management-stats {
- margin: 16px 0;
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 10px;
+ margin: 12px 0;
}
.team-stat-card {
- padding: 12px 14px;
border: 1px solid var(--line);
border-radius: 10px;
background: #fbfcfd;
}
.team-stat-value {
- margin-top: 8px;
- font-size: 24px;
+ margin-top: 6px;
+ font-size: 22px;
}
.team-management-grid {
display: grid;
- grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.92fr);
+ grid-template-columns: minmax(0, 1.82fr) minmax(292px, 0.84fr);
gap: 14px;
align-items: start;
}
@@ -1688,6 +1690,8 @@ header .logout-btn:hover,
display: flex;
flex-direction: column;
align-self: start;
+ position: sticky;
+ top: 14px;
}
.team-roster,
@@ -1699,6 +1703,9 @@ header .logout-btn:hover,
.team-roster {
align-self: start;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
}
.team-roster.state-only {
@@ -1711,8 +1718,8 @@ header .logout-btn:hover,
.team-operations-panel {
display: flex;
flex-direction: column;
- gap: 14px;
- padding: 16px;
+ gap: 12px;
+ padding: 14px;
border: 1px solid var(--line);
border-radius: 12px;
}
@@ -1730,29 +1737,26 @@ header .logout-btn:hover,
padding: 14px;
}
-.team-review-desk {
+.team-review-strip {
display: flex;
flex-direction: column;
- gap: 14px;
- padding: 16px;
- border: 1px solid var(--line);
- border-radius: 12px;
- background: #fff;
+ gap: 10px;
+ padding-top: 2px;
}
.team-review-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
- gap: 12px;
+ gap: 10px;
}
.team-review-card {
display: flex;
flex-direction: column;
- gap: 8px;
- padding: 14px;
- border: 1px solid var(--line);
- border-radius: 12px;
+ gap: 6px;
+ padding: 12px;
+ border: 1px solid #dde5ef;
+ border-radius: 10px;
background: var(--panel-muted);
}
@@ -1769,7 +1773,7 @@ header .logout-btn:hover,
}
.team-panel-heading {
- margin-bottom: 12px;
+ margin-bottom: 10px;
}
.team-panel-heading-tight {
@@ -1799,9 +1803,9 @@ header .logout-btn:hover,
.team-roster-head {
display: grid;
- grid-template-columns: minmax(0, 1fr) 156px 136px;
- gap: 16px;
- padding: 0 14px 8px;
+ grid-template-columns: minmax(0, 1fr) 142px 122px;
+ gap: 14px;
+ padding: 0 12px 8px;
border-bottom: 1px solid var(--line);
font-size: 11px;
font-weight: 800;
@@ -1812,10 +1816,10 @@ header .logout-btn:hover,
.team-member-row {
display: grid;
- grid-template-columns: minmax(0, 1fr) 156px 136px;
+ grid-template-columns: minmax(0, 1fr) 142px 122px;
align-items: center;
- gap: 12px;
- padding: 12px 14px 11px;
+ gap: 10px;
+ padding: 10px 12px;
border: none;
border-top: 1px solid var(--line);
background: #fff;
@@ -1832,7 +1836,7 @@ header .logout-btn:hover,
.team-member-identity {
display: flex;
flex-direction: column;
- gap: 6px;
+ gap: 4px;
min-width: 0;
}
@@ -1851,8 +1855,8 @@ header .logout-btn:hover,
}
.team-member-caption {
- font-size: 11px;
- line-height: 1.45;
+ font-size: 10px;
+ line-height: 1.4;
color: var(--ink-soft);
}
@@ -1904,8 +1908,8 @@ header .logout-btn:hover,
.team-role-select {
width: 100%;
min-width: 0;
- min-height: 34px;
- padding-inline: 10px 28px;
+ min-height: 32px;
+ padding-inline: 9px 26px;
border-radius: 8px;
border: 1px solid var(--line-strong);
background: #fff;
@@ -2563,6 +2567,10 @@ header .logout-btn:hover,
grid-template-columns: 1fr;
}
+ .team-side-column {
+ position: static;
+ }
+
.workspace-operations-shell-idle .workspace-management-empty-shell {
grid-template-columns: 1fr;
}