-
Notifications
You must be signed in to change notification settings - Fork 902
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
Fixes AI buttons in the sidebar going blank after closing the metabox #21439
Fixes AI buttons in the sidebar going blank after closing the metabox #21439
Conversation
…g the metabox #1621 Use unique gradient id for each image.
I will need to update the Snapshots test since they are failing due to the random ids. 🤔 |
I just realized your comment here means that doesn't matter how many times the snapshot is updated, the test will fail 🙈 I found a discussion in StackOverflow that discusses a similar problem. One of the solutions is:
I think you can apply this suggestion:
|
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.
Great solution! 🙌🏽 However, since the snapshot is failing and we cannot reliably test the component with the current setup, consider applying the suggestions I left in the above comment :)
…seo into ai-fixes-buttons-in-the-sidebar-go-blank
Pull Request Test Coverage Report for Build ed05df138f626687db46901d40aacafc689ad645Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 89cff21698a268dc165bda2e84dc40077ff1ff5cDetails
💛 - Coveralls |
@@ -5,23 +5,24 @@ import propTypes from "prop-types"; | |||
* @param {boolean} pressed Whether the button is pressed. | |||
* @returns {JSX.Element} The AI Assessment Fixes button icon. | |||
*/ | |||
export const SparklesIcon = ( { pressed = false } ) => { | |||
export const SparklesIcon = ( { pressed = false, gradientId } ) => { |
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.
I guess here it would also be better to add gradientId
to the JSDoc of SparklesIcon
😺
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.
I'll commit this :D See my latest commit
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.
Yes, good call! Thank you 🙏
Pull Request Test Coverage Report for Build 7ad1e50ad733c5cc27a3abd4783abb841cd9e4b8Details
💛 - Coveralls |
Acceptance test: Works like a charm! ✨ |
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 https://github.com/Yoast/plugins-automated-testing/issues/1621