Repository navigation
Description
Current status, September 22
This issue chooses shared template storage for docs and the later issue templates in #206; project duplication in #207 can proceed independently. Keep the design discussion before implementation. Removing the good-first-issue label because this schema and permission decision affects several features.
Original requirements
Doc templates in Orbit are a TypeScript constant.
apps/web/src/features/docs/templates.ts exports DOC_TEMPLATES, a frozen array with a blank doc, meeting notes, a product spec and a few others. They are good templates. They are also the only templates any Orbit workspace will ever have, unless somebody forks the repository and redeploys it.
Every team has a document they write repeatedly. An incident report, a design review, a weekly update, an onboarding checklist, a customer call summary. None of them are in that array and none of them can be added.
What to build
Workspace defined doc templates.
Storage. A template is a doc with a flag, or a separate table. Making it a doc has real advantages: it reuses the editor, versions, permissions and the tree, and creating a template becomes "write a doc, then mark it as a template". That is our suggestion, but say what you think, because a separate table is cleaner if templates grow fields that documents do not have.
Creating one. From an existing doc, "save as template". From scratch, in a templates section of docs settings.
Using one. The new doc flow at apps/web/src/app/(app)/docs/new/ and new-doc.tsx already shows a template picker. It should list workspace templates alongside the built in ones rather than instead of them. Keep the built ins as a starting point for a new workspace.
Variables. The single feature that makes templates worth using rather than copying: placeholders filled at creation time. Date, the person creating it, the workspace, the current sprint, and a prompt for anything else the template asks for. Start with a small fixed set. A general templating language is not wanted here.
Permissions. Who may create a workspace template. Probably admins and members, not guests. packages/shared/src/policy decides.
Then do the same for issues and projects
Issue templates and project templates are listed under "Later" on the roadmap and are a much more commonly requested feature than doc templates. They are separate issues in the Planning parity milestone, but the model chosen here should be the model used there, so whoever takes this one is effectively choosing for all three. Say so in your design comment.
An issue template needs to carry more than a body: default labels, default assignee, default priority, default project, and a sub-issue checklist. Keep that in mind when picking the storage shape, even though it is out of scope here.
Files
apps/web/src/features/docs/templates.tsapps/web/src/features/docs/new-doc.tsxapps/web/src/app/(app)/docs/new/page.tsxpackages/db/src/schema/content.tspackages/core/src/content/
Good first issue, with a caveat
The mechanical work is approachable. The storage decision is not, and it affects two later features. Comment with your proposed shape before building and somebody will confirm it quickly.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsBacklog
Activity
imshashank commentedon Aug 8, 2026
Cross-linking, because the storage decision made here is binding on two other issues.
Orbit is about to get three kinds of template, and they should share one model rather than growing three:
Whoever picks this one up is effectively choosing for all three. Post the proposed shape here before building and it will get confirmed quickly. If you are picking up #206 or #207 first, read this thread before you invent storage.