feat: add organization onboarding
This commit is contained in:
35
docs/TASKS/organizations/007-organization-onboarding.md
Normal file
35
docs/TASKS/organizations/007-organization-onboarding.md
Normal 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.
|
||||
Reference in New Issue
Block a user