feat: auth-aware UI and role-based access control #67
Reference in New Issue
Block a user
Delete Branch "feature/auth-aware-ui-and-role-based-access-control"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
is_admincolumn to users table with Alembic migration and arequire_adminFastAPI dependency that protects all admin-facing write endpoints (games, pokemon, evolutions, bosses, routes CRUD)isAdminafter loginProtectedRouteandAdminRoutecomponents, preserving deep-linking through redirectsdrop_allbeforecreate_allto clear stale PostgreSQL enums from interrupted test runsadmin_clientfixture and use valid UUID for mock user so tests pass with new admin-protected endpointsTest plan
/admin/*routes redirect non-admin users with a toast/runs/newand/genlockes/newredirect unauthenticated users to login, then back after auth🤖 Generated with Claude Code