Project Collaboration
Projects live inside workspaces and provide a space for team collaboration on resources (documents and other content types).
See project tools and Clientside drawn as wireframes in Application Flows.
Creating a Project
Route: POST /workspaces/:slug/projects
Provide a name and optional description. A URL-safe slug is generated automatically, unique within the workspace. The creator is assigned the creator project role and a ProjectMembership is created.
Workspace capacity limits apply — if the workspace has reached max_projects, creation is blocked.
Project Roles
Project-level roles are simpler than workspace roles, using a three-tier enum:
| Role | Can edit resources | Can manage members | Assigned how |
|---|---|---|---|
| Creator | Yes | Yes | Automatically on creation |
| Editor | Their own | No | Invitation or member add |
| Viewer | No | No | Invitation or member add |
Project roles are checked via ProjectMembership#role (an enum), not via the JSON permissions system used at the workspace level. A member keeps the role they were added with; there is no control yet for changing it.
Who sees which projects
Owners see every project in the workspace. Admins, Members and Viewers see only the projects they’ve been added to, even when they can manage people or projects elsewhere in the workspace. To let someone see a project, add them on its members page.
Managing Project Members
Routes: /workspaces/:slug/projects/:slug/memberships
Adding Members
Select from existing workspace members. A user must be a workspace member before they can be added to a project — the user_is_workspace_member validation enforces this.
Inviting External Users
Route: POST /workspaces/:slug/projects/:slug/invitations
Invite someone who isn’t yet a workspace member:
- Enter their email and choose a project role (editor or viewer).
- The system sends an invitation email with a 7-day expiry.
- When the invitee accepts, they become both a workspace member (with viewer role) and a project member (with the specified role).
This dual-level acceptance happens atomically in Invitation#accept!.
Remove someone from one project only
On the project’s members page, choose Remove on their row. They lose access to this project, but they’re still a member of the workspace and of any other project they’re in. To remove them from the workspace altogether, deactivate them instead: see Remove someone who left.
Resources
Resources are the content items within a project. The system uses a polymorphic pattern:
Project → has_many :resources → belongs_to :resourceable (polymorphic)
Documents
The default (and currently only) resource type. Documents use Action Text for rich text editing, with Lexxy as the editor:
Documentmodel holds just an ID and timestamps- Rich text content lives in Action Text’s
rich_textstable viahas_rich_text :body - The
Resourcewrapper provides title, status, position, and creator tracking - Unsaved edits survive a closed tab — see Form drafts (developer)
- To describe an image for people who can’t see it, move to it with the arrow keys (or click it), press Alt+F10 to reach its toolbar, and choose ALT. An image left undescribed is skipped by screen readers, and its caption names the file
Resource Status
| Status | Meaning |
|---|---|
draft |
Work in progress, visible to project members |
published |
Complete, ready for wider consumption |
Ordering
Resources have a position field (integer, >= 0) and can be reordered:
Route: PATCH /workspaces/:slug/projects/:slug/resources/:id/position (Workspaces::Projects::Resources::PositionsController#update)
The positioned scope orders by position ascending.
Deleting a Resource
A resource’s page offers Delete to the people who may remove it: the person who wrote it, the project’s creator, and the workspace’s owners when they are members of the project. An owner can delete a resource they cannot edit, which is why the control sits on the resource’s page rather than its edit page. Delete asks for confirmation first; a deleted resource leaves the project for everyone and is not listed anywhere afterwards, so the dialog says it can’t be undone.
Route: DELETE /workspaces/:slug/projects/:slug/resources/:id (Workspaces::Projects::ResourcesController#destroy)
Adding New Resource Types
See the Extending guide for how to add new resource types via the polymorphic pattern.
Project Tools
Each project has an independently configurable set of tools — navigable sections of the project (for example, the docs area). Tools appear as a tab bar on the project home page.
Configuration route: GET /workspaces/:slug/projects/:slug/tools/edit · PATCH /workspaces/:slug/projects/:slug/tools
Controller: Workspaces::Projects::ToolsController
The available tool catalogue is defined in code via ProjectTools::Registry (see app/lib/project_tools/). Each ProjectTools::Tool entry declares a key, a route-helper name, and whether it is enabled by default. New tools are registered in config/initializers/project_tools.rb using ProjectTools::Registry.register(...).
Per-project state is stored as a JSON array of key strings in projects.enabled_tools. The model exposes:
Project#tool_enabled?(key)— boolean check for a single keyProject#tools— returns the subset ofRegistry.implementedtools that are enabled for this project, in registry order
New projects receive the registry’s default enabled set (Registry.default_keys). The only built-in tool currently shipped is :docs.
See Project Tools for the full reference.
Share with a client
A project can give someone outside your team, such as a customer, a read-only view of the documents you choose. They never join the workspace. Share with a Client has the steps.
Project Lifecycle
Like workspaces, projects are Active by default and can be Archived (reversible) or Deleted (permanent) by anyone who can manage the project. Projects have no lock state of their own — a locked workspace blocks its projects along with everything else.
Archive (reversible)
Route: POST /workspaces/:workspace_slug/projects/:slug/archival (archive) · DELETE .../archival (restore)
Archiving moves a project out of the active list — “you can bring it back anytime from the Archived section.” An archived project stays readable to its members and to external clients on shared resources (see Share with a Client). Restore returns it to Active.
Delete (permanent)
Route: DELETE /workspaces/:workspace_slug/projects/:slug
Deleting is permanent, confirmed through a “Delete this project for good?” → “Delete forever” dialog (no name-typing, unlike deleting a whole workspace). Under the hood it is a soft delete (Discardable) — data is retained but hidden from every view. Deleting a workspace cascades this to all of its projects.
Real-Time Updates
Projects broadcast changes via Turbo Streams:
ProjectMembershipbroadcasts on create, update, and destroyResourcebroadcasts changes to the project channel- Connected users see updates in real time