-
Notifications
You must be signed in to change notification settings - Fork 799
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
Premium content block: Add a warning message for invalid plans #22446
Conversation
…t and added a Warning message for blocks that have invalid plans.
Caution: This PR has changes that must be merged to WordPress.com |
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
This fixes the linked issue when changing the Screen.Capture.on.2022-01-25.at.10-35-50.mp4 |
@dsas, thanks for the review, nice finding. I've looked into it and noticed that when you switch back to the visual editor, the block will automatically refresh the planId of the inner block(recurring block) to the correct one. However, in order to persist the changes, the user will have to manually press the update button, which imo, it's not clear that that the operation is needed. It looks like this might be an edge-case and would require a lot more thought on how to deal with this scenario, what do you think if we handle in a different PR/issue? 🤔 |
Definitely the right move 👍 this PR fixes a bigger and more likely scenario so shouldn't be held up on that smaller issue. |
Great news! One last step: head over to your WordPress.com diff, D73590-code, and commit it. Thank you! |
Deployed on WPCOM in r239318-wpcom |
When a Premium content block is configured with an invalid plan (subscription), the user is not aware that there's a problem with it. To handle this, we can add a warning message that would inform the user that the block is currently in an invalid state.
Fixes Automattic/wp-calypso#49103
Changes proposed in this Pull Request:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
Before
After