Skip to content

release: v1.22.17 - #877

Merged
unjica merged 5 commits into
mainfrom
release/v1.22.17
Oct 27, 2026
Merged

unjica merged 5 commits into
mainfrom
release/v1.22.17

Conversation

@unjica

@unjica unjica commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Release v1.22.17

Fixed

  • Paid signup plan intent — preserve ?plan= through org creation into Stripe Checkout (#876, #875)

Checklist

  • CI green on develop
  • CHANGELOG updated
  • Merge to main
  • Tag v1.22.17
  • Verify production deploy

unjica and others added 5 commits October 27, 2026 09:59
Sync main into develop after v1.22.16
Refs #875

When a new user registers with plan intent (?plan=pro|business), they have
no organization yet and land on the billing page showing the 'Create an
organization' error state. The link to organization settings was dropping
the plan param, and after org creation the user stayed on org settings.

Changes:
- Billing page: preserve ?plan in 'Go to Organization settings' link when no org
- Organization settings page: accept plan query param and pass to CreateOrganizationForm
- CreateOrganizationForm: redirect to /dashboard/settings/billing?plan=... after
  org creation when plan intent exists, so BillingPlanIntent triggers Checkout
- Add tests: CreateOrganizationForm redirect behavior with/without plan intent

Flow now:
1. Register with ?plan=pro → billing shows no-org error
2. Click 'Go to Organization settings' → preserves ?plan=pro
3. Create org → redirects to billing with ?plan=pro
4. BillingPlanIntent auto-triggers Checkout once (existing behavior)

Zero changes to Stripe/billing business logic.

Co-authored-by: Sanja Malovic <[email protected]>
Skip the billing no-org error page for brand-new users:

- RegisterPageForm: redirect to /dashboard/settings/organization?plan=...
  instead of billing when registering with plan intent (no invite)
- After org creation, the form already redirects to billing with plan,
  so Checkout triggers normally
- Middleware signed-in /register?plan=... → billing redirect unchanged
  (existing accounts go straight to billing)
- Soften no-org billing copy: 'Create an organization to view billing...'
  instead of 'No organization selected' (less error-like)
- Update register test expectations: org settings, not billing

Flow now:
1. Register with ?plan=pro → /dashboard/settings/organization?plan=pro
2. Create org → redirects to billing with plan (from earlier commit)
3. BillingPlanIntent triggers Checkout once

All tests pass (435).

Co-authored-by: Sanja Malovic <[email protected]>
…-no-org-eb83

fix(billing): preserve plan intent through org creation flow
@unjica
unjica merged commit d028578 into main Oct 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants