Skip to content

Update the summarization button when summarization is happening#382

Open
dkotter wants to merge 3 commits intoWordPress:developfrom
dkotter:fix/update-summary-button
Open

Update the summarization button when summarization is happening#382
dkotter wants to merge 3 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 <dkotter@git.wordpress.org>
Co-authored-by: jeffpaul <jeffpaul@git.wordpress.org>

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 63.81%. Comparing base (aa6409b) to head (aac4353).

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #382   +/-   ##
==========================================
  Coverage      63.81%   63.81%           
  Complexity       684      684           
==========================================
  Files             49       49           
  Lines           3529     3529           
==========================================
  Hits            2252     2252           
  Misses          1277     1277           
Flag Coverage Δ
unit 63.81% <ø> (ø)

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.

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

1 participant