Skip to content

fix: build the JSON-LD once on the server, escaped - #17

Merged
roble merged 2 commits into
mainfrom
dev-2026-12-01
Dec 1, 2026
Merged

roble merged 2 commits into
mainfrom
dev-2026-12-01

Conversation

@roble

@roble roble commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Release 2026-12-01. Predicted version: v3.5.1 (patch). Merge with a merge commit, so main keeps dev's history.

Commits

  • fix: build the JSON-LD once on the server, escaped with JSON_HEX_TAG (sc-1198) (4bd4298)
  • docs: describe the module for Packagist, GitHub and agent search (7f420a2)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Blog posts now include Article and breadcrumb structured data for search engines, across both Vue and React frontends.
  • Bug Fixes
    • Structured data safely handles titles containing script-like text.
  • Documentation
    • The README now describes the project as a Laravel blog for Saucebase and notes that it can be managed with Vue or React.

roble and others added 2 commits December 1, 2026 10:50
composer.json gains keywords and a homepage, and the description and the
README's first line lead with "Laravel", matching the GitHub repo's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…(sc-1198)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The post page now receives server-generated Article and BreadcrumbList JSON-LD strings. React and Vue render those strings as script elements. The README and Composer metadata also include updated project descriptions and feature details.

Changes: Post-page JSON-LD

Layer / File(s) Summary
Generate and provide JSON-LD
src/Http/Controllers/BlogController.php, tests/Feature/BlogControllerTest.php, resources/boost/skills/saucebase-blog-development/SKILL.md
BlogController creates Article and BreadcrumbList JSON-LD strings and adds them to the Inertia response. The feature test checks the returned blocks and escaped tags. The development documentation describes this behavior.
Render supplied JSON-LD
resources/js/react/pages/Show.tsx, resources/js/vue/pages/Show.vue
Both post pages accept a json_ld prop and render one application/ld+json script for each supplied string.

Project metadata

Layer / File(s) Summary
Update project descriptions
README.md, composer.json
The README identifies the project as a Laravel blog with Vue and React interfaces. Composer metadata adds a broader package description, feature keywords, and a documentation homepage URL.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Refactor

Sequence Diagram(s)

sequenceDiagram
  participant BlogController
  participant Inertia
  participant ReactShow
  participant VueShow
  BlogController->>Inertia: Add Article and BreadcrumbList strings to response props
  alt React frontend
    Inertia->>ReactShow: Provide json_ld prop
    ReactShow->>ReactShow: Render one script per supplied string
  else Vue frontend
    Inertia->>VueShow: Provide json_ld prop
    VueShow->>VueShow: Render one script per supplied string
  end
Loading
Merge Risk: Minimal · up to 4bd42

This change moves JSON-LD generation to the server with tag escaping and updates the package and README descriptions. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix: build the JSON-LD once on the server, escaped" matches the main change. The PR moves Article and BreadcrumbList JSON-LD construction from the Vue and React Show pages into BlogControll…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix: build the JSON-LD once on the server, escaped" matches the main change. The PR moves Article and BreadcrumbList JSON-LD construction from the Vue and React Show pages into BlogController, which passes escaped json_ld strings as a prop. The title is specific and short, and it names the primary behavior change. It does not mention the Composer metadata and README wording updates, but the title does not need to cover every detail.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fd219a90-aba0-4557-aa92-1fa3fc50a896
Commits

Reviewing files that changed from the base of the PR and between c1fd810 and 4bd4298.

Files selected for processing: 7

  • README.md
  • composer.json
  • resources/boost/skills/saucebase-blog-development/SKILL.md
  • resources/js/react/pages/Show.tsx
  • resources/js/vue/pages/Show.vue
  • src/Http/Controllers/BlogController.php
  • tests/Feature/BlogControllerTest.php

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2026

Copy link
Copy Markdown

@roble
roble merged commit 0ee5cbf into main Dec 1, 2026
7 checks passed
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.

1 participant