Skip to content

622 implement the free ai sparks route#22336

Merged
igorschoester merged 8 commits intofeature/ai-generator-in-freefrom
622-implement-the-free-ai-sparks-route
Jun 10, 2025
Merged

622 implement the free ai sparks route#22336
igorschoester merged 8 commits intofeature/ai-generator-in-freefrom
622-implement-the-free-ai-sparks-route

Conversation

@vraja-pro
Copy link
Copy Markdown
Contributor

@vraja-pro vraja-pro commented Jun 10, 2025

Context

Summary

This PR can be summarized in the following changelog entry:

  • Implements the route for saving whether user started to use free AI sparks.

Relevant technical choices:

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 post
  • Click on Use AI button for the search appearance title for example
  • Check you see the upsell modal.
  • Click on Try for free button
  • Check the modal turns to consent modal
  • Close the modal and reopen
  • Check you see the consent modal and not the upsell.
  • Refresh and check you see again the consent modal and not the upsell.

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 Implement the free AI sparks route

@vraja-pro vraja-pro added the changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog label Jun 10, 2025
@vraja-pro vraja-pro force-pushed the 622-implement-the-free-ai-sparks-route branch from 502b701 to 478f66a Compare June 10, 2025 10:51
@coveralls
Copy link
Copy Markdown

coveralls commented Jun 10, 2025

Pull Request Test Coverage Report for Build f8cb0f3b41ed62b8ed32d448efe2ed8fbd810efb

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

  • 10 of 30 (33.33%) changed or added relevant lines in 4 files are covered.
  • 3 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.01%) to 52.09%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/ai-generator/user-interface/ai-generator-integration.php 0 1 0.0%
packages/js/src/ai-generator/hooks/use-upsell-props.js 1 3 33.33%
packages/js/src/ai-generator/store/free-sparks.js 0 17 0.0%
Files with Coverage Reduction New Missed Lines %
packages/js/src/ai-generator/hooks/use-upsell-props.js 1 32.26%
src/ai-generator/user-interface/ai-generator-integration.php 1 0.0%
packages/js/src/ai-generator/components/app.js 1 7.41%
Totals Coverage Status
Change from base Build fc7ba249042596b5a732e32ab80b8a0f1393eef4: 0.01%
Covered Lines: 29962
Relevant Lines: 58628

💛 - Coveralls

@vraja-pro vraja-pro force-pushed the 622-implement-the-free-ai-sparks-route branch from bd2ede4 to 5ff0aa6 Compare June 10, 2025 13:04
Copy link
Copy Markdown
Contributor

@igorschoester igorschoester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR && AT ✅

@igorschoester igorschoester merged commit 43cd58a into feature/ai-generator-in-free Jun 10, 2025
36 checks passed
@igorschoester igorschoester deleted the 622-implement-the-free-ai-sparks-route branch June 10, 2025 13:14
@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