The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update partner welcome email, add more help articles
Steven Teyafc88870d957
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/page.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/page.tsxindex f98c4a0ecc..ca1eaccc2a 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/page.tsx@@ -6,7 +6,15 @@ import { PayoutTable } from "./payout-table";export default function PartnersPayoutsSettings() {return (- <PageContent title="Payouts" controls={<PartnerPayoutSettingsButton />}>+ <PageContent+ title="Payouts"+ titleInfo={{+ title:+ "Connect a bank account and start receiving partner payouts from the affiliate programs you're working with.",+ href: "https://dub.co/help/article/receiving-payouts",+ }}+ controls={<PartnerPayoutSettingsButton />}+ ><PageWidthWrapper className="grid grid-cols-1 gap-4 pb-10"><PayoutStats /><PayoutTable />diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/group-additional-links.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/group-additional-links.tsxindex f4c65f4db5..741f3bd164 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/group-additional-links.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/group-additional-links.tsx@@ -10,7 +10,15 @@ import {} from "@/lib/zod/schemas/groups";import { useConfirmModal } from "@/ui/modals/confirm-modal";import { ThreeDots } from "@/ui/shared/icons";-import { Button, LinkLogo, NumberStepper, Popover, Switch } from "@dub/ui";+import {+ Button,+ InfoTooltip,+ LinkLogo,+ NumberStepper,+ Popover,+ SimpleTooltipContent,+ Switch,+} from "@dub/ui";import { PenWriting, Trash } from "@dub/ui/icons";import { cn, getApexDomain, getPrettyUrl } from "@dub/utils";import { PropsWithChildren, useState } from "react";@@ -30,9 +38,20 @@ export function GroupAdditionalLinks() {return (<div className="flex flex-col divide-y divide-neutral-200 rounded-lg border border-neutral-200"><div className="px-6 py-6">- <h3 className="text-content-emphasis text-lg font-semibold leading-7">- Additional partner links- </h3>+ <div className="flex items-center gap-2">+ <h3 className="text-content-emphasis text-lg font-semibold leading-7">+ Additional partner links+ </h3>+ <InfoTooltip+ content={+ <SimpleTooltipContent+ title="Allow partners to create additional referral links."+ cta="Learn more."+ href="https://dub.co/help/article/partner-link-settings#additional-partner-links"+ />+ }+ />+ </div><p className="text-content-subtle text-sm font-normal leading-5">Allow and configure extra partner links</p>diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/group-default-links.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/group-default-links.tsxindex 6ec2c4662f..28701aa93d 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/group-default-links.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/group-default-links.tsx@@ -8,7 +8,13 @@ import { PartnerGroupDefaultLink } from "@/lib/types";import { MAX_DEFAULT_PARTNER_LINKS } from "@/lib/zod/schemas/groups";import { useConfirmModal } from "@/ui/modals/confirm-modal";import { ThreeDots } from "@/ui/shared/icons";-import { Button, Hyperlink, Popover } from "@dub/ui";+import {+ Button,+ Hyperlink,+ InfoTooltip,+ Popover,+ SimpleTooltipContent,+} from "@dub/ui";import { PenWriting, Trash } from "@dub/ui/icons";import { cn, getPrettyUrl, getUrlWithoutUTMParams } from "@dub/utils";import { useState } from "react";@@ -29,9 +35,20 @@ export function GroupDefaultLinks() {<div className="flex flex-col gap-6 rounded-lg border border-neutral-200 p-6"><div className="flex items-center justify-between"><div>- <h3 className="text-content-emphasis text-lg font-semibold leading-7">- Default links- </h3>+ <div className="flex items-center gap-2">+ <h3 className="text-content-emphasis text-lg font-semibold leading-7">+ Default links+ </h3>+ <InfoTooltip+ content={+ <SimpleTooltipContent+ title="Default links are links that are automatically created for each partner in this group."+ cta="Learn more."+ href="https://dub.co/help/article/partner-link-settings#default-referral-links"+ />+ }+ />+ </div><p className="text-content-subtle text-sm font-normal leading-5">Links that are automatically created for each partner in this group</p>diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/group-link-settings.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/group-link-settings.tsxindex d54694da22..38bb460eab 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/group-link-settings.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/group-link-settings.tsx@@ -8,7 +8,13 @@ import useProgram from "@/lib/swr/use-program";import useWorkspace from "@/lib/swr/use-workspace";import { GroupProps } from "@/lib/types";import { useConfirmModal } from "@/ui/modals/confirm-modal";-import { Badge, Button, UTMBuilder } from "@dub/ui";+import {+ Badge,+ Button,+ InfoTooltip,+ SimpleTooltipContent,+ UTMBuilder,+} from "@dub/ui";import { CircleCheckFill } from "@dub/ui/icons";import { cn, deepEqual } from "@dub/utils";import { PropsWithChildren, useState } from "react";@@ -189,6 +195,10 @@ function GroupLinkSettingsForm({ group }: { group: GroupProps }) {<SettingsRowheading="Link structure"description="How your partner links are displayed"+ titleInfo={{+ title: "Configure the format of your partner referral links.",+ href: "https://dub.co/help/article/partner-link-settings#link-structure",+ }}><div className="grid grid-cols-1 gap-3">{program &&@@ -240,6 +250,11 @@ function GroupLinkSettingsForm({ group }: { group: GroupProps }) {<SettingsRowheading="UTM parameters"description="Configure UTM tracking parameters for all links in this group"+ titleInfo={{+ title:+ "Configure UTM tracking parameters for all links in this group.",+ href: "https://dub.co/help/article/partner-link-settings#utm-parameters",+ }}><UTMBuildervalues={{@@ -273,17 +288,35 @@ function GroupLinkSettingsForm({ group }: { group: GroupProps }) {function SettingsRow({heading,description,+ titleInfo,children,}: PropsWithChildren<{heading: string;description: string;+ titleInfo?: {+ title: string;+ href: string;+ };}>) {return (<div className="grid grid-cols-1 gap-10 px-6 py-8 sm:grid-cols-2"><div className="flex flex-col gap-1">- <h3 className="text-content-emphasis text-base font-semibold leading-none">- {heading}- </h3>+ <div className="flex items-center gap-2">+ <h3 className="text-content-emphasis text-base font-semibold leading-none">+ {heading}+ </h3>+ {titleInfo && (+ <InfoTooltip+ content={+ <SimpleTooltipContent+ title={titleInfo?.title}+ cta="Learn more."+ href={titleInfo?.href}+ />+ }+ />+ )}+ </div><p className="text-content-subtle text-sm">{description}</p></div>diff --git a/packages/email/src/templates/welcome-email-partner.tsx b/packages/email/src/templates/welcome-email-partner.tsxindex 1a157928b5..0850d0bac4 100644--- a/packages/email/src/templates/welcome-email-partner.tsx+++ b/packages/email/src/templates/welcome-email-partner.tsx@@ -36,8 +36,8 @@ export default function WelcomeEmailPartner({Welcome {name || "to Dub Partners"}!</Heading><Text className="mb-8 text-sm leading-6 text-gray-600">- Time to start earning rewards by referring your audience to the- brands you work with.+ We're excited to have you onboard. Time to start earning rewards+ by referring your audience to the brands you work with.</Text><Hr />@@ -48,12 +48,41 @@ export default function WelcomeEmailPartner({<Text className="mb-4 text-sm leading-6 text-gray-600"><strong className="font-medium text-black">- 1. Join a program+ 1. Complete your partner profile+ </strong>+ : Start by{" "}+ <Link+ href="https://ship.dub.co/partner-profile"+ className="font-semibold text-black underline underline-offset-4"+ >+ completing your partner profile+ </Link>+ . This will help you stand out from other partners in our partner+ network.+ </Text>++ <Text className="mb-4 text-sm leading-6 text-gray-600">+ <strong className="font-medium text-black">+ 2. Set up payouts+ </strong>+ :{" "}+ <Link+ href="https://ship.dub.co/connect-payouts"+ className="font-semibold text-black underline underline-offset-4"+ >+ Connect a payout method+ </Link>{" "}+ to get paid for your referrals.+ </Text>++ <Text className="mb-4 text-sm leading-6 text-gray-600">+ <strong className="font-medium text-black">+ 3. Join a program</strong>: If you haven't already, join an affiliate program, or enroll inour own{" "}<Link- href="https://partners.dub.co/programs/dub/apply"+ href="https://ship.dub.co/dub-program"className="font-semibold text-black underline underline-offset-4">Dub Affiliate Program@@ -63,37 +92,23 @@ export default function WelcomeEmailPartner({<Text className="mb-4 text-sm leading-6 text-gray-600"><strong className="font-medium text-black">- 2. Create referral links+ 4. Start sharing your links</strong>: Once you've joined a program, you can start sharing and creatingadditional referral links.</Text>- <Text className="mb-4 text-sm leading-6 text-gray-600">- <strong className="font-medium text-black">- 3. Track your performance- </strong>- : Monitor traffic and earnings with real-time analytics- </Text>-<Text className="mb-8 text-sm leading-6 text-gray-600"><strong className="font-medium text-black">- 4. Set up payouts+ 5. Track your performance</strong>- :{" "}- <Link- href="https://partners.dub.co/payouts"- className="font-semibold text-black underline underline-offset-4"- >- Connect a payout method- </Link>{" "}- to get paid for your referrals.+ : Monitor traffic and earnings with real-time analytics</Text><Section className="mb-8"><LinkclassName="rounded-lg bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"- href="https://partners.dub.co"+ href="https://ship.dub.co/partners-dashboard">Go to your dashboard</Link>