Skip to content

fix: improve JSON-LD org structured data - #32932

Open
mvvmm wants to merge 7 commits into
productionfrom
jsonld-homepage-webpage
Open

fix: improve JSON-LD org structured data#32932
mvvmm wants to merge 7 commits into
productionfrom
jsonld-homepage-webpage

Conversation

@mvvmm

@mvvmm mvvmm commented Aug 22, 2026

Copy link
Copy Markdown
Contributor
  • Set homepage JSON-LD @type to WebPage.\n- Expand JSON-LD Organization publisher data: description, logo, sameAs, address, and support + sales contactPoint.\n- Add Workers test to prevent homepage regression.

@mvvmm
mvvmm requested review from a team and kodster28 as code owners August 22, 2026 03:54
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Review

💡 1 suggestion found in commit 9b2c944.

👉 Fix in your agent 👈
Fix the following review findings in PR #32932 (https://github.com/cloudflare/cloudflare-docs/pull/32932).

Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g. the fix requires disproportionate effort for minimal benefit,
  or the finding is factually incorrect), explain why
- If you need clarification before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

After triaging, follow this order:
1. Post a comment on this PR for any findings you are skipping, with the finding ID and your reasoning.
2. Then commit the fixes for the legitimate findings.

The comment must come before the commit — the bot reads PR comments when a new
push triggers a review, so skip comments posted after the push will be missed.

---

## Code Review

### Suggestions (1)

#### CR-11073ca56cf3 · Brittle exact-output assertion
- **File:** `src/util/page-head.node.test.ts` line 268
- **Issue:** The test asserts byte-for-byte equality against a ~1.4 KB hand-written JSON string. Any change to organization details (e.g. publisher description, address, contact points) will force a manual update of this single long literal.
- **Fix:** Use `toMatchInlineSnapshot()` or `toMatchSnapshot()` instead of `toBe(<huge literal>)` so snapshot tooling can update the expected output automatically when the serialized JSON-LD changes intentionally.

Code Review

This code review is in beta and may not always be helpful — use your judgment.

Suggestions (1)
File Issue
src/util/page-head.node.test.ts line 268 Brittle exact-output assertion — The test asserts byte-for-byte equality against a ~1.4 KB hand-written JSON string. Any change to organization details (e.g. publisher description, address, contact points) will force a manual update of this single long literal. Fix: Use toMatchInlineSnapshot() or toMatchSnapshot() instead of toBe(<huge literal>) so snapshot tooling can update the expected output automatically when the serialized JSON-LD changes intentionally.

Conventions

No convention issues found.

Style Guide Review

No style-guide issues found.

Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.
/ignore-review-limit Permanently lifts the 2-review automatic limit for this PR. Future pushes will trigger reviews as normal.
/disable-auto-review Stops automatic reviews from triggering on future pushes to this PR. Codeowners can still run /review or /full-review manually.
/rebase Rebases the PR branch against production. On conflict, attempts to resolve automatically using AI. Stops with an explanation if confidence is not high enough.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
*.astro @cloudflare/content-engineering, @kodster28
*.ts @cloudflare/content-engineering, @kodster28

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 22, 2026

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://jsonld-homepage-webpage-cloudflare-docs.cloudflare-docs.workers.dev (commit 9b2c944)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://42daf50e-cloudflare-docs.cloudflare-docs.workers.dev 9b2c944 2026-08-22T05:04:28.940Z Visit the dashboard ↗
  • Build: In progress 🔵

View logs ↗
eed5710 2026-08-22T04:43:37.615Z View logs ↗
  • Build: In progress 🔵

View logs ↗
06e594c 2026-08-22T04:36:27.614Z View logs ↗
  • Build: In progress 🔵

View logs ↗
46ceb21 2026-08-22T04:33:45.458Z View logs ↗
  • Build: In progress 🔵

View logs ↗
05ce300 2026-08-22T04:25:57.746Z View logs ↗
  • Build: In progress 🔵

View logs ↗
ec0ed02 2026-08-22T04:23:49.745Z View logs ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://94828743-cloudflare-docs.cloudflare-docs.workers.dev a870d4f 2026-08-22T04:07:51.158Z Visit the dashboard ↗

@github-actions

github-actions Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

@mvvmm mvvmm changed the title fix: homepage JSON-LD is WebPage fix: improve JSON-LD structured data Aug 22, 2026
@mvvmm mvvmm changed the title fix: improve JSON-LD structured data fix: improve JSON-LD org structured data Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants