Admin Panel
The Admin Panel is part of the main Xiru application, accessible at /admin for users with the ADMIN role.
The admin panel is protected by
AdminGuard. Regular users cannot access it — attempting to navigate to admin routes redirects to the main dashboard.
Navigation
Section titled “Navigation”The admin panel has a fixed sidebar with three main sections:
| Page | Route | Purpose |
|---|---|---|
| Dashboard | /admin | Overview of system health and statistics |
| KYB Requests | /admin/kyb | Review and manage business verification applications |
| Surveys | /admin/surveys | Create and manage investment survey questions |
A Back to Dashboard link in the sidebar footer returns to the user-facing dashboard.
Admin Dashboard
Section titled “Admin Dashboard”Overview page showing system health and key statistics for the platform.
KYB Request Management
Section titled “KYB Request Management”Review business verification applications:
- List of KYB applications with status indicators
- Detail view for individual applications
- Download submitted documents
- Approve or reject applications
Survey Management
Section titled “Survey Management”Full CRUD for investment survey questions:
Survey List
Section titled “Survey List”- Table of active/inactive surveys with status indicators
- Edit or view individual surveys
Survey Editor
Section titled “Survey Editor”- Create new surveys or edit existing ones
- Dynamic question builder — add, remove, reorder questions
- Question types: radio (single select), checkbox (multi-select), text input
- Set questions as required or optional
- Preview questions as users would see them
Routes
Section titled “Routes”/admin/surveys— survey list/admin/surveys/create— create new survey/admin/surveys/[surveyId]— edit existing survey
Authentication
Section titled “Authentication”Admin access requires the ADMIN role. The AdminGuard component verifies the user’s role — non-admins see an “Admin access required” rejection.