Admin Panel¶
Top G & AI Velocity Feature
Admin panel is available in Top G and AI Velocity tiers only.
See tier comparison
SQLAdmin-powered admin interface for managing users, payments, and viewing analytics.
Quick Access¶
| Bash | |
|---|---|
| |
Login with your superuser credentials.
Features¶
User Management¶
- View all users
- Search by email, name, customer ID
- Filter by account type, verified status
- View user details (no password visible)
- Sort by creation date, last login
Purchase Management¶
- View all one-time purchases
- Search by transaction ID, product type
- Filter by success status, currency
- Sort by purchase date, amount
Subscription Management¶
- View all active subscriptions
- Search by Stripe subscription ID, plan
- Filter by plan type, status
- Sort by start/end dates
Payment Analytics Dashboard¶
Custom dashboard showing:
- Total revenue
- Total transactions
- Active subscriptions
- Recent transactions (last 10)
User Insights Dashboard¶
Custom dashboard showing:
- Total users
- Account type distribution
- Top spending customers
- Conversion metrics
Creating Superuser¶
| Bash | |
|---|---|
| |
Security¶
Authentication¶
- Separate from main app authentication
- Bcrypt password hashing
- Session-based login
- Only superusers can access
Permissions¶
- Only users with
is_superuser=Truecan login - Regular users cannot access admin panel
- Password hash never displayed in UI
Customization¶
Adding Model Views¶
Edit app/admin.py:
| Python | |
|---|---|
Adding Custom Dashboards¶
Create template in app/templates/:
Common Issues¶
Problem: Can't login to admin panel
Solution: Ensure user has is_superuser=True
Problem: Custom dashboard not showing
Solution: Verify template exists in app/templates/
Problem: Model changes not reflected
Solution: Restart backend server
Related Documentation¶
- User Management
- Stripe Payments - Payment data source
- Creating Superuser
- SQLAdmin Documentation
Files Reference¶
app/admin.py- Admin configurationapp/templates/payment_analytics.html- Payment dashboardapp/templates/user_insights.html- User insights dashboardapp/commands/create_superuser.py- Superuser creation script