Organizations and Websites
Why it exists
The CMS is organized around organization and website workspaces. Users need a tenant-aware shell before they can create routes, content, or deployments.
Use this when
- A user needs to switch between websites
- A new website must be created within an organization
- The admin shell needs organization-aware navigation
- Profile and organization context must be loaded before feature work
What it includes
- Organization-aware sidebar navigation
- Website selection in the admin shell
- Website creation flow
- Website profile and summary data on the dashboard
- Organization and website tRPC procedures
Core workflow
- Resolve the signed-in user.
- Load the user's profile and organization membership.
- Fetch websites for that organization.
- Let the user switch workspace context or create a new website.
- Scope downstream admin features to the selected website ID.
System surfaces
- CMS admin sidebar and dashboard
- Website CRUD procedures in the tRPC layer
- Organization lookup used during session bootstrapping