-
Notifications
You must be signed in to change notification settings - Fork 808
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
Add "warm welcome" for newly purchased plans #7837
Conversation
Updated the content with help from @nicoleckohler. Screenshots: Sorry about the weird crops. My screenshotting tool stopped working :/ CC @rickybanister @dereksmart I think everything works, but it could use some double checking. Also, you might have a better idea how to insert/use the SVGs. They don't have to be inline. |
@MichaelArestad thanks. I pushed a30a4bf which cleans up the inline svgs. We already had some of them in Jetpack :) I also renamed a couple of the new ones based on their ID. Figured it would be easier to cross reference later. This is ready for final review. |
faeb3a6
to
61dac03
Compare
* as a bonus, I added custom classes to jp-dialogue
61dac03
to
b90d91b
Compare
Nice. Thank you, Derek! Let's get it code reviewed and in. I'd like to swap one of the images in the Personal plan, but I can do that in a further PR. |
@@ -201,3 +201,12 @@ export function appsCardDismissed( state ) { | |||
export function emptyStatsCardDismissed( state ) { | |||
return get( state.jetpack.settings.items, 'dismiss_empty_stats_card', false ); | |||
} | |||
|
|||
/** | |||
* Returns true if Empty Stats card has been dismissed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This description for showWelcomeForNewPlan
is weird
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bad copy pasta. fixed in 6c5c299
For the Premium plan, click the link "Monetize your site with ads", takes me to the traffic tab, but on a random scroll position. Well, this happens for every link taking to Traffic on Premium and Professional plans, so it's consistent. Other than that, LGTM ! |
@dereksmart are the buttons recording events in tracks? |
Don't know if this is relevant, but, by switching with the dev tools from admin, to editor, and then from free to premium, I still get to see the modal |
@oskosk I wouldn't really trust the "role" option in the dev tool ;) Best to log in as a real editor |
f3f2858
to
6c5c299
Compare
@MichaelArestad PR incoming with tracks |
* initial commit for running changelog * Update stable tag in readme * Changelog: move old releases to changelog.txt. Also add release post URL for 5.4 * Changelog: add #7729 * Changelog: add #7736 * Changelog: add #7737 * Changelog: add #7740 * Changelog: add #7742 * Changelog: add #7366 * Changelog: add #7664 * Changelog: add #7751 * Changelog: add #7764 * Changelog: add #7768 * Changelog: add #7796 * Changelog: add #7798 * Changelog: add #7822 * Changelog: add #7824 * Changelog: add #7825 * Changelog: add #7826 * Changelog: add #7829 * Changelog: add #7831 * Changelog: add #7837 * Changelog: add #7850 * Changelog: add #7852 * Changelog: add #6538 * Changelog: add #7767 * Changelog: add #7782 * Changelog: add #7797 * Changelog: add #7819 * update to-test to add misc stuff * add comment edit fix to changelog
* initial commit for running changelog * Update stable tag in readme * Changelog: move old releases to changelog.txt. Also add release post URL for 5.4 * Changelog: add #7729 * Changelog: add #7736 * Changelog: add #7737 * Changelog: add #7740 * Changelog: add #7742 * Changelog: add #7366 * Changelog: add #7664 * Changelog: add #7751 * Changelog: add #7764 * Changelog: add #7768 * Changelog: add #7796 * Changelog: add #7798 * Changelog: add #7822 * Changelog: add #7824 * Changelog: add #7825 * Changelog: add #7826 * Changelog: add #7829 * Changelog: add #7831 * Changelog: add #7837 * Changelog: add #7850 * Changelog: add #7852 * Changelog: add #6538 * Changelog: add #7767 * Changelog: add #7782 * Changelog: add #7797 * Changelog: add #7819 * update to-test to add misc stuff * add comment edit fix to changelog
Fixes #7374
This PR works in the following technical ways:
show_welcome_for_new_plan
will be set and act as a flag to whether or not a "new plan" was purchased. It should not set if the plan changes/downgrades to "free"<WelcomeNewPlan />
component, which acts as a "parent" component to the dummy individual welcomes.To Test:
Hacks to make testing easier:
update_option( 'show_welcome_for_new_plan', true );
and then using the dev tools, select a paid plan.Since the modal is hiding the "dev tools" footer link, you can manually trigger it by writing. If the dev tools little window is opened it won't get covered by the modalwindow.dispatch( { type: "DEV_CARD_DISPLAY" } );
in the browser consoleIn progress until @MichaelArestad gets his hands on it