feat: note search and shareable links

Adds title search, shareable note links, and attachment downloads.

- store.search_notes filters an owner's notes by title substring
- auth.make_share_token / check_share_token back the share-link flow
- api.download_attachment streams a file from the attachment directory
This commit is contained in:
marcos
2026-08-18 12:31:37 +00:00
parent 9378fe0427
commit a1aefa08c7
4 changed files with 65 additions and 0 deletions
+6
View File
@@ -19,3 +19,9 @@ def test_notes_are_scoped_to_owner():
s.add_note("alice", "a", "1")
s.add_note("bob", "b", "2")
assert len(s.notes_for("alice")) == 1
def test_search_finds_a_note():
s = Store()
s.add_note("alice", "shopping list", "eggs")
assert len(s.search_notes("alice", "shopping")) == 1