diff --git a/01 Projects/amazon-transcreation/Amazon Transcreation.md b/01 Projects/amazon-transcreation/Amazon Transcreation.md index ed4335d..40511b1 100644 --- a/01 Projects/amazon-transcreation/Amazon Transcreation.md +++ b/01 Projects/amazon-transcreation/Amazon Transcreation.md @@ -23,6 +23,14 @@ created: 2026-04-15 - **Local path:** `/Volumes/SSD/Projects/Oliver/amazon-transcreation` ## Sessions +### 2026-04-15 – Implement user management with DB registration +**Asked:** Implement user management with DB registration and role assignment (viewer default, upgradeable to admin/manager). +**Done:** Added user registration logic with role-based access control, deployed to production, and provided migration/seeding commands. + +### 2026-04-15 – Implement user registration with DB persistence +**Asked:** Implement user registration with DB persistence and role management (default viewer, upgradeable to admin/manager). +**Done:** Added viewer role to UserRole enum, updated SSO auto-provisioning, created migration, and deployed with admin seeding script. + ### 2026-04-15 – Implement user registration in DB with **Asked:** Implement user registration in DB with default viewer role and ability to upgrade to admin/manager via backend. **Done:** Added viewer role to UserRole enum, created migration, updated SSO auto-provisioning to assign viewer role by default, and verified all changes in git. @@ -51,6 +59,8 @@ created: 2026-04-15 ## Change Log | Date | Requested | Changed | Files | |------|-----------|---------|-------| +| 2026-04-15 | User registration and role management | User model with role enum, migration for viewer role, admin seeding script | User.py, alembic migrations, create_default_admins.py | +| 2026-04-15 | User registration and roles | Added viewer role enum, SSO auto-provision logic, migration for role enum, admin seeding script | user.py, service.py, user.py schema, d3e4f5a6b7c8_add_viewer_role.py | | 2026-04-15 | User registration with roles | Added viewer role enum value, created migration for viewer role, updated SSO service to default new users to viewer role | user.py, d3e4f5a6b7c8_add_viewer_role.py, service.py, user.py | | 2026-04-15 | User registration and roles | Database persistence, default viewer role, admin/manager upgrade capability, role enum integration | jobs/[jobId]/page.tsx, migration file, seed script | | 2026-04-15 | SSO/Azure AD setup | Added NEXT_PUBLIC_AZURE_AD_TENANT_ID, NEXT_PUBLIC_AZURE_AD_CLIENT_ID, SSO_ENABLED env vars to Docker build args, updated deploy script | frontend/Dockerfile, docker-compose.prod.yml, deploy.sh | diff --git a/99 Daily/2026-04-15.md b/99 Daily/2026-04-15.md index 373665e..f289774 100644 --- a/99 Daily/2026-04-15.md +++ b/99 Daily/2026-04-15.md @@ -216,3 +216,9 @@ tags: [daily] - 18:37 | `social-reporting-tool` - **Asked:** Fix frontend deployment to /var/www/html and ensure Apache reloads after copy. - **Done:** Updated deploy.sh and setup.sh to use recursive copy, added Apache reload, and made file copying self-documenting. +- 18:41 | `amazon-transcreation` + - **Asked:** Implement user registration with DB persistence and role management (default viewer, upgradeable to admin/manager). + - **Done:** Added viewer role to UserRole enum, updated SSO auto-provisioning, created migration, and deployed with admin seeding script. +- 18:41 | `amazon-transcreation` + - **Asked:** Implement user management with DB registration and role assignment (viewer default, upgradeable to admin/manager). + - **Done:** Added user registration logic with role-based access control, deployed to production, and provided migration/seeding commands.