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.

docs url + @dub packages changes

Steven Tey647d0d63b799
diff --git a/apps/web/lib/zod/schemas/domains.ts b/apps/web/lib/zod/schemas/domains.ts
index 315ee8fd07..3955c1195a 100644
--- a/apps/web/lib/zod/schemas/domains.ts
+++ b/apps/web/lib/zod/schemas/domains.ts
@@ -39,7 +39,7 @@ export const DomainSchema = z.object({
.describe(
"Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.",
)
- .meta({ example: "https://dub.co/help/article/what-is-dub" }),
+ .meta({ example: "https://dub.co/help/article/dub-links" }),
expiredUrl: z
.string()
.nullable()
@@ -142,7 +142,7 @@ export const createDomainBodySchema = z.object({
.describe(
"Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.",
)
- .meta({ example: "https://dub.co/help/article/what-is-dub" }),
+ .meta({ example: "https://dub.co/help/article/dub-links" }),
logo: uploadedImageSchema.nullish().describe("The logo of the domain."),
assetLinks: z
.string()
diff --git a/apps/web/scripts/update-not-found.ts b/apps/web/scripts/update-not-found.ts
index 66cc1c49b8..f3a8fa01d3 100644
--- a/apps/web/scripts/update-not-found.ts
+++ b/apps/web/scripts/update-not-found.ts
@@ -4,7 +4,7 @@ import "dotenv-flow/config";
async function main() {
const domains = await prisma.domain.updateMany({
where: {
- placeholder: "https://dub.co/help/article/what-is-dub",
+ placeholder: "https://dub.co/help/article/dub-links",
},
data: {
placeholder: null,
diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
index d6a3b50e5b..08ade395f7 100644
--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
@@ -37,13 +37,13 @@ import {
ShieldKeyhole,
Sliders,
Tag,
+ Trophy,
UserCheck,
UserPlus,
Users,
Users6,
Webhook,
} from "@dub/ui/icons";
-import { Trophy } from "lucide-react";
import { Session } from "next-auth";
import { useSession } from "next-auth/react";
import { useParams, usePathname } from "next/navigation";
diff --git a/apps/web/ui/links/destination-url-input.tsx b/apps/web/ui/links/destination-url-input.tsx
index 453f73cf9a..ed8fcb0d54 100644
--- a/apps/web/ui/links/destination-url-input.tsx
+++ b/apps/web/ui/links/destination-url-input.tsx
@@ -62,7 +62,7 @@ export const DestinationUrlInput = forwardRef<
id={inputId}
placeholder={
domains?.find(({ slug }) => slug === domain)?.placeholder ||
- "https://dub.co/help/article/what-is-dub"
+ "https://dub.co/help/article/dub-links"
}
autoFocus={!key && !isMobile}
autoComplete="off"
diff --git a/apps/web/ui/modals/link-builder/ab-testing-modal.tsx b/apps/web/ui/modals/link-builder/ab-testing-modal.tsx
index 2138b12793..ce913db69d 100644
--- a/apps/web/ui/modals/link-builder/ab-testing-modal.tsx
+++ b/apps/web/ui/modals/link-builder/ab-testing-modal.tsx
@@ -289,7 +289,7 @@ function ABTestingModal({
placeholder={
domains?.find(({ slug }) => slug === domain)
?.placeholder ||
- "https://dub.co/help/article/what-is-dub"
+ "https://dub.co/help/article/dub-links"
}
className="block h-9 grow border-none px-2 text-neutral-900 placeholder-neutral-400 focus:ring-0 sm:text-sm"
{...register(`testVariants.${index}.url`, {
diff --git a/apps/web/ui/modals/link-builder/ab-testing/ab-testing-modal.tsx b/apps/web/ui/modals/link-builder/ab-testing/ab-testing-modal.tsx
index 8bd76ab44c..a2b49e9b3a 100644
--- a/apps/web/ui/modals/link-builder/ab-testing/ab-testing-modal.tsx
+++ b/apps/web/ui/modals/link-builder/ab-testing/ab-testing-modal.tsx
@@ -332,7 +332,7 @@ function ABTestingEdit({
placeholder={
domains?.find(({ slug }) => slug === domain)
?.placeholder ||
- "https://dub.co/help/article/what-is-dub"
+ "https://dub.co/help/article/dub-links"
}
className="block h-9 grow border-none px-2 text-neutral-900 placeholder-neutral-400 focus:ring-0 sm:text-sm"
{...register(`testVariants.${index}.url`, {
diff --git a/apps/web/ui/partners/partners-upgrade-modal.tsx b/apps/web/ui/partners/partners-upgrade-modal.tsx
index 1ea367bef0..756cf4416f 100644
--- a/apps/web/ui/partners/partners-upgrade-modal.tsx
+++ b/apps/web/ui/partners/partners-upgrade-modal.tsx
@@ -77,6 +77,16 @@ export function PartnersUpgradeModal({
href: "https://dub.co/docs/partners/embedded-referrals",
},
},
+ {
+ id: "email",
+ text: "Email campaigns",
+ tooltip: {
+ title:
+ "Send marketing and transactional emails to your partners to increase engagement and drive conversions.",
+ cta: "Learn more.",
+ href: "https://dub.co/help/article/email-campaigns",
+ },
+ },
{
id: "messages",
text: "Messaging center",
@@ -88,13 +98,13 @@ export function PartnersUpgradeModal({
},
},
{
- id: "email",
- text: "Email campaigns",
+ id: "sso",
+ text: "Fraud detection",
tooltip: {
title:
- "Send marketing and transactional emails to your partners to increase engagement and drive conversions.",
+ "Safeguard your partner program by automatically flagging, reviewing, and resolving suspicious activity.",
cta: "Learn more.",
- href: "https://dub.co/help/article/email-campaigns",
+ href: "https://dub.co/help/article/fraud-detection",
},
},
{
diff --git a/packages/email/src/templates/welcome-email.tsx b/packages/email/src/templates/welcome-email.tsx
index 4d2f309fc5..911168a782 100644
--- a/packages/email/src/templates/welcome-email.tsx
+++ b/packages/email/src/templates/welcome-email.tsx
@@ -280,7 +280,7 @@ export default function WelcomeEmail({
<Text className="mb-4 text-sm leading-6 text-neutral-600">
4. Explore the API:{" "}
<Link
- href="https://dub.co/docs/introduction"
+ href="https://dub.co//docs"
className="text-neutral-600 underline underline-offset-2"
>
Check out our docs
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 09d35f92a8..1503234857 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/ui",
"description": "UI components for Dub",
- "version": "0.2.68",
+ "version": "0.2.69",
"sideEffects": false,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
diff --git a/packages/ui/src/content.ts b/packages/ui/src/content.ts
index 7ba2fb9d87..957a4a405a 100644
--- a/packages/ui/src/content.ts
+++ b/packages/ui/src/content.ts
@@ -148,7 +148,7 @@ export const RESOURCES = [
icon: Book2Fill,
title: "Docs",
description: "Platform documentation",
- href: "/docs/introduction",
+ href: "/docs",
},
{
icon: UsersFill,
diff --git a/packages/ui/src/footer.tsx b/packages/ui/src/footer.tsx
index a4e9ab5210..4b2e35f793 100644
--- a/packages/ui/src/footer.tsx
+++ b/packages/ui/src/footer.tsx
@@ -62,7 +62,7 @@ const navigation = {
{ name: "Affiliate management", href: "/partners" },
],
resources: [
- { name: "Docs", href: "/docs/introduction" },
+ { name: "Docs", href: "/docs" },
{ name: "Help Center", href: "/help" },
{ name: "Integrations", href: "/integrations" },
{ name: "Pricing", href: "/pricing" },
diff --git a/packages/ui/src/icons/plan-feature-icons.tsx b/packages/ui/src/icons/plan-feature-icons.tsx
index f8f014397b..fc14bf66ff 100644
--- a/packages/ui/src/icons/plan-feature-icons.tsx
+++ b/packages/ui/src/icons/plan-feature-icons.tsx
@@ -23,6 +23,7 @@ import {
Shuffle,
Sparkle3,
SquareLayoutGrid5,
+ Trophy,
UserCrown,
UserFocus,
Users2,
@@ -65,6 +66,8 @@ export const PLAN_FEATURE_ICONS = {
payouts: MoneyBills2,
basicrewards: Gift,
flexiblerewards: Shuffle,
+ bounties: Trophy,
+ frauddetection: ShieldKeyhole,
ailandingpage: Sparkle3,
customerinsights: UserFocus,
partners: ConnectedDots4,
diff --git a/packages/ui/src/nav/content/resources-content.tsx b/packages/ui/src/nav/content/resources-content.tsx
index 51cbf2fcb2..1cba2fcadd 100644
--- a/packages/ui/src/nav/content/resources-content.tsx
+++ b/packages/ui/src/nav/content/resources-content.tsx
@@ -23,7 +23,7 @@ const mainLinks = [
title: "Docs",
description: "Platform documentation",
thumbnail: "https://assets.dub.co/misc/docs-thumbnail.jpg",
- href: "/docs/introduction",
+ href: "/docs",
},
];
diff --git a/packages/utils/package.json b/packages/utils/package.json
index 83172cc5fb..ac4debdec8 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/utils",
"description": "Utility functions and constants for Dub",
- "version": "0.1.50",
+ "version": "0.1.51",
"sideEffects": false,
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
diff --git a/packages/utils/src/constants/dub-domains.ts b/packages/utils/src/constants/dub-domains.ts
index 31a07c702f..1a08002ad5 100644
--- a/packages/utils/src/constants/dub-domains.ts
+++ b/packages/utils/src/constants/dub-domains.ts
@@ -7,7 +7,7 @@ export const DUB_DOMAINS = [
verified: true,
primary: true,
archived: false,
- placeholder: "https://dub.co/help/article/what-is-dub",
+ placeholder: "https://dub.co/help/article/dub-links",
allowedHostnames: [],
description: "The default domain for all new accounts.",
projectId: DUB_WORKSPACE_ID,
@@ -20,7 +20,7 @@ export const DUB_DOMAINS = [
verified: true,
primary: true,
archived: false,
- placeholder: "https://dub.co/help/article/what-is-dub",
+ placeholder: "https://dub.co/help/article/dub-links",
allowedHostnames: [],
description:
"Premium short domain on Dub – only available on our Pro plan and above.",
diff --git a/packages/utils/src/constants/pricing/pricing-plan-main-features.ts b/packages/utils/src/constants/pricing/pricing-plan-main-features.ts
index 853f4cfcb4..a1d37a02a3 100644
--- a/packages/utils/src/constants/pricing/pricing-plan-main-features.ts
+++ b/packages/utils/src/constants/pricing/pricing-plan-main-features.ts
@@ -192,6 +192,26 @@ export const PRICING_PLAN_MAIN_FEATURES = {
href: "https://dub.co/help/article/dual-sided-incentives",
},
},
+ {
+ id: "bounties",
+ text: "Program bounties",
+ tooltip: {
+ title:
+ "Drive partner engagement by creating performance and submission bounties for your partner program.",
+ cta: "Learn more.",
+ href: "https://dub.co/help/article/program-bounties",
+ },
+ },
+ {
+ id: "analytics",
+ text: "Real-time analytics",
+ tooltip: {
+ title:
+ "Get real-time insights into your partner program's performance and engagement.",
+ cta: "Learn more.",
+ href: "https://dub.co/help/article/program-analytics",
+ },
+ },
{
id: "ailandingpage",
text: "AI landing page generator",
@@ -234,13 +254,13 @@ export const PRICING_PLAN_MAIN_FEATURES = {
},
},
{
- id: "embeddedreferrals",
- text: "Embedded referral dashboard",
+ id: "email",
+ text: "Email campaigns",
tooltip: {
title:
- "Create an embedded referral dashboard directly in your app in just a few lines of code.",
+ "Send marketing and transactional emails to your partners to increase engagement and drive conversions.",
cta: "Learn more.",
- href: "https://dub.co/docs/partners/embedded-referrals",
+ href: "https://dub.co/help/article/email-campaigns",
},
},
{
@@ -251,6 +271,26 @@ export const PRICING_PLAN_MAIN_FEATURES = {
"Easily communicate with your partners using our messaging center.",
},
},
+ {
+ id: "frauddetection",
+ text: "Fraud detection",
+ tooltip: {
+ title:
+ "Safeguard your partner program by automatically flagging, reviewing, and resolving suspicious activity.",
+ cta: "Learn more.",
+ href: "https://dub.co/help/article/fraud-detection",
+ },
+ },
+ {
+ id: "embeddedreferrals",
+ text: "Embedded referral dashboard",
+ tooltip: {
+ title:
+ "Create an embedded referral dashboard directly in your app in just a few lines of code.",
+ cta: "Learn more.",
+ href: "https://dub.co/docs/partners/embedded-referrals",
+ },
+ },
{
id: "api",
text: "Partners API",
@@ -280,6 +320,14 @@ export const PRICING_PLAN_MAIN_FEATURES = {
"Get access to our network of 5,000+ active affiliate partners.",
},
},
+ {
+ id: "volume",
+ text: "Volume discounts",
+ tooltip: {
+ title:
+ "Get access to volume discounts for payout fees and tracked events usage.",
+ },
+ },
{
id: "sso",
text: "SSO/SAML",