Update the "Generate Excerpt" button to indicate when excerpt generation is in progress.#389
Update the "Generate Excerpt" button to indicate when excerpt generation is in progress.#389iamdharmesh wants to merge 3 commits intoWordPress:developfrom
Conversation
…eneration is in progress.
|
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 #389 +/- ##
==========================================
Coverage 65.75% 65.75%
Complexity 763 763
==========================================
Files 53 53
Lines 3863 3863
==========================================
Hits 2540 2540
Misses 1323 1323
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| const buttonLabel = hasExcerpt | ||
| ? __( 'Re-generate excerpt', 'ai' ) | ||
| : __( 'Generate excerpt', 'ai' ); | ||
| let buttonLabel: string = __( 'Generate excerpt', 'ai' ); |
There was a problem hiding this comment.
We should probably apply these same changes to the inline button:
What?
Closes #380
Updates the “Generate Excerpt” button to say
Generating...when excerpt generation is happening.Why?
While we have a loading state on these buttons, updating the text makes it more clear and matches how we do things in other places.
How?
Updates the “Generate Excerpt” button to show
Generating...while excerpt generation is in progress.Use of AI Tools
N/A
Testing Instructions
npm i && npm run build.Add an excerpt…button in the post status sidebar and click it to open the popover.Generate excerptbutton in the popover.Generating....Re-generate excerpt.Generating....Testing Instructions for Keyboard
Screenshots or screencast
Screen.Recording.2026-04-09.at.10.51.25.AM.mov