From 02d33c8f83e8b9eb3321b50c4e8eba8113bf3371 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Wed, 8 Oct 2025 20:38:31 +0200 Subject: [PATCH] Rename mock user --- backend/email/emails/functions/helpers.tsx | 2 +- backend/email/emails/functions/mock.ts | 2 +- backend/email/emails/functions/send-email.ts | 2 +- backend/email/emails/new-endorsement.tsx | 4 ++-- backend/email/emails/new-match.tsx | 4 ++-- backend/email/emails/new-message.tsx | 4 ++-- backend/email/emails/new-search_alerts.tsx | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/backend/email/emails/functions/helpers.tsx b/backend/email/emails/functions/helpers.tsx index cde76c39..c042117d 100644 --- a/backend/email/emails/functions/helpers.tsx +++ b/backend/email/emails/functions/helpers.tsx @@ -9,7 +9,7 @@ import { render } from "@react-email/render" import {MatchesType} from "common/love/bookmarked_searches"; import NewSearchAlertsEmail from "email/new-search_alerts"; -const from = 'Compass ' +const from = 'Compass ' // export const sendNewMatchEmail = async ( // privateUser: PrivateUser, diff --git a/backend/email/emails/functions/mock.ts b/backend/email/emails/functions/mock.ts index 2869d59e..2e85df72 100644 --- a/backend/email/emails/functions/mock.ts +++ b/backend/email/emails/functions/mock.ts @@ -3,7 +3,7 @@ import type { User } from 'common/user' // for email template testing -export const sinclairUser: User = { +export const mockUser: User = { createdTime: 0, bio: 'the futa in futarchy', website: 'sincl.ai', diff --git a/backend/email/emails/functions/send-email.ts b/backend/email/emails/functions/send-email.ts index 16529d31..268505c9 100644 --- a/backend/email/emails/functions/send-email.ts +++ b/backend/email/emails/functions/send-email.ts @@ -25,7 +25,7 @@ export const sendEmail = async ( } const { data, error } = await sendEmailThrottle( - { replyTo: 'Compass ', ...payload }, + { replyTo: 'Compass ', ...payload }, options ) console.log('resend.emails.send', data, error) diff --git a/backend/email/emails/new-endorsement.tsx b/backend/email/emails/new-endorsement.tsx index 93dc9175..a87ced91 100644 --- a/backend/email/emails/new-endorsement.tsx +++ b/backend/email/emails/new-endorsement.tsx @@ -1,7 +1,7 @@ import {Body, Button, Column, Container, Head, Html, Preview, Row, Section, Text,} from '@react-email/components' import {type User} from 'common/user' import {DOMAIN} from 'common/envs/constants' -import {jamesUser, sinclairUser} from './functions/mock' +import {jamesUser, mockUser} from './functions/mock' import {button, container, content, Footer, main, paragraph} from "email/utils"; interface NewEndorsementEmailProps { @@ -74,7 +74,7 @@ export const NewEndorsementEmail = ({ NewEndorsementEmail.PreviewProps = { fromUser: jamesUser, - onUser: sinclairUser, + onUser: mockUser, endorsementText: "Sinclair is someone you want to have around because she injects creativity and humor into every conversation, and her laugh is infectious! Not to mention that she's a great employee, treats everyone with respect, and is even-tempered.", unsubscribeUrl: 'https://compassmeet.com/unsubscribe', diff --git a/backend/email/emails/new-match.tsx b/backend/email/emails/new-match.tsx index df7c07b0..5213b1c0 100644 --- a/backend/email/emails/new-match.tsx +++ b/backend/email/emails/new-match.tsx @@ -2,7 +2,7 @@ import {Body, Button, Container, Head, Html, Preview, Section, Text,} from '@rea import {DOMAIN} from 'common/envs/constants' import {type ProfileRow} from 'common/love/profile' import {type User} from 'common/user' -import {jamesProfile, jamesUser, sinclairUser} from './functions/mock' +import {jamesProfile, jamesUser, mockUser} from './functions/mock' import {Footer} from "email/utils"; interface NewMatchEmailProps { @@ -70,7 +70,7 @@ export const NewMatchEmail = ({ } NewMatchEmail.PreviewProps = { - onUser: sinclairUser, + onUser: mockUser, matchedWithUser: jamesUser, matchedProfile: jamesProfile, email: 'someone@gmail.com', diff --git a/backend/email/emails/new-message.tsx b/backend/email/emails/new-message.tsx index 6cc6a550..c716605e 100644 --- a/backend/email/emails/new-message.tsx +++ b/backend/email/emails/new-message.tsx @@ -1,7 +1,7 @@ import {Body, Button, Container, Head, Html, Preview, Section, Text,} from '@react-email/components' import {type User} from 'common/user' import {type ProfileRow} from 'common/love/profile' -import {jamesProfile, jamesUser, sinclairUser,} from './functions/mock' +import {jamesProfile, jamesUser, mockUser,} from './functions/mock' import {DOMAIN} from 'common/envs/constants' import {button, container, content, Footer, imageContainer, main, paragraph} from "email/utils"; @@ -74,7 +74,7 @@ export const NewMessageEmail = ({ NewMessageEmail.PreviewProps = { fromUser: jamesUser, fromUserProfile: jamesProfile, - toUser: sinclairUser, + toUser: mockUser, channelId: 1, email: 'someone@gmail.com', unsubscribeUrl: 'https://compassmeet.com/unsubscribe', diff --git a/backend/email/emails/new-search_alerts.tsx b/backend/email/emails/new-search_alerts.tsx index a319f56b..47b1b29b 100644 --- a/backend/email/emails/new-search_alerts.tsx +++ b/backend/email/emails/new-search_alerts.tsx @@ -1,6 +1,6 @@ import {Body, Container, Head, Html, Link, Preview, Section, Text,} from '@react-email/components' import {type User} from 'common/user' -import {sinclairUser,} from './functions/mock' +import {mockUser,} from './functions/mock' import {DOMAIN} from 'common/envs/constants' import {container, content, Footer, main, paragraph} from "email/utils"; import {MatchesType} from "common/love/bookmarked_searches"; @@ -140,7 +140,7 @@ const matchSamples = [ ] NewSearchAlertsEmail.PreviewProps = { - toUser: sinclairUser, + toUser: mockUser, email: 'someone@gmail.com', unsubscribeUrl: 'https://compassmeet.com/unsubscribe', matches: matchSamples,