Skip to content

Commit

Permalink
fixup! fixup! Add plaintext version of Plus expiration email
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinnl committed Feb 5, 2025
1 parent 4f1be77 commit 111ab5d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions locales-pending/emails-all.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,7 @@ email-monthly-report-hero-free-no-breaches-heading = Great news!
email-monthly-report-hero-free-no-breaches-body = { -brand-monitor } didn’t find any data exposures to be resolved.
email-monthly-report-hero-free-no-breaches-cta = View your dashboard
email-unsubscribe-link = <link_to_unsub>Unsubscribe from this email</link_to_unsub> anytime.
# Variables:
# $unsub_link (string) - URL to the unsubscribe page, e.g. "https://monitor.mozilla.org/unsubscribe-email/...".
email-unsubscribe-link-plain = Unsubscribe from this email anytime:
{ $unsub_link }
2 changes: 1 addition & 1 deletion src/emails/components/EmailFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Mozilla Corporation
149 New Montgomery St, 4th Floor, San Francisco, CA 94105
${l10n.getString("email-footer-trigger-transactional")}
${typeof props.unsubscribeLink !== "undefined" ? "\n" + l10n.getString("email-unsubscribe-link-plain", { unsub_link: props.unsubscribeLink }) + "\n" : ""}
${l10n.getString("email-footer-source-hibp-plain", { hibp_link: "https://haveibeenpwned.com" })}
${l10n.getString("terms-of-service")}:
Expand Down
4 changes: 2 additions & 2 deletions src/emails/components/EmailHeader.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
import type { Meta, StoryObj } from "@storybook/react";
import { FC } from "react";
import { StorybookEmailRenderer } from "../StorybookEmailRenderer";
import { EmailHeader, Props } from "./EmailHeader";
import { EmailHeader, getUnstyledEmailHeader, Props } from "./EmailHeader";
import { getL10n } from "../../app/functions/l10n/storybookAndJest";

const meta: Meta<FC<Props>> = {
title: "Emails/Components/Header",
component: (props: Props) => (
<StorybookEmailRenderer plainTextVersion={null}>
<StorybookEmailRenderer plainTextVersion={getUnstyledEmailHeader(props)}>
<mjml>
<mj-body>
<EmailHeader {...props} />
Expand Down
10 changes: 8 additions & 2 deletions src/emails/components/RedesignedEmailFooter.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@
import type { Meta, StoryObj } from "@storybook/react";
import { FC } from "react";
import { StorybookEmailRenderer } from "../StorybookEmailRenderer";
import { RedesignedEmailFooter, Props } from "./EmailFooter";
import {
RedesignedEmailFooter,
Props,
getUnstyledRedesignedEmailFooter,
} from "./EmailFooter";
import { getL10n } from "../../app/functions/l10n/storybookAndJest";

const meta: Meta<FC<Props>> = {
title: "Emails/Components/Redesigned footer",
component: (props: Props) => (
<StorybookEmailRenderer plainTextVersion={null}>
<StorybookEmailRenderer
plainTextVersion={getUnstyledRedesignedEmailFooter(props)}
>
<mjml>
<mj-body>
<RedesignedEmailFooter {...props} />
Expand Down

0 comments on commit 111ab5d

Please sign in to comment.