Skip to content

feat(notes): templates, and a copy of any note - #509

Merged
adeelahmad merged 2 commits into
mainfrom
claude/project-thread-wm7xc9
Oct 17, 2026
Merged

adeelahmad merged 2 commits into
mainfrom
claude/project-thread-wm7xc9

Conversation

@adeelahmad

Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: every note started blank, and there was no way to copy a note.

After: notes inside a namespace's Templates note are templates. New note from a template… on the Notes page and in Jump to lists them (type to find, Enter takes the first) and starts a note with the template's title, text, drawings, files, filing and view. With no templates yet, it makes the Templates note and opens it. Any note's menu in the tree can Make a copy, which lands beside it and opens.

How: notebook.templates_root/templates/copy in the domain, GET/POST /notes/templates and POST /notes/{id}/copy in the API, and components/notes/templates.tsx in the web app. The README's built list and docs/requirements.md now name the checks for templates and for the Markdown download merged in #419 (which leaves In progress).

Motivation and Context

Adeel: "notes ui is very bad and is missing tons of things". Templates and copies are the next gaps from the audit against other notes apps, after the tree menu (#412), pins (#414), today's note (#416) and Markdown export (#419).

Steps to reproduce (if appropriate):

  1. Notes → New note from a template… with none yet makes the Templates note.
  2. Add a note inside it, then New note from a template… → pick it.
  3. In the tree, a note's ⋯ → Make a copy.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change; ! in the title)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (make hooks checks it on commit).
  • I added or updated tests.
  • My change requires documentation updates, and I have updated docs/ accordingly.
  • Users need more than the title to understand it, so I wrote it under ## Unreleased in CHANGELOG.md.

Done questions (AGENTS.md)

  • Goal: delivers what the user wanted, merged on green CI.
  • Agents: GET/POST /notes/templates and POST /notes/{id}/copy in the API.
  • Zero setup: no new prerequisite, .env edit or manual step.
  • Fewest clicks and keystrokes: type to find a template, Enter takes the first; one menu item copies.
  • Configurable: n/a, no new settings (templates are ordinary notes).
  • Light: n/a, no new service or dependency.
  • Private and secure: n/a, same notes permissions (editors only); no new surface.
  • Cost: n/a, no model calls.
  • User decides: nothing happens until the user picks; defaults unchanged.
  • Upgrades: n/a, no change to stored data's shape (Templates is an ordinary note).
  • Honest: README built list and docs/requirements.md name the checks.
  • Tests, docs and generated files updated (make openapi).
  • Open standards; dependencies keep Lens MIT (none added).
  • Result reported with evidence; "refine later" items written down (none new).
  • Reuse: copies reuse the note creation, files and filing code.

Local CI (ci/local-ci.sh): backend (embedded and server SurrealDB), Next.js, pre-commit and title pass.


Generated by Claude Code

Notes inside a namespace's Templates note are templates. New note from a template… on
the Notes page and in Jump to lists them (type to find, Enter takes the first) and
starts a note with the template's title, text, drawings, files, filing and view; with
none yet it makes the Templates note. The tree's menu makes a copy of any note beside it.

GET/POST /notes/templates and POST /notes/{pid}/copy.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RrY2byt5BHVeBXJUyfwWpb
@adeelahmad adeelahmad self-assigned this Oct 17, 2026
@adeelahmad
adeelahmad merged commit 83765f7 into main Oct 17, 2026
11 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-wm7xc9 branch October 17, 2026 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants