Overview
The Admin Dashboard provides a comprehensive overview of the entire HURE platform with real-time statistics and system health monitoring.
Key Features
System Status Monitoring
- API Health Check: Real-time API version and connectivity status
- Database Status: Connection health and availability
- Last Check Timestamp: Automated health check timing
- Visual Indicators: Green “Healthy” badge for at-a-glance status
Database Statistics
- 52 States: Complete US state reference data (includes DC and Puerto Rico)
- 3,222 Counties: All US counties with geographic boundaries
- 9 Brokers: Active real estate brokerage partners
- 5 Agents: Registered real estate agents
- 8 Leads: Customer inquiries awaiting assignment
Quick Actions
The dashboard provides direct access to the three most critical functions:
- Manage Brokers: Add, edit, and manage broker partnerships
- View Leads: Review and manage incoming customer inquiries
- County Coverage: View and manage broker-to-county assignments
Navigation
Clean sidebar navigation with icons for all major sections:
- Dashboard (home)
- States
- Counties
- Brokers
- Agents
- Leads
- Suggestions
- Stripe (payment management)
- Search (advanced search)
- API Keys
- Data (import/export)
User Profile
Bottom-left user widget shows:
- User avatar (initials)
- Full name
- Email address
- Role badge
- Quick links to main site and sign out
Authentication Integration
The dashboard requires Keycloak OIDC authentication. Upon successful login:
- JWT tokens are stored securely
- User role determines visible features
- API calls automatically include bearer tokens
- Session persists across page navigations
Testing Results
- ✅ Dashboard loads with current statistics
- ✅ System status shows “Healthy” with API version
- ✅ All statistics display correct counts from database
- ✅ Quick action cards are clickable and navigate correctly
- ✅ Sidebar navigation works for all sections
- ✅ User profile displays authenticated user information
- ✅ Authentication persists across page loads
- ✅ No console errors during navigation