Bump @yoast/ai-frontend to 0.26.0 and drop the superseded AI suggestion styles - #23606
Bump @yoast/ai-frontend to 0.26.0 and drop the superseded AI suggestion styles#23606JorPV wants to merge 2 commits into
Conversation
Coverage Report for CI Build 0Coverage remained the same at 59.538%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
There was a problem hiding this comment.
🟡 Changes recommended
The PR metadata (“Fixes #1427”) appears inconsistent with the actual changes (dependency bump + CSS removal), which risks auto-closing/associating the wrong issue.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Updates the Free plugin’s bundled yoast-seo-ai-frontend-package dependency so the new platform-agnostic SuggestionField (now shipped by @yoast/ai-frontend@0.26.0) is available on window.yoast.aiFrontend, and removes now-superseded bulk editor suggestion styling from this repo to avoid duplicate sources of truth.
Changes:
- Bump
@yoast/ai-frontendfrom^0.25.0to^0.26.0inpackages/js/package.json. - Update
yarn.lockto lock@yoast/ai-frontendto0.26.0. - Remove
.yst-bulk-editor-ai-suggestionCSS overrides fromcss/src/bulk-editor-page.css(class no longer referenced in-repo).
File summaries
| File | Description |
|---|---|
packages/js/package.json |
Bumps @yoast/ai-frontend to ^0.26.0 so the updated component export is available to consumers. |
yarn.lock |
Updates the lock entry to resolve @yoast/ai-frontend@0.26.0 under frozen installs. |
css/src/bulk-editor-page.css |
Removes bulk editor AI suggestion styles that are now shipped by the package itself. |
Review details
- Files reviewed: 2/3 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| "@wordpress/rich-text": "^7.8.4", | ||
| "@wordpress/server-side-render": "^5.8.12", | ||
| "@wordpress/url": "^4.8.1", | ||
| "@yoast/ai-frontend": "^0.25.0", | ||
| "@yoast/ai-frontend": "^0.26.0", | ||
| "@yoast/analysis-report": "^2.0.0-alpha.1", |
Context
The bulk editor's AI suggestion field has been moved into
@yoast/ai-frontendas a platform-agnosticSuggestionFieldcomponent (Yoast/ai-frontend#164, Yoast/ai-frontend#165), so consumers other than WordPress — starting withwpseo-woocommercefor alt-text generation — can reuse it. That component shipped in@yoast/ai-frontend@0.26.0.Free owns the build of the
yoast-seo-ai-frontend-packageasset, soSuggestionFieldonly reacheswindow.yoast.aiFrontendonce Free bumps the dependency. This PR does that bump, and drops the bulk editor CSS that the package now carries itself.Related: Yoast/reserved-tasks#1427, Yoast/wordpress-seo-premium#5066.
Summary
This PR can be summarized in the following changelog entry:
@yoast/ai-frontendto 0.26.0 and removes the bulk editor AI suggestion styles that now ship with the package.Relevant technical choices:
packages/js/package.json, not the root manifest.@yoast/ai-frontendis on a0.xversion, where^0.25.0resolves to>=0.25.0 <0.26.0— so the caret bump is required, not cosmetic, andyarn.locktravels in the same commit because CI installs with--frozen-lockfile..yst-bulk-editor-ai-suggestionrules are removed rather than kept as a safety net. The gradient frame and theprimary-50textarea background are now part of the component itself (.frameandtextarea.fieldin the package'sstyles.module.scss), so keeping them here would mean two sources of truth for the same look. After this PR,yst-bulk-editor-ai-suggestionappears nowhere in this repository.trunkstill appliesyst-bulk-editor-ai-suggestioningenerated-field-cell.js; 3.3.4 update not tagged #5066 is what replaces that markup with the package component. In the window between this PR merging and 3.3.4 update not tagged #5066 merging, anyone running Freetrunk+ Premiumtrunksees the AI suggestion field without its gradient border. Nothing breaks — it is purely cosmetic, and only ontrunk.Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
yarn install, thengrunt build:jsandgrunt build:css.grep version node_modules/@yoast/ai-frontend/package.json.UsageCounter(sparks usage) in the AI generator or the AI content planner feature modal still look good/ aren't broken.Relevant test scenarios
A missing or misnamed export from the bumped package surfaces as a console error rather than a visibly broken page, which is why the console should be open.
Test instructions for QA when the code is in the RC
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
yoast-seo-ai-frontend-packagescript asset, which is built here and consumed by Premium. Other Free consumers of this package —UsageCounterin the AI generator (packages/js/src/ai-generator/components/app.js) and in the AI content planner feature modal (packages/js/src/ai-content-planner/components/feature-modal.js) — come along with the version bump and are worth a smoke test.css/src/bulk-editor-page.css). Only the AI suggestion rules were touched; the surrounding error-alert and cell-value rules are unchanged.Other environments
[shopify-seo], added test instructions for Shopify and attached theShopifylabel to this PR.[yoast-doc-extension], added test instructions for Yoast SEO for Google Docs and attached theGoogle Docs Add-onlabel to this PR.Documentation
Quality assurance
grunt build:imagesand committed the results, if my PR introduces or edits images or SVGs.The component's own unit tests live in
@yoast/ai-frontend; this PR carries no logic of its own.Innovation
innovationlabel.Fixes #1427