Memberships: Check plan before displaying the block#12348
Conversation
|
Caution: This PR has changes that must be merged to WordPress.com |
This is an automated check which relies on |
davemart-in
left a comment
There was a problem hiding this comment.
If we can remove the period in the button, I'm 👍LGTM!
|
Related discussion: p8hgLy-1tg-p2#comment-2615 |
|
I haven't tested this PR but from looking at the screenshot I am happy for this to proceed. My only slight hesitation is seeing the term "memberships" and "plans" together, they could easily mean the same thing.
👏 This is a nice bit of clarification. When we are referencing 'plan' here, is it a Jetpack plan or a .com plan? or both? |
|
artpi, Your synced wpcom patch D28126-code has been updated. |
Fusion just mangled D28126-code . I attached there code that was not in JP repo and now it deleted it. I need to work on 3rd pr to land this. |
That's to be expected unfortunately. Fusion has no way to know about the previous state of the diff right now, so it just reapplies the new diff it gets from the PR. If you have changes to other files, I'd recommend making them in a separate diff if you can. |
216de1f to
6f4add3
Compare
|
artpi, Your synced wpcom patch D28126-code has been updated. |
jeherve
left a comment
There was a problem hiding this comment.
This works well for me, but I wonder if we should add a link to recheck the status of your site in the block editor once you've purchased a plan, just like we have when you first add the block before it's connected to Stripe:
What do you think?
This can be done in a next PR though, so approving this one for now.
6f4add3 to
34c082b
Compare
|
artpi, Your synced wpcom patch D28126-code has been updated. |
From review suggestions. Co-Authored-By: Jeremy Herve <jeremy@tagada.hu>
34c082b to
fc51d60
Compare
|
artpi, Your synced wpcom patch D28126-code has been updated. |
* Kick off the changelog * Add 7.3.1 * Update date and post link * changelog: add #12219 * changelog: add #12170 * changelog: add #12184 * Changelog: add #12268 * Changelog: add #12081 * Changelog: add #12323 * Changelog: add #12204 * Changelog: add #12269 * Changelog: add #12332 * changelog: add #12339 * changelog: add #12209 * Changelog: add #12319 * Changelog: add #12357 * Changelog: add #12124 * Changelog: add #12373 * Changelog: add #12252 * Changelog: add #12383 * Changelog: add #12372 * changelog: add #12337 * Changelog: add #12290 * Changelog: add #12301 * Changelog: add #12061 * Testing list: add instructions for #12061 * Changelog: add #12393 * Update minimum supported version See #12287 * Changelog: add #12406 * Testing list: add #12406 * Changelog: add #12277 * Changelog: add #12412 * Changelog: add #11318 * Changelog: add #12328 * Changelog: add #12425 * Changelog: add #12380 * Changelog: add #12428 * Changelog: add #12414 * Changelog: add #12395 * Changelog & Testing list: add #12416, #12417, #12418, and #12348 * changelog: add #12379 * Changelog: add #12341 * changelog: add #12444 * Changelog: add #12434 * Changelog: add #12454 * Changelog: add #12460 * Changelog: add #12463 * Changelog: add #12457 * Changelog / testing list: add #10333 * Changelog: add #12467 Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>

This PR blocks the usage of a block (ahem) if you are on a free plan. This is a part of Automattic/wp-calypso#32984 (comment)
Additionallly, this PR simplifies the status endpoint, directly passes the response from WPCOM and makes it easier to fix pieces later.
Screenshots
Testing instruction
Jetpack ngrok solution
define( 'JETPACK__SANDBOX_DOMAIN', 'your-public-sandboxed-site' );WPCOM simple
You only need to test D28126-code on your sandbox