Files
social-media/docs/TASKS/organizations/007-organization-onboarding.md
Jonathan Bourdon db16e79d9f
All checks were successful
deploy-socialize / image (push) Successful in 1m8s
deploy-socialize / deploy (push) Successful in 19s
feat: add organization onboarding
2026-05-07 20:07:50 -04:00

36 lines
1.2 KiB
Markdown

# 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.