feat: add group mentions (#10331)

* add group mentions

* group mention functionality

* add notification test

* fix: Group icon in mention menu

* language

* toast message

* fix: Group icon in mention menu light mode color

---------

Co-authored-by: Tom Moor <tom@getoutline.com>
This commit is contained in:
Salihu
2025-10-19 20:40:10 +01:00
committed by GitHub
parent 285b770b3d
commit e86593f234
24 changed files with 825 additions and 33 deletions

View File

@@ -83,6 +83,7 @@ export enum MentionType {
User = "user",
Document = "document",
Collection = "collection",
Group = "group",
Issue = "issue",
PullRequest = "pull_request",
URL = "url",
@@ -361,6 +362,8 @@ export enum NotificationEventType {
ReactionsCreate = "reactions.create",
MentionedInDocument = "documents.mentioned",
MentionedInComment = "comments.mentioned",
GroupMentionedInDocument = "documents.group_mentioned",
GroupMentionedInComment = "comments.group_mentioned",
InviteAccepted = "emails.invite_accepted",
Onboarding = "emails.onboarding",
Features = "emails.features",
@@ -396,6 +399,8 @@ export const NotificationEventDefaults: Record<NotificationEventType, boolean> =
[NotificationEventType.CreateRevision]: false,
[NotificationEventType.MentionedInDocument]: true,
[NotificationEventType.MentionedInComment]: true,
[NotificationEventType.GroupMentionedInDocument]: true,
[NotificationEventType.GroupMentionedInComment]: true,
[NotificationEventType.InviteAccepted]: true,
[NotificationEventType.Onboarding]: true,
[NotificationEventType.Features]: true,