Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions web/app/[locale]/components/nav-links.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export function NavLinks() {
>
{t("community")}
</Link>
<Link
href="/pricing"
className="hover:text-foreground transition-colors"
>
{t("pricing")}
</Link>
<a
href="https://github.com/manaflow-ai/cmux"
target="_blank"
Expand Down
1 change: 1 addition & 0 deletions web/app/[locale]/components/site-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export async function SiteFooter() {
{
heading: t("product"),
links: [
{ label: t("pricing"), href: "/pricing" },
{ label: t("blog"), href: "/blog" },
{ label: t("community"), href: "/community" },
{ label: t("nightly"), href: "/nightly" },
Expand Down
7 changes: 7 additions & 0 deletions web/app/[locale]/components/site-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ export function SiteHeader({
>
{t("community")}
</Link>
<Link
href="/pricing"
onClick={close}
className="hover:text-foreground transition-colors py-1"
>
{t("pricing")}
</Link>
<GitHubStarsBadge location="mobile_drawer" />
<div className="pt-2">
<DownloadButton size="sm" location="mobile_drawer" />
Expand Down
319 changes: 319 additions & 0 deletions web/app/[locale]/pricing/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,319 @@
import { useTranslations } from "next-intl";
import { getTranslations } from "next-intl/server";
import { SiteHeader } from "../components/site-header";
import { DOWNLOAD_URL } from "../../lib/download";
import { buildAlternates } from "../../../i18n/seo";

// Where the in-app Pro upgrade lives. Install is still the entry point, so the
// Pro CTA points at the download today; swap this for the real checkout URL
// when the billing flow is public.
const PRO_CTA_URL = DOWNLOAD_URL;
// Team is per-seat ($35/user/month). Install is still the entry point, so the
// Team CTA points at the download today; swap for the team checkout URL once
// the billing flow is public.
const TEAM_CTA_URL = DOWNLOAD_URL;
Comment on lines +10 to +14

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.

P2 Badge Use the shared download flow for pricing CTAs

When users click the pricing page's temporary install CTAs, these URLs go straight to the GitHub DMG instead of the existing /download/confirmation?dl=1 flow used by DownloadButton; the same direct DOWNLOAD_URL is also used for the Free CTA below. That bypasses the guarded confirmation-page download and the cmuxterm_download_clicked PostHog event, so pricing conversions become the only main download entry point that is not tracked and does not show the fallback/help page if the download does not start. Point these install CTAs at DOWNLOAD_CONFIRMATION_HREF or reuse the shared download button until checkout exists.

Useful? React with 👍 / 👎.

const SALES_EMAIL = "founders@manaflow.com";

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.

P1 Email domain mismatch between SALES_EMAIL and the FAQ help link

SALES_EMAIL is defined as founders@manaflow.com (used for the Enterprise "Contact sales" CTA), but line 211 hardcodes founders@manaflow.ai for the FAQ help mailto link. One of the two domains is wrong, so visitors who click the FAQ help email will reach a different inbox — or a non-existent one — than those who click "Contact sales".


Comment on lines +15 to +16

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Unify the sales/contact email.

The Enterprise CTA points to founders@manaflow.com, while the help link points to founders@manaflow.ai. At least one of these paths sends users to a different inbox than the rest of the page. Route both through one shared constant/source of truth.

Also applies to: 79-81, 210-211

🤖 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/`[locale]/pricing/page.tsx around lines 11 - 12, The pricing page is
using two different contact emails, so the Enterprise CTA and help link route
users to different inboxes; unify them behind a single source of truth. Update
the shared email constant used in pricing page rendering (including the
Enterprise CTA and the help/contact link paths referenced elsewhere in the file)
so all contact points resolve to the same address, and replace any hardcoded
alternate email with that shared constant.

// Feature flag: cmux Vault (cloud session backup, cross-session search, and
// unlimited cross-machine history) isn't shipped yet. Keep its pricing copy out
// of the page until it's live. Flip to `true` to surface every Vault entry
// again: the Pro feature bullets, the compare rows, the FAQ, and the meta
// description all key off this flag.
const SHOW_VAULT = false;

export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>;
}) {
const { locale } = await params;
const t = await getTranslations({ locale, namespace: "pricing" });
return {
title: t("metaTitle"),
description: SHOW_VAULT ? t("metaDescription") : t("metaDescriptionNoVault"),
alternates: buildAlternates(locale, "/pricing"),

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.

P2 Badge Add pricing messages before advertising every locale

This call uses buildAlternates with the full web/i18n/routing.ts locale list, and the new localized links expose /pricing under every locale, but this commit only adds pricing/nav.pricing/footer.pricing to en.json and ja.json. Because web/i18n/request.ts deep-merges missing locale keys from English, routes such as /de/pricing and /fr/pricing render English pricing copy while being advertised as localized hreflang pages; either add the new keys to all routed locale bundles or restrict the page/alternates to the locales that have translations.

Useful? React with 👍 / 👎.

};
}

export default function PricingPage() {

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.

P2 Badge Add pricing to the sitemap

Because web/app/sitemap.ts builds the sitemap from a hard-coded paths array and there is still no /pricing entry there (rg 'path: "/pricing"' web/app/sitemap.ts returns nothing), this new public marketing route is omitted from every generated localized sitemap and alternate URL set. Add /pricing to that list so crawlers can discover the page consistently with the other nav-linked pages.

Useful? React with 👍 / 👎.

const t = useTranslations("pricing");

const freeFeatures = t.raw("free.features") as string[];
const proBaseFeatures = t.raw("pro.features") as string[];
const proVaultFeatures = t.raw("pro.vaultFeatures") as string[];
// Vault bullets slot back in right after the Cloud VM compute-hours line.
const proFeatures = SHOW_VAULT
? [...proBaseFeatures.slice(0, 2), ...proVaultFeatures, ...proBaseFeatures.slice(2)]
: proBaseFeatures;
const teamFeatures = t.raw("team.features") as string[];
const enterpriseFeatures = t.raw("enterprise.features") as string[];
const sizeRows = t.raw("sizes.rows") as SizeRow[];
const faqItems = (t.raw("faq.items") as FaqItem[]).filter(
(item) => SHOW_VAULT || !item.vault,
);

const linkClass =
"underline underline-offset-2 decoration-border hover:decoration-foreground transition-colors";

return (
<div className="min-h-screen">
<SiteHeader />

<main className="w-full max-w-5xl mx-auto px-6 py-16 sm:py-20">
{/* Title */}
<h1 className="text-2xl font-medium tracking-tight">{t("title")}</h1>

{/* Tier cards. Sticky below the 48px (h-12) site header; lower z-index
than the header (z-30) so the header always wins when they overlap. */}
<div className="mt-10 grid gap-5 md:grid-cols-2 lg:grid-cols-4 items-stretch sticky top-12 z-20 bg-background pb-5">

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.

P2 Badge Keep pricing cards from sticking on narrow screens

On narrow screens this grid is one column, so the four plan cards are taller than the viewport. Because the entire grid is sticky top-12, once the user scrolls past the heading the whole card stack pins below the header and sits over the Cloud VM sizes/FAQ content; lower cards and the following sections cannot scroll normally. Scope the sticky behavior to a breakpoint where the card grid fits, or make the mobile stack non-sticky.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Scope the sticky pricing row to wide layouts.

sticky top-12 applies on mobile too, where this container is a 1-column stack of cards. That pins the whole stack under the header and can cover the VM sizes/FAQ content for most of the scroll.

Suggested fix
-        <div className="mt-10 grid gap-5 md:grid-cols-2 lg:grid-cols-4 items-stretch sticky top-12 z-20 bg-background pb-5">
+        <div className="mt-10 grid gap-5 md:grid-cols-2 lg:grid-cols-4 items-stretch bg-background pb-5 lg:sticky lg:top-12 lg:z-20">
📝 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
{/* Tier cards. Sticky below the 48px (h-12) site header; lower z-index
than the header (z-30) so the header always wins when they overlap. */}
<div className="mt-10 grid gap-5 md:grid-cols-2 lg:grid-cols-4 items-stretch sticky top-12 z-20 bg-background pb-5">
{/* Tier cards. Sticky below the 48px (h-12) site header; lower z-index
than the header (z-30) so the header always wins when they overlap. */}
<div className="mt-10 grid gap-5 md:grid-cols-2 lg:grid-cols-4 items-stretch bg-background pb-5 lg:sticky lg:top-12 lg:z-20">
🤖 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/`[locale]/pricing/page.tsx around lines 66 - 68, The sticky pricing
card row in the pricing page is affecting narrow/mobile layouts where the cards
stack into a single column and can obscure later content. Update the container
in the pricing page so the sticky behavior only applies on wide breakpoints,
keeping the stacked mobile layout non-sticky while preserving the existing
sticky treatment for desktop grid layouts. Use the pricing page’s tier-cards
wrapper as the target for the responsive class change.

{/* Free */}
<PlanCard
name={t("free.name")}
price={t("free.price")}
period={t("perMonth")}
>
<PrimaryLink href={DOWNLOAD_URL}>{t("free.cta")}</PrimaryLink>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Free download skips confirmation flow

Low Severity

The Free plan CTA links straight to DOWNLOAD_URL (the GitHub DMG). Site download CTAs normally go through DOWNLOAD_CONFIRMATION_HREF so the in-app confirmation page starts the download, avoids blocked popups, and keeps users on cmux.com with a retry path.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 1c379a7. Configure here.

<p className="mt-5 text-sm font-medium text-muted">
{t("free.featuresLead")}
</p>
<FeatureList items={freeFeatures} muted />
</PlanCard>

{/* Pro */}
<PlanCard
name={t("pro.name")}
price={t("pro.price")}
period={t("perMonth")}
>
<PrimaryLink href={PRO_CTA_URL}>{t("pro.cta")}</PrimaryLink>
<p className="mt-5 text-sm font-medium">{t("pro.featuresLead")}</p>
<FeatureList items={proFeatures} />
</PlanCard>

{/* Team */}
<PlanCard
name={t("team.name")}
price={t("team.price")}
period={t("perUserMonth")}
>
<PrimaryLink href={TEAM_CTA_URL}>{t("team.cta")}</PrimaryLink>
<p className="mt-5 text-sm font-medium">{t("team.featuresLead")}</p>
<FeatureList items={teamFeatures} />
</PlanCard>

{/* Enterprise */}
<PlanCard
name={t("enterprise.name")}
price={t("enterprise.price")}
>
<SecondaryLink href={`mailto:${SALES_EMAIL}`}>
{t("enterprise.cta")}
</SecondaryLink>
<p className="mt-5 text-sm font-medium">
{t("enterprise.featuresLead")}
</p>
<FeatureList items={enterpriseFeatures} />
</PlanCard>
</div>

{/* Cloud VM sizes */}
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved
<section className="mt-16 border-t border-border pt-10">
<h2 className="text-xs font-medium text-muted tracking-tight mb-3">
{t("sizes.title")}
</h2>
<p className="text-[15px] text-muted max-w-2xl">{t("sizes.body")}</p>
<div className="mt-4 overflow-x-auto">
<table className="w-full border-collapse text-[15px]">
<thead>
<tr className="border-b border-border">
<th className="py-3 pr-4 text-left align-bottom font-medium min-w-[10rem]">
{t("sizes.colSize")}
</th>
<th className="px-4 py-3 text-left align-bottom font-medium">
{t("sizes.colUse")}
</th>
<th className="px-4 py-3 text-left align-bottom font-medium whitespace-nowrap">
{t("sizes.colRate")}
</th>
</tr>
</thead>
<tbody>
{sizeRows.map((row, i) => (
<tr key={i} className="border-b border-border">
<th
scope="row"
className="py-3 pr-4 text-left font-normal align-top whitespace-nowrap"
>
{row.size}
</th>
<td className="px-4 py-3 text-left align-top text-muted">
{row.use}
</td>
<td className="px-4 py-3 text-left align-top whitespace-nowrap">
{row.rate}
</td>
</tr>
))}
</tbody>
</table>
</div>
</section>

{/* FAQ */}
<section className="mt-16 border-t border-border pt-10">
<h2 className="text-xs font-medium text-muted tracking-tight mb-3">
{t("faq.title")}
</h2>
<div
className="space-y-5 text-[15px] max-w-2xl"
style={{ lineHeight: 1.5 }}
>
{faqItems.map((item, i) => (
<div key={i}>
<p className="font-medium mb-1">{item.q}</p>
<p className="text-muted">{item.a}</p>
</div>
))}
</div>
<p className="mt-8 text-[15px] text-muted">
{t.rich("help", {
discord: (chunks) => (
<a
href="https://discord.gg/xsgFEVrWCZ"
target="_blank"
rel="noopener noreferrer"
className={linkClass}
>
{chunks}
</a>
),
github: (chunks) => (
<a
href="https://github.com/manaflow-ai/cmux"
target="_blank"
rel="noopener noreferrer"
className={linkClass}
>
{chunks}
</a>
Comment on lines +235 to +243

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Point the “GitHub issue” CTA at issues, not the repo root.

The localized help copy says users can open a GitHub issue, but this link lands on the repository homepage instead of the issues flow. Use the issues list or new-issue URL so the destination matches the promised action.

🤖 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/`[locale]/pricing/page.tsx around lines 200 - 208, The “GitHub issue”
CTA in the pricing page link mapping currently points to the repository root
instead of an issues destination. Update the GitHub anchor inside the localized
link renderer in the pricing page to use the repository’s issues page or
new-issue URL so it matches the help copy; keep the same link component
structure and adjust only the href in the GitHub chunk handler.

),
email: (chunks) => (
<a href="mailto:founders@manaflow.ai" className={linkClass}>
Comment on lines +245 to +246

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.

P1 The FAQ help section hardcodes a different domain (manaflow.ai) than SALES_EMAIL (manaflow.com). Use the constant so both CTAs always point to the same address and only one place needs updating when the address changes.

Suggested change
email: (chunks) => (
<a href="mailto:founders@manaflow.ai" className={linkClass}>
email: (chunks) => (
<a href={`mailto:${SALES_EMAIL}`} className={linkClass}>

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!

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.

P2 Badge Reuse the founders contact address

When users click the pricing FAQ's “email us” link, it opens founders@manaflow.ai, while this same file defines SALES_EMAIL as founders@manaflow.com and the rest of the site/repo uses the .com founders alias. If only the .com mailbox is monitored, pricing/support inquiries from this new page will be misdirected; reuse SALES_EMAIL here instead.

Useful? React with 👍 / 👎.

{chunks}
</a>
),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

FAQ help wrong email domain

Medium Severity

The pricing FAQ “email us” link uses founders@manaflow.ai, while SALES_EMAIL, the Enterprise CTA, the site footer contact link, and other marketing pages use founders@manaflow.com. Users asking questions from this section may mail the wrong address.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 1c379a7. Configure here.

})}
</p>
</section>
</main>
</div>
);
}

function PlanCard({
name,
price,
period,
children,
}: {
name: string;
price: string;
period?: string;
children: React.ReactNode;
}) {
return (
<div className="flex h-full flex-col border border-border p-6">
<h2 className="text-sm font-medium tracking-tight">{name}</h2>
<div className="mt-3 flex items-baseline gap-1.5">
<span className="text-3xl font-medium tracking-tight">{price}</span>
{period ? <span className="text-sm text-muted">{period}</span> : null}
</div>
<div className="mt-6">{children}</div>
</div>
);
}

function FeatureList({ items, muted }: { items: string[]; muted?: boolean }) {
return (
<ul
className={`mt-4 space-y-2.5 text-[15px] leading-relaxed ${
muted ? "text-muted" : ""
}`}
>
{items.map((item, i) => (
<li key={i} className="flex gap-2.5">
<CheckIcon />
<span>{item}</span>
</li>
))}
</ul>
);
}

function CheckIcon({ inline }: { inline?: boolean }) {
return (
<svg
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
strokeLinecap="round"
strokeLinejoin="round"
className={inline ? "shrink-0" : "mt-1 shrink-0 text-muted"}
aria-hidden="true"
>
<path d="M20 6L9 17l-5-5" />
</svg>
);
}

function PrimaryLink({
href,
children,
}: {
href: string;
children: React.ReactNode;
}) {
return (
<a
href={href}
className="inline-flex w-full items-center justify-center whitespace-nowrap bg-foreground px-5 py-2.5 text-[15px] font-medium hover:opacity-85 transition-opacity"
style={{ color: "var(--background)", textDecoration: "none" }}
>
{children}
</a>
);
}

function SecondaryLink({
href,
children,
}: {
href: string;
children: React.ReactNode;
}) {
return (
<a
href={href}
className="inline-flex w-full items-center justify-center whitespace-nowrap border border-border px-5 py-2.5 text-[15px] font-medium text-foreground hover:bg-code-bg transition-colors"
>
{children}
</a>
);
}

type FaqItem = {
q: string;
a: string;
// Marks a Vault-specific question (see SHOW_VAULT).
vault?: boolean;
};

type SizeRow = {
size: string;
use: string;
rate: string;
};

Loading