FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add Progress indicator when activating a feature by mukeshpanchal27 · Pull Request #1190 · WordPress/performance · GitHub

Add Progress indicator when activating a feature - #1190

Merged
swissspidy merged 5 commits into
trunkfrom
fix/1139-add-progress-indicator
Apr 30, 2024
Merged

Add Progress indicator when activating a feature#1190
swissspidy merged 5 commits into
trunkfrom
fix/1139-add-progress-indicator

Conversation

Copy link
Copy Markdown
Member

Summary

Fixes #1139

mukeshpanchal27 added [Type] Enhancement A suggestion for improvement of an existing feature no milestone PRs that do not have a defined milestone for release [Plugin] Performance Lab Issue relates to work in the Performance Lab Plugin only labels Apr 30, 2024
mukeshpanchal27 self-assigned this Apr 30, 2024
mukeshpanchal27 marked this pull request as ready for review April 30, 2024 05:10

github-actions Bot commented Apr 30, 2024
edited
Loading

Copy link
Copy Markdown

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: mukeshpanchal27 <mukesh27@git.wordpress.org>
Co-authored-by: westonruter <westonruter@git.wordpress.org>
Co-authored-by: swissspidy <swissspidy@git.wordpress.org>

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

westonruter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Wow, so nice!

Screen.recording.2024-04-29.22.15.19.webm

Comment thread includes/admin/load.php Outdated

Copy link
Copy Markdown
Member

@mukeshpanchal27 this works in WP 6.4 as well, yes?

Comment thread includes/admin/load.php

Copy link
Copy Markdown
Member Author

@mukeshpanchal27 this works in WP 6.4 as well, yes?

Yes, it works fine in 6.4.

Comment thread includes/admin/load.php
swissspidy merged commit 1bf56c9 into trunk Apr 30, 2024
swissspidy deleted the fix/1139-add-progress-indicator branch April 30, 2024 12:10
swissspidy added this to the performance-lab 3.1.0 milestone Apr 30, 2024
mukeshpanchal27 removed the no milestone PRs that do not have a defined milestone for release label Apr 30, 2024
Comment thread includes/admin/load.php
sprintf(
'( %s )( %s );',
$js_function,
wp_json_encode( __( 'Activating…', 'default' ) )

westonruter Apr 30, 2024
edited
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I just realized that this is 'Activating…' when the core string appears to rather be 'Activating...' (not using the ellipsis):

https://github.com/WordPress/wordpress-develop/blob/f9e5c6fb22a331746a1821e393c9ea6a6e6d70a0/src/js/_enqueues/wp/updates.js#L1090

Does this need to be amended?

Comment thread includes/admin/load.php
target.classList.add( 'updating-message' );
target.textContent = message;

wp.a11y.speak(message);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nit: Add spacing around the message param

Comment thread includes/admin/load.php
*
* @since n.e.x.t
*/
function perflab_print_plugin_progress_indicator_script() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Also, per #1188, might as well explicitly make this return void:

function perflab_print_plugin_progress_indicator_script(): void {

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

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.

Progress indicator is missing when activating a feature

3 participants


Back | FazBrowse Home | New Git URL