feat: add AdminCouponsPage for coupon management
Full CRUD interface for coupons: - Create, edit, delete coupons - Three coupon types supported: - Single-Use: one-time redemption per user - Multi-Use Period: unlimited redemptions in timeframe (Wellpass) - Gift: bonus system coupons Features: - Auto-generate random coupon codes - Configure tier, duration, validity period - Set max redemptions (or unlimited) - View redemption history per coupon (modal) - Active/inactive state management - Card-based layout with visual type indicators Form improvements: - Conditional fields based on coupon type - Date pickers for period coupons - Duration config for single-use/gift - Help text for each field - Labels above inputs (consistent with other pages) Integrated in AdminPanel navigation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
bc4db19190
commit
18991025bf
3 files changed
+530
No files matched your search
@@ -23,6 +23,7 @@ import GuidePage from './pages/GuidePage'
|
||||
import AdminTierLimitsPage from './pages/AdminTierLimitsPage'
|
||||
import AdminFeaturesPage from './pages/AdminFeaturesPage'
|
||||
import AdminTiersPage from './pages/AdminTiersPage'
|
||||
import AdminCouponsPage from './pages/AdminCouponsPage'
|
||||
import './app.css'
|
||||
|
||||
function Nav() {
|
||||
@@ -121,6 +122,7 @@ function AppShell() {
|
||||
<Route path="/admin/tier-limits" element={<AdminTierLimitsPage/>}/>
|
||||
<Route path="/admin/features" element={<AdminFeaturesPage/>}/>
|
||||
<Route path="/admin/tiers" element={<AdminTiersPage/>}/>
|
||||
<Route path="/admin/coupons" element={<AdminCouponsPage/>}/>
|
||||
</Routes>
|
||||
</main>
|
||||
<Nav/>
|
||||
|
||||
Reference in new issue
Block a user