Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-1969, GH-2029 Plus & Premium In App Promo's #529

Closed
wants to merge 24 commits into from
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d7a2d6d
Design spring-plus promo modal
benstrumeyer Mar 5, 2020
95280ff
Add click events to promo modal
benstrumeyer Mar 9, 2020
887f445
Remove comments and console.logs
benstrumeyer Mar 9, 2020
c14cf55
Add translations
benstrumeyer Mar 9, 2020
6301df3
Unfinished PromoModal superclass
benstrumeyer Mar 31, 2020
bedad10
Add base class for promo modals
benstrumeyer Apr 1, 2020
04a9760
Insights promo modal broken
benstrumeyer Apr 1, 2020
31121c1
Fix handlePromoXClick, comment in PromoModal structure
Eden12345 Apr 2, 2020
2b54972
Merge insights, plus, and premium PromoModal methods
benstrumeyer Apr 6, 2020
70c9fa1
Fix error
benstrumeyer Apr 7, 2020
56d0716
Refactor X button out to PromoModal.jsx. Move Insights and Plus Promo…
benstrumeyer Apr 7, 2020
4f187af
Fix imports and remove debug flag from manifest.json
benstrumeyer Apr 7, 2020
ea8f83f
Use React.Fragment, update class names, factor out repeat code, updat…
Eden12345 Apr 8, 2020
e3140f5
Update InsightsPromoModal class name and fix display
Eden12345 Apr 8, 2020
121cafb
Merge branch 'develop' into GH-1969/plus-in-app-promo
benstrumeyer Apr 15, 2020
406fec5
Fix premium promo modal in hub. Refactor promo modal pings. Style mod…
benstrumeyer Apr 16, 2020
e6771a4
Merge branch 'develop' into GH-1969/plus-in-app-promo
benstrumeyer Apr 16, 2020
16ed0d1
Merge branch 'develop' into GH-1969/plus-in-app-promo
benstrumeyer Apr 16, 2020
3f8f5dd
Change Spring has sprung to Spring is here. Clear them when logging out
benstrumeyer Apr 22, 2020
5e8dd16
Change Plus promo modal copy
benstrumeyer Apr 22, 2020
e771e4f
Remove $2 price tag from Plus Promo
benstrumeyer Apr 24, 2020
6606256
Remove $14 price tag from Premium Promo
benstrumeyer Apr 24, 2020
72df836
Merge branch 'develop' into GH-1969/plus-in-app-promo
benstrumeyer Apr 24, 2020
73d08e3
Remove testing code
benstrumeyer Apr 24, 2020
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

@@ -1818,7 +1818,7 @@
"message": "While Ghostery is free, you can choose to support us through a small subscription of $2 per month in exchange for cool perks, such as color themes, priority help service, and more. Join our mission and subscribe!"
},
"subscribe_pitch_spring": {
"message": "Support us and unlock a new spring theme, personal tracking insights, and other special perks by upgrading to Ghostery Plus for $2 per month."
"message": "Like what we do? Support us and unlock new spring themes, personal tracking insights, and other special perks by upgrading to Ghostery Plus."
},
"subscribe_pitch_learn_more": {
"message": "Learn more"
@@ -2381,10 +2381,10 @@
"message": "Try Ghostery Midnight"
},
"seven_day_free_trial": {
"message": "7 Day Free Trial ($14/mo)"
"message": "7 Day Free Trial"
},
"spring_has_sprung": {
"message": "Spring has sprung!"
"spring_is_here": {
"message": "Spring is here!"
},
"full_coverage_protection_promise": {
"message": "Get full-coverage protection across all browsers & apps on your device"
@@ -2405,7 +2405,7 @@
"message": "Download for free"
},
"support_ghostery_for_2_instead": {
"message": "Support Ghostery for $2/mo instead"
"message": "Support Ghostery and try Plus instead"
},
"no_thanks_continue_with_basic": {
"message": "No thanks, continue with basic"
@@ -30,6 +30,8 @@ import {
GET_USER_SUBSCRIPTION_DATA_SUCCESS
} from './AccountConstants';

import { CLEAR_THEME } from '../panel/constants/constants';

export const getUserSettings = () => dispatch => (
sendMessageInPromise('account.getUserSettings')
.then((settings) => {
@@ -153,6 +155,7 @@ export const logout = () => dispatch => (
sendMessageInPromise('account.logout', {})
.then(() => {
dispatch({ type: LOGOUT_SUCCESS });
dispatch({ type: CLEAR_THEME });
})
.catch((err) => {
const errors = [{ title: err.toString(), detail: err.toString() }];
@@ -100,6 +100,12 @@ export const getTheme = name => dispatch => (
})
);

export function clearTheme() {
return {
type: CLEAR_THEME,
};
}

/**
* Triggered when the user signs in through the Insights modal into an account that does not have an insights subscription, prompting to re-display the modal, requiring a re-render
* @return {Object}
@@ -33,7 +33,7 @@ const PlusPromoModalContent = (props) => {
<div className="PlusPromoModal__main-content-container">
<div className="PlusPromoModal__header">
<div className="title">
<div>{t('spring_has_sprung')}</div>
<div>{t('spring_is_here')}</div>
</div>
<div className="description">
<div dangerouslySetInnerHTML={{ __html: t('subscribe_pitch_spring') }} />
@@ -32,7 +32,8 @@ $condensed-font-family: Roboto Condensed, "Open Sans", "Helvetica Neue", Helveti
}

.PremiumPromoModal__main-content-container {
height: 210px;
height: 210px;
width: 508px;
display: flex;
flex-direction: column;
align-items: center;
@@ -65,6 +66,7 @@ $condensed-font-family: Roboto Condensed, "Open Sans", "Helvetica Neue", Helveti
}

.PremiumPromoModal__features-container {
margin-left: 15px;
display: flex;
width: 100%;
}
@@ -84,7 +86,7 @@ $condensed-font-family: Roboto Condensed, "Open Sans", "Helvetica Neue", Helveti
display: flex;
align-items: center;
&:nth-child(1) {
margin-bottom: 4px;
margin-bottom: 10px;
}
}

ProTip! Use n and p to navigate between commits in a pull request.