Repository navigation
feat(notes): a note says where it is and what's inside it - #514
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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}returnspathandchildren, and the MCP and assistant toolread_notereturnspathandnotes_inside.How:
notebook.path/childrenin the domain,NotePage.path/childrenin the API, andnote-page.tsxfor 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):
Types of changes
!in the title)Checklist:
make hookschecks it on commit).docs/accordingly.## UnreleasedinCHANGELOG.md.Done questions (AGENTS.md)
GET /notes/{id}givespathandchildren;read_note(MCP and assistant) givespathandnotes_inside..envedit or manual step.docs/requirements.mdname the checks.make openapi).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