- Add user management system with all CRUD operations - Add promotion statistics dashboard with export - Simplify Trading & Market settings UI - Fix promotion schema (dates now optional) - Add missing API endpoints and PATCH support - Add comprehensive documentation - Fix critical bugs (deletePromotion, duplicate endpoints) All features tested and production-ready.
6.7 KiB
6.7 KiB
Admin Panel Quick Start Guide
🚀 Quick Access
- Log in with admin credentials (staffLevel >= 3)
- Navigate to Admin section
- Select the tab you need
📋 Quick Actions
Maintenance Mode
Enable Maintenance:
- Go to Maintenance tab
- Toggle switch ON
- Enter custom message
- Save
Allow Admin Access During Maintenance:
- Add Steam IDs to whitelist
- Admins can login via maintenance page
Create Announcement
Steps:
- Announcements tab → + Create
- Choose type: Info | Warning | Success | Error
- Write message
- Toggle enabled
- (Optional) Set schedule dates
- Save
Quick Types:
- 🔵 Info - General updates
- 🟡 Warning - Important notices
- 🟢 Success - Good news
- 🔴 Error - Critical alerts
Create Promotion
Quick Setup:
- Promotions tab → + Create
- Fill basics:
- Name & description
- Type (deposit_bonus, discount, etc.)
- Start/end dates
- Configure rewards:
- Bonus percentage or amount
- Min deposit (if applicable)
- Max bonus cap
- Set limits:
- Uses per user
- Total uses
- Save
View Stats:
- Click Stats button on any promotion
- See usage, revenue, and user data
- Export for reports
User Management
Search User:
- User Management tab
- Type username, Steam ID, or email
- Results appear instantly
Quick Actions:
- 👁️ Details - View full profile
- 💰 Balance - Add/remove funds
- 🚫 Ban - Temporarily or permanently ban
- ⭐ Promote - Set staff level
Adjust Balance:
- Click Balance on user
- Select Credit (add) or Debit (subtract)
- Enter amount
- Provide reason (required for audit)
- Confirm
Ban User:
- Click Ban
- Enter reason (required)
- Set duration in hours (0 = permanent)
- Confirm
🔧 Trading & Market Settings
Trading Settings
- Enabled - Toggle trading on/off
- Deposit/Withdraw - Control each separately
- Min Amounts - Set minimums for deposits/withdrawals
- Withdraw Fee - Percentage fee (0-100%)
- Max Items - Items per trade limit
Market Settings
- Enabled - Toggle marketplace
- Commission - Platform fee (0-100%)
- Price Limits - Min/max listing prices
- Auto-Update - Automatic price updates
- Update Interval - How often to update prices
Don't forget to SAVE after changes!
📊 Staff Levels
| Level | Role | Permissions |
|---|---|---|
| 0 | User | Regular user access |
| 1 | Moderator | Basic moderation |
| 2 | Support | User support tools |
| 3 | Admin | Full admin panel access |
| 4 | Super Admin | All permissions |
⚠️ Common Mistakes to Avoid
- ❌ Forgetting to enable announcements/promotions
- ❌ Not setting end dates for time-limited promotions
- ❌ Enabling maintenance without adding admin Steam IDs
- ❌ Forgetting to save changes
- ❌ Banning users without providing reason
🆘 Quick Troubleshooting
Changes not saving?
- Check for error messages in console
- Verify all required fields are filled
- Ensure you have admin permissions
Announcement not showing?
- Is it enabled?
- Check start/end dates
- Clear browser cache
Can't access during maintenance?
- Add your Steam ID to whitelist
- Use Steam login on maintenance page
User balance not updating?
- Check transaction logs
- Verify reason was provided
- Ensure amount is valid
📈 Best Practices
Announcements
- ✅ Use appropriate type for message severity
- ✅ Keep messages concise and clear
- ✅ Set end dates for temporary announcements
- ✅ Test dismissibility before going live
Promotions
- ✅ Set realistic usage limits
- ✅ Always set end dates
- ✅ Monitor stats regularly
- ✅ Test promo codes before announcing
- ✅ Use descriptive names
User Management
- ✅ Always provide detailed ban reasons
- ✅ Document balance adjustments
- ✅ Be cautious with permanent bans
- ✅ Review user history before actions
- ✅ Communicate with users about major actions
Maintenance
- ✅ Schedule during low-traffic hours
- ✅ Announce in advance
- ✅ Keep maintenance windows short
- ✅ Test admin bypass before enabling
- ✅ Provide estimated completion time
🔐 Security Reminders
- Never share admin credentials
- Always provide reasons for actions (audit trail)
- Double-check before banning users
- Use strong passwords and 2FA
- Log out when finished
- Monitor admin activity logs
📞 Emergency Actions
Site Down / Critical Issue
- Enable maintenance mode immediately
- Set clear message explaining issue
- Add all admin Steam IDs to whitelist
- Investigate and fix
- Test thoroughly
- Disable maintenance
Malicious User
- Ban immediately
- Document reason thoroughly
- Review recent transactions
- Check for associated accounts
- Report to security team
Promotion Error
- Disable promotion immediately
- Review usage logs
- Adjust balances if necessary
- Document what happened
- Fix and re-enable or create new
💡 Pro Tips
- Use search efficiently - Partial matches work for usernames
- Export promotion data - Use Stats modal export for reports
- Schedule maintenance - Use date/time pickers for planned windows
- Monitor regularly - Check user activity and promotion performance
- Keep notes - Document why you made certain decisions
- Test first - Try changes on test accounts when possible
🎯 Daily Admin Tasks
Morning Checklist
- Check for new user issues
- Review overnight transactions
- Check active promotions performance
- Verify no maintenance mode enabled
- Review any ban appeals
Weekly Tasks
- Analyze promotion statistics
- Review user growth
- Check trading/market performance
- Update announcements if needed
- Clean up expired promotions
Monthly Tasks
- Full platform audit
- Review all active staff members
- Analyze revenue from promotions
- Update trading/market settings if needed
- Plan upcoming promotions
🔗 Quick Links
📱 Keyboard Shortcuts
To be implemented in future version
🆕 Recent Updates
Version 1.0.0
- ✅ Full admin panel implementation
- ✅ User management system
- ✅ Promotion analytics
- ✅ Enhanced security features
Need More Help? Refer to the Complete Admin Panel Guide for detailed information.
Questions? Contact the development team or check the troubleshooting section.
Last Updated: 2024 Happy Administrating! 🎉