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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Keep portal task errors on owned copy
rcourtman15c2d06af574
diff --git a/docs/release-control/v6/internal/PULSE_ACCOUNT_PORTAL_SPEC.md b/docs/release-control/v6/internal/PULSE_ACCOUNT_PORTAL_SPEC.mdindex 7830dbb2a8..d68b116dac 100644--- a/docs/release-control/v6/internal/PULSE_ACCOUNT_PORTAL_SPEC.md+++ b/docs/release-control/v6/internal/PULSE_ACCOUNT_PORTAL_SPEC.md@@ -240,6 +240,10 @@ Core rules:view-only accounts. When no workspace is ready, the primary route muststay on reviewable `Workspaces` or `Access` surfaces before any blockedhosted billing or owner/admin-only mutation path.+35. Task surfaces must keep failure copy on owned user jobs. The portal may+ not leak raw transport strings such as `Network error.` into `Access`,+ `Workspaces`, or `Billing`; each failure must stay on the task-specific+ action the user was trying to complete.## Screen Modeldiff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 2b94cf7f06..ed75c5db39 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -333,6 +333,10 @@ That same runtime contract must also keep `Overview` next-action routingpermission-honest for hosted view-only accounts: when no ready workspaceexists, the primary route must stay on reviewable `Workspaces` or `Access`surfaces before any blocked hosted billing or owner/admin-only mutation path.+That same shared request/runtime boundary must also preserve task-specific+failure copy on transport errors: portal job surfaces may not leak raw strings+such as `Network error.`, and must instead surface the owned fallback for the+exact action that failed.plus a package-local `tsc --noEmit` gate, so future account-shell work shouldextend the typed source boundary instead of reviving opaque global runtimeobjects, 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.mdindex 3544d35107..5ae050d638 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -894,6 +894,10 @@ That same owned `Overview` surface must also keep `Next action`permission-honest for hosted view-only users: when no workspace is ready, theprimary route must stay on reviewable `Workspaces` or `Access` surfaces beforeany blocked hosted billing or owner/admin-only mutation path.+That same owned task surface must also keep failure copy on the user job+instead of leaking raw transport wording: `Access`, `Workspaces`, and+`Billing` failures must render the task-specific action that could not+complete, not generic copy such as `Network error.`.That same canonical shell/runtime boundary now also owns the bootstrap truthfor when self-hosted commercial history is relevant. Hosted-only accounts mustnot render self-hosted license, refund, privacy, or support-escalation copydiff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.jsonindex d3f19060de..e476140ce1 100644--- a/internal/cloudcp/portal/dist/build_manifest.json+++ b/internal/cloudcp/portal/dist/build_manifest.json@@ -1,5 +1,5 @@{- "source_hash": "8b7c5d843287396154b50573fdd2aa95e5d0a1308c252df25fde5597cb96ca7b",+ "source_hash": "d515bbe22da7a6154237402934adaefe1e896687914a72d8bf36587689abf31a","build_inputs": ["package.json","tsconfig.json",diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.jsindex c32965b3c0..3e4688be32 100644--- a/internal/cloudcp/portal/dist/portal_app.js+++ b/internal/cloudcp/portal/dist/portal_app.js@@ -606,7 +606,7 @@response = await fetch(input);}} catch {- throw new PortalAPIError("Network error.", 0, null);+ throw new PortalAPIError(fallbackMessage, 0, null);}var payload = await readPayload(response);if (!response.ok) {diff --git a/internal/cloudcp/portal/frontend/src/api.test.ts b/internal/cloudcp/portal/frontend/src/api.test.tsindex dd7196cb41..98fb2416e7 100644--- a/internal/cloudcp/portal/frontend/src/api.test.ts+++ b/internal/cloudcp/portal/frontend/src/api.test.ts@@ -71,6 +71,22 @@ describe('portal api', function() {});});+ it('keeps task-specific fallback copy on network failures', async function() {+ vi.stubGlobal('fetch', vi.fn().mockRejectedValue(new Error('socket hang up')));++ var api = createPortalAPI({+ getBootstrap: function() {+ return bootstrap;+ },+ });++ await expect(api.listMembers('acct_1')).rejects.toMatchObject({+ name: 'PortalAPIError',+ status: 0,+ message: 'Failed to load access roster.',+ });+ });+it('sends portal-targeted magic-link requests and returns the server message', async function() {var fetchMock = vi.fn().mockResolvedValue({ok: true,diff --git a/internal/cloudcp/portal/frontend/src/api.ts b/internal/cloudcp/portal/frontend/src/api.tsindex c4b62c1ab8..80aab61883 100644--- a/internal/cloudcp/portal/frontend/src/api.ts+++ b/internal/cloudcp/portal/frontend/src/api.ts@@ -109,7 +109,7 @@ export function createPortalAPI(context: PortalAPIContext): PortalAPI {response = await fetch(input);}} catch {- throw new PortalAPIError('Network error.', 0, null);+ throw new PortalAPIError(fallbackMessage, 0, null);}var payload = await readPayload(response);if (!response.ok) {