The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add day 4 email
Steven Tey396ec068ba75
diff --git a/apps/web/lib/email/email-templates-map.ts b/apps/web/lib/email/email-templates-map.tsindex a3f6f1a839..888165fc20 100644--- a/apps/web/lib/email/email-templates-map.ts+++ b/apps/web/lib/email/email-templates-map.ts@@ -1,6 +1,6 @@import BountyApproved from "@dub/email/templates/bounty-approved";import IdentityVerificationAnnouncement from "@dub/email/templates/broadcasts/identity-verification-announcement";-import DubLaunchWeekDay3 from "@dub/email/templates/broadcasts/launch-week-day-3";+import DubLaunchWeekDay4 from "@dub/email/templates/broadcasts/launch-week-day-4";import ConnectPayoutReminder from "@dub/email/templates/connect-payout-reminder";import ConnectPlatformsReminder from "@dub/email/templates/connect-platforms-reminder";import PartnerBanned from "@dub/email/templates/partner-banned";@@ -30,5 +30,5 @@ export const EMAIL_TEMPLATES_MAP = {// PayoutAutoWithdrawals,// ProgramMarketplaceAnnouncement,// StablecoinPayoutsAnnouncement,- DubLaunchWeekDay3,+ DubLaunchWeekDay4,} as const;diff --git a/apps/web/scripts/send-batch-emails.ts b/apps/web/scripts/send-batch-emails.tsindex 8405ee79f2..3b6976c033 100644--- a/apps/web/scripts/send-batch-emails.ts+++ b/apps/web/scripts/send-batch-emails.ts@@ -1,4 +1,4 @@-import DubLaunchWeekDay3 from "@dub/email/templates/broadcasts/launch-week-day-3";+import DubLaunchWeekDay4 from "@dub/email/templates/broadcasts/launch-week-day-4";import { prisma } from "@dub/prisma";import { chunk } from "@dub/utils";import "dotenv-flow/config";@@ -43,12 +43,12 @@ async function main() {}console.log(`Found ${usersToNotify.length} users to notify`);- const res = await queueBatchEmail<typeof DubLaunchWeekDay3>(+ const res = await queueBatchEmail<typeof DubLaunchWeekDay4>(usersToNotify.map((user) => ({to: user.email!,variant: "marketing",- subject: "Dub Launch Week Day 3: Introducing Commission Analytics",- templateName: "DubLaunchWeekDay3",+ subject: "Dub Launch Week Day 4: Introducing the Dub MCP Server",+ templateName: "DubLaunchWeekDay4",templateProps: {email: user.email!,unsubscribeUrl: `https://app.dub.co/unsubscribe/${generateUnsubscribeToken(user.email!)}`,diff --git a/packages/email/src/templates/broadcasts/launch-week-day-4.tsx b/packages/email/src/templates/broadcasts/launch-week-day-4.tsxnew file mode 100644index 0000000000..c888d88dbc--- /dev/null+++ b/packages/email/src/templates/broadcasts/launch-week-day-4.tsx@@ -0,0 +1,216 @@+import { DUB_WORDMARK } from "@dub/utils";+import {+ Body,+ Container,+ Head,+ Heading,+ Hr,+ Html,+ Img,+ Link,+ Preview,+ Section,+ Tailwind,+ Text,+} from "@react-email/components";+import { Footer } from "../../components/footer";++export default function DubLaunchWeekDay4({+ email = "[email protected]",+ unsubscribeUrl = "https://app.dub.co/account/settings",+}: {+ email: string;+ unsubscribeUrl: string;+}) {+ return (+ <Html>+ <Head>+ <style>{`+ @media only screen and (max-width: 600px) {+ .email-container {+ padding-left: 16px !important;+ padding-right: 16px !important;+ }+ }+ `}</style>+ </Head>+ <Preview>+ Manage your partner program with Claude, Perplexity, Codex, or the AI+ agent of your choice using our new MCP server.+ </Preview>+ <Tailwind>+ <Body className="mx-auto my-auto bg-white font-sans">+ <Container className="email-container mx-auto my-10 max-w-[600px] px-10 py-5">+ <Section className="mt-2 text-center">+ <Img+ src={DUB_WORDMARK}+ width="65"+ height="32"+ alt="Dub"+ style={{ display: "block", margin: "0 auto" }}+ />+ </Section>++ <Heading className="mx-0 mb-2 mt-8 p-0 text-center text-2xl font-semibold text-black">+ Dub Launch Week Day 4+ </Heading>++ <Text className="mx-auto mb-8 mt-0 max-w-sm text-center text-base leading-6 text-neutral-600">+ Introducing the Dub MCP Server + Platform Logs+ </Text>++ <Text className="mx-0 mb-4 mt-0 text-sm leading-6 text-neutral-600">+ π Hey, it's Steven from Dub!+ </Text>+ <Text className="mx-0 mb-8 mt-0 text-sm leading-6 text-neutral-600">+ Today is <strong>Day 4 of our Spring Launch Week</strong>, where+ we'll be launching an exciting new feature for{" "}+ <Link+ href="http://ship.dub.co/partners"+ className="font-medium text-black underline"+ >+ Dub Partners+ </Link>{" "}+ every day β for 5 days straight!+ </Text>++ <Section className="mb-8 text-center">+ <Link+ href="https://ship.dub.co/mcp"+ style={{ textDecoration: "none" }}+ >+ <Img+ src="https://assets.dub.co/cms/mcp-logs.jpg"+ width={560}+ height={320}+ alt="Dub MCP Server"+ style={{+ display: "block",+ maxWidth: "100%",+ height: "auto",+ margin: "0 auto",+ borderRadius: "8px",+ }}+ />+ </Link>+ </Section>++ <Heading className="mx-0 mb-3 mt-0 p-0 text-lg font-semibold text-black">+ Introducing the Dub MCP Server+ </Heading>++ <Text className="mx-0 mb-4 mt-0 text-sm leading-6 text-neutral-600">+ Leverage our new MCP server to manage your partner program with+ Claude, Perplexity, Codex, or the AI agent of your choice.+ </Text>+ <Text className="mx-0 mb-2 mt-0 text-sm leading-6 text-neutral-600">+ Here are some of the supported tools:+ </Text>+ <Text className="mx-0 mb-1 mt-0 pl-4 text-sm leading-6 text-neutral-600">+ β’ <strong>Partners</strong> β Create partners, list all partners,+ deactivate, or ban partners from your program+ </Text>+ <Text className="mx-0 mb-1 mt-0 pl-4 text-sm leading-6 text-neutral-600">+ β’ <strong>Partner applications</strong> β List, approve, and+ reject pending partner applications+ </Text>+ <Text className="mx-0 mb-4 mt-0 pl-4 text-sm leading-6 text-neutral-600">+ β’ <strong>Commissions</strong> β List and update commissions (e.g.+ for refunds or fraud)+ </Text>+ <Link+ href="https://ship.dub.co/mcp"+ className="block w-full rounded-lg bg-neutral-900 py-2.5 text-center text-sm font-medium text-white no-underline"+ style={{+ backgroundColor: "#171717",+ color: "#ffffff",+ borderRadius: "8px",+ padding: "10px 16px",+ textDecoration: "none",+ fontWeight: "500",+ fontSize: "14px",+ width: "100%",+ boxSizing: "border-box",+ }}+ >+ Learn more about the Dub MCP Server+ </Link>++ <Hr className="mx-0 my-6 w-full border border-neutral-200" />++ <Section className="mb-8 text-center">+ <Link+ href="https://ship.dub.co/platform-logs"+ style={{ textDecoration: "none" }}+ >+ <Img+ src="https://assets.dub.co/cms/platform-logs.jpg"+ width={560}+ height={320}+ alt="Dub Platform Logs"+ style={{+ display: "block",+ maxWidth: "100%",+ height: "auto",+ margin: "0 auto",+ borderRadius: "8px",+ }}+ />+ </Link>+ </Section>++ <Heading className="mx-0 mb-3 mt-0 p-0 text-lg font-semibold text-black">+ Dub Platform Logs+ </Heading>++ <Text className="mx-0 mb-4 mt-0 text-sm leading-6 text-neutral-600">+ We're also releasing a new{" "}+ <Link+ href="https://ship.dub.co/logs"+ className="font-medium text-black underline"+ >+ Logs page+ </Link>{" "}+ to give you real-time visibility into the requests your agent (or+ your team) makes to your Dub workspace.+ </Text>++ <Section className="mt-4 text-center">+ <Link+ href="https://ship.dub.co/platform-logs"+ className="block w-full rounded-lg bg-neutral-900 py-2.5 text-center text-sm font-medium text-white no-underline"+ style={{+ backgroundColor: "#171717",+ color: "#ffffff",+ borderRadius: "8px",+ padding: "10px 16px",+ textDecoration: "none",+ fontWeight: "500",+ fontSize: "14px",+ width: "100%",+ boxSizing: "border-box",+ }}+ >+ Learn more about Platform Logs+ </Link>+ </Section>++ <Hr className="mx-0 my-6 w-full border border-neutral-200" />++ <Text className="mx-0 mb-4 mt-0 text-sm leading-6 text-neutral-600">+ That's all for Day 4! Stay tuned for the remaining days of our+ Spring Launch Week β see you tomorrow!+ </Text>+ <Text className="mx-0 mb-4 mt-0 text-sm leading-6 text-neutral-400">+ Steven from Dub.co+ </Text>++ <Section className="mx-auto max-w-[400px] text-center">+ <Footer email={email} marketing unsubscribeUrl={unsubscribeUrl} />+ </Section>+ </Container>+ </Body>+ </Tailwind>+ </Html>+ );+}