feat: add AdminUserRestrictionsPage for individual user overrides
Per-user feature limit overrides: - Select user from dropdown (shows tier) - View all features with tier limits - Set individual overrides that supersede tier limits - Toggle buttons for boolean features - Text inputs for count features - Remove overrides to revert to tier limits Features: - User info card (avatar, name, email, tier) - Feature table grouped by category - Visual indicators for active overrides - Change tracking with fixed bottom save bar - Conditional rendering based on limit type - Info box explaining override priority UX improvements: - Clear "Tier-Limit" vs "Override" columns - Active/Inactive status per feature - Batch save with change counter - Confirmation before removing overrides - Legend for input values Use cases: - Beta testers with extended limits - Support requests for special access - Temporary feature grants - Custom enterprise configurations Integrated in AdminPanel navigation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
18991025bf
commit
72d8dd8df7
3 files changed
+454
No files matched your search
@@ -24,6 +24,7 @@ import AdminTierLimitsPage from './pages/AdminTierLimitsPage'
|
||||
import AdminFeaturesPage from './pages/AdminFeaturesPage'
|
||||
import AdminTiersPage from './pages/AdminTiersPage'
|
||||
import AdminCouponsPage from './pages/AdminCouponsPage'
|
||||
import AdminUserRestrictionsPage from './pages/AdminUserRestrictionsPage'
|
||||
import './app.css'
|
||||
|
||||
function Nav() {
|
||||
@@ -123,6 +124,7 @@ function AppShell() {
|
||||
<Route path="/admin/features" element={<AdminFeaturesPage/>}/>
|
||||
<Route path="/admin/tiers" element={<AdminTiersPage/>}/>
|
||||
<Route path="/admin/coupons" element={<AdminCouponsPage/>}/>
|
||||
<Route path="/admin/user-restrictions" element={<AdminUserRestrictionsPage/>}/>
|
||||
</Routes>
|
||||
</main>
|
||||
<Nav/>
|
||||
|
||||
Reference in new issue
Block a user