Skip to content

[codex] Update Capgo Builder landing page#649

Merged
riderx merged 2 commits into
mainfrom
codex/capgo-builder-page
May 6, 2026
Merged

[codex] Update Capgo Builder landing page#649
riderx merged 2 commits into
mainfrom
codex/capgo-builder-page

Conversation

@riderx
Copy link
Copy Markdown
Member

@riderx riderx commented May 6, 2026

Summary

  • Rebuild the native build page as the Capgo Builder landing page while keeping the existing site header and footer.
  • Add reference-inspired dark sections for the hero, animated terminal, feature grid, setup flow, security model, comparisons, pricing, FAQ, and final CTA.
  • Source plan and build-minute pricing from the existing Capgo API instead of hardcoded mock pricing, and use free trial wording plus bunx examples.

Validation

  • bun run check
  • Headless Playwright screenshots for desktop and mobile at /native-build/

Summary by CodeRabbit

  • New Features
    • Redesigned Native Build page with improved layout featuring hero section, feature highlights, dynamic pricing display, and FAQ sections.
    • Added dynamic pricing and credit calculation system.
    • Enhanced page SEO with structured data markup.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

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: b667d5deb0

ℹ️ 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".

Comment thread apps/web/src/pages/native-build.astro Outdated
Comment thread apps/web/src/pages/native-build.astro Outdated
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 6, 2026

Warning

Rate limit exceeded

@riderx has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 5 minutes and 42 seconds before requesting another review.

To continue reviewing without waiting, purchase usage credits in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b06073ee-3376-4d47-8800-c41d32ce485c

📥 Commits

Reviewing files that changed from the base of the PR and between b667d5d and 72a9499.

📒 Files selected for processing (2)
  • apps/shared/copy/messages.ts
  • apps/web/src/pages/native-build.astro
📝 Walkthrough

Walkthrough

The native-build.astro page was refactored from translation-driven static content to a data-driven architecture. Plans and credits are fetched from API endpoints, helper functions compute pricing and formatting, and LD+JSON generation utilities are integrated. The page layout now uses arrays and helpers to render dynamic hero, pricing, features, and FAQ sections.

Changes

Data-Driven Page Refactor

Layer / File(s) Summary
Type Definitions & Imports
apps/web/src/pages/native-build.astro (lines 2–7)
Imports added for LD+JSON utilities, database types, and i18n. Local Plan and Credit type aliases introduced to model API payloads.
Data Fetching & Processing
apps/web/src/pages/native-build.astro (lines 18–32)
Locale, brand, and runtime config retrieved. Plans and credits fetched concurrently from private API endpoints. Free tier plan filtered; credits filtered by type and sorted by minimum step.
Metadata Generation
apps/web/src/pages/native-build.astro (lines 33–37)
Service LD+JSON payload constructed using createServiceLdJson and createLdJsonGraph utilities, wired to runtime config and generated content description.
Content Arrays & Helpers
apps/web/src/pages/native-build.astro (lines 50–229)
Content-driven arrays (heroStats, builderFeatures, setupSteps, securityFeatures, comparisons, faqs) and helper functions (annualMonthlyPrice, monthlyPrice, planDescription, formatNumber, buildTimeDisplay, compactNumber, creditStepLabel, creditPrice) introduced to power dynamic rendering.
Layout Restructuring
apps/web/src/pages/native-build.astro (lines 232–653)
Page layout reworked with data-driven hero, features, pricing, how-it-works, comparison, FAQ, and CTA sections. Arrays and helpers drive content rendering. FAQ toggle script and terminal-style demo visuals added.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐰 From static text to data streams so bright,
Arrays dance with helpers in the light,
Plans and credits fetch in flight,
Hero stats and FAQs aligned just right,
The Capgo Builder page shines with might! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: updating the Capgo Builder landing page, which aligns with the PR objectives that describe rebuilding the native build page as the Capgo Builder landing page.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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 unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/capgo-builder-page

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


Comment @coderabbitai help to get the list of available commands and usage tips.

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

🤖 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 `@apps/web/src/pages/native-build.astro`:
- Around line 25-31: Wrap the parallel fetches for plans and credits (the
Promise.all that produces plansResponse and creditsResponse) in a try-catch and
handle network/runtime errors: if the fetches throw, catch the error, log it,
and fall back to empty arrays for plansAll and credits so rendering doesn't
crash; after the try block keep the existing HTTP-status handling (plansAll =
plansResponse.ok ? await plansResponse.json() : [] and credits =
creditsResponse.ok ? await creditsResponse.json() : []) but ensure plansAll and
credits are initialized to [] in the catch path, then continue with the existing
filtering (plans, buildCredits).
🪄 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: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9981f3db-37f1-4895-83ca-f358930f9ace

📥 Commits

Reviewing files that changed from the base of the PR and between 37b4d58 and b667d5d.

📒 Files selected for processing (1)
  • apps/web/src/pages/native-build.astro

Comment thread apps/web/src/pages/native-build.astro Outdated
@riderx riderx merged commit c8754d1 into main May 6, 2026
8 checks passed
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 6, 2026

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