feat: add organization onboarding
All checks were successful
deploy-socialize / image (push) Successful in 1m8s
deploy-socialize / deploy (push) Successful in 19s

This commit is contained in:
2026-05-07 20:07:50 -04:00
parent 4aaa1a7f90
commit db16e79d9f
9 changed files with 699 additions and 80 deletions

View File

@@ -0,0 +1,35 @@
# Task: Organization onboarding for users without access
## Feature
`docs/FEATURES/organizations.md`
## Goal
When an authenticated user has no accessible organizations and no accessible workspaces, redirect them to an onboarding screen where they can create a new organization as its owner or request access from an existing organization/workspace administrator.
## Scope
- Add a protected onboarding route.
- Add a backend endpoint for creating an organization owned by the current user.
- Add frontend store support for organization creation.
- Redirect authenticated users with no organization/workspace access to onboarding.
- Keep users with direct workspace access out of onboarding even if they are not organization members.
- Add English and French UI strings.
## Validation
```bash
dotnet build backend/Socialize.slnx
cd frontend
npm run build
```
## Done
- [x] Users without organization or workspace access are redirected to onboarding.
- [x] Users can create an organization as owner.
- [x] Users can prepare an organization/workspace access request email.
- [x] OpenAPI snapshot and frontend schema are updated.
- [x] Backend build and tests pass.
- [x] Frontend build passes.