Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

save 17%, improve sale notification email

Steven Teyeb31dc44ded7
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/upgrade/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/upgrade/page-client.tsx
index 06fc7640d9..ac5510d1d3 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/upgrade/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/upgrade/page-client.tsx
@@ -114,7 +114,7 @@ export function WorkspaceBillingUpgradePageClient() {
<ToggleGroup
options={[
{ label: "Monthly", value: "monthly" },
- { label: "Yearly (2 months free)", value: "yearly" },
+ { label: "Yearly (Save 17%)", value: "yearly" },
]}
selected={period}
selectAction={(option) => setPeriod(option as "monthly" | "yearly")}
diff --git a/apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/plan/plan-selector.tsx b/apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/plan/plan-selector.tsx
index fb959112a1..d82a314587 100644
--- a/apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/plan/plan-selector.tsx
+++ b/apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/plan/plan-selector.tsx
@@ -26,7 +26,7 @@ export function PlanSelector() {
{ value: "monthly", label: "Monthly" },
{
value: "yearly",
- label: "Yearly (2 months free)",
+ label: "Yearly (Save 17%)",
},
]}
className="overflow-hidden rounded-lg bg-neutral-100 p-0.5"
diff --git a/apps/web/lib/api/partners/notify-partner-commission.ts b/apps/web/lib/api/partners/notify-partner-commission.ts
index dcf54e0abc..60fc4c73fa 100644
--- a/apps/web/lib/api/partners/notify-partner-commission.ts
+++ b/apps/web/lib/api/partners/notify-partner-commission.ts
@@ -151,7 +151,7 @@ export async function notifyPartnerCommission({
? workspaceUsers.map(
({ user }) =>
({
- subject: `New commission for ${partner.name}`,
+ subject: `New customer referred by ${partner.name}`,
variant: "notifications",
to: user.email!,
react: NewSaleAlertProgramOwner({
diff --git a/apps/web/ui/modals/manage-usage-modal.tsx b/apps/web/ui/modals/manage-usage-modal.tsx
index ec39b42922..90d57f9a9c 100644
--- a/apps/web/ui/modals/manage-usage-modal.tsx
+++ b/apps/web/ui/modals/manage-usage-modal.tsx
@@ -113,7 +113,7 @@ function ManageUsageModalContent({ type }: ManageUsageModalProps) {
{ value: "monthly", label: "Monthly" },
{
value: "yearly",
- label: "Yearly (2 months free)",
+ label: "Yearly (Save 17%)",
},
]}
className="flex overflow-hidden rounded-lg bg-transparent p-0.5"
diff --git a/packages/email/src/templates/new-sale-alert-program-owner.tsx b/packages/email/src/templates/new-sale-alert-program-owner.tsx
index a852249ad1..094d717117 100644
--- a/packages/email/src/templates/new-sale-alert-program-owner.tsx
+++ b/packages/email/src/templates/new-sale-alert-program-owner.tsx
@@ -98,7 +98,9 @@ export default function NewSaleAlertProgramOwner({
return (
<Html>
<Head />
- <Preview>You received a sale from a customer referred! 💰</Preview>
+ <Preview>
+ You received a {saleAmountInDollars} sale from a new customer! 💰
+ </Preview>
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 max-w-[600px] rounded border border-solid border-neutral-200 px-10 py-5">
@@ -111,11 +113,11 @@ export default function NewSaleAlertProgramOwner({
</Section>
<Heading className="mx-0 my-7 p-0 text-lg font-medium text-black">
- Hi {finalName},
+ New customer referred by {partner.name}
</Heading>
<Text className="text-sm leading-6 text-neutral-600">
- <strong>{program.name}</strong> earned a sale from a customer
+ <strong>{program.name}</strong> earned a sale from a new customer
referred by{" "}
<strong>
{partner.name
@@ -173,14 +175,23 @@ export default function NewSaleAlertProgramOwner({
{formattedDueDate && (
<Text className="text-sm leading-6 text-neutral-600">
Payment for this commission will be due on{" "}
- <strong>{formattedDueDate}</strong>, based on your campaign
- settings.
+ <strong>{formattedDueDate}</strong>, as per this partner group's{" "}
+ <Link
+ href="https://dub.co/help/article/partner-payouts#payout-holding-period"
+ className="font-semibold text-black underline"
+ >
+ holding period
+ </Link>
+ .
</Text>
)}
<Text className="text-sm leading-6 text-neutral-600">
You can view sales and commissions in the{" "}
- <Link href={salesLink} className="text-blue-600 underline">
+ <Link
+ href={salesLink}
+ className="font-semibold text-black underline"
+ >
program dashboard
</Link>
.