Repository navigation
Recurring Payments: Use Upgrade and Stripe Nudges #13394
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
Merged
simison
merged 15 commits into
master
from
update/recurring-payments-use-upgrade-nudge-take-two
Oct 2, 2019
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
37d09b0
Recurring Payments: Use Upgrade and Stripe Nudges
ockham 68b81c5
Add tracking
ockham 7bd07f4
Show the Stripe Nudge on both JP and WP.com
ockham eb4a515
RecPayments: Block is available on Free plan if nudge is disabled
ockham cf39ef5
Refer to `class.jetpack-gutenberg.php` for filter's documentation
simison b392487
Update copy in stripe and upgrade banners
simison 2e5114b
Mention removing filter from class-jetpack-memberships.ph once defaul…
simison 84e307b
Remove redundant comments
sirreal 534c3a1
Ensure registration occurs from the extensions php
sirreal eb4f1c7
Organize class variables
sirreal a0c9401
Ensure wpcom is wpcom
sirreal 16de0ab
[not verified] Revert "Ensure wpcom is wpcom"
sirreal ea56b11
Ensure upgrade and stripe nudge don't appear together
sirreal c82a4d7
Fix white after reabasing with calypso-build v4 update
simison e45dcbe
Use primary blue instead of wpcom blue
simison File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| /** | ||
| * External dependencies | ||
| */ | ||
| import GridiconStar from 'gridicons/dist/star'; | ||
| import { __ } from '@wordpress/i18n'; | ||
|
|
||
| /** | ||
| * Internal dependencies | ||
| */ | ||
| import analytics from '../../../../_inc/client/lib/analytics'; | ||
| import BlockNudge from '../block-nudge'; | ||
|
|
||
| import './style.scss'; | ||
|
|
||
| export default ( { stripeConnectUrl } ) => ( | ||
| <BlockNudge | ||
| buttonLabel={ __( 'Connect', 'jetpack' ) } | ||
| icon={ | ||
| <GridiconStar | ||
| className="jetpack-stripe-nudge__icon" | ||
| size={ 18 } | ||
| aria-hidden="true" | ||
| role="img" | ||
| focusable="false" | ||
| /> | ||
| } | ||
| href={ stripeConnectUrl } | ||
| onClick={ blockName => | ||
| void analytics.tracks.recordEvent( 'jetpack_editor_block_stripe_connect_click', { | ||
| block: blockName, | ||
| } ) | ||
| } | ||
| title={ __( 'Connect to Stripe to use this block on your site', 'jetpack' ) } | ||
| subtitle={ __( | ||
| 'This block will be hidden from your visitors until you connect to Stripe.', | ||
| 'jetpack' | ||
| ) } | ||
| /> | ||
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| @import '../../styles/gutenberg-colors.scss'; | ||
|
|
||
| .jetpack-stripe-nudge__icon { | ||
| align-self: center; | ||
| background: var( --color-primary ); | ||
| border-radius: 50%; | ||
| box-sizing: content-box; | ||
| color: $white; | ||
| fill: $white; | ||
| flex-shrink: 0; | ||
| margin-right: 16px; | ||
| padding: 6px; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.