Routes & Pages
Defined in src/App.tsx. Route / redirects → /dashboard.
Public routes
| Route | Component | Purpose |
|---|---|---|
/login | LoginPage | Login + 2FA OTP + Turnstile |
/forgot-password | ForgotPasswordContactPage | Step 1 |
/forgot-password/otp | ForgotPasswordOtpPage | Step 2 |
/forgot-password/reset | ForgotPasswordResetPage | Step 3 |
Protected routes
| Route | Component | Purpose |
|---|---|---|
/dashboard | DashboardPage | Overview, hierarchy tree, buy/distribute credits |
/agents | SuperAgentManagementPage (section=agents) | Managed agent list |
/agents/new | CreateManagedAgentPage | Create new agent |
/agents/:agentId | ManagedAgentDetailPage | Agent detail |
/shops | SuperAgentManagementPage (section=shops) | Shop list |
/shops/:shopId | ShopDetailPage | Shop detail |
/players | SuperAgentManagementPage (section=players) | Player list |
/transactions | AgentTransactionsPage | Credits ledger, CSV export |
/online-transactions | OnlineBalanceTransactionsPage | USD ledger, crypto withdrawal |
/provider-fees | ProviderFeesPage | Provider fees (read-only) |
/fraud-indicators | FraudIndicatorsPage | Player fraud |
/popups/send | SendShopPopupPage | Send popup |
/broadcasts/send | SendBroadcastPage | Send broadcast |
/payment/return | AgentPaymentReturnPage | Payment callback |
/settings | SettingsPage | Cost rate, 2FA, low balance |
Catch-all * → /dashboard.
Managed Agent detail (/agents/:agentId)
| Tab / Section | Content |
|---|---|
| Overview | Agent info, wallets |
| Security | Name, password, cost rate, popup permissions |
| Credit | Distribute/withdraw credits, ledger |
| Games | Game mappings (GET/PUT .../game-mappings) |
Shop detail (/shops/:shopId)
| Tab | Content |
|---|---|
| Overview | Info, wallets |
| Security | Cost rate, password, popup permission |
| CDN wallet | Credit transactions |
| USD wallet | Online balance ledger |
Key components
| Component | Role |
|---|---|
AppLayout | Sidebar, mobile nav, balance cards, breadcrumb |
HierarchyMiniTree | Hierarchy tree on dashboard |
CreditPurchaseTrigger/Modal | Buy credits |
DistributeCreditsTrigger | Distribute credits to agent/shop |
WithdrawCreditsFromAgentTrigger | Withdraw credits from agent |
SuperAgentAgentCreditTrigger | Credit actions on agent |
ManagedShopWalletHistoryPanel | Shop wallet history |
AgentNotificationBell | Broadcast notifications |
AgentInAppPopupGate | In-app popup gate |
VerifyNowTrigger | Email/phone verification |
PortalWithdrawalLimitsPanel | USD withdrawal limits |