Skip to content

Enhancement: Add JSON-LD structured data to the home page (#117)#139

Open
coolss21 wants to merge 2 commits into
Demon-Die:mainfrom
coolss21:feature/issue-117
Open

Enhancement: Add JSON-LD structured data to the home page (#117)#139
coolss21 wants to merge 2 commits into
Demon-Die:mainfrom
coolss21:feature/issue-117

Conversation

@coolss21

@coolss21 coolss21 commented Jun 10, 2026

Copy link
Copy Markdown

Resolves #117

Overview
This PR adds WebSite Schema.org JSON-LD to the root page.tsx component.

Why this helps
Providing structured data allows search engines to better understand the project's purpose and context, improving the site's search visibility and SEO footprint.

Changes included

  • Embedded a <script type="application/ld+json"> tag within the page.tsx file containing the site name, URL, and project description.

Summary by CodeRabbit

  • Improvements
    • Enhanced search engine optimization by adding structured data to the site, enabling better indexing and improved visibility in search results and rich snippet displays.

@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

@rhoggs-bot-test-account is attempting to deploy a commit to the Rishi Bhardwaj's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@coolss21, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 3 minutes and 40 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3ff92eaa-0cf3-4c5f-901f-ab803d2aaa0f

📥 Commits

Reviewing files that changed from the base of the PR and between 7e2410f and 2b6e5c4.

📒 Files selected for processing (2)
  • project/src/app/layout.tsx
  • project/src/app/page.tsx
📝 Walkthrough

Walkthrough

The PR adds JSON-LD structured data to the home page by defining a jsonLd constant with WebSite schema (name, description, URL, context) and injecting it as an application/ld+json script tag in the main element.

Changes

JSON-LD Structured Data

Layer / File(s) Summary
WebSite JSON-LD injection
project/src/app/page.tsx
Defines a jsonLd object with WebSite schema fields and injects it into the page output via an application/ld+json <script> tag with escaped angle brackets.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

A dash of JSON, structured bright, ✨
Search engines now see semantic light,
WebSite schema, clean and neat,
Makes our humble home complete! 🐰

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: adding JSON-LD structured data to the home page, matching the actual code modifications.
Linked Issues check ✅ Passed The PR successfully implements all acceptance criteria from issue #117: includes valid JSON-LD structured data with site name, description, and URL in the home page component.
Out of Scope Changes check ✅ Passed All changes are directly related to issue #117 requirements; only 13 lines were added to page.tsx for JSON-LD implementation with no extraneous modifications.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@project/src/app/page.tsx`:
- Around line 178-195: The jsonLd script is being injected client-side in
page.tsx (and thus lost to SSR) — move the structured data into a
server-rendered location: either create a WebsiteJsonLd component modeled on the
existing RoadmapJsonLd and import/use it from the root RootLayout (server
layout) or add the jsonLd script directly into RootLayout so it renders inside
<head> during SSR; remove the client-side script block (jsonLd injection) from
page.tsx and ensure no "use client" forces the JSON-LD to render only on the
client.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c9fc52c4-8964-4624-949f-18b13b06049a

📥 Commits

Reviewing files that changed from the base of the PR and between cb4c939 and 7e2410f.

📒 Files selected for processing (1)
  • project/src/app/page.tsx

Comment thread project/src/app/page.tsx Outdated
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.

Add JSON-LD structured data for the home page

1 participant