IA-641/Auto payment and extart questions
refactor(subscription): Break down AbonnementActuel into reusable components and add extra questions purchase feature
-
Refactor monolithic AbonnementActuel component into smaller, focused components: • ErrorState: Centralized error handling with retry functionality • PaymentMethodCard: Standalone payment method display • SubscriptionCard: Enhanced card with status badges and pricing • SubscriptionFeatures: Modular features list component • SubscriptionActions: Reusable action buttons component • ExplorePlansCard: Promotional card for plan exploration
-
Add new ExtraPurchaseCard component with: • Quick-buy options (50, 100, 200, 500 questions) • Custom quantity input with real-time validation • Volume discounts (10% off for 200+ questions) • Dynamic pricing breakdown with savings display • Animated UI with smooth expand/collapse transitions
feat(subscription): Add auto-payment toggle to pricing cards
- Add auto-payment toggle switch to PricingCard component
- Update PlanDetails to handle auto-payment state management
- Pass auto-payment preference to subscription update flow
- Update mock API to support autoPayment parameter
- Add autoPayment field to Abonnement interface