Content Summarization: Synchronize loading state between sidebar and toolbar regenerate buttons - #912
Conversation
… across components
… for state synchronization in useSummaryGeneration
|
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. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #912 +/- ##
==========================================
Coverage 80.43% 80.43%
Complexity 2565 2565
==========================================
Files 110 110
Lines 10448 10448
==========================================
Hits 8404 8404
Misses 2044 2044
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…te properly to avoid divergence between the two locations, if for instance an error happens in one. Slight naming tweaks
What?
Synchronizes the loading state between the right sidebar Regenerate Summary button and the block toolbar Regenerate Summary button.
Why?
Previously, when a Content Summary block was present, both the sidebar and block toolbar displayed "Regenerate Summary" buttons. However, their loading states were isolated to individual component instances. If a user clicked "Regenerate Summary" on the block toolbar, the sidebar button remained enabled and idle, allowing duplicate parallel generation requests. Now, both regenerate buttons enter the loading state simultaneously.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Sonnet 4.6
Used for: Validating bug, suggesting a fix.
Testing Instructions
Screenshots or screencast
Before
Screen.Recording.2026-07-31.at.6.08.33.PM.mov
After
Screen.Recording.2026-07-31.at.6.06.42.PM.mov
Changelog Entry