Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(web): pricing parity display for GBP and EUR
Richie McIlroy2564f1cfc42d
diff --git a/apps/web/app/(org)/dashboard/analytics/components/AnalyticsDashboard.tsx b/apps/web/app/(org)/dashboard/analytics/components/AnalyticsDashboard.tsxindex 3f8d13832..549f467d5 100644--- a/apps/web/app/(org)/dashboard/analytics/components/AnalyticsDashboard.tsx+++ b/apps/web/app/(org)/dashboard/analytics/components/AnalyticsDashboard.tsx@@ -8,6 +8,7 @@ import { useMutation } from "@tanstack/react-query";import clsx from "clsx";import { Effect } from "effect";import { AnimatePresence, motion } from "framer-motion";+import { useCurrency } from "hooks/useCurrency";import { Minus, Plus } from "lucide-react";import { useRouter, useSearchParams } from "next/navigation";import { memo, useEffect, useState } from "react";@@ -48,6 +49,7 @@ export function AnalyticsDashboard() {const capId = searchParams.get("capId");const user = useCurrentUser();const stripeCtx = useStripeContext();+ const { currency } = useCurrency();const { push } = useRouter();const { activeOrganization, organizationData, spacesData } =useDashboardContext();@@ -245,7 +247,7 @@ export function AnalyticsDashboard() {className="text-3xl font-medium tabular-nums text-gray-12"format={{style: "currency",- currency: "USD",+ currency: currency.toUpperCase(),}}/><span className="mb-2 ml-2 text-gray-11">diff --git a/apps/web/app/(org)/dashboard/settings/organization/components/BillingSummaryCard.tsx b/apps/web/app/(org)/dashboard/settings/organization/components/BillingSummaryCard.tsxindex bcaf0f4b6..298e980b5 100644--- a/apps/web/app/(org)/dashboard/settings/organization/components/BillingSummaryCard.tsx+++ b/apps/web/app/(org)/dashboard/settings/organization/components/BillingSummaryCard.tsx@@ -12,6 +12,7 @@ import {} from "@/actions/organization/get-subscription-details";import { manageBilling } from "@/actions/organization/manage-billing";import { useDashboardContext } from "@/app/(org)/dashboard/Contexts";+import { formatAmount } from "@/utils/currency";export function BillingSummaryCard() {const { activeOrganization, setUpgradeModalOpen } = useDashboardContext();@@ -97,6 +98,11 @@ export function BillingSummaryCard() {const intervalLabel =subscription.billingInterval === "year" ? "annually" : "monthly";const totalAmount = subscription.pricePerSeat * subscription.currentQuantity;+ const seatAmountLabel = formatAmount(+ subscription.pricePerSeat,+ subscription.currency,+ );+ const totalAmountLabel = formatAmount(totalAmount, subscription.currency);const nextBillingDate = format(new Date(subscription.currentPeriodEnd * 1000),"MMM d, yyyy",@@ -120,10 +126,9 @@ export function BillingSummaryCard() {</div><div className="flex flex-col gap-1 text-sm text-gray-11"><p>- ${subscription.pricePerSeat.toFixed(2)}/seat/mo (- {subscription.currentQuantity}{" "}- {subscription.currentQuantity === 1 ? "seat" : "seats"} = $- {totalAmount.toFixed(2)}/mo, billed {intervalLabel})+ {seatAmountLabel}/seat/mo ({subscription.currentQuantity}{" "}+ {subscription.currentQuantity === 1 ? "seat" : "seats"} ={" "}+ {totalAmountLabel}/mo, billed {intervalLabel})</p>{pastDue ? (<p className="text-red-700">diff --git a/apps/web/app/(org)/dashboard/settings/organization/components/SeatManagementCard.tsx b/apps/web/app/(org)/dashboard/settings/organization/components/SeatManagementCard.tsxindex e747aa799..f81815604 100644--- a/apps/web/app/(org)/dashboard/settings/organization/components/SeatManagementCard.tsx+++ b/apps/web/app/(org)/dashboard/settings/organization/components/SeatManagementCard.tsx@@ -13,6 +13,7 @@ import {updateSeatQuantity,} from "@/actions/organization/update-seat-quantity";import { useDashboardContext } from "@/app/(org)/dashboard/Contexts";+import { formatAmount } from "@/utils/currency";import { calculateSeats } from "@/utils/organization";const DEBOUNCE_MS = 500;@@ -169,7 +170,7 @@ export function SeatManagementCard() {<span className="text-sm text-gray-11">{preview.proratedAmount === 0? "No prorated adjustment"- : `${preview.proratedAmount > 0 ? "Due now" : "Prorated credit"}: $${Math.abs(preview.proratedAmount / 100).toFixed(2)} ${preview.currency.toUpperCase()}`}+ : `${preview.proratedAmount > 0 ? "Due now" : "Prorated credit"}: ${formatAmount(Math.abs(preview.proratedAmount / 100), preview.currency)}`}</span>) : null}<Buttondiff --git a/apps/web/app/(org)/onboarding/components/InviteTeamPage.tsx b/apps/web/app/(org)/onboarding/components/InviteTeamPage.tsxindex 68c6ba3ad..d1cc9d281 100644--- a/apps/web/app/(org)/onboarding/components/InviteTeamPage.tsx+++ b/apps/web/app/(org)/onboarding/components/InviteTeamPage.tsx@@ -6,6 +6,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import NumberFlow from "@number-flow/react";import { useMutation } from "@tanstack/react-query";import clsx from "clsx";+import { useCurrency } from "hooks/useCurrency";import { useRouter } from "next/navigation";import { type MouseEvent, startTransition, useId, useState } from "react";import { toast } from "sonner";@@ -17,6 +18,7 @@ import { Base } from "./Base";export function InviteTeamPage() {const billingCycleId = useId();const stripeCtx = useStripeContext();+ const { currency, symbol } = useCurrency();const [users, setUsers] = useState(1);const [isAnnually, setIsAnnually] = useState(true);const router = useRouter();@@ -116,7 +118,8 @@ export function InviteTeamPage() {><div className="text-center"><span className="mr-2 text-2xl tabular-nums lg:text-3xl text-gray-12">- $<NumberFlow suffix="/mo" value={currentTotalPrice} />+ {symbol}+ <NumberFlow suffix="/mo" value={currentTotalPrice} /></span><span className="text-base tabular-nums text-gray-10">{" "}@@ -131,7 +134,7 @@ export function InviteTeamPage() {format={{notation: "compact",style: "currency",- currency: "USD",+ currency: currency.toUpperCase(),}}suffix="/mo"/>{" "}@@ -155,7 +158,7 @@ export function InviteTeamPage() {format={{notation: "compact",style: "currency",- currency: "USD",+ currency: currency.toUpperCase(),}}suffix="/mo"/>{" "}diff --git a/apps/web/components/UpgradeModal.tsx b/apps/web/components/UpgradeModal.tsxindex 9fc81bf0f..41b4ca53b 100644--- a/apps/web/components/UpgradeModal.tsx+++ b/apps/web/components/UpgradeModal.tsx@@ -4,6 +4,7 @@ import { buildEnv } from "@cap/env";import { Button, Dialog, DialogContent, Switch } from "@cap/ui";import NumberFlow from "@number-flow/react";import { useMutation } from "@tanstack/react-query";+import { useCurrency } from "hooks/useCurrency";import {BarChart3,Database,@@ -69,6 +70,7 @@ const UpgradeModalImpl = ({dismissible = true,}: UpgradeModalProps) => {const stripeCtx = useStripeContext();+ const { currency } = useCurrency();const [isAnnual, setIsAnnual] = useState(true);const [proQuantity, setProQuantity] = useState(1);const { push } = useRouter();@@ -238,7 +240,7 @@ const UpgradeModalImpl = ({className="text-3xl font-medium tabular-nums text-gray-12"format={{style: "currency",- currency: "USD",+ currency: currency.toUpperCase(),}}/><span className="mb-2 ml-2 text-gray-11">diff --git a/apps/web/components/pages/HomePage/Pricing/ProCard.tsx b/apps/web/components/pages/HomePage/Pricing/ProCard.tsxindex fc5764bb0..0bacf8e98 100644--- a/apps/web/components/pages/HomePage/Pricing/ProCard.tsx+++ b/apps/web/components/pages/HomePage/Pricing/ProCard.tsx@@ -3,6 +3,7 @@import { Button } from "@cap/ui";import NumberFlow from "@number-flow/react";import { useMutation } from "@tanstack/react-query";+import { useCurrency } from "hooks/useCurrency";import { useRef, useState } from "react";import { toast } from "sonner";import { useStripeContext } from "@/app/Layout/StripeContext";@@ -17,6 +18,7 @@ const copy = homepageCopy.pricing.pro;export const ProCard = () => {const stripeCtx = useStripeContext();+ const { symbol } = useCurrency();const [users, setUsers] = useState(1);const [isAnnually, setIsAnnually] = useState(false);const artRef = useRef<ProArtRef>(null);@@ -103,7 +105,8 @@ export const ProCard = () => {<div className="flex gap-1.5 items-baseline mt-6"><span className="text-4xl font-semibold tracking-tight tabular-nums text-gray-12">- $<NumberFlow value={perUser} />+ {symbol}+ <NumberFlow value={perUser} /></span><span className="text-sm text-gray-10">/ user / month</span></div>@@ -132,7 +135,8 @@ export const ProCard = () => {<p className="text-sm text-gray-10">Total:{" "}<span className="font-medium text-gray-12">- $<NumberFlow value={isAnnually ? yearlyTotal : monthlyTotal} />+ {symbol}+ <NumberFlow value={isAnnually ? yearlyTotal : monthlyTotal} /></span>{" "}{isAnnually ? "/ year" : "/ month"}</p>diff --git a/apps/web/components/pages/_components/ComparePlans.tsx b/apps/web/components/pages/_components/ComparePlans.tsxindex 16db27238..422ea604a 100644--- a/apps/web/components/pages/_components/ComparePlans.tsx+++ b/apps/web/components/pages/_components/ComparePlans.tsx@@ -4,6 +4,7 @@ import { Button } from "@cap/ui";import { classNames } from "@cap/utils";import { faCheck } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useCurrency } from "hooks/useCurrency";import { Fragment, useMemo, useState } from "react";import { toast } from "sonner";import { useCurrentUser } from "@/app/Layout/AuthContext";@@ -158,6 +159,7 @@ const getButtonText = (key: PlanKey): string => {export const ComparePlans = () => {const user = useCurrentUser();+ const { symbol } = useCurrency();const [proLoading, setProLoading] = useState(false);const [guestLoading, setGuestLoading] = useState(false);const [commercialLoading, setCommercialLoading] = useState(false);@@ -189,9 +191,14 @@ export const ComparePlans = () => {short: "Desktop",price: "$29/yr",},- { key: "pro", name: "Cap Pro", short: "Pro", price: "$8.16/user/mo" },+ {+ key: "pro",+ name: "Cap Pro",+ short: "Pro",+ price: `${symbol}8.16/user/mo`,+ },],- [],+ [symbol],);const handleCheckout = async (diff --git a/apps/web/lib/messenger/constants.ts b/apps/web/lib/messenger/constants.tsindex c11e098d2..1e5de270d 100644--- a/apps/web/lib/messenger/constants.ts+++ b/apps/web/lib/messenger/constants.ts@@ -86,8 +86,9 @@ PLATFORM SUPPORT:PRICING (early adopter beta pricing, locked in for lifetime of subscription):- Free plan: personal use, Studio Mode, unlimited local recordings, shareable links up to 5 minutes, export to MP4 or GIF, web recorder-- Desktop License: $58 one-time (lifetime) or $29/year, commercial usage rights, Studio Mode with full editor, unlimited local recordings, shareable links up to 5 minutes, export to MP4 or GIF-- Cap Pro: $8.16/mo per user (billed annually) or $12/mo per user (billed monthly), includes everything in Desktop License plus unlimited cloud storage and bandwidth, unlimited shareable links (no 5-minute limit), auto-generated AI titles/summaries/chapters/transcriptions, custom domain (cap.yourdomain.com), password-protected shares, viewer analytics, team workspaces, Loom video importer, custom S3 bucket and Google Drive support, priority support+- Desktop License: $58 one-time (lifetime) or $29/year, commercial usage rights, Studio Mode with full editor, unlimited local recordings, shareable links up to 5 minutes, export to MP4 or GIF. USD only, no local currency option.+- Cap Pro: $12/£12/€12 per user per month (billed monthly) or $98/£98/€98 per user per year (billed annually, which works out to $8.16/£8.16/€8.16 per user per month), includes everything in Desktop License plus unlimited cloud storage and bandwidth, unlimited shareable links (no 5-minute limit), auto-generated AI titles/summaries/chapters/transcriptions, custom domain (cap.yourdomain.com), password-protected shares, viewer analytics, team workspaces, Loom video importer, custom S3 bucket and Google Drive support, priority support+- Cap Pro currency: the price is the same number in every currency, only the symbol changes. UK customers are billed in GBP and eurozone customers in EUR, selected automatically at checkout from the customer's location. Everyone else is billed in USD. There is nothing the customer needs to do to pick a currency.- Enterprise: custom pricing, contact via https://cal.com/cap.so/15min, includes SLAs, priority support, Loom video importer, bulk discounts, managed self-hosting, SAML SSO via WorkOS, advanced security controls- Early adopters keep their pricing forever, even after beta ends and regular prices change.- Student discount available at https://cap.so/student-discount