feat: implement workspace management and member invitations

- Added tenant API for managing workspaces, including listing, creating, and inviting members.
- Introduced new models for organizations, workspaces, and workspace memberships in the backend.
- Created frontend components for workspace administration, allowing users to manage workspaces and invite members.
- Updated document listing to support workspace-specific filtering.
- Implemented account settings page for user profile management and password changes.
- Added end-to-end tests for workspace administration and dashboard functionalities.
This commit is contained in:
Anurag Jangid 2026-10-23 01:19:11 +05:30
parent 809235e962
commit bf5cd44dc1
20 changed files with 928 additions and 27 deletions

View file

@ -22,6 +22,7 @@ class DocumentCreate(BaseModel):
template_id: str | None = None
stead_id: str | None = None
parent_page_id: str | None = None
workspace_id: int | None = None
class DocumentUpdate(BaseModel):
@ -30,6 +31,7 @@ class DocumentUpdate(BaseModel):
starred: bool | None = None
stead_id: str | None = None
parent_page_id: str | None = None
workspace_id: int | None = None
class ShareRequest(BaseModel):
@ -53,6 +55,7 @@ class DocumentResponse(BaseModel):
owner_id: int | None = None
visibility: Visibility = "private"
members: list[DocumentMember] = Field(default_factory=list)
workspace_id: int | None = None
class DocumentVersionResponse(BaseModel):