Skip to content

Add HiChee.com to examples#119

Merged
justin808 merged 2 commits into
mainfrom
jg-codex/docs-add-hichee-example
Jun 4, 2026
Merged

Add HiChee.com to examples#119
justin808 merged 2 commits into
mainfrom
jg-codex/docs-add-hichee-example

Conversation

@justin808
Copy link
Copy Markdown
Member

@justin808 justin808 commented Jun 4, 2026

Summary

  • Add a Production sites section to the Examples page.
  • List HiChee.com as a live React on Rails production site without implying source code is available.
  • Update the hero copy so the page covers live sites as well as repos and guides.

Test plan

  • npm --prefix prototypes/docusaurus run typecheck
  • npm run build

Build passes; it still emits the existing Docusaurus broken-link and broken-anchor warnings unrelated to this change.


Note

Low Risk
Documentation/marketing UI only; no auth, data, or application logic changes.

Overview
The Examples page now highlights production deployments alongside demos and starters, not only source-backed examples.

A new Production sites block appears above the existing demo groups. It lists HiChee.com with a short product description and a Visit site link (no repo link). Hero kicker, title, and lead copy were updated to mention live products and production references.

Styling adds a single-column site card layout (siteGrid, siteCard, siteLink) separate from the three-column demo grid.

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

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 4, 2026

Warning

Review limit reached

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

More reviews will be available in 57 minutes and 7 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: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 124be10f-f883-4e5f-8a58-c3a448be405e

📥 Commits

Reviewing files that changed from the base of the PR and between 0cf1ac7 and cf53c5d.

📒 Files selected for processing (2)
  • prototypes/docusaurus/src/pages/examples.module.css
  • prototypes/docusaurus/src/pages/examples.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jg-codex/docs-add-hichee-example

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.

@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Jun 4, 2026

Greptile Summary

This PR adds a "Production sites" section to the Examples page, listing HiChee.com as a live React on Rails deployment with a "Visit site" link and no implied source-code access. Hero copy is updated to reflect that the page covers live products alongside demos and starters.

  • A new productionSites array and card layout (siteGrid, siteCard, siteLink) are added; CSS variables --site-border and --site-surface used by the new card are confirmed defined in custom.css for both light and dark themes.
  • The section renders unconditionally even when the list is empty, unlike the guarded pattern used for demo groups; link text "Visit site" is generic and loses context for screen-reader users when multiple cards are present.

Confidence Score: 4/5

Documentation-only change with no application logic, auth, or data handling; safe to merge with minor polish considerations.

The change is confined to a static marketing page — new CSS classes are well-scoped, custom properties are defined for both themes, and the external link is handled correctly by the Docusaurus Link component. Two small rough edges exist: the Production sites section header renders unconditionally (inconsistent with the guarded demo-group pattern), and the link text Visit site is ambiguous for screen readers if the list grows.

No files require special attention; both findings are in examples.tsx and are easily addressable before or after merge.

Important Files Changed

Filename Overview
prototypes/docusaurus/src/pages/examples.tsx Adds a hardcoded productionSites array and a new Production sites section using Docusaurus Link with href for the external URL; one minor accessibility concern with generic link text
prototypes/docusaurus/src/pages/examples.module.css Adds siteGrid, siteCard, and siteLink CSS classes; all CSS custom properties (--site-border, --site-surface) are confirmed defined in custom.css for both light and dark modes

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[ExamplesPage] --> B[Hero Section]
    A --> C{productionSites.length > 0?}
    C -->|currently always true| D[Production Sites Section]
    C -->|if empty - no guard| D
    D --> E[siteCard per entry - HiChee.com]
    E --> F[Link href=https://hichee.com/ - Visit site]
    A --> G[demoGroups.map]
    G --> H{groupDemos.length === 0?}
    H -->|true| I[return null]
    H -->|false| J[Section with DemoCards]
Loading

Reviews (1): Last reviewed commit: "Merge main into HiChee examples branch" | Re-trigger Greptile

Comment on lines +69 to +71
<Link className={styles.siteLink} href={site.href}>
Visit site
</Link>
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 The link text "Visit site" is generic — when multiple production sites are listed, every card will have an identical link label, which screen readers read out of context and cannot distinguish between destinations. Using the site name makes each link self-describing.

Suggested change
<Link className={styles.siteLink} href={site.href}>
Visit site
</Link>
<Link className={styles.siteLink} href={site.href}>
Visit {site.title}
</Link>

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Comment on lines +59 to +65
<section className="container">
<div className={styles.sectionHeader}>
<p className={styles.sectionEyebrow}>Production sites</p>
<h2>Live products built with React on Rails.</h2>
</div>
<div className={styles.siteGrid}>
{productionSites.map((site) => (
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 The "Production sites" section header and grid always render, even if productionSites is later emptied during development or content changes. The existing demo-group pattern guards against this with an early return null. Adding the same guard keeps the behaviour consistent and avoids a dangling section title with no cards.

Suggested change
<section className="container">
<div className={styles.sectionHeader}>
<p className={styles.sectionEyebrow}>Production sites</p>
<h2>Live products built with React on Rails.</h2>
</div>
<div className={styles.siteGrid}>
{productionSites.map((site) => (
{productionSites.length > 0 && (
<section className="container">
<div className={styles.sectionHeader}>
<p className={styles.sectionEyebrow}>Production sites</p>
<h2>Live products built with React on Rails.</h2>
</div>
<div className={styles.siteGrid}>
{productionSites.map((site) => (

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

Cloudflare preview deployed.

@justin808 justin808 merged commit ae82baa into main Jun 4, 2026
5 checks passed
@justin808 justin808 deleted the jg-codex/docs-add-hichee-example branch June 4, 2026 07:46
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