From a6cc3617c0481bafc1a67742afb97f0022e9174a Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Wed, 2 Jul 2025 19:57:59 +0530 Subject: [PATCH] feat: Add the ability to mention team in private message (#11758) This PR allows agents to mention entire teams in private messages using `@team_name` syntax. When a team is mentioned, all team members with inbox access are automatically notified. The scheme changes can be found [here](https://github.com/chatwoot/prosemirror-schema/pull/34). --------- Co-authored-by: iamsivin Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: Sojan Jose --- .../widgets/conversation/TagAgents.vue | 144 +++-- .../dashboard/helper/editorHelper.js | 13 +- .../helper/specs/editorContentHelper.spec.js | 1 + .../helper/specs/editorHelper.spec.js | 189 ++++++- .../i18n/locale/en/conversation.json | 4 + app/services/messages/mention_service.rb | 29 +- package.json | 2 +- pnpm-lock.yaml | 10 +- .../services/messages/mention_service_spec.rb | 498 ++++++++++++++++-- 9 files changed, 806 insertions(+), 84 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/TagAgents.vue b/app/javascript/dashboard/components/widgets/conversation/TagAgents.vue index b2d578e0d..b3faa57f8 100644 --- a/app/javascript/dashboard/components/widgets/conversation/TagAgents.vue +++ b/app/javascript/dashboard/components/widgets/conversation/TagAgents.vue @@ -1,8 +1,9 @@