Skip to content

Add Product and ItemList structured data to the Demo product surfaces - #6359

Draft
VPS-julia wants to merge 3 commits into
com-2969-product-structured-datafrom
com-2969-product-json-ld
Draft

VPS-julia wants to merge 3 commits into
com-2969-product-structured-datafrom
com-2969-product-json-ld

Conversation

@VPS-julia

@VPS-julia VPS-julia commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Part of DEX-2969Step 5b.

Note

Based on #6358 (step 5a), which builds the product block family and the /product/[slug] route. Please review and merge that one first.

Problem

Products in the Demo emit no structured data. Search and generative engines can't identify a product page as a product, can't read its price or availability, and can't tell that a product list renders a collection of products.

Solution

Emit Product structured data (with a nested Offer) on the product detail page, and ItemList structured data from the product list block.

The offer currency is hardcoded to EUR for now, since the site config carries none.

Changeset

None needed — Demo-only change.

Open TODOs

🤖 Generated with Claude Code

https://claude.ai/code/session_01ASWsbyKgFo1v3SWsEHe2XT

VPS-julia and others added 2 commits September 11, 2026 14:42
Emit a `Product` JSON-LD object, with a nested `Offer`, on the
`/product/[slug]` route so search and generative engines can identify a
product together with its price and availability. Products had no
structured data before.

Rendered by `ProductJsonLd`, a component that carries its own GraphQL
fragment and renders itself — the same shape as the existing
`OrganizationJsonLd` and `NewsArticleJsonLd`. Image and site URLs are
resolved to absolute form, as crawlers require. The currency is a fixed
`EUR` for now, since the site config carries none.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Product list surfaces carried no structured data, so search and
generative engines could not tell that the rendered list is an ordered
collection of products.

Emit an `ItemList` JSON-LD object from `ProductListBlock`, mirroring the
`Product` structured data on the detail page. The loader resolves each
product's site path to an absolute URL, which crawlers require for the
`ListItem` entries.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASWsbyKgFo1v3SWsEHe2XT
@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Advanced

Run ID: 028762d3-7c07-47a7-b606-303e3a6878c6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@VPS-julia VPS-julia self-assigned this Sep 14, 2026
))}
</ol>
<>
<ProductListJsonLd products={products} />

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Again, although this was a requirement in the ticket, I don't think we should have a product ItemList JsonLd when we have a proper Product JsonLd on the detail page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants