feat(billing): page tarifaire /plan + uniformisation CTA "Voir les plans" (Sprint 5b)

- features/billing/{api,components/PlanCard,pages/PricingPage} + 5 tests
- 3 colonnes Free/Standard/Premium avec gating dynamique selon usePlan()
- POST /stripe/checkout avec redirect full-page Stripe Checkout
- env: VITE_STRIPE_PRICE_STANDARD/_PREMIUM (optionnels)
- router: /plan → PricingPage (sous PrivateLayout)
- CTA renommés "Voir les plans" : SimulationsList, RapportPage, TaskSelector,
  DashboardFreeView, PaywallBanner — au lieu de CTA orientés un seul plan
- Tests: 198 → 203 verts (+5)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hermann_Kitio 2026-04-26 04:52:13 +03:00
parent 04019f8348
commit 9edfbb3c95
13 changed files with 551 additions and 8 deletions

View file

@ -7,3 +7,8 @@ VITE_ENABLE_T2_LIVE=false
# Optionnel — DSN Sentry pour monitoring prod (laisser commenté en dev local)
# VITE_SENTRY_DSN=https://xxxxxx@o000000.ingest.sentry.io/0000000
# Sprint 5b — price_ids Stripe publics (Dashboard Stripe → Produits → Plan → Tarif).
# Requis en dev/prod ; absents en CI tests (tests mockent features/billing/api.ts).
VITE_STRIPE_PRICE_STANDARD=price_xxx
VITE_STRIPE_PRICE_PREMIUM=price_xxx