-
Notifications
You must be signed in to change notification settings - Fork 927
support old version of premium #22371
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
support old version of premium #22371
Conversation
Pull Request Test Coverage Report for Build 7d68bfe50b62af408d61ea026e4b53a72adb2262Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
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.
CR ❓
const isPremium = select( STORE_NAME_EDITOR ).getIsPremium(); | ||
|
||
// If the older version of premium is active, we don't want to show the Free AI generator button. | ||
if ( isPremium && select( "yoast-seo-premium/ai-generator" ) ) { |
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 is a smart check 😄
I do think this might be better in the initializeAiGenerator
itself, and not create the whole store and add to filters etc. We do quite a bit still, right?
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.
Good point!
2221836
to
065952f
Compare
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.
Even nicer! No scripts to be had.
... if we fix the entry script and removing the imports from the editor 😬
We want to show the ai generator on product for free sparks
Exclude product for elementor
9fa51ef
to
fbded4f
Compare
dcee038
to
1cb8ca7
Compare
1cb8ca7
to
a362835
Compare
moved to server side conditional
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.
CR && Acc: ✅
Context
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
Relevant test scenarios
Test instructions for QA when the code is in the RC
QA can test this PR by following these steps:
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
UI changes
Other environments
[shopify-seo]
, added test instructions for Shopify and attached theShopify
label to this PR.Documentation
Quality assurance
Innovation
innovation
label.Fixes Investigate: What should happen with different versions Free and Premium