Skip to content

feat: add MPPX integration carousel - #819

Merged
brendanjryan merged 22 commits into
mainfrom
brendanjryan/integrate-single-line
Jul 29, 2026
Merged

feat: add MPPX integration carousel#819
brendanjryan merged 22 commits into
mainfrom
brendanjryan/integrate-single-line

Conversation

@brendanjryan

Copy link
Copy Markdown
Collaborator

Motivation

Make payment-method setup immediately discoverable from the landing page.

Summary

  • Add a single-line MPPX integration section above Services
  • Rotate Tempo, Stripe, and combined-method setup snippets
  • Include fade, pause, and reduced-motion behavior

Key design considerations

  • Uses the existing landing-page visual system
  • Keeps all MPPX snippets in TypeScript
  • Displays valid payment-method configuration details

@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mpp Ready Ready Preview, Comment Jul 29, 2026 12:17am

Request Review

@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: 9743be53db

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


app.get(
'/premium',
mppx.charge({ amount: '1' }),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Supply the required payment parameters in each snippet

The carousel presents these as complete integrations, but every route passes only amount. Tempo also needs a currency and recipient—either in tempo.charge(...) or the request—while Stripe requires currency and decimals; as written, the first slide can't create the advertised USDC.e Challenge, and the Stripe and multi-method slides are similarly unusable when copied. Add realistic per-method configuration matching the server reference examples.

AGENTS.md reference: AGENTS.md:L291-L291

Useful? React with 👍 / 👎.

);

useEffect(() => {
if (prefersReducedMotion) return;

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 Keep every slide reachable with reduced motion enabled

When the visitor enables prefers-reduced-motion, this early return permanently leaves activeIndex at zero. Because the only indicators are aria-hidden spans rather than controls, those visitors have no way to view the Stripe, Bitcoin, or multi-method examples; disable autoplay for reduced motion, but provide operable slide controls.

Useful? React with 👍 / 👎.

Comment thread src/components/LandingPage.tsx Outdated
<div className="marketing-single-line-intro">
<SectionLabel>Integrate</SectionLabel>
<h2>Sell to agents with just a single line of code</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>

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 Replace the placeholder integration description

The new landing-page section renders this lorem ipsum sentence verbatim for every visitor, leaving its primary explanatory copy unfinished and providing no context for the carousel. Replace it with final copy that describes the MPPX integration benefit.

Useful? React with 👍 / 👎.

Comment thread src/components/LandingPage.tsx Outdated
Comment on lines +163 to +167
const TYPESCRIPT_HIGHLIGHTER = Promise.all([
import("shiki/core"),
import("shiki/engine/javascript"),
import("shiki/dist/langs/typescript.mjs"),
import("shiki/dist/themes/github-dark-default.mjs"),

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 Defer loading Shiki until the carousel is near view

This module-level promise starts fetching Shiki core, its regex engine, the TypeScript grammar, and the theme as soon as the landing-page component evaluates, even though the carousel sits below the hero, terminal, and integrations sections. On slow connections these non-critical highlighting chunks compete with above-the-fold resources for every visitor; initialize the highlighter when the section approaches the viewport or pre-render the four static snippets.

Useful? React with 👍 / 👎.

@brendanjryan
brendanjryan force-pushed the brendanjryan/import-mpp-code branch from 54144a4 to 68fe75f Compare July 28, 2026 02:10
Base automatically changed from brendanjryan/import-mpp-code to main July 28, 2026 04:17
@brendanjryan
brendanjryan merged commit 4a5ad33 into main Jul 29, 2026
11 checks passed
@brendanjryan
brendanjryan deleted the brendanjryan/integrate-single-line branch July 29, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant