Merge branch 'develop' of bitbucket.org:jamkazam/jam-cloud into develop
This commit is contained in:
commit
b6e2fe7494
|
|
@ -0,0 +1,13 @@
|
||||||
|
class AddGearSetupReminderColumnsToUsers < ActiveRecord::Migration
|
||||||
|
def self.up
|
||||||
|
execute "ALTER TABLE users ADD COLUMN gear_setup_reminder1_sent_at TIMESTAMP"
|
||||||
|
execute "ALTER TABLE users ADD COLUMN gear_setup_reminder2_sent_at TIMESTAMP"
|
||||||
|
execute "ALTER TABLE users ADD COLUMN gear_setup_reminder3_sent_at TIMESTAMP"
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.down
|
||||||
|
execute "ALTER TABLE users DROP COLUMN gear_setup_reminder1_sent_at"
|
||||||
|
execute "ALTER TABLE users DROP COLUMN gear_setup_reminder2_sent_at"
|
||||||
|
execute "ALTER TABLE users DROP COLUMN gear_setup_reminder3_sent_at"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -454,6 +454,32 @@ module JamRuby
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
#################################### GEAR SETUP REMINDER EMAILS ####################################
|
||||||
|
def gear_setup_reminder1(user)
|
||||||
|
@user = user
|
||||||
|
mail(:to => user.email, :subject => I18n.t('user_mailer.gear_setup_reminder1.subject')) do |format|
|
||||||
|
format.text
|
||||||
|
format.html { render layout: "user_mailer_beta" }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def gear_setup_reminder2(user)
|
||||||
|
@user = user
|
||||||
|
mail(:to => user.email, :subject => I18n.t('user_mailer.gear_setup_reminder2.subject')) do |format|
|
||||||
|
format.text
|
||||||
|
format.html { render layout: "user_mailer_beta" }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def gear_setup_reminder3(user)
|
||||||
|
@user = user
|
||||||
|
mail(:to => user.email, :subject => I18n.t('user_mailer.gear_setup_reminder3.subject')) do |format|
|
||||||
|
format.text
|
||||||
|
format.html { render layout: "user_mailer_beta" }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#################################### NOTIFICATION EMAILS ####################################
|
#################################### NOTIFICATION EMAILS ####################################
|
||||||
def friend_request(user, msg, friend_request_id)
|
def friend_request(user, msg, friend_request_id)
|
||||||
return if !user.subscribe_email
|
return if !user.subscribe_email
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
<p><%=I18n.t('user_mailer.gear_setup_reminder1.greeting') -%> <%= @user.first_name -%> -</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder1.paragraph1').html_safe -%>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder1.paragraph2').html_safe -%>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder1.paragraph3').html_safe -%>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder1.paragraph4').html_safe -%>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder1.regards') -%>,<br />
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder1.signature') -%>
|
||||||
|
</p>
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder1.greeting') -%> <%= @user.first_name -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder1.paragraph1') -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder1.paragraph2') -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder1.paragraph3') -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder1.paragraph4') -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder1.regards') -%>,
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder1.signature') -%>
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
<p><%=I18n.t('user_mailer.gear_setup_reminder2.greeting') -%> <%= @user.first_name -%> -</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.paragraph1').html_safe -%>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.paragraph2').html_safe -%>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.paragraph3').html_safe -%>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.paragraph4').html_safe -%>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.paragraph5').html_safe -%>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.regards') -%>,<br />
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.signature') -%>
|
||||||
|
</p>
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.greeting') -%> <%= @user.first_name -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.paragraph1') -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.paragraph2') -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.paragraph3') -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.paragraph4') -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.paragraph5') -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.regards') -%>,
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder2.signature') -%>
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
<p><%=I18n.t('user_mailer.gear_setup_reminder3.greeting') -%> <%= @user.first_name -%> -</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.paragraph1').html_safe -%>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.paragraph2').html_safe -%>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.paragraph3').html_safe -%>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.paragraph4').html_safe -%>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.paragraph5').html_safe -%>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.regards') -%>,<br />
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.signature') -%>
|
||||||
|
</p>
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.greeting') -%> <%= @user.first_name -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.paragraph1') -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.paragraph2') -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.paragraph3') -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.paragraph4') -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.paragraph5') -%>
|
||||||
|
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.regards') -%>,
|
||||||
|
<%=I18n.t('user_mailer.gear_setup_reminder3.signature') -%>
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
module JamRuby
|
||||||
|
class GearSetupReminder
|
||||||
|
|
||||||
|
def self.prospect_users
|
||||||
|
User.where("users.first_certified_gear_at IS NULL")
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.reminder1_users
|
||||||
|
GearSetupReminder.prospect_users.where("users.created_at > ? AND users.gear_setup_reminder1_sent_at IS NULL", 1.day.ago)
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.reminder2_users
|
||||||
|
GearSetupReminder.prospect_users.where("users.created_at > ? AND users.gear_setup_reminder1_sent_at IS NOT NULL AND users.gear_setup_reminder2_sent_at IS NULL", 3.days.ago)
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.reminder3_users
|
||||||
|
GearSetupReminder.prospect_users.where("users.created_at > ? AND users.gear_setup_reminder2_sent_at IS NOT NULL AND users.gear_setup_reminder3_sent_at IS NULL", 5.days.ago)
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -100,3 +100,46 @@ en:
|
||||||
update_profile: "Update Profile"
|
update_profile: "Update Profile"
|
||||||
regards: "Best Regards,"
|
regards: "Best Regards,"
|
||||||
signature: "JamKazam Team"
|
signature: "JamKazam Team"
|
||||||
|
|
||||||
|
gear_setup_reminder1:
|
||||||
|
subject: "Set up audio gear in JamKazam now so you can get in your first session"
|
||||||
|
greeting: "Hello"
|
||||||
|
paragraph1: "The next thing you should do with JamKazam is set up your audio gear and test it in a solo session by yourself."
|
||||||
|
paragraph2: |
|
||||||
|
If you already have an audio interface and the ability to connect your computer to your home router using an Ethernet cable, you are ready to set up your gear. You can find all of our gear setup articles <a href="https://jamkazam.freshdesk.com/support/solutions/66000073844">here</a>. We recommend you use our articles on setting up your audio interface <a href="https://jamkazam.freshdesk.com/support/solutions/folders/66000108387">for Mac</a> or <a href="https://jamkazam.freshdesk.com/support/solutions/folders/66000108430">for Windows</a> to make sure you get this critical step done properly, and that you use our article on <a href="https://jamkazam.freshdesk.com/support/solutions/articles/66000124756">connecting your computer via Ethernet</a>, which is the other critical setup step.
|
||||||
|
paragraph3: |
|
||||||
|
If you’re not sure what gear you need, we recommend you start by reading <a href="https://jamkazam.freshdesk.com/support/solutions/articles/66000122533-what-gear-do-i-need-to-play-on-jamkazam-">this article</a> that explains this topic in general terms. Next, <a href="https://jamkazam.freshdesk.com/support/solutions/folders/66000108418">check this list of articles</a> to find the one that best describes you. You need to use an audio interface rather than relying on the built-in mic on your computer, and you need to connect your computer to your Internet router using an Ethernet cable rather than using WiFi. <a href="https://jamkazam.freshdesk.com/support/solutions/folders/66000108419">See this list of articles</a> for recommendations on gear. If you’re worried about spending money on gear without knowing how well JamKazam will work for you, you can buy gear on Amazon, try it for a week, and return it for a refund if you’re not happy for a risk-free trial experience.
|
||||||
|
paragraph4: |
|
||||||
|
If you have any trouble or feel confused about gear setup, you can email us for help at <a href="mailto:support@jamkazam.com">support@jamkazam.com</a>. You can also visit with a JamKazam support team member in our <a href="https://us02web.zoom.us/j/5967470315?pwd=eHZZL2hmVW1haUU5aTZTUUJobjFIdz09">weekly Zoom office hours</a>, which is offered every Wednesday from 11am to 12pm US Central Time.
|
||||||
|
regards: "Best Regards,"
|
||||||
|
signature: "JamKazam Team"
|
||||||
|
|
||||||
|
gear_setup_reminder2:
|
||||||
|
subject: "Set up your gear in JamKazam now to connect with other musicians"
|
||||||
|
greeting: "Hello"
|
||||||
|
paragraph1: "We share your profile with JamKazam members who may be a good fit to play music with you during your first week on the platform via an automated email feature. Don’t miss this opportunity to get connected!"
|
||||||
|
paragraph2: "One of the critical pieces of information in getting you connected is your latency to other musicians on JamKazam (this is the amount of time it takes to get your audio to them). To get this information, you need to set up your gear in the JamKazam app."
|
||||||
|
paragraph3: |
|
||||||
|
If you already have an audio interface and the ability to connect your computer to your home router using an Ethernet cable, you are ready to set up your gear. You can find all of our gear setup articles <a href="https://jamkazam.freshdesk.com/support/solutions/66000073844">here</a>. We recommend you use our articles on setting up your audio interface <a href="https://jamkazam.freshdesk.com/support/solutions/folders/66000108387">for Mac</a> or <a href="https://jamkazam.freshdesk.com/support/solutions/folders/66000108430">for Windows</a> to make sure you get this critical step done properly, and that you use our article on <a href="https://jamkazam.freshdesk.com/support/solutions/articles/66000124756">connecting your computer via Ethernet</a>, which is the other critical setup step.
|
||||||
|
paragraph4: |
|
||||||
|
If you’re not sure what gear you need, we recommend you start by reading <a href="https://jamkazam.freshdesk.com/support/solutions/articles/66000122533-what-gear-do-i-need-to-play-on-jamkazam-">this article</a> that explains this topic in general terms. Next, <a href="https://jamkazam.freshdesk.com/support/solutions/folders/66000108418">check this list of articles</a> to find the one that best describes you. You need to use an audio interface rather than relying on the built-in mic on your computer, and you need to connect your computer to your Internet router using an Ethernet cable rather than using WiFi. <a href="https://jamkazam.freshdesk.com/support/solutions/folders/66000108419">See this list of articles</a> for recommendations on gear. If you’re worried about spending money on gear without knowing how well JamKazam will work for you, you can buy gear on Amazon, try it for a week, and return it for a refund if you’re not happy for a risk-free trial experience.
|
||||||
|
paragraph5: |
|
||||||
|
If you have any trouble or feel confused about gear setup, you can email us for help at <a href="mailto:support@jamkazam.com">support@jamkazam.com</a>. You can also visit with a JamKazam support team member in our <a href="https://us02web.zoom.us/j/5967470315?pwd=eHZZL2hmVW1haUU5aTZTUUJobjFIdz09">weekly Zoom office hours</a>, which is offered every Wednesday from 11am to 12pm US Central Time.
|
||||||
|
regards: "Best Regards,"
|
||||||
|
signature: "JamKazam Team"
|
||||||
|
|
||||||
|
gear_setup_reminder3:
|
||||||
|
subject: Don’t waste your free 30-day premium gold plan - set up your gear now!
|
||||||
|
greeting: "Hello"
|
||||||
|
paragraph1: |
|
||||||
|
When you sign up for JamKazam, we give you a free 30-day premium gold plan so you can fully experience how amazing our online sessions are and how JamKazam can help you play more music with more people to bring more musical joy to your life.
|
||||||
|
paragraph2: |
|
||||||
|
Don’t waste your 30-day window! Set up your gear in the JamKazam app now, and get started.
|
||||||
|
paragraph3: |
|
||||||
|
If you already have an audio interface and the ability to connect your computer to your home router using an Ethernet cable, you are ready to set up your gear. You can find all of our gear setup articles <a href="https://jamkazam.freshdesk.com/support/solutions/66000073844">here</a>. We recommend you use our articles on setting up your audio interface <a href="https://jamkazam.freshdesk.com/support/solutions/folders/66000108387">for Mac</a> or <a href="https://jamkazam.freshdesk.com/support/solutions/folders/66000108430">for Windows</a> to make sure you get this critical step done properly, and that you use our article on <a href="https://jamkazam.freshdesk.com/support/solutions/articles/66000124756">connecting your computer via Ethernet</a>, which is the other critical setup step.
|
||||||
|
paragraph4: |
|
||||||
|
If you’re not sure what gear you need, we recommend you start by reading <a href="https://jamkazam.freshdesk.com/support/solutions/articles/66000122533-what-gear-do-i-need-to-play-on-jamkazam-">this article</a> that explains this topic in general terms. Next, <a href="https://jamkazam.freshdesk.com/support/solutions/folders/66000108418">check this list of articles</a> to find the one that best describes you. You need to use an audio interface rather than relying on the built-in mic on your computer, and you need to connect your computer to your Internet router using an Ethernet cable rather than using WiFi. <a href="https://jamkazam.freshdesk.com/support/solutions/folders/66000108419">See this list of articles</a> for recommendations on gear. If you’re worried about spending money on gear without knowing how well JamKazam will work for you, you can buy gear on Amazon, try it for a week, and return it for a refund if you’re not happy for a risk-free trial experience.
|
||||||
|
paragraph5: |
|
||||||
|
If you have any trouble or feel confused about gear setup, you can email us for help at <a href="mailto:support@jamkazam.com">support@jamkazam.com</a>. You can also visit with a JamKazam support team member in our <a href="https://us02web.zoom.us/j/5967470315?pwd=eHZZL2hmVW1haUU5aTZTUUJobjFIdz09">weekly Zoom office hours</a>, which is offered every Wednesday from 11am to 12pm US Central Time.
|
||||||
|
regards: "Best Regards,"
|
||||||
|
signature: "JamKazam Team"
|
||||||
Loading…
Reference in New Issue