From f3060cd9b44fd9dfd33965f7a59ca477cda2b915 Mon Sep 17 00:00:00 2001 From: "Calum H." Date: Mon, 22 Sep 2025 17:36:50 +0100 Subject: [PATCH] feat: email template for subscription price changes due to tax (#4386) * feat: subscription tax change email * feat: wording * feat: subscription id var for support & finalize tax change email script --- apps/frontend/src/emails/index.ts | 3 ++ .../src/emails/shared/StyledEmail.vue | 13 +++++- .../templates/account/PaymentFailed.vue | 1 + .../templates/account/PayoutAvailable.vue | 2 +- .../account/SubscriptionTaxChange.vue | 45 +++++++++++++++++++ 5 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 apps/frontend/src/emails/templates/account/SubscriptionTaxChange.vue diff --git a/apps/frontend/src/emails/index.ts b/apps/frontend/src/emails/index.ts index d3ad463cd..adb355488 100644 --- a/apps/frontend/src/emails/index.ts +++ b/apps/frontend/src/emails/index.ts @@ -16,6 +16,9 @@ export default { 'payout-available': () => import('./templates/account/PayoutAvailable.vue'), 'personal-access-token-created': () => import('./templates/account/PATCreated.vue'), + // Subscriptions + 'subscription-tax-change': () => import('./templates/account/SubscriptionTaxChange.vue'), + // Moderation 'report-submitted': () => import('./templates/moderation/ReportSubmitted.vue'), 'report-status-updated': () => import('./templates/moderation/ReportStatusUpdated.vue'), diff --git a/apps/frontend/src/emails/shared/StyledEmail.vue b/apps/frontend/src/emails/shared/StyledEmail.vue index 17ea10634..10cbc3e0e 100644 --- a/apps/frontend/src/emails/shared/StyledEmail.vue +++ b/apps/frontend/src/emails/shared/StyledEmail.vue @@ -17,6 +17,7 @@ import { defineProps<{ title?: string manualLinks?: { link: string; label?: string }[] + supportInfo?: string[] }>() interface SocialLink { @@ -211,9 +212,19 @@ const socialLinks = Object.freeze([
+
+ + {{ line }} + +
+
If you're having trouble with the links above, copy and paste these URLs into your diff --git a/apps/frontend/src/emails/templates/account/PaymentFailed.vue b/apps/frontend/src/emails/templates/account/PaymentFailed.vue index 1560cb2e9..3664e1d8a 100644 --- a/apps/frontend/src/emails/templates/account/PaymentFailed.vue +++ b/apps/frontend/src/emails/templates/account/PaymentFailed.vue @@ -8,6 +8,7 @@ import StyledEmail from '@/emails/shared/StyledEmail.vue' Payment failed for {paymentfailed.service} diff --git a/apps/frontend/src/emails/templates/account/PayoutAvailable.vue b/apps/frontend/src/emails/templates/account/PayoutAvailable.vue index 1a2b79cc7..c386f490d 100644 --- a/apps/frontend/src/emails/templates/account/PayoutAvailable.vue +++ b/apps/frontend/src/emails/templates/account/PayoutAvailable.vue @@ -17,7 +17,7 @@ import StyledEmail from '@/emails/shared/StyledEmail.vue' Hi {user.name}, - The ${payout.amount} earned during {payout.period} has been processed and is now available to + The {payout.amount} earned during {payout.period} has been processed and is now available to withdraw from your account. diff --git a/apps/frontend/src/emails/templates/account/SubscriptionTaxChange.vue b/apps/frontend/src/emails/templates/account/SubscriptionTaxChange.vue new file mode 100644 index 000000000..11d8e9466 --- /dev/null +++ b/apps/frontend/src/emails/templates/account/SubscriptionTaxChange.vue @@ -0,0 +1,45 @@ + + +