Repository navigation
web: add /pricing page (Free / Pro / Enterprise) #6791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
1c379a7
5508109
1cd4250
5c53722
8b9b058
a9a8e02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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; | ||||||||||||||
| const SALES_EMAIL = "founders@manaflow.com"; | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||||
|
|
||||||||||||||
|
Comment on lines
+15
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 Also applies to: 79-81, 210-211 🤖 Prompt for AI Agents |
||||||||||||||
| // 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"), | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This call uses Useful? React with 👍 / 👎. |
||||||||||||||
| }; | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| export default function PricingPage() { | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because 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"> | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
On narrow screens this grid is one column, so the four plan cards are taller than the viewport. Because the entire grid is Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
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
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||
| {/* Free */} | ||||||||||||||
| <PlanCard | ||||||||||||||
| name={t("free.name")} | ||||||||||||||
| price={t("free.price")} | ||||||||||||||
| period={t("perMonth")} | ||||||||||||||
| > | ||||||||||||||
| <PrimaryLink href={DOWNLOAD_URL}>{t("free.cta")}</PrimaryLink> | ||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Free download skips confirmation flowLow Severity The Free plan CTA links straight to 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 */} | ||||||||||||||
|
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
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||||||||||||||
| ), | ||||||||||||||
| email: (chunks) => ( | ||||||||||||||
| <a href="mailto:founders@manaflow.ai" className={linkClass}> | ||||||||||||||
|
Comment on lines
+245
to
+246
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
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!
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When users click the pricing FAQ's “email us” link, it opens Useful? React with 👍 / 👎. |
||||||||||||||
| {chunks} | ||||||||||||||
| </a> | ||||||||||||||
| ), | ||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FAQ help wrong email domainMedium Severity The pricing FAQ “email us” link uses 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; | ||||||||||||||
| }; | ||||||||||||||
|
|
||||||||||||||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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=1flow used byDownloadButton; the same directDOWNLOAD_URLis also used for the Free CTA below. That bypasses the guarded confirmation-page download and thecmuxterm_download_clickedPostHog 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 atDOWNLOAD_CONFIRMATION_HREFor reuse the shared download button until checkout exists.Useful? React with 👍 / 👎.