Skip to content

Update the summarization button when summarization is happening#382

Merged
dkotter merged 5 commits intoWordPress:developfrom
dkotter:fix/update-summary-button
Apr 16, 2026
Merged

Update the summarization button when summarization is happening#382
dkotter merged 5 commits intoWordPress:developfrom
dkotter:fix/update-summary-button

Conversation

@dkotter
Copy link
Copy Markdown
Collaborator

@dkotter dkotter commented Apr 8, 2026

What?

Closes #381

Updates the summarization buttons to say Generating... when summarizations are being generated.

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 experiments.

How?

Updates both the button in the post status sidebar and the button that shows in the AI Summarization block toolbar to show Generating... when generation is in progress

Use of AI Tools

None

Testing Instructions

  1. Pull this branch down and run npm i && npm run build
  2. Add a valid AI Connector
  3. Turn on the Summarization experiment
  4. Create a post
  5. Find the Generate Summary button in the post status sidebar and click it
  6. Ensure the text updates to say Generating...
  7. Once the AI Summary block has been inserted, click into that block and ensure the generate icon shows in the block toolbar
  8. Click this and hover over it, ensuring the tooltip shows Generating...

Screenshots or screencast

summarization.mov
Open WordPress Playground Preview

@dkotter dkotter self-assigned this Apr 8, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 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.

Co-authored-by: dkotter <[email protected]>
Co-authored-by: jeffpaul <[email protected]>

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

@dkotter dkotter added this to the 0.8.0 milestone Apr 8, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 8, 2026

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #382   +/-   ##
==========================================
  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.

@jeffpaul jeffpaul self-requested a review April 16, 2026 16:30
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.

Works as expected, thanks!

@dkotter dkotter merged commit 8322852 into WordPress:develop Apr 16, 2026
18 checks passed
@dkotter dkotter deleted the fix/update-summary-button branch April 16, 2026 16:47
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 loading state for Content Summarization

2 participants