From 814e03be76828ed628068d39425f3d277c188749 Mon Sep 17 00:00:00 2001 From: Sanne de Vries <65487235+sanne-san@users.noreply.github.com> Date: Wed, 14 Aug 2024 09:49:17 +0200 Subject: [PATCH] Updated recommendation received notification email design (#20748) REF PLG-162 - Added publication icon and improved overall layout --- .../recommendation-emails.test.js.snap | 140 +++++++++++------- .../lib/email-templates/donation.hbs | 11 ++ .../recommendation-received.hbs | 67 +++++---- 3 files changed, 134 insertions(+), 84 deletions(-) diff --git a/ghost/core/test/e2e-server/services/__snapshots__/recommendation-emails.test.js.snap b/ghost/core/test/e2e-server/services/__snapshots__/recommendation-emails.test.js.snap index 42a394d010..4315ec4374 100644 --- a/ghost/core/test/e2e-server/services/__snapshots__/recommendation-emails.test.js.snap +++ b/ghost/core/test/e2e-server/services/__snapshots__/recommendation-emails.test.js.snap @@ -134,17 +134,15 @@ exports[`Incoming Recommendation Emails Sends a different email if we receive a - - @@ -382,17 +390,16 @@ exports[`Incoming Recommendation Emails Sends an email if we receive a recommend
- -

Great news!

-

A site you’re recommending is now recommending you back:

+

A site is now recommending you back

-
- +
+
-
+
-
Other Ghost Site
+
Other Ghost Site
@@ -152,15 +150,15 @@ exports[`Incoming Recommendation Emails Sends a different email if we receive a
-

This message was sent from 127.0.0.1 to jbloggs@example.com

+
+

This message was sent from 127.0.0.1 to jbloggs@example.com

-

Don’t want to receive these emails? Manage your preferences here.

+
+

Don’t want to receive these emails? Manage your preferences here.

- - @@ -608,17 +625,16 @@ exports[`Incoming Recommendation Emails Sends an email if we receive a recommend
- -

Good news!

-

Other Ghost Site is recommending you to their audience. Now, every time someone new signs up on their site, they’ll see an option to check out Ghost as well.

+

A site is now recommending you to their audience

+

Every time someone new signs up on their site, they’ll see an option to check out Ghost as well.

-
- +
+
-
+
-
Other Ghost Site
+
Other Ghost Site
@@ -400,15 +407,15 @@ exports[`Incoming Recommendation Emails Sends an email if we receive a recommend
-

This message was sent from 127.0.0.1 to jbloggs@example.com

+
+

This message was sent from 127.0.0.1 to jbloggs@example.com

-

Don’t want to receive these emails? Manage your preferences here.

+
+

Don’t want to receive these emails? Manage your preferences here.

- - diff --git a/ghost/staff-service/lib/email-templates/donation.hbs b/ghost/staff-service/lib/email-templates/donation.hbs index 420ac9c8d7..73fcf6b827 100644 --- a/ghost/staff-service/lib/email-templates/donation.hbs +++ b/ghost/staff-service/lib/email-templates/donation.hbs @@ -50,6 +50,17 @@
- -

Good news!

-

Other Ghost Site is recommending you to their audience. Now, every time someone new signs up on their site, they’ll see an option to check out Ghost as well.

+

A site is now recommending you to their audience

+

Every time someone new signs up on their site, they’ll see an option to check out Ghost as well.

-
- +
+
-
+
-
Other Ghost Site
+
Other Ghost Site
@@ -626,15 +642,15 @@ exports[`Incoming Recommendation Emails Sends an email if we receive a recommend
-

This message was sent from 127.0.0.1 to swellingsworth@example.com

+
+

This message was sent from 127.0.0.1 to swellingsworth@example.com

-

Don’t want to receive these emails? Manage your preferences here.

+
+

Don’t want to receive these emails? Manage your preferences here.

+ + + + + + + +
+

Or copy and paste this URL into your browser:

+ +
diff --git a/ghost/staff-service/lib/email-templates/recommendation-received.hbs b/ghost/staff-service/lib/email-templates/recommendation-received.hbs index e87e54ee14..ca81863d79 100644 --- a/ghost/staff-service/lib/email-templates/recommendation-received.hbs +++ b/ghost/staff-service/lib/email-templates/recommendation-received.hbs @@ -21,31 +21,34 @@ + {{#if siteIconUrl}} + + + + {{/if}} - -
{{siteTitle}}
- {{#if recommendation.recommendingBack}} -

Great news!

-

A site you’re recommending is now recommending you back:

+

A site is now recommending you back

{{else}} -

Good news!

-

{{recommendation.title}} is recommending you to their audience. Now, every time someone new signs up on their site, they’ll see an option to check out {{siteTitle}} as well.

+

A site is now recommending you to their audience

+

Every time someone new signs up on their site, they’ll see an option to check out {{siteTitle}} as well.

{{/if}} -
- +
+
-
+
{{#if recommendation.favicon}}{{/if}} -
{{recommendation.title}}
+
{{recommendation.title}}
{{#if recommendation.excerpt}} -
{{recommendation.excerpt}}
+
{{recommendation.excerpt}}
{{/if}}
{{#if recommendation.featuredImage}} -
+
{{/if}} @@ -54,9 +57,9 @@
-

This message was sent from {{siteDomain}} to {{toEmail}}

+
+

This message was sent from {{siteDomain}} to {{toEmail}}

-

Don’t want to receive these emails? Manage your preferences here.

+
+

Don’t want to receive these emails? Manage your preferences here.