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): force explicit inline layout for workspace actions

rcourtman74ed96964439
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index c5b9fdfb1f..1a769e370e 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -195,13 +195,13 @@ Own canonical runtime payload shapes between backend and frontend.
3. Route runtime changes through the explicit API-contract proof policies in `registry.json`; default fallback proof routing is not allowed
4. Update this contract when canonical payload ownership changes
5. Keep `/api/resources` policy metadata aligned across backend payload tests and canonical frontend resource consumers whenever sensitivity or routing fields change
-6. Keep Patrol status payloads explicit enough that the frontend can present blocked runtime state without treating a previously healthy summary snapshot as current runtime truth
+6. Keep Patrol status payloads explicit enough that the frontend can present blocked runtime state without treating a previously healthy summary snapshot as current runtime truth, and keep Patrol recency semantics explicit in transport by reserving `last_patrol_at` for completed full patrols while exposing any Patrol activity separately through `last_activity_at`
7. Keep Patrol summary payload consumers aligned on one assessment hierarchy: transport-driven Patrol summary surfaces may show supporting counts and outcomes, but the canonical assessment and verification states must remain singular and not be repeated as a second compact verdict strip
8. Treat Patrol summary supporting metrics as readouts, not reinterpretations: when frontend consumers derive cards such as active findings, criticals, warnings, or fixes from the canonical payloads, those cards must stay numeric and must not synthesize new assessment labels like `Issues detected` or verification labels like `Partial verification` beneath the primary summary contract
9. Treat active Patrol runtime transport as compatible with factual activity surfaces: when the runtime is currently running, frontend consumers may surface in-progress activity context, but they must not replace the activity strip with a second assessment verdict derived from runtime state alone
10. Treat Patrol recency as a singular transport-driven fact: once header metadata, verification copy, or the findings footer already present the governed Patrol timing context, frontend summary consumers must not derive an extra timing pill from the same payloads inside the primary summary card
11. Treat Patrol findings counts as a singular supporting surface as well: when the summary shell already exposes count cards for active findings, warnings, criticals, and fixes, the primary assessment card must not repeat those same payload-derived counts as secondary badges
-12. Treat Patrol schedule and recency as header-owned metadata on the main Patrol page: findings empty-state consumers should not receive or restate `next_patrol_at`, `last_patrol_at`, or interval timing once those transport fields are already presented by the primary header and verification shell
+12. Treat Patrol schedule and recency as header-owned metadata on the main Patrol page: findings empty-state consumers should not receive or restate `next_patrol_at`, `last_patrol_at`, `last_activity_at`, or interval timing once those transport fields are already presented by the primary header and verification shell
13. Keep recovery payload filters canonical across `/api/recovery/rollups`, `/api/recovery/points`, `/api/recovery/series`, and `/api/recovery/facets`: when `internal/api/recovery_handlers.go` adds a governed recovery filter or display field such as provider-neutral `itemType`, the same normalized transport must land across all four endpoints and the contract tests must pin both outbound payload shape and accepted query aliases in the same slice
14. Keep recovery platform-query vocabulary canonical across that same `/api/recovery/*` surface: operator-facing transport must emit `platform` as the canonical query field, accepted legacy `provider` aliases must remain compatibility-only input, and `internal/api/contract_test.go` must pin that fallback behavior in the same slice as any handler change
15. Keep recovery payload platform vocabulary canonical across that same `/api/recovery/*` surface: point payloads must expose `platform`, rollup payloads must expose `platforms`, and any compatibility `provider` / `providers` aliases must remain secondary fallback fields rather than replacing the shared response model
@@ -361,7 +361,7 @@ ready until the first hosted workspace exists.
That same typed overview contract must also keep `Needs attention` honest when
only suspended workspaces remain: hosted workspace history alone may not make
the shell imply that active work is ready.
-That same typed overview contract must also preserve a sharp, high-density enterprise visual aesthetic (e.g. Cloudflare/GCP density standards) across all portal scenarios, removing gradients and heavy box-shadows to ensure a calm, rigorous visual language with standard 256px sidebars, Inter-grade typography, clean text-transform rules, and cleanly unboxed typography without excessive pills.
+That same typed overview contract must also preserve a sharp, high-density enterprise visual aesthetic (e.g. Cloudflare/GCP density standards) across all portal scenarios, removing gradients and heavy box-shadows to ensure a calm, rigorous visual language with standard 256px sidebars, Inter-grade typography, clean text-transform rules, and cleanly unboxed typography without excessive pills or stacked metrics.
plus a package-local `tsc --noEmit` gate, so future account-shell work should
extend the typed source boundary instead of reviving opaque global runtime
objects, document-wide render events, or untyped embedded asset edits.
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index 94a3a21539..4b83e75646 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -259,7 +259,7 @@ serving scenario-backed local portal APIs without requiring a live cloud deploy
for every iteration. Final verification still belongs on a real control-plane
instance, but local portal design work must not depend on redeploying
`cloud.pulserelay.pro` just to see each frontend change.
-That same frontend delivery boundary must keep the account portal visual language sharp and high-density, avoiding gradients, heavy shadows, and decorative SaaS styling in favor of a clean, restrained, Cloudflare/GCP-grade baseline with flat inline workspace action rows and text-driven unboxed metadata instead of pills.
+That same frontend delivery boundary must keep the account portal visual language sharp and high-density, avoiding gradients, heavy shadows, and decorative SaaS styling in favor of a clean, restrained, Cloudflare/GCP-grade baseline with flat inline workspace action rows and text-driven unboxed metadata instead of pills and absolutely inline row actions.
That same shell framing also owns user-facing prerelease labeling for
rc-channel builds. `frontend-modern/src/AppLayout.tsx` may still key off the
canonical `rc` channel metadata internally, but the visible badge must frame
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.ts
index 0505ad7aa2..875f0fddf6 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts
@@ -715,7 +715,7 @@ describe('shell view', function() {
expect(html).toContain('Suspended stays parked');
});
- it('preserves the high-density grid, standard sidebar hooks, and inline, pill-free action constraints in the rendered shell', function() {
+ it('preserves the high-density grid, standard sidebar hooks, and strictly horizontal, pill-free action constraints in the rendered shell', function() {
var html = renderAuthenticatedPortalHTML(createContext());
expect(html).toContain('portal-shell-layout');
});
diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.css
index b0a450df3c..327be92450 100644
--- a/internal/cloudcp/portal/frontend/src/styles.css
+++ b/internal/cloudcp/portal/frontend/src/styles.css
@@ -249,7 +249,7 @@ header .logout-btn:hover,
display: flex;
align-items: center;
gap: 12px;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
}
.portal-shell-head-title {
@@ -280,7 +280,7 @@ header .logout-btn:hover,
align-items: center;
gap: 8px;
align-self: start;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
}
.portal-shell-summary-pill {
@@ -462,7 +462,7 @@ header .logout-btn:hover,
display: flex;
align-items: center;
gap: 6px;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
}
.portal-account-context-separator,
@@ -476,7 +476,7 @@ header .logout-btn:hover,
display: flex;
align-items: baseline;
gap: 10px;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
}
.portal-account-context-row h2 {
@@ -501,7 +501,7 @@ header .logout-btn:hover,
display: flex;
align-items: center;
gap: 8px;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
}
.portal-account-context-summary {
@@ -509,7 +509,7 @@ header .logout-btn:hover,
align-items: center;
justify-content: flex-end;
gap: 0;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
padding: 4px;
border: 1px solid var(--line);
border-radius: var(--radius-lg);
@@ -616,7 +616,7 @@ header .logout-btn:hover,
align-items: start;
justify-content: space-between;
gap: 12px;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
}
.account-surface {
@@ -640,7 +640,7 @@ header .logout-btn:hover,
display: flex;
align-items: center;
gap: 10px;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
}
.account-context-strip {
@@ -888,7 +888,7 @@ header .logout-btn:hover,
display: flex;
align-items: center;
gap: 10px;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
}
.overview-task-actions,
@@ -1207,7 +1207,7 @@ header .logout-btn:hover,
.overview-next-actions {
display: flex;
gap: 10px;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
margin-top: 12px;
}
@@ -1485,7 +1485,7 @@ header .logout-btn:hover,
display: flex;
align-items: center;
gap: 10px;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
margin-top: auto;
}
@@ -1506,7 +1506,7 @@ header .logout-btn:hover,
display: flex;
align-items: center;
gap: 8px;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
margin-top: 8px;
}
@@ -1528,7 +1528,7 @@ header .logout-btn:hover,
display: flex;
align-items: center;
gap: 8px;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
justify-content: flex-end;
flex: 0 0 auto;
padding-top: 0;
@@ -1662,7 +1662,7 @@ header .logout-btn:hover,
.workspace-meta {
display: flex;
gap: 8px;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
min-width: 0;
}
@@ -1983,7 +1983,7 @@ header .logout-btn:hover,
.access-task-strip {
display: flex;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
gap: 8px;
margin-top: 12px;
}
@@ -2518,7 +2518,7 @@ header .logout-btn:hover,
display: flex;
align-items: center;
gap: 8px;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
margin-top: 10px;
}
@@ -2690,7 +2690,7 @@ header .logout-btn:hover,
}
.billing-action-tags-tight {
- flex-wrap: wrap;
+ flex-wrap: nowrap;
}
.billing-action-meta-chip {
@@ -2772,7 +2772,7 @@ header .logout-btn:hover,
display: flex;
align-items: center;
gap: 8px;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
margin-top: 10px;
}
@@ -3369,3 +3369,22 @@ header .logout-btn:hover,
.overview-task-summary-pill + .overview-task-summary-pill::before { content: '•'; margin-right: 12px; color: var(--line-strong); }
.section-context-chip + .section-context-chip::before { content: '•'; margin-right: 8px; color: var(--line-strong); }
+
+.workspace-actions {
+ display: flex !important;
+ flex-direction: row !important;
+ flex-wrap: nowrap !important;
+ gap: 12px !important;
+ align-items: center !important;
+ justify-content: flex-end !important;
+}
+.workspace-actions form {
+ margin: 0 !important;
+ display: flex !important;
+}
+.workspace-actions .btn-primary,
+.workspace-actions .btn-secondary {
+ min-width: 0 !important; /* Allow natural shrinking */
+ white-space: nowrap !important;
+ width: auto !important;
+}