Skip to content

Standardize to using runAbility to call our Abilities#228

Open
dkotter wants to merge 4 commits intoWordPress:developfrom
dkotter:update/run-ability-utility
Open

Standardize to using runAbility to call our Abilities#228
dkotter wants to merge 4 commits intoWordPress:developfrom
dkotter:update/run-ability-utility

Conversation

@dkotter
Copy link
Collaborator

@dkotter dkotter commented Feb 12, 2026

What?

Move from using apiFetch to using our custom runAbility utility function (introduced here) to call our Abilities in our UI code.

Why?

Ensures our codebase is standardized (no more fractured code that uses apiFetch in some places and runAbility in others.

Also ensures the Abilities JS API is used when available, falling back to using apiFetch otherwise.

How?

  • Updates Title Generation, Excerpt Generation and Content Summarization Abilities to use runAbility and remove the direct use of apiFetch
  • Removes the now unused path JS localized data

Use of AI Tools

Used Cursor (running Composer 1.5) to give a first pass on making this change with final changes, plus review and testing, done by me

Testing Instructions

  1. Add valid AI Credentials
  2. Turn on Title Generation, Excerpt Generation and Content Summary Experiments
  3. Test each individual Experiment and ensure they still work
Open WordPress Playground Preview

@dkotter dkotter self-assigned this Feb 12, 2026
@github-actions
Copy link

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]>

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

@codecov
Copy link

codecov bot commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.83%. Comparing base (04c2df4) to head (eb26bec).
⚠️ Report is 25 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #228      +/-   ##
=============================================
+ Coverage      56.76%   56.83%   +0.06%     
  Complexity       505      505              
=============================================
  Files             32       32              
  Lines           2565     2562       -3     
=============================================
  Hits            1456     1456              
+ Misses          1109     1106       -3     
Flag Coverage Δ
unit 56.83% <ø> (+0.06%) ⬆️

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.

@dkotter dkotter added this to the 0.4.0 milestone Feb 12, 2026
@jeffpaul jeffpaul moved this to Needs review in WordPress AI Planning & Roadmap Feb 12, 2026
@jeffpaul jeffpaul modified the milestones: 0.3.1, 0.4.0 Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs review

Development

Successfully merging this pull request may close these issues.

2 participants