feat(audit): flag indexable pages with no structured data - #188
Open
ThomasMendy wants to merge 1 commit into
Open
feat(audit): flag indexable pages with no structured data#188ThomasMendy wants to merge 1 commit into
ThomasMendy wants to merge 1 commit into
Conversation
Site audits had no signal at all for structured data, even though the crawler already records `hasStructuredData` per page. Pages that could be earning rich results — and that AI search engines have to interpret from prose alone — were silently passing the audit. Adds a `missing-structured-data` info-level issue, reported for indexable HTML pages whose markup carries no JSON-LD, Microdata, or RDFa. Noindex pages are skipped: they cannot earn a rich result, so flagging them would be noise. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Site audits have no signal for structured data today, even though the crawler already records
hasStructuredDataon every page. A page that could be earning rich results — and that AI search engines otherwise have to interpret from prose alone — passes the audit silently.This adds a
missing-structured-dataissue, reported for indexable HTML pages whose markup carries no JSON-LD, Microdata, or RDFa.Severity:
info. Missing markup is a missed opportunity rather than a defect, which matches hownoindex-pageanddeep-pageare treated.Noindex pages are skipped. They cannot earn a rich result, so flagging them would only add noise to reports.
No new crawler work: the reporter reads a field
page-analyzeralready populates, so audits cost exactly what they did before.Testing
Four tests cover the new reporter: markup absent, markup present, noindex, and non-HTML. The shared
makePagefixture now defaults tohasStructuredData: trueso it keeps representing a healthy page.pnpm test:ci— 772 tests across 94 files, all passingpnpm ci:check— prettier, knip, bothtscconfigs, oxlint type-aware: cleanpnpm vite build— clean🤖 Generated with Claude Code