From 630188e0f7c923c367c6f1f53915b2f8dfd4c504 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Mon, 13 Apr 2026 20:17:53 +0100 Subject: [PATCH] add space name --- .../core/notification/services/verification.notification.ts | 6 ++++-- .../transactional/emails/approval-rejected-email.tsx | 5 ++++- .../transactional/emails/approval-requested-email.tsx | 5 ++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/apps/server/src/core/notification/services/verification.notification.ts b/apps/server/src/core/notification/services/verification.notification.ts index e06258fa..351649e5 100644 --- a/apps/server/src/core/notification/services/verification.notification.ts +++ b/apps/server/src/core/notification/services/verification.notification.ts @@ -246,7 +246,7 @@ export class VerificationNotificationService { const context = await this.getPageContext(pageId, spaceId, appUrl); if (!context) return; - const { pageTitle, basePageUrl } = context; + const { pageTitle, spaceName, basePageUrl } = context; const actorName = await this.getUserName(actorId); for (const userId of accessibleVerifierIds) { @@ -268,6 +268,7 @@ export class VerificationNotificationService { ApprovalRequestedEmail({ actorName, pageTitle, + spaceName, pageUrl: basePageUrl, }), ); @@ -291,7 +292,7 @@ export class VerificationNotificationService { const context = await this.getPageContext(pageId, spaceId, appUrl); if (!context) return; - const { pageTitle, basePageUrl } = context; + const { pageTitle, spaceName, basePageUrl } = context; const actorName = await this.getUserName(actorId); const notification = await this.notificationService.create({ @@ -312,6 +313,7 @@ export class VerificationNotificationService { ApprovalRejectedEmail({ actorName, pageTitle, + spaceName, pageUrl: basePageUrl, comment, }), diff --git a/apps/server/src/integrations/transactional/emails/approval-rejected-email.tsx b/apps/server/src/integrations/transactional/emails/approval-rejected-email.tsx index e9598d7b..c647ef8d 100644 --- a/apps/server/src/integrations/transactional/emails/approval-rejected-email.tsx +++ b/apps/server/src/integrations/transactional/emails/approval-rejected-email.tsx @@ -6,6 +6,7 @@ import { EmailButton, MailBody } from '../partials/partials'; interface Props { actorName: string; pageTitle: string; + spaceName: string; pageUrl: string; comment?: string; } @@ -13,6 +14,7 @@ interface Props { export const ApprovalRejectedEmail = ({ actorName, pageTitle, + spaceName, pageUrl, comment, }: Props) => { @@ -22,7 +24,8 @@ export const ApprovalRejectedEmail = ({ Hi there, {actorName} returned{' '} - {pageTitle} for revision. + {pageTitle} in the{' '} + {spaceName} space for revision. {comment && ( diff --git a/apps/server/src/integrations/transactional/emails/approval-requested-email.tsx b/apps/server/src/integrations/transactional/emails/approval-requested-email.tsx index f640590b..f3c27659 100644 --- a/apps/server/src/integrations/transactional/emails/approval-requested-email.tsx +++ b/apps/server/src/integrations/transactional/emails/approval-requested-email.tsx @@ -6,12 +6,14 @@ import { EmailButton, MailBody } from '../partials/partials'; interface Props { actorName: string; pageTitle: string; + spaceName: string; pageUrl: string; } export const ApprovalRequestedEmail = ({ actorName, pageTitle, + spaceName, pageUrl, }: Props) => { return ( @@ -20,7 +22,8 @@ export const ApprovalRequestedEmail = ({ Hi there, {actorName} submitted{' '} - {pageTitle} for your approval. + {pageTitle} in the{' '} + {spaceName} space for your approval. Review page