diff --git a/app/mailers/digest_mailer.rb b/app/mailers/digest_mailer.rb index a84a45464..08c1c9bf5 100644 --- a/app/mailers/digest_mailer.rb +++ b/app/mailers/digest_mailer.rb @@ -7,7 +7,6 @@ class DigestMailer < ApplicationMailer @billboards = params[:billboards] @unsubscribe = generate_unsubscribe_token(@user.id, :email_digest_periodic) - @headers_variant = field_test(:digest_headers_04_22, participant: @user) subject = generate_title # set sendgrid category in the header using smtp api diff --git a/app/views/mailers/digest_mailer/digest_email.html.erb b/app/views/mailers/digest_mailer/digest_email.html.erb index 6b4a7b37a..f5e8f3738 100644 --- a/app/views/mailers/digest_mailer/digest_email.html.erb +++ b/app/views/mailers/digest_mailer/digest_email.html.erb @@ -3,76 +3,16 @@ - <% case @headers_variant %> - <% when "base" %> - - - - - - - <% when "base_without_top_header" %> - - - - <% when "base_with_only_first_name" %> - - - - - - - <% when "base_with_only_first_name_and_no_top_header" %> - - - - <% when "base_with_emoji" %> - - - - - - - <% when "base_with_emoji_and_no_top_header" %> - - - - <% when "base_with_emoji_and_only_first_name" %> - - - - - - - <% when "base_with_emoji_and_only_first_name_and_no_top_header" %> - - - - <% end %> + + + + + + <% if @billboards&.first&.present? %> diff --git a/config/field_test.yml b/config/field_test.yml index 85876d15f..94ecfb4c6 100644 --- a/config/field_test.yml +++ b/config/field_test.yml @@ -29,6 +29,8 @@ experiments: digest_headers_04_22: started_at: 2024-04-22 + ended_at: 2024-05-01 + winner: base_with_emoji_and_only_first_name variants: - base - base_without_top_header
-

<%= community_name %> Digest

-
- Hey <%= @user.name %>, let's get you caught up! -
- Hey <%= @user.name %>, let's get you caught up! -
-

<%= community_name %> Digest

-
- Hey <%= @user.name.split(" ").first %>, let's get you caught up! -
- Hey <%= @user.name.split(" ").first %>, let's get you caught up! -
-

<%= community_name %> Digest

-
- 👋 Hey <%= @user.name %>, let's get you caught up! -
- 👋 Hey <%= @user.name %>, let's get you caught up! -
-

<%= community_name %> Digest

-
- 👋 Hey <%= @user.name.split(" ").first %>, let's get you caught up! -
- 👋 Hey <%= @user.name.split(" ").first %>, let's get you caught up! -
+

<%= community_name %> Digest

+
+ 👋 Hey <%= @user.name.split(" ").first %>, let's get you caught up! +