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 workspace desk guidance

rcourtman7ef6f8317a70
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.json
index 256b4993a1..732a3460e6 100644
--- a/internal/cloudcp/portal/dist/build_manifest.json
+++ b/internal/cloudcp/portal/dist/build_manifest.json
@@ -1,5 +1,5 @@
{
- "source_hash": "9b1b57e47b1f12d0975190928ace23fbe6d9c7c3d443bba3518eafd41e506c8c",
+ "source_hash": "a54aff5e30ab68f62a490801126c76f45c1fd8c84398e43f590f3964a50a6b12",
"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 406f3600d7..2833f7d283 100644
--- a/internal/cloudcp/portal/dist/portal_app.css
+++ b/internal/cloudcp/portal/dist/portal_app.css
@@ -912,9 +912,9 @@ header .logout-btn:hover,
}
.workspace-list-summary {
font-size: 13px;
- line-height: 1.55;
+ line-height: 1.45;
color: var(--ink-soft);
- max-width: 720px;
+ max-width: 560px;
}
.workspace-list-stats {
display: flex;
@@ -1084,18 +1084,18 @@ header .logout-btn:hover,
gap: 16px;
}
.workspace-management-empty {
- margin-top: 16px;
+ margin-top: 14px;
display: flex;
flex-direction: column;
- gap: 10px;
- padding: 12px;
+ gap: 8px;
+ padding: 10px;
border-radius: var(--radius-sm);
background: #f7fafc;
color: var(--ink-soft);
}
.workspace-management-empty-copy {
- font-size: 14px;
- line-height: 1.5;
+ font-size: 13px;
+ line-height: 1.45;
color: var(--ink);
}
.workspace-management-empty-grid {
@@ -1106,8 +1106,8 @@ header .logout-btn:hover,
.workspace-management-empty-card {
display: flex;
flex-direction: column;
- gap: 8px;
- padding: 11px;
+ gap: 7px;
+ padding: 10px;
border: 1px solid var(--line);
border-radius: 10px;
background: #fff;
@@ -1120,8 +1120,8 @@ header .logout-btn:hover,
}
.workspace-management-empty-card p {
margin: 0;
- font-size: 13px;
- line-height: 1.55;
+ font-size: 12px;
+ line-height: 1.45;
color: var(--ink-soft);
}
.workspace-management-empty-card-muted {
@@ -1146,7 +1146,7 @@ header .logout-btn:hover,
display: flex;
flex-direction: column;
gap: 4px;
- padding: 10px 11px;
+ padding: 9px 10px;
border: 1px solid var(--line);
border-radius: 10px;
background: rgba(255, 255, 255, 0.78);
@@ -1158,7 +1158,7 @@ header .logout-btn:hover,
}
.workspace-management-empty-check span {
font-size: 12px;
- line-height: 1.5;
+ line-height: 1.4;
color: var(--ink-soft);
}
.workspace-management-empty-actions {
diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.js
index 201c1053f6..327b715706 100644
--- a/internal/cloudcp/portal/dist/portal_app.js
+++ b/internal/cloudcp/portal/dist/portal_app.js
@@ -1885,12 +1885,12 @@
workspaceDeskActions += '<button type="button" class="btn-secondary btn-compact" data-action="open-billing" data-account-id="' + escapeAttr(account.id) + '">Manage billing</button>';
}
workspaceDeskActions += '<button type="button" class="btn-secondary btn-compact" data-action="toggle-team" data-account-id="' + escapeAttr(account.id) + '" data-shell-target="team">Manage team</button>';
- workspaceManagement = '<section class="workspace-management-panel" id="workspace-management-' + escapeAttr(account.id) + '"><div class="workspace-management-header"><div><div class="account-panel-kicker">Workspace management</div><h3>Workspace desk</h3><p>Select one workspace from the fleet to inspect posture, lifecycle, and the next explicit operator action.</p></div><button type="button" class="btn-secondary btn-compact" id="workspace-management-close-' + escapeAttr(account.id) + '" data-action="clear-workspace-selection" data-account-id="' + escapeAttr(account.id) + '">Close desk</button></div><div class="workspace-management-empty" id="workspace-management-empty-' + escapeAttr(account.id) + '"><div class="workspace-management-empty-copy">No workspace selected yet.</div><div class="workspace-management-empty-grid"><div class="workspace-management-empty-card"><div class="account-panel-kicker">Account actions</div><h4>Keep account-wide actions separate</h4><p>Billing, team, and workspace creation stay account-wide even when you are focused on one workspace.</p><div class="workspace-management-empty-actions">' + workspaceDeskActions + "</div>" + addWorkspaceForm + '</div><div class="workspace-management-empty-card workspace-management-empty-card-muted"><div class="account-panel-kicker">When you pick a workspace</div><div class="workspace-management-empty-checklist"><div class="workspace-management-empty-check"><strong>Inspect posture</strong><span>Load the workspace first, then decide whether it is routine work, review work, or a parked suspended system.</span></div><div class="workspace-management-empty-check"><strong>Confirm lifecycle</strong><span>Check whether the workspace is active, checking, failed, or suspended before taking the next action.</span></div><div class="workspace-management-empty-check"><strong>Then act deliberately</strong><span>Use the desk to manage one workspace at a time instead of mixing account-wide actions into the same flow.</span></div></div></div></div></div><div class="workspace-management-content" id="workspace-management-content-' + escapeAttr(account.id) + '" hidden><div class="workspace-management-meta" id="workspace-management-meta-' + escapeAttr(account.id) + '"></div><h4 id="workspace-management-title-' + escapeAttr(account.id) + '"></h4><p class="workspace-management-summary" id="workspace-management-summary-' + escapeAttr(account.id) + '"></p><div class="workspace-management-facts"><div class="workspace-management-fact"><span>Health</span><strong id="workspace-management-health-' + escapeAttr(account.id) + '"></strong></div><div class="workspace-management-fact"><span>Lifecycle</span><strong id="workspace-management-lifecycle-' + escapeAttr(account.id) + '"></strong></div><div class="workspace-management-fact"><span>Created</span><strong id="workspace-management-created-' + escapeAttr(account.id) + '"></strong></div></div><div class="workspace-management-guidance" id="workspace-management-guidance-' + escapeAttr(account.id) + '"></div><div class="workspace-management-actions"><button type="button" class="btn-danger" id="workspace-management-action-' + escapeAttr(account.id) + '" data-action="workspace-action" data-account-id="' + escapeAttr(account.id) + '">Manage workspace</button></div></div></section>';
+ workspaceManagement = '<section class="workspace-management-panel" id="workspace-management-' + escapeAttr(account.id) + '"><div class="workspace-management-header"><div><div class="account-panel-kicker">Workspace management</div><h3>Workspace desk</h3><p>Inspect one workspace at a time and keep account-level actions separate.</p></div><button type="button" class="btn-secondary btn-compact" id="workspace-management-close-' + escapeAttr(account.id) + '" data-action="clear-workspace-selection" data-account-id="' + escapeAttr(account.id) + '">Close desk</button></div><div class="workspace-management-empty" id="workspace-management-empty-' + escapeAttr(account.id) + '"><div class="workspace-management-empty-copy">Pick a workspace from the fleet, or use the account actions here.</div><div class="workspace-management-empty-grid"><div class="workspace-management-empty-card"><div class="account-panel-kicker">Account actions</div><h4>Account-wide actions stay here</h4><p>Create workspaces, manage billing, and change team access outside the row flow.</p><div class="workspace-management-empty-actions">' + workspaceDeskActions + "</div>" + addWorkspaceForm + '</div><div class="workspace-management-empty-card workspace-management-empty-card-muted"><div class="account-panel-kicker">Before you act</div><div class="workspace-management-empty-checklist"><div class="workspace-management-empty-check"><strong>Inspect posture</strong><span>Open the workspace first and confirm whether it is routine work, review work, or a parked suspended system.</span></div><div class="workspace-management-empty-check"><strong>Confirm lifecycle</strong><span>Check active, checking, failed, or suspended state before you take the next step.</span></div><div class="workspace-management-empty-check"><strong>Stay deliberate</strong><span>Use the desk for one workspace at a time instead of mixing fleet and account actions together.</span></div></div></div></div></div><div class="workspace-management-content" id="workspace-management-content-' + escapeAttr(account.id) + '" hidden><div class="workspace-management-meta" id="workspace-management-meta-' + escapeAttr(account.id) + '"></div><h4 id="workspace-management-title-' + escapeAttr(account.id) + '"></h4><p class="workspace-management-summary" id="workspace-management-summary-' + escapeAttr(account.id) + '"></p><div class="workspace-management-facts"><div class="workspace-management-fact"><span>Health</span><strong id="workspace-management-health-' + escapeAttr(account.id) + '"></strong></div><div class="workspace-management-fact"><span>Lifecycle</span><strong id="workspace-management-lifecycle-' + escapeAttr(account.id) + '"></strong></div><div class="workspace-management-fact"><span>Created</span><strong id="workspace-management-created-' + escapeAttr(account.id) + '"></strong></div></div><div class="workspace-management-guidance" id="workspace-management-guidance-' + escapeAttr(account.id) + '"></div><div class="workspace-management-actions"><button type="button" class="btn-danger" id="workspace-management-action-' + escapeAttr(account.id) + '" data-action="workspace-action" data-account-id="' + escapeAttr(account.id) + '">Manage workspace</button></div></div></section>';
}
- var workspaceHTML = workspaces.length ? '<div class="workspace-list-wrap"><div class="workspace-list-toolbar"><div class="workspace-list-summary">Review the hosted fleet, open a workspace, and keep lifecycle actions explicit.</div><div class="workspace-list-stats"><span class="workspace-list-stat"><strong>' + String(workspaces.length) + '</strong> total</span><span class="workspace-list-stat"><strong>' + String(readyCount) + '</strong> ready</span><span class="workspace-list-stat"><strong>' + String(checkingCount) + '</strong> checking</span><span class="workspace-list-stat workspace-list-stat-attention"><strong>' + String(unhealthyCount) + '</strong> needs attention</span><span class="workspace-list-stat"><strong>' + String(suspendedCount) + '</strong> suspended</span></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) {
+ var workspaceHTML = workspaces.length ? '<div class="workspace-list-wrap"><div class="workspace-list-toolbar"><div class="workspace-list-summary">Open a workspace for operator work, or use the desk for account-level actions.</div><div class="workspace-list-stats"><span class="workspace-list-stat"><strong>' + String(workspaces.length) + '</strong> total</span><span class="workspace-list-stat"><strong>' + String(readyCount) + '</strong> ready</span><span class="workspace-list-stat"><strong>' + String(checkingCount) + '</strong> checking</span><span class="workspace-list-stat workspace-list-stat-attention"><strong>' + String(unhealthyCount) + '</strong> needs attention</span><span class="workspace-list-stat"><strong>' + String(suspendedCount) + '</strong> suspended</span></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>No hosted workspaces yet. Create one to get started.</p></div>';
- return '<section class="account-content-panel account-content-panel-workspaces"><div class="account-stage-header"><div class="account-stage-header-row"><div><div class="account-panel-kicker">Workspace fleet</div><h3>Hosted fleet</h3><p>Use the fleet view to open workspaces, watch health posture, and keep management actions explicit.</p></div><div class="account-stage-header-actions">' + workspaceHeaderActions + '</div></div></div><div class="workspace-operations-shell"><div class="workspace-operations-main">' + workspaceHTML + '</div><div class="workspace-operations-detail">' + workspaceManagement + "</div></div></section>";
+ return '<section class="account-content-panel account-content-panel-workspaces"><div class="account-stage-header"><div class="account-stage-header-row"><div><div class="account-panel-kicker">Workspace fleet</div><h3>Hosted fleet</h3><p>Open workspaces, review posture, and keep lifecycle actions explicit.</p></div><div class="account-stage-header-actions">' + workspaceHeaderActions + '</div></div></div><div class="workspace-operations-shell"><div class="workspace-operations-main">' + workspaceHTML + '</div><div class="workspace-operations-detail">' + workspaceManagement + "</div></div></section>";
}
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>';
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.ts
index 290d452624..5fa0e70edd 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts
@@ -171,11 +171,11 @@ describe('shell view', function() {
expect(html).toContain('data-action="select-workspace"');
expect(html).toContain('Workspace management');
expect(html).toContain('Workspace desk');
- expect(html).toContain('No workspace selected yet.');
- expect(html).toContain('Keep account-wide actions separate');
- expect(html).toContain('When you pick a workspace');
+ expect(html).toContain('Pick a workspace from the fleet, or use the account actions here.');
+ expect(html).toContain('Account-wide actions stay here');
+ expect(html).toContain('Before you act');
expect(html).toContain('Inspect posture');
- expect(html).toContain('Then act deliberately');
+ expect(html).toContain('Stay deliberate');
expect(html.indexOf('id="add-ws-form-acct_1"')).toBeGreaterThan(html.indexOf('Workspace management'));
expect(html.indexOf('id="add-ws-form-acct_1"')).toBeGreaterThan(html.indexOf('Keep account-wide actions separate'));
expect(html).toContain('data-action="clear-workspace-selection"');
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.ts
index 92629ecb52..6a58fb96be 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts
@@ -533,7 +533,7 @@ function renderAccountWorkspaceSection(account: PortalAccountSummary, accountAPI
'<div>' +
'<div class="account-panel-kicker">Workspace management</div>' +
'<h3>Workspace desk</h3>' +
- '<p>Select one workspace from the fleet to inspect posture, lifecycle, and the next explicit operator action.</p>' +
+ '<p>Inspect one workspace at a time and keep account-level actions separate.</p>' +
'</div>' +
'<button type="button" class="btn-secondary btn-compact" id="workspace-management-close-' +
escapeAttr(account.id) +
@@ -544,21 +544,21 @@ function renderAccountWorkspaceSection(account: PortalAccountSummary, accountAPI
'<div class="workspace-management-empty" id="workspace-management-empty-' +
escapeAttr(account.id) +
'">' +
- '<div class="workspace-management-empty-copy">No workspace selected yet.</div>' +
+ '<div class="workspace-management-empty-copy">Pick a workspace from the fleet, or use the account actions here.</div>' +
'<div class="workspace-management-empty-grid">' +
'<div class="workspace-management-empty-card">' +
'<div class="account-panel-kicker">Account actions</div>' +
- '<h4>Keep account-wide actions separate</h4>' +
- '<p>Billing, team, and workspace creation stay account-wide even when you are focused on one workspace.</p>' +
+ '<h4>Account-wide actions stay here</h4>' +
+ '<p>Create workspaces, manage billing, and change team access outside the row flow.</p>' +
'<div class="workspace-management-empty-actions">' + workspaceDeskActions + '</div>' +
addWorkspaceForm +
'</div>' +
'<div class="workspace-management-empty-card workspace-management-empty-card-muted">' +
- '<div class="account-panel-kicker">When you pick a workspace</div>' +
+ '<div class="account-panel-kicker">Before you act</div>' +
'<div class="workspace-management-empty-checklist">' +
- '<div class="workspace-management-empty-check"><strong>Inspect posture</strong><span>Load the workspace first, then decide whether it is routine work, review work, or a parked suspended system.</span></div>' +
- '<div class="workspace-management-empty-check"><strong>Confirm lifecycle</strong><span>Check whether the workspace is active, checking, failed, or suspended before taking the next action.</span></div>' +
- '<div class="workspace-management-empty-check"><strong>Then act deliberately</strong><span>Use the desk to manage one workspace at a time instead of mixing account-wide actions into the same flow.</span></div>' +
+ '<div class="workspace-management-empty-check"><strong>Inspect posture</strong><span>Open the workspace first and confirm whether it is routine work, review work, or a parked suspended system.</span></div>' +
+ '<div class="workspace-management-empty-check"><strong>Confirm lifecycle</strong><span>Check active, checking, failed, or suspended state before you take the next step.</span></div>' +
+ '<div class="workspace-management-empty-check"><strong>Stay deliberate</strong><span>Use the desk for one workspace at a time instead of mixing fleet and account actions together.</span></div>' +
'</div>' +
'</div>' +
'</div>' +
@@ -607,7 +607,7 @@ function renderAccountWorkspaceSection(account: PortalAccountSummary, accountAPI
var workspaceHTML = workspaces.length
? '<div class="workspace-list-wrap">' +
'<div class="workspace-list-toolbar">' +
- '<div class="workspace-list-summary">Review the hosted fleet, open a workspace, and keep lifecycle actions explicit.</div>' +
+ '<div class="workspace-list-summary">Open a workspace for operator work, or use the desk for account-level actions.</div>' +
'<div class="workspace-list-stats">' +
'<span class="workspace-list-stat"><strong>' + String(workspaces.length) + '</strong> total</span>' +
'<span class="workspace-list-stat"><strong>' + String(readyCount) + '</strong> ready</span>' +
@@ -635,7 +635,7 @@ function renderAccountWorkspaceSection(account: PortalAccountSummary, accountAPI
'<div>' +
'<div class="account-panel-kicker">Workspace fleet</div>' +
'<h3>Hosted fleet</h3>' +
- '<p>Use the fleet view to open workspaces, watch health posture, and keep management actions explicit.</p>' +
+ '<p>Open workspaces, review posture, and keep lifecycle actions explicit.</p>' +
'</div>' +
'<div class="account-stage-header-actions">' + workspaceHeaderActions + '</div>' +
'</div>' +
diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.css
index e136caed93..6cc4e5fbd2 100644
--- a/internal/cloudcp/portal/frontend/src/styles.css
+++ b/internal/cloudcp/portal/frontend/src/styles.css
@@ -1028,9 +1028,9 @@ header .logout-btn:hover,
.workspace-list-summary {
font-size: 13px;
- line-height: 1.55;
+ line-height: 1.45;
color: var(--ink-soft);
- max-width: 720px;
+ max-width: 560px;
}
.workspace-list-stats {
@@ -1228,19 +1228,19 @@ header .logout-btn:hover,
}
.workspace-management-empty {
- margin-top: 16px;
+ margin-top: 14px;
display: flex;
flex-direction: column;
- gap: 10px;
- padding: 12px;
+ gap: 8px;
+ padding: 10px;
border-radius: var(--radius-sm);
background: #f7fafc;
color: var(--ink-soft);
}
.workspace-management-empty-copy {
- font-size: 14px;
- line-height: 1.5;
+ font-size: 13px;
+ line-height: 1.45;
color: var(--ink);
}
@@ -1253,8 +1253,8 @@ header .logout-btn:hover,
.workspace-management-empty-card {
display: flex;
flex-direction: column;
- gap: 8px;
- padding: 11px;
+ gap: 7px;
+ padding: 10px;
border: 1px solid var(--line);
border-radius: 10px;
background: #fff;
@@ -1269,8 +1269,8 @@ header .logout-btn:hover,
.workspace-management-empty-card p {
margin: 0;
- font-size: 13px;
- line-height: 1.55;
+ font-size: 12px;
+ line-height: 1.45;
color: var(--ink-soft);
}
@@ -1299,7 +1299,7 @@ header .logout-btn:hover,
display: flex;
flex-direction: column;
gap: 4px;
- padding: 10px 11px;
+ padding: 9px 10px;
border: 1px solid var(--line);
border-radius: 10px;
background: rgba(255, 255, 255, 0.78);
@@ -1313,7 +1313,7 @@ header .logout-btn:hover,
.workspace-management-empty-check span {
font-size: 12px;
- line-height: 1.5;
+ line-height: 1.4;
color: var(--ink-soft);
}