Admin Dashboard
Manage users and Pro purchases in the ACG portal.
Overview
The admin dashboard is at /admin and requires user.role = 'admin'.
Setup
ADMIN_EMAIL=your@email.com pnpm admin:setupOr set role = 'admin' in the database for an existing user.
Features
Users (/admin/users)
- Search by name or email
- View verification status, role, ban status, and plan
- Ban / unban users
Subscriptions / Pro orders (/admin/subscriptions)
- Review Pro purchase and delivery-related records used by the portal
Credits page
Legacy credit tooling may still exist in the codebase from the starter template. ACG Pro delivery does not use a credit ledger for the product offer — treat credit UI as non-product unless you intentionally reuse it.
Auth guard
Access is enforced by features/admin/components/admin-guard.tsx.