-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert Sentence length and paragraph length to use HTML parser and enable AI button for both assessments #21866
Conversation
…ooLongAssessment.js
…er/paragraph-length
…er/paragraph-length
…er/paragraph-length
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: Looks great, nice to see all this simplified code 😸
Fixed this with the latest commit :)
This problem turns out to be quite complex to solve in this PR. This is also an existing issue, see https://github.com/Yoast/lingo-other-tasks/issues/236.
As I understand it, we used to use the
If this is not the case for paragraph and sentence length assessment. I think we can tackle this separately. cc @mhkuu |
100% agree with your observations above 💯 I'll do a quick check in Shopify and then this PR can be merged! 😸 |
…er/paragraph-length
Pull Request Test Coverage Report for Build aee61f4e5aa1d61c810817d23201a461ce299516Details
💛 - Coveralls |
Quick check in Shopify, everything seems to work as supposed (not 100% confident in myself though 😅). So I'm going to merge this one! 🎉 |
Context
Summary
This PR can be summarized in the following changelog entry:
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:
Optimize AI button in Free
for sentence length and paragraph length assessments
For the scenarios below, also install and activate Yoast SEO Premium. If building the plugin, pair this PR with this PR in Premium: https://github.com/Yoast/wordpress-seo-premium/pull/4527
Paragraph length assessment
Sentence length assessment
Relevant test scenarios
Test instructions for QA when the code is in the RC
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
Other environments
[shopify-seo]
, added test instructions for Shopify and attached theShopify
label to this PR.Documentation
Quality assurance
Innovation
innovation
label.Fixes https://github.com/Yoast/lingo-other-tasks/issues/114
Fixes https://github.com/Yoast/lingo-other-tasks/issues/471
Fixes https://github.com/Yoast/wordpress-seo-premium/issues/4524