Skip to content

User Story: Mentions

Overview

As a team member, I want to mention colleagues in thread comments so that they are notified and can respond to conversations that need their attention.

User Personas

  • Support Agent: Mentions colleagues to escalate or hand off threads
  • Team Lead: Mentions team members to assign attention to specific threads
  • Specialist: Gets mentioned when expertise is needed on a conversation

User Stories

Mention a Colleague in a Comment

As a team member working on a thread I want to mention another team member using @usernameSo that they receive a notification and can quickly respond to my query

Acceptance Criteria:

  • Type @ in the thread comment editor to trigger mention autocomplete
  • Show up to 5 user suggestions immediately upon @ trigger
  • Filter suggestions as user continues typing after @
  • Only show users who have access to the thread (shared inbox members)
  • Internal users only (no external email addresses)
  • Mention appears with highlighted background in the comment
  • Mention is stored as part of the comment content (synced via Yjs)

Receive Mention Notification

As a team member I want to receive real-time notifications when someone mentions me So that I can respond promptly to requests for my attention

Acceptance Criteria:

  • Receive real-time notification when mentioned in a comment
  • Thread appears in "Shared with me" folder as an unread mention
  • Only active threads shown by default (archived threads hidden unless archive mode is on)
  • Notification includes thread details and who mentioned me

View Unread Mentions

As a team member I want to see all threads where I have unread mentions So that I can prioritize my attention on conversations that need my input

Acceptance Criteria:

  • "Shared with me" folder shows threads with unread mentions
  • Threads sorted by most recent mention first
  • Thread list items show visual badge (@ symbol) for threads with unread mentions
  • Opening a thread auto-scrolls to the first unread mention comment
  • Unread mention comments are highlighted until viewed

Mark Mentions as Read

As a team member I want to have mentions marked as read when I interact with a thread So that I can track which mentions I have already addressed

Acceptance Criteria:

  • Any interaction with the thread marks all unread mentions as read (commenting, changing assignee, changing status, updating categories)
  • Thread is removed from "Shared with me" folder when all mentions are read
  • Read status persists across sessions

Value Proposition

Mentions bridge the gap between email threads and team collaboration. Instead of forwarding emails or writing separate messages, team members can draw attention to specific conversations directly in the comment stream. Combined with the "Shared with me" folder, mentions create a personal task queue of threads that need attention — without cluttering the shared inbox views.

  • Comments and Discussion
  • Real-time Collaboration
  • Thread Management

Technical Notes

  • Mentions stored in a dedicated mentions table with read tracking (read_at timestamp)
  • TipTap Mention extension handles autocomplete and inline rendering
  • Mention content syncs via Yjs for collaborative editing
  • WebSocket notifications for real-time delivery
  • Backend validates that mentioned users have access to the thread's shared inbox