feat: add Tier Limits Matrix Editor (Admin UI)
Phase 3 Frontend - First Component: Matrix Editor New page: AdminTierLimitsPage - Displays Tier x Feature matrix (editable table) - Inline editing for all limit values - Visual feedback for changes (highlighted cells) - Batch save with validation - Category grouping (data, ai, export, integration) - Legend: ∞ = unlimited (NULL), ❌ = disabled (0), 1-999 = limit - Responsive table with sticky column headers Features: - GET /api/tier-limits - Load matrix - PUT /api/tier-limits/batch - Save all changes - Change tracking (shows unsaved count) - Reset button to discard changes - Success/error messages API helpers added (api.js): - v9c subscription endpoints (user + admin) - listFeatures, listTiers, getTierLimitsMatrix - updateTierLimit, updateTierLimitsBatch - listCoupons, redeemCoupon - User restrictions, access grants Navigation: - Link in AdminPanel (Settings Page) - Route: /admin/tier-limits Ready for testing on Dev! Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
91c8a5332f
commit
9438b5d617
4 files changed
+336
-1
No files matched your search
@@ -20,6 +20,7 @@ import ActivityPage from './pages/ActivityPage'
|
||||
import Analysis from './pages/Analysis'
|
||||
import SettingsPage from './pages/SettingsPage'
|
||||
import GuidePage from './pages/GuidePage'
|
||||
import AdminTierLimitsPage from './pages/AdminTierLimitsPage'
|
||||
import './app.css'
|
||||
|
||||
function Nav() {
|
||||
@@ -115,6 +116,7 @@ function AppShell() {
|
||||
<Route path="/analysis" element={<Analysis/>}/>
|
||||
<Route path="/settings" element={<SettingsPage/>}/>
|
||||
<Route path="/guide" element={<GuidePage/>}/>
|
||||
<Route path="/admin/tier-limits" element={<AdminTierLimitsPage/>}/>
|
||||
</Routes>
|
||||
</main>
|
||||
<Nav/>
|
||||
|
||||
Reference in new issue
Block a user