Skip to content

feat(conversations): add @mentions support#87

Merged
NicholaiVogel merged 1 commit intomainfrom
feat/conversation-mentions
Feb 16, 2026
Merged

feat(conversations): add @mentions support#87
NicholaiVogel merged 1 commit intomainfrom
feat/conversation-mentions

Conversation

@NicholaiVogel
Copy link
Copy Markdown
Contributor

Summary

  • Add @user, @channel, @here, and @Compass agent mentions to the conversations module
  • TipTap Mention extension with suggestion popup (sectioned: Groups, Agents, People) and keyboard navigation
  • message_mentions junction table for efficient "find all messages that mention me" queries
  • Push notifications for mentioned users, respecting per-member notifyLevel preferences
  • Edit support: mention junction table re-synced on message edit (no re-notification on edit)
  • Fix crypto.randomUUID fallback for non-secure contexts (HTTP localhost)

Test plan

  • Type @ in message composer -- suggestion popup appears with @channel, @here, @Compass, and org users
  • Filter by typing after @ -- results narrow down
  • Select a mention via click, Enter, or Tab -- styled pill appears in editor
  • Send message -- mention pill renders in message list
  • Check D1: message_mentions rows created with correct type/targetId
  • Edit message, change mentions -- junction table updated, old mentions removed
  • Push notification fires for mentioned users (if FCM configured)
  • Users with notifyLevel: "none" do not receive notifications
  • @here only notifies online users; @channel notifies all members

Add @user, @channel, @here, and @Compass agent mentions
to the conversations module. TipTap Mention extension with
suggestion popup, message_mentions junction table for
efficient querying, push notifications for mentioned users
respecting notifyLevel preferences, and edit support with
mention re-extraction. Also fix crypto.randomUUID fallback
for non-secure contexts.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
compass 84b0e29 Feb 16 2026, 02:18 AM

@NicholaiVogel NicholaiVogel merged commit d4914c1 into main Feb 16, 2026
7 of 10 checks passed
@NicholaiVogel NicholaiVogel deleted the feat/conversation-mentions branch February 16, 2026 02:22
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