forked from mirror/crumbs-original
docs: add note-linking implementation plan
11 TDD tasks covering schema, extraction/sync/backlink service functions, the NoteLink tiptap node (parse/serialize + NodeView + title index), toolbar note-search UI, click-to-navigate wiring, the backlinks UI section, preview/public rendering, and e2e coverage. Self-review caught and fixed three real bugs before this was usable: a test referencing a USER_ID constant that doesn't exist in the actual notes-service.test.ts (it's OWNER_ID), a posAtDOM-based position lookup in the NodeView's remove button where tiptap's own getPos() is the correct API, and a title-index gap where trashed notes remain in a note's own IndexedDB cache (only collaborators have them filtered out at sync time) — so the index needed its own explicit trashed filter or a trashed note's links would never grey out for its owner. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
895edc05a3
commit
35fceac5a1