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): add team access review desk

rcourtman4aad3c0da369
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.json
index d3c3c17af4..ed04586d25 100644
--- a/internal/cloudcp/portal/dist/build_manifest.json
+++ b/internal/cloudcp/portal/dist/build_manifest.json
@@ -1,5 +1,5 @@
{
- "source_hash": "ab7484d29d69259f54e8ec2cc4f57534255bf893963611f0f358809ff4ea33c6",
+ "source_hash": "047990eb1f155757b8fa9c5b4f136fd0fa7a39e73920a3914b0ca1dbe5d03ddf",
"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 84e0cc78e5..b5c094d03c 100644
--- a/internal/cloudcp/portal/dist/portal_app.css
+++ b/internal/cloudcp/portal/dist/portal_app.css
@@ -1325,6 +1325,12 @@ header .logout-btn:hover,
gap: 14px;
align-items: start;
}
+.team-roster-column {
+ display: flex;
+ flex-direction: column;
+ gap: 14px;
+ min-width: 0;
+}
.team-management-panel {
box-shadow: var(--shadow-sm);
}
@@ -1367,6 +1373,39 @@ header .logout-btn:hover,
background: var(--panel-muted);
padding: 14px;
}
+.team-review-desk {
+ display: flex;
+ flex-direction: column;
+ gap: 14px;
+ padding: 16px;
+ border: 1px solid var(--line);
+ border-radius: 12px;
+ background: #fff;
+}
+.team-review-grid {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 12px;
+}
+.team-review-card {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ padding: 14px;
+ border: 1px solid var(--line);
+ border-radius: 12px;
+ background: var(--panel-muted);
+}
+.team-review-card strong {
+ font-size: 13px;
+ line-height: 1.25;
+ color: var(--ink);
+}
+.team-review-card span {
+ font-size: 12px;
+ line-height: 1.55;
+ color: var(--ink-soft);
+}
.team-panel-heading {
margin-bottom: 12px;
}
@@ -1999,6 +2038,7 @@ header .logout-btn:hover,
@media (max-width: 1180px) {
.account-management-grid,
.team-management-grid,
+ .team-review-grid,
.account-overview-secondary,
.account-overview-card,
.service-shell,
diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.js
index ee078f146d..0da1b97eb8 100644
--- a/internal/cloudcp/portal/dist/portal_app.js
+++ b/internal/cloudcp/portal/dist/portal_app.js
@@ -1858,7 +1858,7 @@
}
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></div><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="workspaces">Done</button></div><div class="team-management-stats" id="team-stats-' + escapeAttr(account.id) + '"></div><div class="team-management-grid"><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-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>";
+ 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></div><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="workspaces">Done</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>";
}
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><div class="portal-support-card-grid"><div class="portal-support-card"><h3>Account support</h3><p>For access, tenant handoff, team, and billing issues, contact the hosted operations desk.</p><a class="portal-support-link" href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + '</a></div><div class="portal-support-card"><h3>Commercial services</h3><p>Self-hosted subscriptions, license recovery, refunds, and privacy requests all route through the same account surface.</p><button type="button" class="btn-secondary" data-shell-action="activate-section" data-shell-section="services">Open account services</button></div></div></section>';
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.ts
index 6424152481..aed9ee9f3c 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts
@@ -179,6 +179,9 @@ describe('shell view', function() {
expect(html).toContain('Team management');
expect(html).toContain('Invite someone new');
expect(html).toContain('Access model');
+ expect(html).toContain('Review desk');
+ expect(html).toContain('Keep access disciplined');
+ expect(html).toContain('Owners stay rare');
expect(html).toContain('Workspace operations without billing ownership.');
expect(html).toContain('People on this account');
expect(html).toContain('data-action="workspace-action"');
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.ts
index 77ac9da5ec..56cc5ce7e6 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts
@@ -647,15 +647,38 @@ function renderAccountTeamSection(account: PortalAccountSummary): string {
escapeAttr(account.id) +
'"></div>' +
'<div class="team-management-grid">' +
- '<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 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…</div>' +
+ '</div>' +
'</div>' +
- '<div class="team-roster-list" id="team-list-' +
- escapeAttr(account.id) +
- '">' +
- '<div class="team-list-message">Loading…</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">' +
diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.css
index 6ee0d05c3d..86db7aea7a 100644
--- a/internal/cloudcp/portal/frontend/src/styles.css
+++ b/internal/cloudcp/portal/frontend/src/styles.css
@@ -1482,6 +1482,13 @@ header .logout-btn:hover,
align-items: start;
}
+.team-roster-column {
+ display: flex;
+ flex-direction: column;
+ gap: 14px;
+ min-width: 0;
+}
+
.team-management-panel {
box-shadow: var(--shadow-sm);
}
@@ -1532,6 +1539,44 @@ header .logout-btn:hover,
padding: 14px;
}
+.team-review-desk {
+ display: flex;
+ flex-direction: column;
+ gap: 14px;
+ padding: 16px;
+ border: 1px solid var(--line);
+ border-radius: 12px;
+ background: #fff;
+}
+
+.team-review-grid {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 12px;
+}
+
+.team-review-card {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ padding: 14px;
+ border: 1px solid var(--line);
+ border-radius: 12px;
+ background: var(--panel-muted);
+}
+
+.team-review-card strong {
+ font-size: 13px;
+ line-height: 1.25;
+ color: var(--ink);
+}
+
+.team-review-card span {
+ font-size: 12px;
+ line-height: 1.55;
+ color: var(--ink-soft);
+}
+
.team-panel-heading {
margin-bottom: 12px;
}
@@ -2259,6 +2304,7 @@ header .logout-btn:hover,
@media (max-width: 1180px) {
.account-management-grid,
.team-management-grid,
+ .team-review-grid,
.account-overview-secondary,
.account-overview-card,
.service-shell,