Skip to content

feat: create and copy public share links from the Mac app#323

Merged
fjbarrett merged 1 commit into
mainfrom
feat/mac-share-links
Jul 10, 2026
Merged

feat: create and copy public share links from the Mac app#323
fjbarrett merged 1 commit into
mainfrom
feat/mac-share-links

Conversation

@fjbarrett

Copy link
Copy Markdown
Owner

Summary

  • KeepAPI.share/unshare call the existing POST/DELETE /api/notes/[id]/share endpoints; NotesStore wrappers update the cached note
  • Copy Share Link (row context menu + menu-bar Note menu) mints the token if needed — server COALESCEs an existing one — and puts the /p/<token> URL on the pasteboard; Stop Sharing revokes
  • Shared notes show a small link glyph beside the pin in the list row
  • iOS target builds too (shared services changed); no iOS UI yet
  • Screenshot: ios/screenshots/keepmac-share-links-20260709-204934.png

Test plan

  • xcodebuild -scheme KeepMac and -scheme Keep (iOS) build
  • Snapshot harness: shared note renders the link glyph in its row
  • Manual: Copy Share Link on a real note, open the URL in a browser, then Stop Sharing and confirm 404

🤖 Generated with Claude Code

The web shares a note via a public /p/<token> page; the Mac app had no
way to reach it. Copy Share Link (context menu + Note menu) mints the
token if needed and puts the URL on the pasteboard, Stop Sharing revokes
it, and shared notes show a link glyph in the list row.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@fjbarrett
fjbarrett merged commit 3653019 into main Jul 10, 2026
3 checks passed
@fjbarrett
fjbarrett deleted the feat/mac-share-links branch July 10, 2026 03:51
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.

1 participant