586 create a notification for when the sparks run out#22332
Merged
vraja-pro merged 13 commits intofeature/ai-generator-in-freefrom Jun 6, 2025
Merged
Conversation
With a ternary the children are always a string. As required by the Label component.
An empty string is an invalid value for the Notification component. Copying over the default value: "default"
* the counter makes no sense for the error * refactor useSelect into a single one for performance (less subscriptions) * move the MainModal declaration to before it is used
* specify the Premium/defaults in the hook already * refactor to use a single useSelect for performance * remove the hijacked title/isProductCopy from the type documentation
To also work for the upsell variant
* no need for the elaborate internal names * add request status * don't reset the count to zero before and on errors * add selectors for ease of use (not sure if we keep them) * move request transformation/validation to the generator function instead of in the reducer: resulting in an error if not the expected response
Let's not overcomplicate things with having to know the context before deciding which selector to use. If you need to know: check isTerm. Same for the Woo upsell. But not removing the term check as it is currently still being used in Premium. Seems to be only used in this context, so taking the opportunity to refactor. Left a potential rename alone: entityType
fad2bc7 to
110d8b8
Compare
I the spacing is the same, we can control it from one place.
055874f to
36b0fa1
Compare
18 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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 theShopifylabel to this PR.Documentation
Quality assurance
Innovation
innovationlabel.Fixes #