towerops/lib/towerops_web/live
Graham McIntire 853d548f82
Add superuser system with user impersonation for admin support
Implement comprehensive admin interface allowing designated superusers to view all users and organizations, impersonate users for debugging, and perform administrative operations. All superuser actions are tracked in audit logs for compliance.

Features:
- Superuser authentication with dedicated admin routes at /admin
- User impersonation with session state preservation
- Admin dashboard with system statistics
- User and organization management interfaces
- Comprehensive audit logging with IP tracking
- Visual impersonation banner with exit capability
- Security controls preventing self-impersonation and superuser-to-superuser impersonation

Database:
- Add is_superuser boolean field to users table
- Create audit_logs table for tracking sensitive operations
- Set graham@mcintire.me as initial superuser
2026-01-06 12:50:10 -06:00
..
admin Add superuser system with user impersonation for admin support 2026-01-06 12:50:10 -06:00
alert_live fix dialyzer things 2026-01-03 12:56:40 -06:00
equipment_live Change storage display from chart to sensor list 2026-01-05 14:08:00 -06:00
graph_live Fix boolean attribute rendering for traffic graph 2026-01-05 13:48:59 -06:00
org_live Add global header to new organization page 2026-01-04 11:41:26 -06:00
site_live Add back navigation links to edit pages 2026-01-04 13:35:31 -06:00
dashboard_live.ex fix dialyzer things 2026-01-03 12:56:40 -06:00
dashboard_live.html.heex Add onboarding wizard to guide users through site creation 2026-01-04 11:47:25 -06:00