8000 feat(notes): notes tree in the navigation, note pages and the BlockSuite editor by adeelahmad · Pull Request #122 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

feat(notes): notes tree in the navigation, note pages and the BlockSuite editor - #122

Merged
adeelahmad merged 1 commit into
mainfrom
claude/notes-module-j9j30y
Oct 4, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/notes-module-j9j30y

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Description

Before: notes existed only in the API (#118), with no way to see or write them in the web app.

After: the left navigation shows a Notes tree for each namespace, like Notion. You can add a note at the top or inside another one, and drag a note onto another to move it there. A note opens in the BlockSuite editor, with title, date, one-line summary and place (Project, Area, Resource or Archive). Typing @ or # lists recordings, entities, collections, speakers and pages to link. Backlinks show under the page. Recordings and entities get a "Page" button that opens their own page. That page is a draft until the first change.

Motivation and Context

Second step of the Notes module (thread "Notes module"). The editor is BlockSuite, AFFiNE's editor. It edits the same Yjs documents as OctoBase, which is an AGPL database rather than an editor. The pnpm override pins @blocksuite/icons to 2.1.75, because newer releases dropped an icon BlockSuite 0.19.5 imports.

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.

Checked locally: tsc and eslint pass. Jest shows the same 145 failures in this container on main and on this branch; the new notes test passes. A production build passed, and in a browser the @ menu, link clicks and the reload from saved Yjs state all worked.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XZQXJtCvJgbG1Z2H312KcS


Generated by Claude Code

…ite editor

Free notes show as a tree in the left navigation (add inside, drag to
move). A note page has its title, one-line summary, date and PARA place,
and AFFiNE's BlockSuite editor, where @ and # open a menu of what to link.
Recordings and entities open their own page.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XZQXJtCvJgbG1Z2H312KcS
@adeelahmad
adeelahmad merged commit 64495bb into main Oct 4, 2026
1 of 5 checks passed
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

0