Skip to content

Conversation

@mukeshpanchal27
Copy link
Member

Summary

Fixes #1139

@mukeshpanchal27 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 mukeshpanchal27 self-assigned this Apr 30, 2024
@mukeshpanchal27 mukeshpanchal27 marked this pull request as ready for review April 30, 2024 05:10
@github-actions
Copy link

github-actions bot commented Apr 30, 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: 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.

Copy link
Member

@westonruter westonruter left a comment

Choose a reason for hiding this comment

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

Wow, so nice!

Screen.recording.2024-04-29.22.15.19.webm

@westonruter
Copy link
Member

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

@mukeshpanchal27
Copy link
Member Author

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

Yes, it works fine in 6.4.

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

@westonruter westonruter Apr 30, 2024

Choose a reason for hiding this comment

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

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?

target.classList.add( 'updating-message' );
target.textContent = message;
wp.a11y.speak(message);
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Add spacing around the message param

*
* @since n.e.x.t
*/
function perflab_print_plugin_progress_indicator_script() {
Copy link
Member

Choose a reason for hiding this comment

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

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

function perflab_print_plugin_progress_indicator_script(): void {

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

4 participants