Skip to content

Add loading text for legacy widget preview#70517

Open
R1shabh-Gupta wants to merge 2 commits intoWordPress:trunkfrom
R1shabh-Gupta:enhancement/loading-label-legacy-widget
Open

Add loading text for legacy widget preview#70517
R1shabh-Gupta wants to merge 2 commits intoWordPress:trunkfrom
R1shabh-Gupta:enhancement/loading-label-legacy-widget

Conversation

@R1shabh-Gupta
Copy link
Contributor

What?

Closes #33667

Adds a "Loading preview…" label next to the spinner for legacy widget on the block-based Widgets screen.

Why?

When a site has many widgets and sidebars, the block-based Widgets screen can take a long time to load.
Previously, users only saw a spinner during this time, which created confusion and doubt about whether the interface was working.

This PR improves user feedback during loading, making it clearer that content is actively being loaded.

How?

Adds a "Loading preview…" text label next to the spinner during the block preview loading phase.

Testing Instructions

  1. Go to Appearance > Widgets in a site and add some legacy widgets.
  2. Observe the loading phase on reload.
  3. Confirm that the spinner now displays the "Loading preview…" label next to it.

Screenshots or screencast

Before After
Before After

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Jun 25, 2025
@github-actions
Copy link

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @R1shabh-Gupta! In case you missed it, we'd love to have you join us in our Slack community.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@R1shabh-Gupta R1shabh-Gupta marked this pull request as ready for review June 25, 2025 08:50
@github-actions
Copy link

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: R1shabh-Gupta <rishabhwp@git.wordpress.org>
Co-authored-by: noisysocks <noisysocks@git.wordpress.org>
Co-authored-by: jeremyfelt <jeremyfelt@git.wordpress.org>

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

@t-hamano t-hamano added [Type] Enhancement A suggestion for improvement. [Block] Legacy Widget Affects the Legacy Widget Block - used for displaying Classic Widgets labels Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Legacy Widget Affects the Legacy Widget Block - used for displaying Classic Widgets First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Legacy widget previews should include explanatory text

2 participants