Documentation Index
Fetch the complete documentation index at: https://docs.auction-rise.com/llms.txt
Use this file to discover all available pages before exploring further.
Workspaces
Workspaces are the top-level multi-tenant containers in the template. Each workspace has its own members, settings, and data — all isolated from other workspaces via Supabase Row Level Security (RLS).Creating a Workspace
- Click the workspace switcher in the sidebar header.
- Select Create Workspace.
- Enter a name — the URL slug is generated automatically.
- Click Create.
Switching Workspaces
TheSidebarWorkspaceSwitcher component persists your active workspace to a cookie (active_workspace_id). All navigation and data fetches are scoped to the active workspace.
Role Hierarchy
Three roles are supported: Owner, Admin, and Member.| Permission | Owner | Admin | Member |
|---|---|---|---|
| View workspace | Yes | Yes | Yes |
| View members | Yes | Yes | Yes |
| Update workspace settings | Yes | Yes | No |
| Delete workspace | Yes | No | No |
| Invite members | Yes | Yes | No |
| Remove members | Yes | Admins only* | No |
| Change roles | Yes | Members only** | No |
| Transfer ownership | Yes | No | No |
| Leave workspace | No*** | Yes | Yes |
Server Actions
All workspace operations live in@/lib/workspaces/actions:
@/lib/workspaces/role-utils (pure functions, safe for client-side use) and @/lib/workspaces/roles (server actions that query the database).
Workspace Context
Access the active workspace in any Client Component:RLS Enforcement
All workspace-scoped tables use RLS policies that call theis_workspace_member(workspace_id) SQL helper. No data is accessible without a valid session and matching membership row.
Settings
Owners and admins can navigate to Workspace Settings to update the workspace name. The Danger Zone (delete workspace) is visible only to owners. The Members tab exposes theMembersManagement component for role changes, removal, and ownership transfer.