Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Update the "alt text loading state" button to indicate when Alter generation is in progress.#396

Merged
dkotter merged 5 commits intoWordPress:developfrom
Rajat1192:Rajat1192fix-384
Apr 16, 2026
Merged

Update the "alt text loading state" button to indicate when Alter generation is in progress.#396
dkotter merged 5 commits intoWordPress:developfrom
Rajat1192:Rajat1192fix-384

Conversation

@Rajat1192
Copy link
Copy Markdown
Contributor

@Rajat1192 Rajat1192 commented Apr 9, 2026

What?
Closes #384

Updates the “Generate Alt Text" button to say Generating... when Alt text 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 Alt Text button to show Generating... while excerpt generation is in progress.

Use of AI Tools
N/A

Testing Instructions

  1. Check out this PR branch and run npm i && npm run build.
  2. Add a valid AI connector.
  3. Turn on alt text generation.
  4. Create a post.
  5. Find the Add an Generating... button in the post status sidebar and click it to open the popover.
  6. Click the Generate alt text button in the popover.
  7. Ensure the text updates to Generating....
  8. Once the alt text is generated, make sure the button updates to Re-generate alt text.
  9. Click it again and ensure the button text updates to Generating....

### Testing Instructions for Keyboard
### Screenshots or screencast

Screencast.from.2026-04-09.12-17-11.mp4
Open WordPress Playground Preview

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2026

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.

Unlinked contributors: yusufhay.

Co-authored-by: Rajat1192 <rajat1192@git.wordpress.org>
Co-authored-by: vishwaAghera-WPdev <vishwa99@git.wordpress.org>
Co-authored-by: jeffpaul <jeffpaul@git.wordpress.org>
Co-authored-by: dkotter <dkotter@git.wordpress.org>

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.36%. Comparing base (4f5732e) to head (f437b1a).
⚠️ Report is 10 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #396   +/-   ##
==========================================
  Coverage      68.36%   68.36%           
  Complexity       813      813           
==========================================
  Files             53       53           
  Lines           3945     3945           
==========================================
  Hits            2697     2697           
  Misses          1248     1248           
Flag Coverage Δ
unit 68.36% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@jeffpaul jeffpaul left a comment

Choose a reason for hiding this comment

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

Button updates as expected, but seeing oddity where all images tested come back as decorative so no Alt Text gets generated (but assuming that's an issue with my provider for now).

@jeffpaul jeffpaul added this to the 0.8.0 milestone Apr 16, 2026
@jeffpaul jeffpaul requested a review from dkotter April 16, 2026 17:47
dkotter
dkotter previously approved these changes Apr 16, 2026
@dkotter dkotter merged commit 0131263 into WordPress:develop Apr 16, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update alt text loading state

3 participants