Skip to content

IAV-765/ feat: implement sponsorship management interface

fatima senan a demandé de fusionner feature/IAV-765 vers develop

This MR introduces a complete sponsorship management interface for the backoffice, allowing administrators to configure referral programs and monitor statistics.

Features Implemented

Configuration Tab

  • Global system activation toggle with visual feedback
  • Individual level toggles for Level 1 (Registration) and Level 2 (First Subscription)
  • Credit amount configuration for each level
  • Form validation with success/error notifications
  • Unsaved changes detection and confirmation dialog

Statistics Tab

  • Animated statistics cards showing key metrics (total sponsors, successful referrals, distributed credits)
  • Searchable and filterable sponsors table with pagination
  • Sponsor details modal with referral history
  • Date picker for filtering by registration date

Technical Improvements

  • Responsive Design: Fully responsive interface for all screen sizes (mobile, tablet, desktop)
  • Reusable Components: Create generic UI components in shared/components/ui/
    • TabButton, TabsContainer, CustomTooltip
  • Feature-based Architecture: Organize sponsorship folder by features
    • components/: Shared components
    • configuration/: Configuration-related components
    • statistics/: Statistics-related components

Rapports de requête de fusion