fix: Add podcast-only demo mode readiness patches

- Patch pricing redirect to route to podcast-maker instead of onboarding
- Allow all plan tiers in demo mode (remove alpha restriction)
- Add Stripe mode warning in demo when key is missing
- Add startup router mount assertions for subscription and podcast
- Add smoke test script for demo mode validation
This commit is contained in:
ajaysi
2026-03-30 07:50:58 +05:30
parent 643e9ad2f3
commit bbb46ca9d1
3 changed files with 211 additions and 1 deletions

View File

@@ -145,7 +145,9 @@ const PricingPage: React.FC = () => {
}
// For alpha testing, only allow Free and Basic plans (Pro features not ready)
if (plan.tier !== 'free' && plan.tier !== 'basic') {
// Exception: In podcast-only demo mode, allow all plans
const demoModeEnabled = isPodcastOnlyDemoMode();
if (!demoModeEnabled && plan.tier !== 'free' && plan.tier !== 'basic') {
console.error('[PricingPage] Plan tier not available:', plan.tier);
setError('This plan is not available for alpha testing');
return;
@@ -213,6 +215,12 @@ const PricingPage: React.FC = () => {
window.location.href = response.data.url;
return;
}
} else {
// Stripe not configured - warn in demo mode
if (isPodcastOnlyDemoMode()) {
console.warn('[PricingPage] ⚠️ DEMO MODE WARNING: Stripe is not configured. Using legacy subscription API.');
// In demo mode without Stripe, we may want to skip actual subscription for testing
}
}
console.log('[PricingPage] Making legacy subscription API call:', {