Skip to content

Only prefetch eligible Stripe billing portals - #1269

Merged
AnthonyRonning merged 3 commits into
masterfrom
codex-bill133-maple
Oct 25, 2026
Merged

AnthonyRonning merged 3 commits into
masterfrom
codex-bill133-maple

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Pricing currently prefetches a Stripe portal for every signed-in account, including Free accounts with no payment account and providers that cannot use Stripe management. Wait for confirmed billing status and use explicit Stripe-management hints when supplied. For older servers that omit subscription rows, preserve the customer-based path for legacy plans, including retired Starter subscriptions. Confirmed Free accounts and existing non-Stripe pricing paths skip the request.

While an eligible account's portal URL is loading, hold plan actions so an early click cannot fall through to checkout. Existing provider routing, account guards, completed-failure behavior, checkout and server response contracts are preserved.

Validation:

  • All 1,371 frontend tests passed, including 15 new React Query regressions for eligibility, legacy responses/plans, delayed/cached-null requests and account changes. The 15 focused regressions also passed 20 repeated runs (300 passes). Formatting, lint and typecheck passed; lint retains 13 existing warnings.
  • PR web build passed.
  • Linked Local browser: Free pricing navigation and Pro subscription-pass pricing both loaded billing status/products successfully with zero portal requests and no management error. Switched accounts through normal password login. Real Stripe-hosted portal opening and native runtime were not exercised by this patch.

Client follow-up to billing #137, related to billing #133. No server update is required. Installed clients keep their current behavior until updated.

@AnthonyRonning AnthonyRonning changed the title codex bill133 maple Only prefetch eligible Stripe billing portals Oct 25, 2026
@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Maple development preview: https://f5e16b56.maple-ca8.pages.dev

Commit: de6730df1275e748f16a674031967d22a8422965

Uses development API, billing, flags and PCR configuration. Cloudflare Access applies.

@AnthonyRonning
AnthonyRonning marked this pull request as ready for review October 25, 2026 06:17
@AnthonyRonning
AnthonyRonning merged commit 8954d25 into master Oct 25, 2026
39 checks passed

This branch was successfully deployed

1 active deployment
pages-pr-1269 — de6730df Deployed Oct 25, 2026 by github-actions[bot]
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.

1 participant