Refactor indexable pages to query per scope#22406
Merged
leonidasmi merged 5 commits intofeature/llms-txt-phase-2from Jul 8, 2025
Merged
Refactor indexable pages to query per scope#22406leonidasmi merged 5 commits intofeature/llms-txt-phase-2from
leonidasmi merged 5 commits intofeature/llms-txt-phase-2from
Conversation
Pull Request Test Coverage Report for Build 6a28461c15e740ae122049bff5ca09d91b90aa2dWarning: 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
💛 - Coveralls |
5eb17a3 to
eeffff5
Compare
|
A merge conflict has been detected for the proposed code changes in this PR. Please resolve the conflict by either rebasing the PR or merging in changes from the base branch. |
The component uses its ID as scope to have its own query, status and results. The global list is used to get the actual entities with the referral IDs (e.g. the scope stores the ids, not the pages). Added a cleanup of the scope on unmount, this aborts any ongoing request and removes the scope from the store.
Taking precedence over the page name But without focus just the page name
Not sure how to properly fix this yet
eeffff5 to
da97bc9
Compare
leonidasmi
reviewed
Jul 8, 2025
Contributor
leonidasmi
left a comment
There was a problem hiding this comment.
CR: 🏗️
A couple of remarks
18 tasks
18 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
The component uses its ID as scope to have its own query, status and results.
The global list is used to get the actual entities with the referral IDs (e.g. the scope stores the ids, not the pages).
Added a cleanup of the scope on unmount, this aborts any ongoing request and removes the scope from the store.
Now I could've just made this in the component instead of in the store. In the hope that it is useful for other places.
But it might be just polluting the global store with inner component data too 😅 Just trying something new I suppose.
Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
/wp-admin/admin.php?page=wpseo_page_settings#/llms-txtsleep, it is in secondsfetch/XHRfor some easy insights if the requests are actually done or not/available_posts?search=&_locale=userrequest finishes, click on an empty dropdown and confirm that you get a loading state with theSearching pages...message.Verify it show your query againonly true if there is no selected pagesleep( 1 );line, but still above the bracket}line:fooerrorfooFailed to retrieve pages.status indication when the request finishedRelevant 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 theShopifylabel to this PR.Documentation
Quality assurance
Innovation
innovationlabel.Fixes https://github.com/Yoast/reserved-tasks/issues/656