[web] set up types for mentions (#35609)

GitOrigin-RevId: 70ebe11659072a7df09be916d7a01cfd87b73c81
This commit is contained in:
Kristina
2026-09-17 11:34:37 +00:00
committed by Copybot
parent d8de261370
commit 4d1e9677e1
2 changed files with 7 additions and 0 deletions
@@ -26,6 +26,7 @@ function levelToPreferences(
commentOnInvitedProject: true,
repliesOnAuthoredThread: true,
repliesOnParticipatingThread: true,
mentionsInThread: true,
commentResolvedOnAuthoredThread: true,
commentResolvedOnParticipatingThread: true,
commentReopenedOnAuthoredThread: true,
@@ -41,6 +42,7 @@ function levelToPreferences(
commentOnInvitedProject: false,
repliesOnAuthoredThread: true,
repliesOnParticipatingThread: true,
mentionsInThread: true,
commentResolvedOnAuthoredThread: true,
commentResolvedOnParticipatingThread: true,
commentReopenedOnAuthoredThread: true,
@@ -56,6 +58,7 @@ function levelToPreferences(
commentOnInvitedProject: false,
repliesOnAuthoredThread: false,
repliesOnParticipatingThread: false,
mentionsInThread: false,
commentResolvedOnAuthoredThread: false,
commentResolvedOnParticipatingThread: false,
commentReopenedOnAuthoredThread: false,
@@ -93,6 +96,7 @@ function preferencesToLevel(
const anyParticipantNotifications =
preferences.repliesOnAuthoredThread ||
preferences.repliesOnParticipatingThread ||
preferences.mentionsInThread ||
preferences.trackChangesAcceptedOnAuthoredChange ||
preferences.trackChangesRejectedOnAuthoredChange ||
preferences.commentResolvedOnAuthoredThread ||
@@ -13,6 +13,7 @@ const allNotificationsOn = {
commentOnInvitedProject: true,
repliesOnAuthoredThread: true,
repliesOnParticipatingThread: true,
mentionsInThread: true,
commentResolvedOnAuthoredThread: true,
commentResolvedOnParticipatingThread: true,
commentReopenedOnAuthoredThread: true,
@@ -28,6 +29,7 @@ const repliesOnlyPreferences = {
commentOnInvitedProject: false,
repliesOnAuthoredThread: true,
repliesOnParticipatingThread: true,
mentionsInThread: true,
commentResolvedOnAuthoredThread: true,
commentResolvedOnParticipatingThread: true,
commentReopenedOnAuthoredThread: true,
@@ -59,6 +61,7 @@ const allNotificationsOff = {
commentOnInvitedProject: false,
repliesOnAuthoredThread: false,
repliesOnParticipatingThread: false,
mentionsInThread: false,
commentResolvedOnAuthoredThread: false,
commentResolvedOnParticipatingThread: false,
commentReopenedOnAuthoredThread: false,