Account – Workspace
- Path:
/account/workspaces/:workspaceId(TBD) - Parent:
workspaces.md - Children:
workspace-knowledge-base.mdworkspace-users.mdworkspace-user-activity.md
Purpose (business goal)
Section titled “Purpose (business goal)”Provide a workspace-level hub for managing KB, users, and user activity for a single workspace.
User roles & permissions
Section titled “User roles & permissions”- Workspace Admin
- Permissions:
workspace.view, plus child-page permissions
Reference: Roles & Permissions Model
Layout structure
Section titled “Layout structure”- Workspace header (name/status)
- Tabs/nav: Knowledge base / Users / User activity
- Content region
Components used
Section titled “Components used”- Workspace Card: Component: Workspace Card
States
Section titled “States”- Empty: workspace exists but no KB/users configured
- Loading: fetch workspace details
- Error: not found / access denied
- Complete: workspace hub renders
Business logic (high-level)
Section titled “Business logic (high-level)”- Workspace scope selection is applied to child pages.
Domain refs: Domain: Workspaces
API dependencies
Section titled “API dependencies”GET /workspaces/{id}
Enterprise constraints
Section titled “Enterprise constraints”- All displayed/configurable data must be strictly scoped to the selected workspace.
- Workspace context changes must not “bleed” across tabs/apps.
Edge cases
Section titled “Edge cases”- Workspace membership revoked while viewing the page.
- Workspace deleted/disabled; route should return Not Found or access denied (TBD).
Security & compliance considerations
Section titled “Security & compliance considerations”- Prevent cross-workspace data leakage
Reference: Security & Compliance
Analytics events (if applicable)
Section titled “Analytics events (if applicable)”workspace.switched(when changing the active workspace context)
Reference: Analytics Events (MVP)