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
Improve UX/UI of enabling performance features via standalone plugins #1091
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Could you perhaps add a before/after screenshot/video to the PR description? Makes reviews a bit easier :) |
@swissspidy Screenshot added in PR description. |
When the user loads the Also, can we use |
@mukeshpanchal27 On the WP trunk the rendered screen seems to be breaking. Can you please confirm? Or am I missing something 🤔 |
This doesn't yet address all the suggestions for an initial improvement aka MVP outlined at #1031 (comment), specifically:
The latter two points should also alleviate the load time concern mentioned above
That's a bit out of scope for an MVP like this, but something we should consider for future iterations. |
This was initially defined as a requirement, but later discarded. See #1031 (comment) for the latest requirements.
Agreed, this is out of scope here. Let's discuss such a change separately. |
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.
Thank you @mukeshpanchal27, leaving a bit of feedback.
Co-authored-by: Weston Ruter <westonruter@google.com> Co-authored-by: Felix Arntz <felixarntz@users.noreply.github.com>
@thelovekesh Trunk version works fine for me. Could you please check if you can replicate the issue? @felixarntz @westonruter PR ready for review. |
Should we remove the "Learn more" link? It's redundant right now as you can just click on the title to open the modal. |
Certainly, if we agree to remove it, I'll go ahead and do so. However, it's worth noting that it was included in the requirement outlined here: #1031 (comment) |
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.
@mukeshpanchal27 This looks great, almost good to go. Just a few last points.
@swissspidy @mukeshpanchal27 I think we should keep the "Learn more" link. Even though you can access the modal from two places, the Learn more link is more obvious in allowing that than the title being clickable. FWIW, that's also how the regular plugin cards at Plugins > Add New handle it. |
Co-authored-by: Felix Arntz <felixarntz@users.noreply.github.com>
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.
@mukeshpanchal27 Awesome work, LGTM!
@mukeshpanchal27 In this particular core commit, few new classes were added to
|
Thanks @thelovekesh, this is a great catch. In that case, it looks like we may need to output CSS conditionally, depending on WordPress version. The current CSS works correctly for WP <6.5. But based on the changes from that commit, it looks like for WP >=6.5 we will have to include different CSS. @mukeshpanchal27 Could you test this and conditionally include the CSS for WP >=6.5? |
@thelovekesh Great catch. I have added the CSS fix that was introduced in the latest (6.5) version. Could you please take a look when you have a moment? |
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.
Thanks @mukeshpanchal27 for the update. I've tested this in 6.4 and 6.5-RC3 and it looks good in both now. ✅
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.
LGTM
Summary
Fixes #1031
Before:
After: