Skip to content

Add the OSS flagship demo to examples#130

Open
justin808 wants to merge 2 commits into
mainfrom
jg-codex/feat/flagship-demo-catalog
Open

Add the OSS flagship demo to examples#130
justin808 wants to merge 2 commits into
mainfrom
jg-codex/feat/flagship-demo-catalog

Conversation

@justin808

@justin808 justin808 commented Jun 20, 2026

Copy link
Copy Markdown
Member

Summary

  • Add the flagship OSS React on Rails demo to the shared demo catalog used by the homepage and /examples.
  • Add a real 1280x720 WebP thumbnail captured from https://flagship.reactonrails.com.
  • Position the entry as the OSS baseline demo, explicitly not Pro/RSC.

Closes #129.
Refs #113.

Thumbnail Audit

  • PR Curate the examples catalog around maintained demos #102 was inspected before editing. It is still open, dirty against main, and touches examples plus scripts; this PR starts from origin/main and does not depend on or copy that stale branch.
  • Current catalog entries on this branch all have image assets: flagship, marketplace, tanstack-starter, legacy-tutorial, hacker-news, octochangelog, and gumroad.
  • The new flagship.webp asset is 1280x720 and references /img/demos/flagship.webp from the catalog.

Tests

  • git diff --check
  • npm run build (passes; existing Docusaurus broken-link/anchor warnings are still reported by the site build)

Coordination / Workflow Notes

  • Repo workflow state: UNKNOWN; .agents/skills/pr-batch/SKILL.md and .agents/workflows/pr-processing.md are absent both locally and on origin/main, so this used the installed $pr-batch fallback workflow.
  • agent-coord status: UNKNOWN; bounded status timed out for the worker lane, so no reliable live backend status was available.
  • Worker lane: codex-examples-129-113 for Add flagship OSS React on Rails demo to examples #129/Add real screenshots/thumbnails for demo apps (homepage + /examples) #113. Worker was stopped before PR creation after shared-workspace overlap was detected; coordinator split the path-scoped changes and opened this PR.

Codex Decision Log


Note

Low Risk
Documentation and marketing catalog changes only; no runtime or application logic.

Overview
Adds the OSS flagship demo (react-on-rails-demo-flagship / flagship.reactonrails.com) as the first entry in the shared demos catalog, with featured: true and thumbnail /img/demos/flagship.webp, so it appears in homepage Live demos and under Flagship demos on /examples. The tagline positions it as the OSS baseline (Rails 8.1, React 19, SSR, Redux, Shakapacker) without Pro or RSC.

Updates the flagship section heading on /examples from Pro/RSC-only wording to “Full-stack apps from the OSS baseline to React on Rails Pro, React 19, and RSC.”

Reviewed by Cursor Bugbot for commit d16a446. Bugbot is set up for automated code reviews on this repo. Configure here.

Summary by CodeRabbit

  • New Features

    • Added a new flagship demo to the examples showcase
  • Documentation

    • Updated the flagship category heading to provide clearer information about the full-stack applications and available technologies

@greptile-apps

greptile-apps Bot commented Jun 20, 2026

Copy link
Copy Markdown

Greptile Summary

This PR adds the OSS flagship React on Rails demo to the shared demo catalog, inserting it as the first entry in demos.ts and adding a 1280×720 WebP thumbnail. The entry is correctly typed and the asset path matches the static file added.

  • demos.ts: New 'flagship' category entry with id: 'flagship', featured: true, and a live demoUrl; the image path resolves to the newly committed asset.
  • flagship.webp: New 1280×720 WebP thumbnail committed to static/img/demos/; no asset issues.
  • Category heading mismatch: The new demo uses category: 'flagship', whose section heading in examples.tsx reads "Production-style apps on React on Rails Pro, React 19, and RSC" — directly contradicting the tagline's "no Pro or RSC required."

Confidence Score: 3/5

The catalog entry and asset are correct, but the OSS demo will be rendered under a section explicitly labeled "Pro… and RSC" on the live /examples page.

The new OSS flagship demo is placed in category: 'flagship', whose section heading in examples.tsx reads "Production-style apps on React on Rails Pro, React 19, and RSC." The demo's own tagline says the opposite — "no Pro or RSC required." Any visitor to /examples sees the OSS demo listed under a heading that misrepresents it as a Pro/RSC app, which is a live content accuracy problem on the deployed site.

prototypes/docusaurus/src/pages/examples.tsx — the 'flagship' group heading needs updating to cover both OSS and Pro demos, or the new OSS entry needs a distinct category.

Important Files Changed

Filename Overview
prototypes/docusaurus/src/constants/demos.ts Adds the OSS flagship demo entry as the first item; it uses category: 'flagship', which is shared with Pro/RSC demos, causing the /examples page to display it under a heading that says "Pro… and RSC" — contradicting its own tagline.
prototypes/docusaurus/static/img/demos/flagship.webp New 1280×720 WebP thumbnail asset for the flagship demo; no issues.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["demos.ts\n(catalog source of truth)"] -->|"filter by category"| B["examples.tsx\ndemoGroups loop"]
    B --> C["'flagship' group\nheading: 'Pro, React 19, and RSC'"]
    B --> D["'starter' group"]
    B --> E["'legacy' group"]
    C --> F["OSS flagship demo\n⚠️ tagline: 'no Pro or RSC'"]
    C --> G["marketplace\n(Pro + RSC)"]
    C --> H["hacker-news\n(Pro + RSC)"]
    C --> I["octochangelog\n(Pro + RSC)"]
    C --> J["gumroad\n(Pro + RSC)"]
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A["demos.ts\n(catalog source of truth)"] -->|"filter by category"| B["examples.tsx\ndemoGroups loop"]
    B --> C["'flagship' group\nheading: 'Pro, React 19, and RSC'"]
    B --> D["'starter' group"]
    B --> E["'legacy' group"]
    C --> F["OSS flagship demo\n⚠️ tagline: 'no Pro or RSC'"]
    C --> G["marketplace\n(Pro + RSC)"]
    C --> H["hacker-news\n(Pro + RSC)"]
    C --> I["octochangelog\n(Pro + RSC)"]
    C --> J["gumroad\n(Pro + RSC)"]
Loading

Reviews (1): Last reviewed commit: "Show the OSS flagship demo in examples" | Re-trigger Greptile

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c706782abe

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

repoUrl: 'https://github.com/shakacode/react-on-rails-demo-flagship',
demoUrl: 'https://flagship.reactonrails.com',
image: '/img/demos/flagship.webp',
category: 'flagship',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Categorize the OSS demo outside the Pro/RSC group

With category: 'flagship', this new card is rendered on /examples under the existing flagship heading Production-style apps on React on Rails Pro, React 19, and RSC. in prototypes/docusaurus/src/pages/examples.tsx lines 17-19. The new tagline explicitly says the app requires no Pro or RSC, so visitors now see an OSS-only demo presented as part of the Pro/RSC section; adjust the group heading/category or add a separate OSS group.

Useful? React with 👍 / 👎.

@github-actions

github-actions Bot commented Jun 20, 2026

Copy link
Copy Markdown

Cloudflare preview deployed.

@cursor

cursor Bot commented Jun 20, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_48cea633-c242-4e3c-ab98-ad3054f17150)

@coderabbitai

coderabbitai Bot commented Jun 20, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

A new flagship demo object is prepended to the demos array in demos.ts, defining its id, name, tagline, repo URL, live demo URL, image path, category, and featured: true. The flagship group heading on the examples page is updated to reflect a broader OSS-to-Pro framing.

Changes

Flagship Demo Catalog Entry

Layer / File(s) Summary
Flagship demo data and page heading
prototypes/docusaurus/src/constants/demos.ts, prototypes/docusaurus/src/pages/examples.tsx
Prepends the flagship demo entry (with metadata, URLs, image, and featured: true) to the demos array, and changes the flagship group heading to "Full-stack apps from the OSS baseline to React on Rails Pro, React 19, and RSC."

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related issues

  • #129 (Add flagship OSS React on Rails demo to examples): This PR directly implements the catalog entry, repo/live-demo links, and image path called out in the issue checklist.
  • #113 (Add real screenshots/thumbnails for demo apps): The new flagship entry sets an image field (/img/demos/flagship.png), which corresponds to the pattern described in this issue for wiring real thumbnails.

Possibly related PRs

  • shakacode/reactonrails.com#117: Both PRs modify the demos array in demos.ts—one adds image fields to existing entries while this PR prepends a new flagship object—creating a potential merge conflict on the same file.
  • shakacode/reactonrails.com#120: Both PRs touch demos.ts; the retrieved PR updates demoUrl on an existing entry while this PR inserts a new element, overlapping on the same data source.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: adding the OSS flagship demo to the examples catalog.
Linked Issues check ✅ Passed The PR meets the core coding requirements from #129 (catalog entry, GitHub/demo links, OSS baseline mention) and #113 (real screenshot/image asset for the flagship demo).
Out of Scope Changes check ✅ Passed All changes are directly scoped to adding the flagship demo: the new entry in demos.ts and the updated heading in examples.tsx are both within the stated PR objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

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

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jg-codex/feat/flagship-demo-catalog

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 and usage tips.

@justin808

justin808 commented Jun 20, 2026

Copy link
Copy Markdown
Member Author

Addressed the Greptile content-accuracy finding in d16a446: the flagship group heading now reads "Full-stack apps from the OSS baseline to React on Rails Pro, React 19, and RSC." This keeps the existing category while no longer implying the OSS flagship demo requires Pro/RSC.

Local checks after the change: git diff --check, npm run build (passes with the existing Docusaurus broken-link/anchor warnings).

@cursor

cursor Bot commented Jun 20, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_8555d732-df77-4787-84d5-1db38ac0a44e)

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 flagship OSS React on Rails demo to examples Add real screenshots/thumbnails for demo apps (homepage + /examples)

1 participant