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