Skip to content

feat(ui): add monetization & showcase templates - #2815

Merged
smakosh merged 1 commit into
mainfrom
feat/surface-monetization-showcase-templates
Jun 24, 2026
Merged

smakosh merged 1 commit into
mainfrom
feat/surface-monetization-showcase-templates

Conversation

@smakosh

@smakosh smakosh commented Jun 24, 2026 •

Copy link
Copy Markdown
Member

What & why

llmgateway-templates#11 added two new templates and a referral badge to the open-source templates repo, but none of it was surfaced on llmgateway.io. This PR closes that gap so the new work is discoverable to developers.

Templates gallery (/templates)

  • Adds Embeddable Credits — the flagship "Monetize your AI app in 5 minutes" template — as the first, Featured card.
  • Adds Showcase — the static, deployable gallery template.
  • image and demoUrl are now optional on the Template type. Neither new template has a hosted live-demo or screenshot yet (the candidate Vercel URLs 404), so cards without a preview render an icon-on-gradient hero, and cards without a demo promote the GitHub button to primary. Existing cards are unchanged.

Powered-By + Showcase callout (/templates)

  • New section after the gallery driving the PR's distribution loop: Submit your app to the Showcase (pre-filled GitHub issue) and an explainer for the Powered by LLM Gateway referral badge, linking to the SDK docs.

Quick-start page (/ship)

  • Both templates added to the clone-and-deploy list.

Docs

  • Refreshes the stale Available Templates list in the CLI guide (embeddable-credits, showcase, slack-qa-bot).

Verification

  • turbo run build --filter=ui --filter=docs → 14/14 tasks successful ✅
  • pnpm format clean; lockfile untouched (no dependency changes — only existing lucide-react icons and shared components are used).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added two new templates: Embeddable Credits and Showcase.
    • Introduced a new Bots template category with Slack QA Bot.
    • Added a new Showcase + Powered-By section with helpful links and resources.
  • UI Improvements

    • Updated template browsing so cards display better when a preview image isn’t available.
    • Improved template action buttons to show only relevant options for each template.

Surface the new templates from llmgateway-templates#11 in apps/ui:

- Add Embeddable Credits (flagship "Monetize your AI app in 5 minutes")
  and Showcase to the templates gallery; make preview image and live
  demo optional with an icon/gradient fallback for templates without
  a hosted demo yet.
- Add a Showcase + Powered-By callout on /templates to drive the
  distribution loop (submit-your-app + the referral badge).
- List both templates on the /ship quick-start page.
- Refresh the docs CLI Available Templates list (embeddable-credits,
  showcase, slack-qa-bot).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 6c982cc8-18b4-4c15-b4e9-543feeccfff8

📥 Commits

Reviewing files that changed from the base of the PR and between 8c93c44 and 46e0a13.

📒 Files selected for processing (4)
  • apps/docs/content/guides/cli.mdx
  • apps/ui/src/app/ship/page.tsx
  • apps/ui/src/app/templates/page.tsx
  • apps/ui/src/components/templates/template-cards.tsx

Walkthrough

The PR adds Embeddable Credits and Showcase template entries, updates template-card rendering for optional images and demos, and expands the templates, ship, and CLI docs pages to surface the new templates.

Changes

Template catalog and UI surfaces

Layer / File(s) Summary
Template data and entries
apps/ui/src/components/templates/template-cards.tsx
Template makes demoUrl and image optional, imports Wallet and LayoutGrid, and adds the Embeddable Credits and Showcase entries.
Preview and action rendering
apps/ui/src/components/templates/template-cards.tsx
The preview area falls back to a gradient icon block when no image is set, and the demo/GitHub action buttons switch layout based on demoUrl.
Discovery pages and docs
apps/ui/src/app/templates/page.tsx, apps/ui/src/app/ship/page.tsx, apps/docs/content/guides/cli.mdx
The templates page metadata and Showcase + Powered-By section, the ship page template list, and the CLI guide template list add the new template names and slack-qa-bot.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • theopenco/llmgateway#2746: Introduces content for the Slack Q&A bot template, which matches the slack-qa-bot documentation entry updated here.
🚥 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 is concise and accurately captures the main UI change: adding monetization and showcase templates.
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.

✏️ 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 feat/surface-monetization-showcase-templates

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.

@smakosh
smakosh added this pull request to the merge queue Jun 24, 2026
Merged via the queue into main with commit 8e57f19 Jun 24, 2026
12 checks passed
@smakosh
smakosh deleted the feat/surface-monetization-showcase-templates branch June 24, 2026 21:48
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