Skip to content

feat(brand): add Launch Agent README button + showcase page#996

Merged
willwashburn merged 2 commits into
mainfrom
feat/launch-agent-button
May 26, 2026
Merged

feat(brand): add Launch Agent README button + showcase page#996
willwashburn merged 2 commits into
mainfrom
feat/launch-agent-button

Conversation

@willwashburn
Copy link
Copy Markdown
Member

Summary

  • Adds /launch-agent.svg (full lockup) and /launch-agent_small.svg (compact, mark + CTA) — two SVG buttons users can embed in their README to launch a repo on Agent Relay.
  • Adds a /brand/deploy-button page that previews both buttons on light and dark stages alongside the markdown embed snippet.
  • Buttons are designed to read well in both GitHub light and dark themes: baby-blue gradient (#62a1ce → #2d6a9c), full-white mark + wordmark, subtle 1px border, modern Inter-style CTA with a trailing arrow.

Embed

[![Launch Agent](https://agentrelay.net/launch-agent.svg)](https://agentrelay.net/launch?repo=…)

Compact version:

[![Launch Agent](https://agentrelay.net/launch-agent_small.svg)](https://agentrelay.net/launch?repo=…)

Test plan

  • Visit /brand/deploy-button locally and confirm both buttons render correctly on light + dark stages
  • Confirm both SVGs are served at /launch-agent.svg and /launch-agent_small.svg
  • Drop the embed snippet into a test GitHub README and verify it renders in both light + dark GitHub themes
  • Verify the markdown snippet shown in the showcase matches what an end user would copy

🤖 Generated with Claude Code

Adds two embeddable SVG buttons users can drop into their READMEs to
launch a repo on Agent Relay:

- /launch-agent.svg — full lockup (mark + wordmark + "Launch Agent →"),
  36px tall, baby-blue gradient.
- /launch-agent_small.svg — compact 32px-tall mark + CTA only, for tight
  spaces or alongside other shield-style badges.

Also adds /brand/deploy-button showcase that previews both buttons on
light and dark stages with the markdown embed snippet next to each.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@willwashburn willwashburn requested a review from khaliqgant as a code owner May 26, 2026 16:02
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 26, 2026

Review Change Stack

📝 Walkthrough

Walkthrough

This PR introduces a new Deploy Button brand showcase page. The DeployButtonShowcase component displays two button variants with light/dark SVG previews and generates Markdown embed snippets. A Next.js page wraps the showcase with metadata and navigation, styled with responsive grids, typography, and theme-aware colors.

Changes

Deploy Button Showcase

Layer / File(s) Summary
Showcase component with variant data and rendering
web/app/brand/deploy-button/DeployButtonShowcase.tsx
Defines the Variant type, HOST constant, and VARIANTS array with two button configurations (launch and launch-small). Implements a snippet(file) helper that generates Markdown image/link strings. Renders a hero section with variant grid, displaying light/dark SVG previews, metadata, and generated code snippets for each variant, plus a back-navigation link.
Page route setup and composition
web/app/brand/deploy-button/page.tsx
Exports page metadata with title, description, and canonical URL. Default export renders SiteNav with GitHubStarsBadge, DeployButtonShowcase, and SiteFooter in sequence.
Page layout and typography foundation
web/app/brand/deploy-button/styles.module.css (lines 1–46)
Establishes page container with full-height min-sizing and radial/linear gradient background. Defines section and hero layout containers and core typography classes for eyebrow, title, and lead text with font families, letter spacing, and color treatments.
Variant cards and preview display
web/app/brand/deploy-button/styles.module.css (lines 47–152)
Styles variant card containers with border, background blur, and shadow. Defines variant title, note, and ID typography. Implements responsive two-column stage grid with light and dark background treatments, cell sizing, borders, image positioning, and absolutely positioned labels. Responsive collapse to single column below 720px.
Code snippet and notes display
web/app/brand/deploy-button/styles.module.css (lines 153–203)
Defines monospace, bordered, horizontally scrollable code snippet block with preserved whitespace. Implements responsive two-column notes grid collapsing to single column on smaller screens. Styles note card containers with border, background, and internal heading/paragraph typography.
Back navigation link styling
web/app/brand/deploy-button/styles.module.css (lines 204–216)
Styles the back-to-brand-kit link as an inline-flex row with spacing, muted color, and hover state that switches link color to primary token.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 A showcase of buttons, both tall and quite small,
With previews that shimmer in light and in fall,
Each variant dancing in dark and in bright,
Markdown snippets ready for developers' site—
The brand kit now gleams with responsive delight! ✨

🚥 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
Title check ✅ Passed The title clearly and specifically describes the main changes: adding Launch Agent README buttons and a showcase page for them, matching the PR's primary objective.
Description check ✅ Passed The description includes all required template sections with substantial detail: Summary explains the new SVG buttons and showcase page, and Test Plan provides four specific verification steps (though checkboxes remain unchecked).
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/launch-agent-button

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

web/app/brand/deploy-button/styles.module.css

Parsing error: Declaration or statement expected.


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.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 5 files

You’re at about 94% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.

Re-trigger cubic

@github-actions
Copy link
Copy Markdown
Contributor

Preview deployed!

Environment URL
Web https://ddt6v7lkqrdaj.cloudfront.net

This preview will be cleaned up when the PR is merged or closed.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
web/app/brand/deploy-button/DeployButtonShowcase.tsx (1)

29-32: ⚡ Quick win

Consider using a more explicit placeholder in the snippet.

The snippet uses (Unicode ellipsis) as a placeholder for the repo parameter. Some users might not immediately recognize this needs to be replaced. Consider using a more explicit placeholder like YOUR_REPO or owner/repo to make the required substitution clearer.

♻️ Proposed refactor with explicit placeholder
 function snippet(file: string): string {
   const url = `${HOST}/${file}`;
-  return `[![Launch Agent](${url})](${HOST}/launch?repo=…)`;
+  return `[![Launch Agent](${url})](${HOST}/launch?repo=YOUR_REPO)`;
 }
🤖 Prompt for 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.

In `@web/app/brand/deploy-button/DeployButtonShowcase.tsx` around lines 29 - 32,
The snippet function currently returns a markdown URL using a Unicode ellipsis
(… ) as the repo placeholder which is ambiguous; update snippet(file: string) so
the returned string uses a clear explicit placeholder such as YOUR_REPO or
owner/repo (e.g., replace `…` with `YOUR_REPO`) in the launch query param and
any visible text so consumers immediately know to substitute their repository;
keep the same HOST and file interpolation but swap the ellipsis for the chosen
explicit placeholder in the returned string.
🤖 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 `@web/app/brand/deploy-button/page.tsx`:
- Around line 9-11: Update the metadata constants in
web/app/brand/deploy-button/page.tsx so they match the page content: change the
title constant (title) from "Deploy Button" to "Launch Agent button" (or
equivalent used in the hero) and replace the description constant (description)
to remove "Deploy on Agent Relay" and "pick a direction" language; instead state
this page documents two finalized README embed variants (full and compact) for
the Launch Agent button. Ensure the new description explicitly references the
two locked-in variants (full vs compact) to reflect the PR objectives and align
with the showcase copy.

---

Nitpick comments:
In `@web/app/brand/deploy-button/DeployButtonShowcase.tsx`:
- Around line 29-32: The snippet function currently returns a markdown URL using
a Unicode ellipsis (… ) as the repo placeholder which is ambiguous; update
snippet(file: string) so the returned string uses a clear explicit placeholder
such as YOUR_REPO or owner/repo (e.g., replace `…` with `YOUR_REPO`) in the
launch query param and any visible text so consumers immediately know to
substitute their repository; keep the same HOST and file interpolation but swap
the ellipsis for the chosen explicit placeholder in the returned string.
🪄 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: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 522f06e0-1e96-4d49-ac9c-5d268e63a717

📥 Commits

Reviewing files that changed from the base of the PR and between 51a38d0 and b1d48a5.

⛔ Files ignored due to path filters (2)
  • web/public/launch-agent.svg is excluded by !**/*.svg
  • web/public/launch-agent_small.svg is excluded by !**/*.svg
📒 Files selected for processing (3)
  • web/app/brand/deploy-button/DeployButtonShowcase.tsx
  • web/app/brand/deploy-button/page.tsx
  • web/app/brand/deploy-button/styles.module.css

Comment on lines +9 to +11
const title = 'Deploy Button';
const description =
'Design variants for the "Deploy on Agent Relay" embed button. Review on light and dark stages and pick a direction.';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Metadata inconsistencies with page content.

The metadata contains several inconsistencies:

  1. Description refers to "Deploy on Agent Relay" but the page content uses "Launch Agent" consistently
  2. Description suggests "pick a direction" implying these are design options, but per the PR objectives these are "two locked-in variants" for different use cases (full vs compact)
  3. The title "Deploy Button" doesn't match the hero title "Launch Agent button" in the showcase

Consider updating the metadata to accurately reflect that this page documents two finalized button variants for README embeds, not design proposals.

♻️ Proposed fix for metadata consistency
-const title = 'Deploy Button';
+const title = 'Launch Agent Button';
 const description =
-  'Design variants for the "Deploy on Agent Relay" embed button. Review on light and dark stages and pick a direction.';
+  'Embeddable Launch Agent button variants for README files. Two finalized options: full brand lockup and compact badge for different layout contexts.';
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const title = 'Deploy Button';
const description =
'Design variants for the "Deploy on Agent Relay" embed button. Review on light and dark stages and pick a direction.';
const title = 'Launch Agent Button';
const description =
'Embeddable Launch Agent button variants for README files. Two finalized options: full brand lockup and compact badge for different layout contexts.';
🤖 Prompt for 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.

In `@web/app/brand/deploy-button/page.tsx` around lines 9 - 11, Update the
metadata constants in web/app/brand/deploy-button/page.tsx so they match the
page content: change the title constant (title) from "Deploy Button" to "Launch
Agent button" (or equivalent used in the hero) and replace the description
constant (description) to remove "Deploy on Agent Relay" and "pick a direction"
language; instead state this page documents two finalized README embed variants
(full and compact) for the Launch Agent button. Ensure the new description
explicitly references the two locked-in variants (full vs compact) to reflect
the PR objectives and align with the showcase copy.

@willwashburn willwashburn merged commit 58df237 into main May 26, 2026
2 checks passed
@willwashburn willwashburn deleted the feat/launch-agent-button branch May 26, 2026 16:50
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