Admin Dashboard
Overview
A comprehensive Admin Dashboard for system analytics and user management.
Status: ✅ Complete
Features
Analytics Overview
- Total Users count
- Total Organizations count
- Active Resources
- Pending Referrals
User Management
- Complete list of all system users
- Role filtering dropdown
- Color-coded role badges
- Edit and Delete actions
User Roles
- Admin - Full system access, can manage users
- Staff - Full CRM access
- Caseworker - Organization-scoped access
- Org Admin - Organization administrator
- Landlord - Access to landlord portal only
Usage
Access the Admin Dashboard
- Login as an admin user
- Click "Admin" in the navigation (⚙️ icon)
- Or navigate to: https://pathfinder.rangelab.io/admin
Add a User
- Click "Add User" button
- Fill in email, password, and role
- Assign to organization or landlord
- Click "Create User"
Environment Variables
Add to your .env.local:
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key-here
⚠️ Important: Keep this key secret!