super-admin-portal-skill
Use this skill when developing, testing, debugging, or modifying code inside the Super Admin Portal frontend (apps/super-admin-portal). It applies to SaaS platform-level configurations, multi-tenant p
SKILL.mdskills/super-admin-portal-skill/SKILL.md
GitHubSuper Admin Portal Development Skill
Use this skill when modifying, running, or analyzing the Super Admin Portal frontend application.
Overview
- Location: apps/super-admin-portal/
- Local Port:
3000(runs onhttp://localhost:3000alongside landing page) - Key Target Role:
Role.SUPER_ADMIN - Authentication Entrypoint:
http://localhost:3001/auth/internal/login(Platform-wide controls) - Related Backend Services:
tenant-service(Port8083, API path/api/v1/tenants/**)user-service(Port8082, API path/api/v1/users/**)analytics-service(Port8091, API path/api/v1/analytics/**)
Folder Structure & Key Paths
- Layout File: layout.tsx - Configures the system-wide control panel framing and analytics connections.
- Sub-routes (
src/app/dashboard/):tenants: Interface for tenant listing, SaaS subscription states, new tenant provisioning, and sandbox isolations.
Development Workflow
How to Run Locally
To spin up the Super Admin Portal, run the startup script:
# Run the bat script which starts docker, Maven JAR dependencies, and the dev server
.\apps\super-admin-portal\superadminrun.bat
Credentials for Testing
- Test Email:
superadmin@hariventures.com - Password:
Password@123 - MFA Flow: Requires Google Authenticator MFA setup upon first login attempt.
Code Patterns & Best Practices
- Multi-Tenant SaaS Operations: Super admin commands have the highest privilege. Ensure that tenant provisioning updates publish correct events via
tenant-serviceto configure Mongo databases dynamically. - Access Control Warning: Changes here must verify that only users with
Role.SUPER_ADMINare permitted to view dashboard widgets.