Skip to content

feat(notes): a note says where it is and what's inside it - #514

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: a note's page didn't say where the note sat in the tree or which notes were inside it; its text was indented further than its title; a row of buttons (Pin, History, Download, Delete) and the costs and activity panel crowded the page.

After: above the title, Notes › namespace › each note it's inside, every one a link. Under the text, Inside this note lists the notes inside it, with Add a note inside (its title ready to type). The text starts in line with the title, the word count shows next to Saved, Pin, History, Download and Delete are in the note's ⋯ menu, and Costs and activity is folded at the bottom and loads only when opened. Agents get the same: GET /notes/{id} returns path and children, and the MCP and assistant tool read_note returns path and notes_inside.

How: notebook.path/children in the domain, NotePage.path/children in the API, and note-page.tsx for the breadcrumbs, the ⋯ menu and the Inside section; the block editor drops BlockSuite's own side margin.

Motivation and Context

Adeel: "notes ui is very bad and is missing tons of things". Knowing where you are and what's below is basic in other notes apps; this is the last piece of the audit after the tree menu (#412), pins (#414), today's note (#416), Markdown export (#419) and templates (#509).

Steps to reproduce (if appropriate):

  1. Open a note inside another note: the breadcrumbs show Notes › namespace › its parent.
  2. Scroll under the text: Inside this note lists its children; Add a note inside makes one.
  3. ⋯ next to Saved: Pin, History, Download, Delete.

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 /notes/{id} gives path and children; read_note (MCP and assistant) gives path and notes_inside.
  • Zero setup: no new prerequisite, .env edit or manual step.
  • Fewest clicks and keystrokes: one click to any note above or below; Add a note inside has its title ready.
  • Configurable: n/a, no new settings.
  • Light: n/a, costs and activity now load only when opened.
  • Private and secure: n/a, same notes permissions (a viewer sees the notes inside but not Add or Delete); no new surface.
  • Cost: n/a, no model calls.
  • User decides: n/a, nothing new happens on its own; defaults unchanged.
  • Upgrades: n/a, nothing stored changes (path and children are read from the tree).
  • 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: the tree's own ordering and the existing menu component.

Local CI (ci/local-ci.sh): backend (embedded and server SurrealDB), Next.js, pre-commit and title pass; re-checked on the latest main with the notes and MCP tests, type check and notes jest suites.


Generated by Claude Code

Above a note's title, Notes › namespace › each note it's inside, every one a link;
under its text, Inside this note lists the notes inside it with Add a note inside. The
text starts in line with the title (BlockSuite's own side margin is gone), the word
count shows next to Saved, Pin, History, Download and Delete move into the note's ⋯
menu, and Costs and activity is folded and loads only when opened.

GET /notes/{pid} gives path and children; read_note gives path and notes_inside.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RrY2byt5BHVeBXJUyfwWpb
@adeelahmad
adeelahmad merged commit 5a04d64 into main Oct 17, 2026
11 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-wm7xc9 branch October 17, 2026 06:17
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