Add Mollie checkout flow, billing UI, and payment UX polish #71

Merged
uz1mani merged 73 commits from staging into main 2026-03-28 10:28:03 +00:00
13 changed files with 849 additions and 100 deletions
Showing only changes of commit 742c24fa6b - Show all commits

View File

@@ -136,12 +136,13 @@ function CheckoutContent() {
}
}, [authLoading, user, router])
// -- Subscription guard --
// -- Subscription guard (skip on success page — it handles its own redirect) --
useEffect(() => {
if (status === 'success') return
if (subscription && (subscription.subscription_status === 'active' || subscription.subscription_status === 'trialing')) {
router.replace('/')
}
}, [subscription, router])
}, [subscription, status, router])
// -- Param validation --
useEffect(() => {

View File

@@ -98,8 +98,8 @@ function LayoutInner({ children }: { children: React.ReactNode }) {
return <LoadingOverlay logoSrc="/pulse_icon_no_margins.png" title="Pulse" portal={false} />
}
// While auth is loading on a site page, render nothing to prevent flash of public header
if (auth.loading && isSitePage) {
// While auth is loading on a site or checkout page, render nothing to prevent flash of public header
if (auth.loading && (isSitePage || isCheckoutPage)) {
return null
}