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

  1. Login as an admin user
  2. Click "Admin" in the navigation (⚙️ icon)
  3. Or navigate to: https://pathfinder.rangelab.io/admin

Add a User

  1. Click "Add User" button
  2. Fill in email, password, and role
  3. Assign to organization or landlord
  4. Click "Create User"

Environment Variables

Add to your .env.local:

SUPABASE_SERVICE_ROLE_KEY=your-service-role-key-here

⚠️ Important: Keep this key secret!