feat: add SubscriptionPage - user-facing subscription info
User can now view: - Current tier (Free, Basic, Premium, Selfhosted) with icon - Trial status and end date - Access expiration date - Feature limits with usage bars - Progress indicators (green/orange/red based on usage) - Reset period info (daily/monthly/never) Coupon redemption: - Input field for coupon code - Auto-uppercase, monospace display - Enter key support - Success/error feedback - Auto-refresh after redemption Features: - Clean card-based layout - Visual tier badges with colors - Progress bars for count limits - Trial and access warnings - Integrated in Settings page Link added to SettingsPage: - "👑 Abo-Status, Limits & Coupon einlösen" - Easy access for all users Phase 3 complete - all user-facing subscription features done! Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
3eae7eb43f
commit
a27f090616
3 files changed
+253
No files matched your search
@@ -25,6 +25,7 @@ import AdminFeaturesPage from './pages/AdminFeaturesPage'
|
||||
import AdminTiersPage from './pages/AdminTiersPage'
|
||||
import AdminCouponsPage from './pages/AdminCouponsPage'
|
||||
import AdminUserRestrictionsPage from './pages/AdminUserRestrictionsPage'
|
||||
import SubscriptionPage from './pages/SubscriptionPage'
|
||||
import './app.css'
|
||||
|
||||
function Nav() {
|
||||
@@ -125,6 +126,7 @@ function AppShell() {
|
||||
<Route path="/admin/tiers" element={<AdminTiersPage/>}/>
|
||||
<Route path="/admin/coupons" element={<AdminCouponsPage/>}/>
|
||||
<Route path="/admin/user-restrictions" element={<AdminUserRestrictionsPage/>}/>
|
||||
<Route path="/subscription" element={<SubscriptionPage/>}/>
|
||||
</Routes>
|
||||
</main>
|
||||
<Nav/>
|
||||
|
||||
Reference in new issue
Block a user