Skip to content
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

Add guidance for managing Performance feature plugins #1734

Conversation

ShyamGadde
Copy link
Contributor

@ShyamGadde ShyamGadde commented Dec 11, 2024

Summary

Fixes #1695

Relevant technical choices

Added an informative paragraph to the bottom of the Performance Features screen as seen in the screenshot below:
image

@ShyamGadde

This comment was marked as resolved.

@ShyamGadde ShyamGadde marked this pull request as ready for review December 11, 2024 18:00
Copy link

github-actions bot commented Dec 11, 2024

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ShyamGadde <[email protected]>
Co-authored-by: westonruter <[email protected]>
Co-authored-by: felixarntz <[email protected]>
Co-authored-by: mukeshpanchal27 <[email protected]>
Co-authored-by: paaljoachim <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

printf(
/* translators: %1$s: opening anchor tag, %2$s: closing anchor tag */
esc_html__( 'Performance features are installed as plugins. To update features or remove them, %1$s manage them on the plugins screen. %2$s', 'performance-lab' ),
'<a href="' . esc_url( admin_url( 'plugins.php?s=WordPress%20Performance%20Team&plugin_status=all' ) ) . '">',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use add_query_arg() here instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 8f670f5.

@westonruter westonruter added this to the performance-lab n.e.x.t milestone Dec 11, 2024
@westonruter westonruter added [Type] Enhancement A suggestion for improvement of an existing feature [Plugin] Performance Lab Issue relates to work in the Performance Lab Plugin only labels Dec 11, 2024
@westonruter
Copy link
Member

What do you think about centering the text?

Screen.recording.2024-12-12.09.39.01.webm

@felixarntz
Copy link
Member

+1 for the notice-info at the bottom. I think on the top is too prominent and distracting from the main purpose of the page, but the notice formatting makes most sense to me.

@westonruter
Copy link
Member

IMO, aligning the text center looks better:

Screen.recording.2024-12-13.16.27.48.webm

Compared with notice info:

Screen.recording.2024-12-13.16.26.49.webm

@adamsilverstein What do you think?

@westonruter
Copy link
Member

I added the two options as suggestions. I can go with either, although I slightly prefer Option 1. Someone please accept the suggestion they think is better, and then we can merge this PR.

@westonruter

This comment was marked as resolved.

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@westonruter @ShyamGadde Noticing one more small but important thing here that needs to be fixed before merge.

plugins/performance-lab/includes/admin/plugins.php Outdated Show resolved Hide resolved
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ShyamGadde, looks great!

@felixarntz felixarntz merged commit 1d44f3a into WordPress:trunk Dec 16, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Plugin] Performance Lab Issue relates to work in the Performance Lab Plugin only [Type] Enhancement A suggestion for improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Features should be able to be deactivated from the Performance screen
4 participants