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
Render hosted trial terminal conflicts as outcome pages
rcourtman6ebb3fe22675
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex 2bef44d810..7367be69b4 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -266,7 +266,8 @@ instance, not as a generic purchase funnel. Recovery-contact fields such aswork email and optional company name must remain clearly secondary to theinstance-bound entitlement handoff. Hosted form-stage issuance conflicts mustalso preserve the canonical reason shape: duplicate recovery-email usage must-not be flattened into an organization-level message.+not be flattened into an organization-level message, and terminal conflicts+must render as owned hosted outcome UX rather than editable inline form state.That same hosted owner also applies after Stripe returns to`/trial-signup/complete`: customer-facing completion failures must stay insideowned trial UX rather than dropping raw control-plane error strings, and theydiff --git a/internal/cloudcp/trial_signup_handlers.go b/internal/cloudcp/trial_signup_handlers.goindex fe2f5fa72b..f68fac1c72 100644--- a/internal/cloudcp/trial_signup_handlers.go+++ b/internal/cloudcp/trial_signup_handlers.go@@ -664,8 +664,12 @@ func (h *TrialSignupHandlers) HandleRequestVerification(w http.ResponseWriter, rreturn}if conflict != nil {- data.ErrorMessage = trialSignupIssuanceConflictMessage(conflict)- h.renderTrialSignupPage(w, r, http.StatusConflict, data)+ h.renderTrialSignupFailurePage(w, r, http.StatusConflict, trialSignupFailureDataForPage(+ h.cfg,+ data,+ trialSignupFailureConflict,+ trialSignupIssuanceConflictMessage(conflict),+ ))return}}@@ -842,8 +846,12 @@ func (h *TrialSignupHandlers) HandleCheckout(w http.ResponseWriter, r *http.Requreturn}if conflict != nil {- data.ErrorMessage = trialSignupIssuanceConflictMessage(conflict)- h.renderTrialSignupPage(w, r, http.StatusConflict, data)+ h.renderTrialSignupFailurePage(w, r, http.StatusConflict, trialSignupFailureDataForPage(+ h.cfg,+ data,+ trialSignupFailureConflict,+ trialSignupIssuanceConflictMessage(conflict),+ ))return}record = &TrialSignupRecord{diff --git a/internal/cloudcp/trial_signup_handlers_test.go b/internal/cloudcp/trial_signup_handlers_test.goindex 31a6feeced..c365254622 100644--- a/internal/cloudcp/trial_signup_handlers_test.go+++ b/internal/cloudcp/trial_signup_handlers_test.go@@ -186,9 +186,13 @@ func TestTrialSignupHandleRequestVerificationRejectsEmailThatAlreadyUsedTrial(tif rec.Code != http.StatusConflict {t.Fatalf("status=%d, want %d body=%q", rec.Code, http.StatusConflict, rec.Body.String())}- if !strings.Contains(rec.Body.String(), "recovery email has already used a Pulse Pro trial") {- t.Fatalf("expected duplicate trial message, got %q", rec.Body.String())- }+ assertTrialSignupFailurePageContains(t, rec.Body.String(),+ "Trial already used",+ "This recovery email has already used a Pulse Pro trial.",+ "pulse.example.com",+ "This trial request cannot be restarted for the same recovery contact or organization.",+ )+ assertTrialSignupFailurePageOmits(t, rec.Body.String(), "Continue To Secure Trial Setup", "<form")}func TestTrialSignupHandleRequestVerificationRejectsCorporateDomainReuse(t *testing.T) {@@ -232,9 +236,13 @@ func TestTrialSignupHandleRequestVerificationRejectsCorporateDomainReuse(t *testif secondRec.Code != http.StatusConflict {t.Fatalf("status=%d, want %d body=%q", secondRec.Code, http.StatusConflict, secondRec.Body.String())}- if !strings.Contains(secondRec.Body.String(), "organization has already used a Pulse Pro trial") {- t.Fatalf("expected organization duplicate trial message, got %q", secondRec.Body.String())- }+ assertTrialSignupFailurePageContains(t, secondRec.Body.String(),+ "Trial already used",+ "This organization has already used a Pulse Pro trial.",+ "pulse.example.com",+ "This trial request cannot be restarted for the same recovery contact or organization.",+ )+ assertTrialSignupFailurePageOmits(t, secondRec.Body.String(), "Continue To Secure Trial Setup", "<form")}func TestTrialSignupHandleVerifyEmailConsumesSingleUseToken(t *testing.T) {@@ -435,9 +443,13 @@ func TestTrialSignupHandleCheckoutRejectsEmailThatAlreadyUsedTrial(t *testing.T)if rec.Code != http.StatusConflict {t.Fatalf("status=%d, want %d body=%q", rec.Code, http.StatusConflict, rec.Body.String())}- if !strings.Contains(rec.Body.String(), "recovery email has already used a Pulse Pro trial") {- t.Fatalf("expected duplicate email trial message, got %q", rec.Body.String())- }+ assertTrialSignupFailurePageContains(t, rec.Body.String(),+ "Trial already used",+ "This recovery email has already used a Pulse Pro trial.",+ "pulse.example.com",+ "This trial request cannot be restarted for the same recovery contact or organization.",+ )+ assertTrialSignupFailurePageOmits(t, rec.Body.String(), "Continue To Secure Trial Setup", "<form")}func TestTrialSignupHandleCompleteRedirectsWithActivationToken(t *testing.T) {