Update Tracking step in wizard

[MAILPOET-1926]
This commit is contained in:
Pavel Dohnal
2019-04-08 15:44:53 +02:00
committed by M. Shull
parent f2a3971c9d
commit df54413303
3 changed files with 31 additions and 21 deletions

View File

@@ -34,6 +34,12 @@
margin: 10px 0; margin: 10px 0;
text-align: center; text-align: center;
} }
.welcome_wizard_tracking_sub_title {
margin-bottom: 0;
}
.welcome_wizard_tracking_list {
list-style: disc
}
} }
#mailpoet_sender_form { #mailpoet_sender_form {

View File

@@ -1,29 +1,26 @@
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import React from 'react'; import React from 'react';
import MailPoet from 'mailpoet'; import MailPoet from 'mailpoet';
import ReactStringReplace from 'react-string-replace';
const WelcomeWizardUsageTrackingStep = props => ( const WelcomeWizardUsageTrackingStep = props => (
<div className="mailpoet_welcome_wizard_step_content mailpoet_welcome_wizard_centered_column"> <div className="mailpoet_welcome_wizard_step_content mailpoet_welcome_wizard_centered_column">
<h1>{MailPoet.I18n.t('welcomeWizardUsageTrackingStepTitle')}</h1> <h1>{MailPoet.I18n.t('welcomeWizardUsageTrackingStepTitle')}</h1>
<p> <p>{MailPoet.I18n.t('welcomeWizardTrackingText')}</p>
{ <h2 className="welcome_wizard_tracking_sub_title">{MailPoet.I18n.t('welcomeWizardUsageTrackingStepSubTitle')}</h2>
ReactStringReplace( <ul className="welcome_wizard_tracking_list">
MailPoet.I18n.t('welcomeWizardTrackingText'), <li>{MailPoet.I18n.t('welcomeWizardTrackingList1')}</li>
/\[link\](.*?)\[\/link\]/g, <li>{MailPoet.I18n.t('welcomeWizardTrackingList2')}</li>
match => ( <li>{MailPoet.I18n.t('welcomeWizardTrackingList3')}</li>
<li>{MailPoet.I18n.t('welcomeWizardTrackingList4')}</li>
<li>{MailPoet.I18n.t('welcomeWizardTrackingList5')}</li>
</ul>
<a <a
key="docs_link" href=" https://kb.mailpoet.com/article/130-sharing-your-data-with-us"
href="https://beta.docs.mailpoet.com/article/130-sharing-your-data-with-us"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
> >
{ match } {MailPoet.I18n.t('welcomeWizardTrackingLink')}
</a> </a>
)
)
}
</p>
<div <div
className={ className={
`mailpoet_welcome_wizard_step_controls `mailpoet_welcome_wizard_step_controls

View File

@@ -25,9 +25,16 @@
'welcomeWizardLetsStartTitle': __('Welcome! Lets get you started on the right foot.'), 'welcomeWizardLetsStartTitle': __('Welcome! Lets get you started on the right foot.'),
'welcomeWizardSenderText': __('Who is the sender of the emails youll be creating with MailPoet?'), 'welcomeWizardSenderText': __('Who is the sender of the emails youll be creating with MailPoet?'),
'welcomeWizardSenderMigratedUserText': __('We have a few things to tell you before you begin to ensure you have a good experience.'), 'welcomeWizardSenderMigratedUserText': __('We have a few things to tell you before you begin to ensure you have a good experience.'),
'welcomeWizardUsageTrackingStepTitle': __('Help MailPoet improve with usage tracking.'), 'welcomeWizardUsageTrackingStepTitle': __('Help MailPoet improve with anonymous usage tracking.'),
'welcomeWizardUsageTrackingStepSubTitle': __('Data we dont gather:'),
'welcomeWizardWooCommerceStepTitle': __('Automate your WooCommerce emails.'), 'welcomeWizardWooCommerceStepTitle': __('Automate your WooCommerce emails.'),
'welcomeWizardTrackingText': __('Gathering usage data allows us to make MailPoet better — the way you use MailPoet will be considered as we evaluate new features, judge the quality of an update, or determine if an improvement makes sense. [link]Read more about what we collect[/link].'), 'welcomeWizardTrackingText': __('Gathering usage data allows us to make MailPoet better — the way you use MailPoet will be considered as we evaluate new features, judge the quality of an update, or determine if an improvement makes sense.'),
'welcomeWizardTrackingList1': __('Any personal data'),
'welcomeWizardTrackingList2': __('Email addresses'),
'welcomeWizardTrackingList3': __('Login and passwords'),
'welcomeWizardTrackingList4': __('Content of your emails'),
'welcomeWizardTrackingList5': __('Open and click rates'),
'welcomeWizardTrackingLink': __('Read more about what we collect.'),
'welcomeWizardHelpingShopOwnersText': __('Were making it easier for shop owners to send emails to their customers and make more money.'), 'welcomeWizardHelpingShopOwnersText': __('Were making it easier for shop owners to send emails to their customers and make more money.'),
'welcomeWizardWooCommerceEmailsText': __('Create a new email to find the WooCommerce type of emails:'), 'welcomeWizardWooCommerceEmailsText': __('Create a new email to find the WooCommerce type of emails:'),
'welcomeWizardEmailCourseTitle': __('Sign up to our 4-part email course'), 'welcomeWizardEmailCourseTitle': __('Sign up to our 4-part email course'),