Skip to content

Fix apply replacevars#22359

Merged
vraja-pro merged 4 commits intofeature/ai-generator-in-freefrom
fix-apply-replacevars
Jun 26, 2025
Merged

Fix apply replacevars#22359
vraja-pro merged 4 commits intofeature/ai-generator-in-freefrom
fix-apply-replacevars

Conversation

@igorschoester
Copy link
Copy Markdown
Contributor

@igorschoester igorschoester commented Jun 17, 2025

Context

Summary

This PR can be summarized in the following changelog entry:

  • Fixes the AI generate replacement variable replacing.

Relevant technical choices:

  • Also noticed the store data was influenced by this, fixed that by mapping over it instead

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

  • Edit a page and go the the Search appearance.
  • Make sure you have Page replacement variable in the title (or description).
  • Open the AI generator and get some suggestions for the title.
  • Verify there is no longer a %%page%% in the preview.

Relevant test scenarios

  • Changes should be tested with the browser console open
  • Changes should be tested on different posts/pages/taxonomies/custom post types/custom taxonomies
  • Changes should be tested on different editors (Default Block/Gutenberg/Classic/Elementor/other)
  • Changes should be tested on different browsers
  • Changes should be tested on multisite

Test instructions for QA when the code is in the RC

  • QA should use the same steps as above.

QA can test this PR by following these steps:

Impact check

This PR affects the following parts of the plugin, which may require extra testing:

UI changes

  • This PR changes the UI in the plugin. I have added the 'UI change' label to this PR.

Other environments

  • This PR also affects Shopify. I have added a changelog entry starting with [shopify-seo], added test instructions for Shopify and attached the Shopify label to this PR.

Documentation

  • I have written documentation for this change. For example, comments in the Relevant technical choices, comments in the code, documentation on Confluence / shared Google Drive / Yoast developer portal, or other.

Quality assurance

  • I have tested this code to the best of my abilities.
  • During testing, I had activated all plugins that Yoast SEO provides integrations for.
  • I have added unit tests to verify the code works as intended.
  • If any part of the code is behind a feature flag, my test instructions also cover cases where the feature flag is switched off.
  • I have written this PR in accordance with my team's definition of done.
  • I have checked that the base branch is correctly set.

Innovation

  • No innovation project is applicable for this PR.
  • This PR falls under an innovation project. I have attached the innovation label.
  • I have added my hours to the WBSO document.

Fixes #

@igorschoester igorschoester added the changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog label Jun 17, 2025
@igorschoester igorschoester self-assigned this Jun 18, 2025
@igorschoester igorschoester removed their assignment Jun 25, 2025
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build fa2993c215fc52153ea62910a8c40ccaa8453020

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 2 of 10 (20.0%) changed or added relevant lines in 2 files are covered.
  • 119 unchanged lines in 8 files lost coverage.
  • Overall coverage decreased (-0.004%) to 52.03%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/js/src/ai-generator/hooks/use-apply-replacement-variables.js 1 9 11.11%
Files with Coverage Reduction New Missed Lines %
packages/js/src/ai-generator/components/introduction.js 3 22.22%
packages/js/src/settings/routes/site-features.js 3 0.0%
packages/analysis-report/src/AnalysisList.js 3 91.84%
packages/js/src/components/UpsellBox.js 6 0.0%
packages/js/src/settings/helpers/search.js 6 15.0%
packages/js/src/ai-generator/components/app.js 23 3.85%
packages/social-metadata-forms/src/SocialMetadataPreviewForm.js 24 0.0%
packages/js/src/ai-generator/components/modal-content.js 51 2.52%
Totals Coverage Status
Change from base Build caa8499d405fd33743a705ae01e7173e6fe49674: -0.004%
Covered Lines: 29973
Relevant Lines: 58683

💛 - Coveralls

@vraja-pro vraja-pro assigned vraja-pro and unassigned vraja-pro Jun 26, 2025
@vraja-pro
Copy link
Copy Markdown
Contributor

CR & AC ✅

@vraja-pro vraja-pro merged commit 352e5a0 into feature/ai-generator-in-free Jun 26, 2025
22 checks passed
@vraja-pro vraja-pro deleted the fix-apply-replacevars branch June 26, 2025 07:39
@pls78 pls78 mentioned this pull request Jul 15, 2025
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants