Skip to content

llms.txt Phase 2#22428

Merged
leonidasmi merged 130 commits intotrunkfrom
feature/llms-txt-phase-2
Jul 14, 2025
Merged

llms.txt Phase 2#22428
leonidasmi merged 130 commits intotrunkfrom
feature/llms-txt-phase-2

Conversation

@leonidasmi
Copy link
Copy Markdown
Contributor

@leonidasmi leonidasmi commented Jul 14, 2025

Context

Summary

This PR can be summarized in the following changelog entry:

  • Introduces a way to manually select the pages to be included in the llms.txt file.

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:

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 #

leonidasmi and others added 30 commits June 12, 2025 11:57
…settings-page-for-llmstxt

Create the llms.txt settings page with some first elements
Co-authored-by: Vraja Das <65466507+vraja-pro@users.noreply.github.com>
Create new option for the llms.txt feature
@leonidasmi leonidasmi added the changelog: enhancement Needs to be included in the 'Enhancements' category in the changelog label Jul 14, 2025
@coveralls
Copy link
Copy Markdown

coveralls commented Jul 14, 2025

Pull Request Test Coverage Report for Build 9e858361426281d545e3b99cbbf89477cc37a2b4

Details

  • 88 of 203 (43.35%) changed or added relevant lines in 12 files are covered.
  • 246 unchanged lines in 7 files lost coverage.
  • Overall coverage decreased (-0.05%) to 53.83%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/js/src/settings/routes/site-features.js 0 5 0.0%
src/llms-txt/domain/content-types/content-type-entry.php 0 5 0.0%
packages/js/src/settings/initialize.js 0 6 0.0%
packages/js/src/settings/store/llms-txt.js 0 9 0.0%
src/integrations/settings-integration.php 16 35 45.71%
packages/js/src/settings/components/formik-indexable-page-select-field.js 0 31 0.0%
packages/js/src/settings/routes/llms-txt.js 0 40 0.0%
Files with Coverage Reduction New Missed Lines %
src/llms-txt/domain/content-types/content-type-entry.php 3 0.0%
src/repositories/indexable-repository.php 7 30.46%
admin/tracking/class-tracking-settings-data.php 7 0.0%
src/helpers/options-helper.php 11 28.0%
src/llms-txt/infrastructure/markdown-services/content-types-collector.php 25 72.53%
inc/options/class-wpseo-options.php 51 41.49%
src/integrations/settings-integration.php 142 25.95%
Totals Coverage Status
Change from base Build 77cc4cf9268f32c032ea82083f00bcd12cacd8a7: -0.05%
Covered Lines: 30541
Relevant Lines: 57683

💛 - Coveralls

vraja-pro and others added 6 commits July 14, 2025 13:42
…pages-a-user-can-select-for-manual-selection

671 silent cap on the amount of pages a user can select for manual selection
…inks-in-llmstxt-file

Change sitemap text.
* slug could end up as "undefined", now that would be ""
* use same fallback logic for the id in the name as in the id itself
So new queries can update existing records
Not all branches are covered, but pretty good still
@leonidasmi leonidasmi changed the title Feature/llms txt phase 2 llms.txt Phase 2 Jul 14, 2025
@leonidasmi leonidasmi marked this pull request as ready for review July 14, 2025 13:10
igorschoester and others added 3 commits July 14, 2025 15:32
…-seo into 667-nice-to-have-going-into-the-llmstxt-settings-page-fires-a-pages-request-even-if-the-feature-is-disabled

# Conflicts:
#	packages/js/src/settings/routes/llms-txt.js
Add tests for the indexables-pages slice of llms.txt
…llmstxt-settings-page-fires-a-pages-request-even-if-the-feature-is-disabled

Makes sure that the indexables api request only fires when needed.
@leonidasmi leonidasmi added this to the 25.6 milestone Jul 14, 2025
@leonidasmi leonidasmi merged commit a2bd7e1 into trunk Jul 14, 2025
54 checks passed
@leonidasmi leonidasmi deleted the feature/llms-txt-phase-2 branch July 14, 2025 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: enhancement Needs to be included in the 'Enhancements' category in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants