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.

Document shared trial retry-after owner

rcourtman2f0f5168f2c8
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index b55070faa3..2f0afa5141 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -757,6 +757,13 @@ handoff itself is now centralized in
onboarding surfaces must use that owner for redirect, success-notification, and
canonical denial handling instead of open-coding local `startProTrial()`
branches or re-interpreting backend status codes.
+That same shared presentation owner also holds the canonical trial
+rate-limit copy. When the shared commercial store provides
+`retryAfterSeconds`, `upgradePresentation.ts` must render human guidance from
+that canonical backoff instead of flattening the UI to a generic "try again
+later" message; user-facing CTA surfaces must therefore inherit
+`Retry-After`-backed copy through the shared helper path rather than
+inventing lane-local 429 wording.
That same shared primitive boundary now also owns intent-level commercial
selectors for non-billing surfaces. Leaf/shared state such as
`useTrialBannerState.ts`, `useActiveUseTrialNudgeState.ts`,
diff --git a/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts b/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts
index 5a43453ada..1b9095b7f9 100644
--- a/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts
@@ -773,6 +773,8 @@ describe('monitored-system model guardrails', () => {
expect(upgradePresentationSource).toContain('export const UPGRADE_ACTION_LABEL');
expect(upgradePresentationSource).toContain('export const UPGRADE_TRIAL_LABEL');
expect(upgradePresentationSource).toContain('export const UPGRADE_TRIAL_LINK_CLASS');
+ expect(upgradePresentationSource).toContain('export function getTrialTryAgainLaterMessage');
+ expect(upgradePresentationSource).toContain('export function getTrialStartErrorMessage');
expect(upgradePresentationSource).toContain('export function getUpgradeActionButtonClass');
});