Skip to content

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.

The admin panel has a fixed sidebar with three main sections:

PageRoutePurpose
Dashboard/adminOverview of system health and statistics
KYB Requests/admin/kybReview and manage business verification applications
Surveys/admin/surveysCreate and manage investment survey questions

A Back to Dashboard link in the sidebar footer returns to the user-facing dashboard.

Overview page showing system health and key statistics for the platform.

Review business verification applications:

  • List of KYB applications with status indicators
  • Detail view for individual applications
  • Download submitted documents
  • Approve or reject applications

Full CRUD for investment survey questions:

  • Table of active/inactive surveys with status indicators
  • Edit or view individual surveys
  • 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
  • /admin/surveys — survey list
  • /admin/surveys/create — create new survey
  • /admin/surveys/[surveyId] — edit existing survey

Admin access requires the ADMIN role. The AdminGuard component verifies the user’s role — non-admins see an “Admin access required” rejection.