Organizations and Websites
Why it exist
The CMS is organized around organizations 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.