The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Support markdown in tooltip content via `TooltipMarkdown` (#3083)
Steven Tey049127a26adb
diff --git a/apps/web/app/(ee)/api/cron/links/[linkId]/complete-tests/route.ts b/apps/web/app/(ee)/api/cron/links/[linkId]/complete-tests/route.tsindex 3ffe2dbe19..da3657115e 100644--- a/apps/web/app/(ee)/api/cron/links/[linkId]/complete-tests/route.ts+++ b/apps/web/app/(ee)/api/cron/links/[linkId]/complete-tests/route.ts@@ -9,13 +9,11 @@ export async function POST(req: Request,props: {params: Promise<{ linkId: string }>;- }+ },) {const params = await props.params;- const {- linkId- } = params;+ const { linkId } = params;try {const rawBody = await req.text();diff --git a/apps/web/app/(ee)/api/mock/rewardful/campaigns/[campaignId]/route.ts b/apps/web/app/(ee)/api/mock/rewardful/campaigns/[campaignId]/route.tsindex 4d63ea546d..32d38637d4 100644--- a/apps/web/app/(ee)/api/mock/rewardful/campaigns/[campaignId]/route.ts+++ b/apps/web/app/(ee)/api/mock/rewardful/campaigns/[campaignId]/route.ts@@ -1,7 +1,10 @@import { NextResponse } from "next/server";import { campaigns } from "../campaigns";-export async function GET(request: Request, props: { params: Promise<{ campaignId: string }> }) {+export async function GET(+ request: Request,+ props: { params: Promise<{ campaignId: string }> },+) {const params = await props.params;const { campaignId } = params;diff --git a/apps/web/app/(ee)/app.dub.co/embed/referrals/add-edit-link.tsx b/apps/web/app/(ee)/app.dub.co/embed/referrals/add-edit-link.tsxindex 9816c38fb1..62806ba819 100644--- a/apps/web/app/(ee)/app.dub.co/embed/referrals/add-edit-link.tsx+++ b/apps/web/app/(ee)/app.dub.co/embed/referrals/add-edit-link.tsx@@ -5,7 +5,6 @@ import {Button,Combobox,InfoTooltip,- SimpleTooltipContent,TAB_ITEM_ANIMATION_SETTINGS,useCopyToClipboard,useMediaQuery,@@ -189,11 +188,7 @@ export function ReferralsEmbedCreateUpdateLink({</label><InfoTooltipcontent={- <SimpleTooltipContent- title="The URL that will be shared with your users. Keep it short and memorable!"- cta="Learn more."- href="https://dub.co/help/article/how-to-create-link"- />+ "The URL that will be shared with your users. Keep it short and memorable! [Learn more.](https://dub.co/help/article/how-to-create-link)"}/></div>@@ -252,11 +247,7 @@ export function ReferralsEmbedCreateUpdateLink({</label><InfoTooltipcontent={- <SimpleTooltipContent- title="The URL your users will get redirected to when they visit your referral link."- cta="Learn more."- href="https://dub.co/help/article/how-to-create-link"- />+ "The URL your users will get redirected to when they visit your referral link. [Learn more.](https://dub.co/help/article/how-to-create-link)"}/></div>diff --git a/apps/web/app/(ee)/app.dub.co/embed/referrals/page.tsx b/apps/web/app/(ee)/app.dub.co/embed/referrals/page.tsxindex 49edd0c138..810b2d468a 100644--- a/apps/web/app/(ee)/app.dub.co/embed/referrals/page.tsx+++ b/apps/web/app/(ee)/app.dub.co/embed/referrals/page.tsx@@ -6,15 +6,13 @@ import { ReferralsEmbedPageClient } from "./page-client";import { parseThemeOptions, ThemeOptions } from "./theme-options";import { getReferralsEmbedData } from "./utils";-export default async function ReferralsEmbedPage(- props: {- searchParams: Promise<{- token: string;- themeOptions?: string;- dynamicHeight?: string;- }>;- }-) {+export default async function ReferralsEmbedPage(props: {+ searchParams: Promise<{+ token: string;+ themeOptions?: string;+ dynamicHeight?: string;+ }>;+}) {const searchParams = await props.searchParams;const {token,diff --git a/apps/web/app/(ee)/app.dub.co/embed/referrals/utils.ts b/apps/web/app/(ee)/app.dub.co/embed/referrals/utils.tsindex 33cdde7673..9e8a8d2dd7 100644--- a/apps/web/app/(ee)/app.dub.co/embed/referrals/utils.ts+++ b/apps/web/app/(ee)/app.dub.co/embed/referrals/utils.ts@@ -1,7 +1,7 @@+import { serializeReward } from "@/lib/api/partners/serialize-reward";import { getProgramEnrollmentOrThrow } from "@/lib/api/programs/get-program-enrollment-or-throw";import { referralsEmbedToken } from "@/lib/embed/referrals/token-class";import { aggregatePartnerLinksStats } from "@/lib/partners/aggregate-partner-links-stats";-import { serializeReward } from "@/lib/api/partners/serialize-reward";import { PartnerGroupProps } from "@/lib/types";import { ReferralsEmbedLinkSchema } from "@/lib/zod/schemas/referrals-embed";import { prisma } from "@dub/prisma";diff --git a/apps/web/app/(ee)/partners.dub.co/(auth)/auth/reset-password/[token]/page.tsx b/apps/web/app/(ee)/partners.dub.co/(auth)/auth/reset-password/[token]/page.tsxindex 8cce233b72..709b2f5e12 100644--- a/apps/web/app/(ee)/partners.dub.co/(auth)/auth/reset-password/[token]/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(auth)/auth/reset-password/[token]/page.tsx@@ -12,9 +12,7 @@ interface Props {export default async function ResetPasswordPage(props: Props) {const params = await props.params;- const {- token- } = params;+ const { token } = params;const validToken = await isValidToken(token);diff --git a/apps/web/app/(ee)/partners.dub.co/(auth)/register/page.tsx b/apps/web/app/(ee)/partners.dub.co/(auth)/register/page.tsxindex 2229122214..39e511b5cc 100644--- a/apps/web/app/(ee)/partners.dub.co/(auth)/register/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(auth)/register/page.tsx@@ -4,16 +4,12 @@ import { cookies } from "next/headers";import { redirect } from "next/navigation";import RegisterPageClient from "./page-client";-export default async function RegisterPage(- props: {- params: Promise<{ programSlug?: string }>;- }-) {+export default async function RegisterPage(props: {+ params: Promise<{ programSlug?: string }>;+}) {const params = await props.params;- const {- programSlug- } = params;+ const { programSlug } = params;if (programSlug === "framer") {redirect("/framer/login");diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/messages/layout.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/messages/layout.tsxindex 16776295ab..401b5aeea4 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/messages/layout.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/messages/layout.tsx@@ -5,12 +5,7 @@ import { NavButton } from "@/ui/layout/page-content/nav-button";import { MessagesContext, MessagesPanel } from "@/ui/messages/messages-context";import { MessagesList } from "@/ui/messages/messages-list";import { ProgramSelector } from "@/ui/partners/program-selector";-import {- Button,- InfoTooltip,- SimpleTooltipContent,- useRouterStuff,-} from "@dub/ui";+import { Button, InfoTooltip, useRouterStuff } from "@dub/ui";import { Msgs, Pen2 } from "@dub/ui/icons";import { useParams, useRouter } from "next/navigation";import { CSSProperties, ReactNode, useEffect, useState } from "react";@@ -55,11 +50,7 @@ export default function MessagesLayout({ children }: { children: ReactNode }) {</h1><InfoTooltipcontent={- <SimpleTooltipContent- title="Use the messaging center to communicate with the programs you partner with and stay up to date with their latest updates."- cta="Learn more"- href="https://dub.co/help/article/communicating-with-programs"- />+ "Use the messaging center to communicate with the programs you partner with and stay up to date with their latest updates. [Learn more](https://dub.co/help/article/communicating-with-programs)"}/></div>diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/partner-payout-settings-sheet.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/partner-payout-settings-sheet.tsxindex 338cdf0bbe..00cc92a24d 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/partner-payout-settings-sheet.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/partner-payout-settings-sheet.tsx@@ -13,7 +13,6 @@ import {Button,InfoTooltip,Sheet,- SimpleTooltipContent,useScrollProgress,} from "@dub/ui";import {@@ -127,11 +126,7 @@ function PartnerPayoutSettingsSheetInner({Payout settings{" "}<InfoTooltipcontent={- <SimpleTooltipContent- title="Learn how to set up your payout account and receive payouts."- cta="Learn more."- href="https://dub.co/help/article/receiving-payouts"- />+ "Learn how to set up your payout account and receive payouts. [Learn more.](https://dub.co/help/article/receiving-payouts)"}/></Sheet.Title>diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-table.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-table.tsxindex 18fadefa72..8fc5b421e8 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-table.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-table.tsx@@ -11,7 +11,6 @@ import { PayoutStatus } from "@dub/prisma/client";import {AnimatedSizeContainer,Filter,- SimpleTooltipContent,Table,Tooltip,usePagination,@@ -230,15 +229,9 @@ function AmountRowItem({ payout }: { payout: PartnerPayoutResponse }) {) {return (<Tooltip- content={- <SimpleTooltipContent- title={`This program's minimum payout amount is ${currencyFormatter(- payout.program.minPayoutAmount / 100,- )}. This payout will be accrued and processed during the next payout period.`}- cta="Learn more."- href="https://dub.co/help/article/receiving-payouts"- />- }+ content={`This program's minimum payout amount is ${currencyFormatter(+ payout.program.minPayoutAmount / 100,+ )}. This payout will be accrued and processed during the next payout period. [Learn more.](https://dub.co/help/article/receiving-payouts)`}><span className="cursor-help truncate text-neutral-400 underline decoration-dotted underline-offset-2">{display}diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/links/partner-link-card.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/links/partner-link-card.tsxindex cc451b01fe..4009780693 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/links/partner-link-card.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/links/partner-link-card.tsx@@ -15,7 +15,6 @@ import {InvoiceDollar,LinkLogo,LoadingSpinner,- SimpleTooltipContent,StatusBadge,Tooltip,useInViewport,@@ -189,11 +188,7 @@ export function PartnerLinkCard({ link }: { link: PartnerProfileLinkProps }) {{link.discountCode && (<Tooltipcontent={- <SimpleTooltipContent- title="This program supports discount code tracking. Copy the code to use it in podcasts, videos, etc."- cta="Learn more"- href="https://dub.co/help/article/dual-sided-incentives"- />+ "This program supports discount code tracking. Copy the code to use it in podcasts, videos, etc. [Learn more](https://dub.co/help/article/dual-sided-incentives)"}><div className="flex items-center gap-1.5 rounded-xl border border-neutral-200 py-1 pl-2 pr-1">diff --git a/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/online-presence/page.tsx b/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/online-presence/page.tsxindex ac926515ad..5778b5f2f1 100644--- a/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/online-presence/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/online-presence/page.tsx@@ -83,12 +83,24 @@ async function OnlinePresenceFormRSC() {country={partner.country}partner={{...partner,- ...(application?.website && !partner.website ? { website: application?.website } : {}),- ...(application?.tiktok && !partner.tiktok ? { tiktok: application?.tiktok } : {}),- ...(application?.youtube && !partner.youtube ? { youtube: application?.youtube } : {}),- ...(application?.twitter && !partner.twitter ? { twitter: application?.twitter } : {}),- ...(application?.linkedin && !partner.linkedin ? { linkedin: application?.linkedin } : {}),- ...(application?.instagram && !partner.instagram ? { instagram: application?.instagram } : {}),+ ...(application?.website && !partner.website+ ? { website: application?.website }+ : {}),+ ...(application?.tiktok && !partner.tiktok+ ? { tiktok: application?.tiktok }+ : {}),+ ...(application?.youtube && !partner.youtube+ ? { youtube: application?.youtube }+ : {}),+ ...(application?.twitter && !partner.twitter+ ? { twitter: application?.twitter }+ : {}),+ ...(application?.linkedin && !partner.linkedin+ ? { linkedin: application?.linkedin }+ : {}),+ ...(application?.instagram && !partner.instagram+ ? { instagram: application?.instagram }+ : {}),}}/>);diff --git a/apps/web/app/(ee)/partners.dub.co/(redirects)/apply/[programSlug]/[[...slug]]/page.tsx b/apps/web/app/(ee)/partners.dub.co/(redirects)/apply/[programSlug]/[[...slug]]/page.tsxindex 53dc3380f8..8560dc9124 100644--- a/apps/web/app/(ee)/partners.dub.co/(redirects)/apply/[programSlug]/[[...slug]]/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(redirects)/apply/[programSlug]/[[...slug]]/page.tsx@@ -1,10 +1,8 @@import { redirect } from "next/navigation";-export default async function OldApplyPage(- props: {- params: Promise<{ programSlug: string; slug: string[] }>;- }-) {+export default async function OldApplyPage(props: {+ params: Promise<{ programSlug: string; slug: string[] }>;+}) {const params = await props.params;const { programSlug, slug } = params;if (slug && slug.includes("application")) {diff --git a/apps/web/app/[domain]/not-found/page.tsx b/apps/web/app/[domain]/not-found/page.tsxindex 0d63ed896a..9292ab9fa9 100644--- a/apps/web/app/[domain]/not-found/page.tsx+++ b/apps/web/app/[domain]/not-found/page.tsx@@ -21,11 +21,9 @@ const UTM_PARAMS = {utm_medium: "Link Not Found Page",};-export default async function NotFoundLinkPage(- props: {- params: Promise<{ domain: string }>;- }-) {+export default async function NotFoundLinkPage(props: {+ params: Promise<{ domain: string }>;+}) {const params = await props.params;return (<main className="flex min-h-screen flex-col justify-between">diff --git a/apps/web/app/[domain]/page.tsx b/apps/web/app/[domain]/page.tsxindex 3c641ea787..d0fc8cd2eb 100644--- a/apps/web/app/[domain]/page.tsx+++ b/apps/web/app/[domain]/page.tsx@@ -3,7 +3,9 @@ import PlaceholderContent from "./placeholder";export const revalidate = false; // cache indefinitely-export async function generateMetadata(props: { params: Promise<{ domain: string }> }) {+export async function generateMetadata(props: {+ params: Promise<{ domain: string }>;+}) {const params = await props.params;const title = `${params.domain.toUpperCase()} - A ${process.env.NEXT_PUBLIC_APP_NAMEdiff --git a/apps/web/app/[domain]/stats/[key]/page.tsx b/apps/web/app/[domain]/stats/[key]/page.tsxindex 3dfedbbd29..9b2b0a3792 100644--- a/apps/web/app/[domain]/stats/[key]/page.tsx+++ b/apps/web/app/[domain]/stats/[key]/page.tsx@@ -4,11 +4,9 @@ import { redirect } from "next/navigation";export const runtime = "edge";-export default async function OldStatsPage(- props: {- params: Promise<{ domain: string; key: string }>;- }-) {+export default async function OldStatsPage(props: {+ params: Promise<{ domain: string; key: string }>;+}) {const params = await props.params;const link = await prismaEdge.link.findUnique({where: {diff --git a/apps/web/app/api/links/route.ts b/apps/web/app/api/links/route.tsindex 64948760c2..d123e51152 100644--- a/apps/web/app/api/links/route.ts+++ b/apps/web/app/api/links/route.ts@@ -1,7 +1,7 @@import { DubApiError, ErrorCodes } from "@/lib/api/errors";import { createLink, getLinksForWorkspace, processLink } from "@/lib/api/links";-import { validateLinksQueryFilters } from "@/lib/api/links/validate-links-query-filters";import { throwIfLinksUsageExceeded } from "@/lib/api/links/usage-checks";+import { validateLinksQueryFilters } from "@/lib/api/links/validate-links-query-filters";import { parseRequestBody } from "@/lib/api/utils";import { withWorkspace } from "@/lib/auth";import { ratelimit } from "@/lib/upstash";diff --git a/apps/web/app/api/og/avatar/[[...seed]]/route.tsx b/apps/web/app/api/og/avatar/[[...seed]]/route.tsxindex 54e2d602fc..62ade8ef8d 100644--- a/apps/web/app/api/og/avatar/[[...seed]]/route.tsx+++ b/apps/web/app/api/og/avatar/[[...seed]]/route.tsx@@ -4,7 +4,10 @@ import { getTheme } from "./utils";export const runtime = "edge";-export async function GET(req: NextRequest, props: { params: Promise<{ seed?: string[] }> }) {+export async function GET(+ req: NextRequest,+ props: { params: Promise<{ seed?: string[] }> },+) {const params = await props.params;const origin = req.headers.get("origin");// Validate the origin header and set CORS headers accordinglydiff --git a/apps/web/app/app.dub.co/(auth)/auth/reset-password/[token]/page.tsx b/apps/web/app/app.dub.co/(auth)/auth/reset-password/[token]/page.tsxindex 29c84147c8..942119e04c 100644--- a/apps/web/app/app.dub.co/(auth)/auth/reset-password/[token]/page.tsx+++ b/apps/web/app/app.dub.co/(auth)/auth/reset-password/[token]/page.tsx@@ -13,9 +13,7 @@ interface Props {export default async function ResetPasswordPage(props: Props) {const params = await props.params;- const {- token- } = params;+ const { token } = params;const validToken = await isValidToken(token);diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/campaign-type-icon.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/campaign-type-icon.tsxindex ee5bd52b92..1e44cb0fe1 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/campaign-type-icon.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/campaign-type-icon.tsx@@ -22,4 +22,3 @@ export function CampaignTypeIcon({</div>);}-diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/commission-stats.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/commission-stats.tsxindex bc6ee4e4dd..7d271cecee 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/commission-stats.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/commission-stats.tsx@@ -41,7 +41,7 @@ export function CommissionStats() {icon={CommissionStatusBadges.pending.icon}iconClassName={CommissionStatusBadges.pending.className}variant="loose"- tooltip={`Commissions that are pending and will be eligible for payout after your program's ${program?.holdingPeriodDays}-day holding period.`}+ tooltip={`Commissions that are pending and will be eligible for payout ${program?.holdingPeriodDays ? `after your program's ${program?.holdingPeriodDays}-day holding period` : "shortly"}.`}error={!!error}/><ProgramStatsFilterdiff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/add-edit-group-default-link-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/add-edit-group-default-link-sheet.tsxindex 72781ebb9a..c58af87612 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/add-edit-group-default-link-sheet.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/links/add-edit-group-default-link-sheet.tsx@@ -9,13 +9,7 @@ import { PartnerGroupDefaultLink } from "@/lib/types";import { createOrUpdateDefaultLinkSchema } from "@/lib/zod/schemas/groups";import { RewardIconSquare } from "@/ui/partners/rewards/reward-icon-square";import { X } from "@/ui/shared/icons";-import {- Button,- InfoTooltip,- Input,- Sheet,- SimpleTooltipContent,-} from "@dub/ui";+import { Button, InfoTooltip, Input, Sheet } from "@dub/ui";import { Eye, Hyperlink } from "@dub/ui/icons";import { normalizeUrl } from "@dub/utils";import {@@ -127,11 +121,7 @@ function DefaultPartnerLinkSheetContent({</label><InfoTooltipcontent={- <SimpleTooltipContent- title="Where people will be redirected after clicking the referral links"- cta="Learn more"- href="https://dub.co/help/article/destination-urls"- />+ "Where people will be redirected after clicking the referral links [Learn more](https://dub.co/help/article/destination-urls)"}/></div>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 d26b72d902..fc38a681fc 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@@ -16,7 +16,6 @@ import {LinkLogo,NumberStepper,Popover,- SimpleTooltipContent,Switch,} from "@dub/ui";import { PenWriting, Trash } from "@dub/ui/icons";@@ -44,11 +43,7 @@ export function GroupAdditionalLinks() {</h3><InfoTooltipcontent={- <SimpleTooltipContent- title="Allow partners to create additional referral links."- cta="Learn more."- href="https://dub.co/help/article/partner-link-settings#additional-partner-links"- />+ "Allow partners to create additional referral links. [Learn more.](https://dub.co/help/article/partner-link-settings#additional-partner-links)"}/></div>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 a9bbf4a201..d796a24e0f 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,13 +8,7 @@ import { PartnerGroupDefaultLink } from "@/lib/types";import { MAX_DEFAULT_LINKS_PER_GROUP } from "@/lib/zod/schemas/groups";import { useConfirmModal } from "@/ui/modals/confirm-modal";import { ThreeDots } from "@/ui/shared/icons";-import {- Button,- Hyperlink,- InfoTooltip,- Popover,- SimpleTooltipContent,-} from "@dub/ui";+import { Button, Hyperlink, InfoTooltip, Popover } from "@dub/ui";import { PenWriting, Trash } from "@dub/ui/icons";import { cn, getPrettyUrl, getUrlWithoutUTMParams } from "@dub/utils";import { useState } from "react";@@ -41,11 +35,7 @@ export function GroupDefaultLinks() {</h3><InfoTooltipcontent={- <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"- />+ "Default links are links that are automatically created for each partner in this group. [Learn more.](https://dub.co/help/article/partner-link-settings#default-referral-links)"}/></div>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 38bb460eab..7e4d116ef4 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,13 +8,7 @@ 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,- InfoTooltip,- SimpleTooltipContent,- UTMBuilder,-} from "@dub/ui";+import { Badge, Button, InfoTooltip, UTMBuilder } from "@dub/ui";import { CircleCheckFill } from "@dub/ui/icons";import { cn, deepEqual } from "@dub/utils";import { PropsWithChildren, useState } from "react";@@ -308,11 +302,9 @@ function SettingsRow({{titleInfo && (<InfoTooltipcontent={- <SimpleTooltipContent- title={titleInfo?.title}- cta="Learn more."- href={titleInfo?.href}- />+ titleInfo?.href+ ? `${titleInfo.title} [Learn more.](${titleInfo.href})`+ : titleInfo?.title}/>)}diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/messages/layout.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/messages/layout.tsxindex 8131176be7..50572fa968 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/messages/layout.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/messages/layout.tsx@@ -9,7 +9,7 @@ import { NavButton } from "@/ui/layout/page-content/nav-button";import { MessagesContext, MessagesPanel } from "@/ui/messages/messages-context";import { MessagesList } from "@/ui/messages/messages-list";import { PartnerSelector } from "@/ui/partners/partner-selector";-import { Button, InfoTooltip, SimpleTooltipContent } from "@dub/ui";+import { Button, InfoTooltip } from "@dub/ui";import { Msgs, Pen2 } from "@dub/ui/icons";import { useParams, useRouter } from "next/navigation";import { CSSProperties, ReactNode, useState } from "react";@@ -66,11 +66,7 @@ function CapableLayout({ children }: { children: ReactNode }) {</h1><InfoTooltipcontent={- <SimpleTooltipContent- title="Chat with your partners in real time, with email notifications & read statuses built in."- cta="Learn more"- href="https://dub.co/help/article/messaging-partners"- />+ "Chat with your partners in real time, with email notifications & read statuses built in. [Learn more](https://dub.co/help/article/messaging-partners)"}/></div>diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/applications/rejected/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/applications/rejected/page.tsxindex 78acfbf5d0..e07f3ee328 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/applications/rejected/page.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/applications/rejected/page.tsx@@ -2,11 +2,9 @@ import { PageContent } from "@/ui/layout/page-content";import { PageWidthWrapper } from "@/ui/layout/page-width-wrapper";import { ProgramPartnersRejectedApplicationsPageClient } from "./page-client";-export default async function ProgramPartnersRejectedApplications(- props: {- params: Promise<{ slug: string }>;- }-) {+export default async function ProgramPartnersRejectedApplications(props: {+ params: Promise<{ slug: string }>;+}) {const params = await props.params;return (<PageContentdiff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/invite-partner-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/invite-partner-sheet.tsxindex 159c484f92..41b8371f1d 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/invite-partner-sheet.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/invite-partner-sheet.tsx@@ -12,7 +12,6 @@ import {EyeSlash,InfoTooltip,Sheet,- SimpleTooltipContent,useLocalStorage,useMediaQuery,} from "@dub/ui";@@ -76,11 +75,7 @@ function InvitePartnerSheetContent({ setIsOpen }: InvitePartnerSheetProps) {Invite partner{" "}<InfoTooltipcontent={- <SimpleTooltipContent- title="Invite influencers, affiliates, and users to your program, or enroll them automatically."- cta="Learn more."- href="https://dub.co/help/article/inviting-partners"- />+ "Invite influencers, affiliates, and users to your program, or enroll them automatically. [Learn more.](https://dub.co/help/article/inviting-partners)"}/></Sheet.Title>diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/links/folders/[folderId]/members/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/links/folders/[folderId]/members/page.tsxindex 3919816d03..5f7def300d 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/links/folders/[folderId]/members/page.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/links/folders/[folderId]/members/page.tsx@@ -2,11 +2,9 @@ import { PageContent } from "@/ui/layout/page-content";import { PageWidthWrapper } from "@/ui/layout/page-width-wrapper";import { FolderMembersPageClient } from "./page-client";-export default async function FolderMembersPage(- props: {- params: Promise<{ folderId: string }>;- }-) {+export default async function FolderMembersPage(props: {+ params: Promise<{ folderId: string }>;+}) {const params = await props.params;const { folderId } = params;diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/[integrationSlug]/manage/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/[integrationSlug]/manage/page.tsxindex a5617efa9e..a4f3597991 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/[integrationSlug]/manage/page.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/[integrationSlug]/manage/page.tsx@@ -6,11 +6,9 @@ import { redirect } from "next/navigation";export const revalidate = 0;-export default async function IntegrationManagePage(- props: {- params: Promise<{ slug: string; integrationSlug: string }>;- }-) {+export default async function IntegrationManagePage(props: {+ params: Promise<{ slug: string; integrationSlug: string }>;+}) {const params = await props.params;// this is only available for Dub workspace for now// we might open this up to other workspaces in the futurediff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/[integrationSlug]/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/[integrationSlug]/page.tsxindex f99635cea6..253260678c 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/[integrationSlug]/page.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/[integrationSlug]/page.tsx@@ -5,11 +5,9 @@ import IntegrationPageClient from "./page-client";export const revalidate = 0;-export default async function IntegrationPage(- props: {- params: Promise<{ slug: string; integrationSlug: string }>;- }-) {+export default async function IntegrationPage(props: {+ params: Promise<{ slug: string; integrationSlug: string }>;+}) {const params = await props.params;const integration = await prisma.integration.findUnique({where: {diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/enabled/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/enabled/page.tsxindex f61ef049fe..00edaa0638 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/enabled/page.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/enabled/page.tsx@@ -12,11 +12,9 @@ import { Suspense } from "react";export const dynamic = "force-dynamic";export const revalidate = 0;-export default async function EnabledIntegrationsPage(- props: {- params: Promise<{ slug: string }>;- }-) {+export default async function EnabledIntegrationsPage(props: {+ params: Promise<{ slug: string }>;+}) {const params = await props.params;return (<div className="mx-auto flex w-full max-w-screen-md flex-col gap-8">diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/new/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/new/page.tsxindex 5064418b78..4369e0f2dc 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/new/page.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/(basic-layout)/integrations/new/page.tsx@@ -3,11 +3,9 @@ import { BackLink } from "@/ui/shared/back-link";import { MaxWidthWrapper } from "@dub/ui";import { redirect } from "next/navigation";-export default async function NewIntegrationsPage(- props: {- params: Promise<{ slug: string }>;- }-) {+export default async function NewIntegrationsPage(props: {+ params: Promise<{ slug: string }>;+}) {const params = await props.params;// this is only available for Dub workspace for now// we might open this up to other workspaces in the futurediff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/oauth-apps/[appId]/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/oauth-apps/[appId]/page.tsxindex 61beef8608..83e25183e9 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/oauth-apps/[appId]/page.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/oauth-apps/[appId]/page.tsx@@ -1,10 +1,8 @@import OAuthAppManagePageClient from "./page-client";-export default async function OAuthAppManagePage(- props: {- params: Promise<{ appId: string }>;- }-) {+export default async function OAuthAppManagePage(props: {+ params: Promise<{ appId: string }>;+}) {const params = await props.params;const { appId } = params;diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/edit/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/edit/page.tsxindex b1c1a74da2..e8e5215f35 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/edit/page.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/edit/page.tsx@@ -1,10 +1,8 @@import UpdateWebhookPageClient from "./page-client";-export default async function UpdateWebhookPage(- props: {- params: Promise<{ webhookId: string }>;- }-) {+export default async function UpdateWebhookPage(props: {+ params: Promise<{ webhookId: string }>;+}) {const params = await props.params;const { webhookId } = params;diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/layout.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/layout.tsxindex e97df44f8c..ef72696e1e 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/layout.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/layout.tsx@@ -1,17 +1,13 @@import WebhookHeader from "@/ui/webhooks/webhook-header";import { ReactNode } from "react";-export default async function WebhookLayout(- props: {- params: Promise<{ webhookId: string }>;- children: ReactNode;- }-) {+export default async function WebhookLayout(props: {+ params: Promise<{ webhookId: string }>;+ children: ReactNode;+}) {const params = await props.params;- const {- children- } = props;+ const { children } = props;return (<div className="max-w-screen grid gap-4">diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/page.tsxindex a5b1bcdf0c..324c6f3203 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/page.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/page.tsx@@ -1,10 +1,8 @@import WebhookEventsPageClient from "./page-client";-export default async function WebhookEventsPage(- props: {- params: Promise<{ webhookId: string }>;- }-) {+export default async function WebhookEventsPage(props: {+ params: Promise<{ webhookId: string }>;+}) {const params = await props.params;const { webhookId } = params;diff --git a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsx b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsxindex ca9f507868..2f465ca3bf 100644--- a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsx+++ b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsx@@ -8,11 +8,9 @@ import { redirect } from "next/navigation";import { DeepLinkActionButtons } from "./action-buttons";import { BrandLogoBadge } from "./brand-logo-badge";-export default async function DeepLinkPreviewPage(- props: {- params: Promise<{ domain: string; key: string }>;- }-) {+export default async function DeepLinkPreviewPage(props: {+ params: Promise<{ domain: string; key: string }>;+}) {const params = await props.params;const domain = params.domain;const key = decodeURIComponent(params.key);diff --git a/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/[year]/page.tsx b/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/[year]/page.tsxindex 839ae6d67f..6442699e5b 100644--- a/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/[year]/page.tsx+++ b/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/[year]/page.tsx@@ -3,11 +3,9 @@ import Link from "next/link";import { redirect } from "next/navigation";import WrappedPageClient from "./client";-export default async function WrappedPage(- props: {- params: Promise<{ slug: string; year: string }>;- }-) {+export default async function WrappedPage(props: {+ params: Promise<{ slug: string; year: string }>;+}) {const params = await props.params;if (params.year !== "2024") {redirect(`/${params.slug}`);diff --git a/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/page.tsx b/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/page.tsxindex 1ada5b5f8b..159dff8c1e 100644--- a/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/page.tsx+++ b/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/page.tsx@@ -1,10 +1,8 @@import { redirect } from "next/navigation";-export default async function WrappedParentPage(- props: {- params: Promise<{ slug: string }>;- }-) {+export default async function WrappedParentPage(props: {+ params: Promise<{ slug: string }>;+}) {const params = await props.params;redirect(`/${params.slug}/wrapped/2024`);}diff --git a/apps/web/app/app.dub.co/(redirects)/[slug]/domains/page.tsx b/apps/web/app/app.dub.co/(redirects)/[slug]/domains/page.tsxindex 8a9595f8ca..4baaeaa55f 100644--- a/apps/web/app/app.dub.co/(redirects)/[slug]/domains/page.tsx+++ b/apps/web/app/app.dub.co/(redirects)/[slug]/domains/page.tsx@@ -1,12 +1,10 @@import { redirect } from "next/navigation";-export default async function OldWorkspaceDomains(- props: {- params: Promise<{- slug: string;- }>;- }-) {+export default async function OldWorkspaceDomains(props: {+ params: Promise<{+ slug: string;+ }>;+}) {const params = await props.params;redirect(`/${params.slug}/settings/domains`);}diff --git a/apps/web/app/app.dub.co/(redirects)/[slug]/settings/tags/page.tsx b/apps/web/app/app.dub.co/(redirects)/[slug]/settings/tags/page.tsxindex 2091d906d5..489363b3b6 100644--- a/apps/web/app/app.dub.co/(redirects)/[slug]/settings/tags/page.tsx+++ b/apps/web/app/app.dub.co/(redirects)/[slug]/settings/tags/page.tsx@@ -1,12 +1,10 @@import { redirect } from "next/navigation";-export default async function OldWorkspaceTags(- props: {- params: Promise<{- slug: string;- }>;- }-) {+export default async function OldWorkspaceTags(props: {+ params: Promise<{+ slug: string;+ }>;+}) {const params = await props.params;redirect(`/${params.slug}/settings/library/tags`);}diff --git a/apps/web/app/app.dub.co/(redirects)/analytics/page.tsx b/apps/web/app/app.dub.co/(redirects)/analytics/page.tsxindex 4349612f41..1b7569ffa7 100644--- a/apps/web/app/app.dub.co/(redirects)/analytics/page.tsx+++ b/apps/web/app/app.dub.co/(redirects)/analytics/page.tsx@@ -1,11 +1,9 @@import { getDefaultWorkspace } from "@/lib/fetchers";import { redirect } from "next/navigation";-export default async function OldLinksAnalytics(- props: {- searchParams: Promise<{ [key: string]: string }>;- }-) {+export default async function OldLinksAnalytics(props: {+ searchParams: Promise<{ [key: string]: string }>;+}) {const searchParams = await props.searchParams;const defaultWorkspace = await getDefaultWorkspace();if (!defaultWorkspace) {diff --git a/apps/web/app/app.dub.co/(redirects)/links/[key]/page.tsx b/apps/web/app/app.dub.co/(redirects)/links/[key]/page.tsxindex 0a6c26519a..21a2dab4c8 100644--- a/apps/web/app/app.dub.co/(redirects)/links/[key]/page.tsx+++ b/apps/web/app/app.dub.co/(redirects)/links/[key]/page.tsx@@ -1,13 +1,11 @@import { getDefaultWorkspace } from "@/lib/fetchers";import { redirect } from "next/navigation";-export default async function OldLinksStatsPage(- props: {- params: Promise<{- key: string;- }>;- }-) {+export default async function OldLinksStatsPage(props: {+ params: Promise<{+ key: string;+ }>;+}) {const params = await props.params;const defaultWorkspace = await getDefaultWorkspace();if (!defaultWorkspace) {diff --git a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsxindex 32835e38ff..736422bd61 100644--- a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx+++ b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx@@ -9,11 +9,9 @@ import { notFound } from "next/navigation";import { Suspense } from "react";import DashboardPasswordForm from "./form";-export async function generateMetadata(- props: {- params: Promise<{ dashboardId: string }>;- }-) {+export async function generateMetadata(props: {+ params: Promise<{ dashboardId: string }>;+}) {const params = await props.params;const data = await getDashboard({ id: params.dashboardId });@@ -29,11 +27,9 @@ export async function generateMetadata(});}-export default async function DashboardPage(- props: {- params: Promise<{ dashboardId: string }>;- }-) {+export default async function DashboardPage(props: {+ params: Promise<{ dashboardId: string }>;+}) {const params = await props.params;const data = await getDashboard({ id: params.dashboardId });@@ -44,7 +40,8 @@ export default async function DashboardPage(if (data.password &&- (await cookies()).get(`dub_password_${params.dashboardId}`)?.value !== data.password+ (await cookies()).get(`dub_password_${params.dashboardId}`)?.value !==+ data.password) {return (<main className="flex h-screen w-screen items-center justify-center">diff --git a/apps/web/app/cloaked/[url]/page.tsx b/apps/web/app/cloaked/[url]/page.tsxindex 94d1f49964..6aedb5b73d 100644--- a/apps/web/app/cloaked/[url]/page.tsx+++ b/apps/web/app/cloaked/[url]/page.tsx@@ -8,11 +8,9 @@ import { getMetaTags } from "app/api/links/metatags/utils";export const runtime = "edge";export const fetchCache = "force-no-store";-export async function generateMetadata(- props: {- params: Promise<{ url: string }>;- }-) {+export async function generateMetadata(props: {+ params: Promise<{ url: string }>;+}) {const params = await props.params;const url = decodeURIComponent(params.url); // key can potentially be encoded@@ -29,7 +27,9 @@ export async function generateMetadata(});}-export default async function CloakedPage(props: { params: Promise<{ url: string }> }) {+export default async function CloakedPage(props: {+ params: Promise<{ url: string }>;+}) {const params = await props.params;const url = decodeURIComponent(params.url);diff --git a/apps/web/app/inspect/[domain]/[key]/page.tsx b/apps/web/app/inspect/[domain]/[key]/page.tsxindex c40efd1e51..ca254f4a0d 100644--- a/apps/web/app/inspect/[domain]/[key]/page.tsx+++ b/apps/web/app/inspect/[domain]/[key]/page.tsx@@ -19,11 +19,9 @@ import LinkInspectorCard from "./card";export const runtime = "edge";-export async function generateMetadata(- props: {- params: Promise<{ domain: string; key: string }>;- }-) {+export async function generateMetadata(props: {+ params: Promise<{ domain: string; key: string }>;+}) {const params = await props.params;const domain = params.domain;const key = decodeURIComponent(params.key).slice(0, -1);@@ -45,11 +43,9 @@ export async function generateMetadata(});}-export default async function InspectPage(- props: {- params: Promise<{ domain: string; key: string }>;- }-) {+export default async function InspectPage(props: {+ params: Promise<{ domain: string; key: string }>;+}) {const params = await props.params;const domain = params.domain;const key = decodeURIComponent(params.key).slice(0, -1);diff --git a/apps/web/app/password/[linkId]/page.tsx b/apps/web/app/password/[linkId]/page.tsxindex 44ff8cecc6..2c375d0165 100644--- a/apps/web/app/password/[linkId]/page.tsx+++ b/apps/web/app/password/[linkId]/page.tsx@@ -16,11 +16,9 @@ const description ="This link is password protected. Enter the password to view it.";const image = "https://assets.dub.co/misc/password-protected.png";-export async function generateMetadata(- props: {- params: Promise<{ linkId: string }>;- }-) {+export async function generateMetadata(props: {+ params: Promise<{ linkId: string }>;+}) {const params = await props.params;const link = await prismaEdge.link.findUnique({where: {@@ -57,11 +55,9 @@ export async function generateMetadata(});}-export default async function PasswordProtectedLinkPage(- props: {- params: Promise<{ linkId: string }>;- }-) {+export default async function PasswordProtectedLinkPage(props: {+ params: Promise<{ linkId: string }>;+}) {const params = await props.params;const link = await prismaEdge.link.findUnique({where: {diff --git a/apps/web/app/proxy/[domain]/[key]/page.tsx b/apps/web/app/proxy/[domain]/[key]/page.tsxindex 979caee2df..ced86c5554 100644--- a/apps/web/app/proxy/[domain]/[key]/page.tsx+++ b/apps/web/app/proxy/[domain]/[key]/page.tsx@@ -10,11 +10,9 @@ import { notFound, redirect } from "next/navigation";export const revalidate = false; // cache indefinitely-export async function generateMetadata(- props: {- params: Promise<{ domain: string; key: string }>;- }-) {+export async function generateMetadata(props: {+ params: Promise<{ domain: string; key: string }>;+}) {const params = await props.params;const domain = params.domain;const key = decodeURIComponent(params.key); // key can potentially be encoded@@ -37,11 +35,9 @@ export async function generateMetadata(});}-export default async function ProxyPage(- props: {- params: Promise<{ domain: string; key: string }>;- }-) {+export default async function ProxyPage(props: {+ params: Promise<{ domain: string; key: string }>;+}) {const params = await props.params;const domain = params.domain;const key = decodeURIComponent(params.key);diff --git a/apps/web/app/wellknown/[domain]/[file]/route.ts b/apps/web/app/wellknown/[domain]/[file]/route.tsindex 640f4b35e4..127b87d634 100644--- a/apps/web/app/wellknown/[domain]/[file]/route.ts+++ b/apps/web/app/wellknown/[domain]/[file]/route.ts@@ -10,7 +10,7 @@ export const runtime = "edge";export async function GET(_req: NextRequest,- props: { params: Promise<{ domain: string; file: SupportedWellKnownFiles }> }+ props: { params: Promise<{ domain: string; file: SupportedWellKnownFiles }> },) {const params = await props.params;const { domain, file } = params;diff --git a/apps/web/lib/actions/partners/create-reward.ts b/apps/web/lib/actions/partners/create-reward.tsindex d424ce9685..b839cd8acc 100644--- a/apps/web/lib/actions/partners/create-reward.ts+++ b/apps/web/lib/actions/partners/create-reward.ts@@ -3,9 +3,9 @@import { recordAuditLog } from "@/lib/api/audit-logs/record-audit-log";import { createId } from "@/lib/api/create-id";import { getGroupOrThrow } from "@/lib/api/groups/get-group-or-throw";+import { serializeReward } from "@/lib/api/partners/serialize-reward";import { getDefaultProgramIdOrThrow } from "@/lib/api/programs/get-default-program-id-or-throw";import { validateReward } from "@/lib/api/rewards/validate-reward";-import { serializeReward } from "@/lib/api/partners/serialize-reward";import { getPlanCapabilities } from "@/lib/plan-capabilities";import {createRewardSchema,diff --git a/apps/web/lib/actions/partners/online-presence-providers.ts b/apps/web/lib/actions/partners/online-presence-providers.tsindex d443bf4dc7..2036052d2d 100644--- a/apps/web/lib/actions/partners/online-presence-providers.ts+++ b/apps/web/lib/actions/partners/online-presence-providers.ts@@ -129,4 +129,4 @@ export const ONLINE_PRESENCE_PROVIDERS: Record<string, OnlinePresenceProvider> =};},},- };\ No newline at end of file+ };diff --git a/apps/web/lib/actions/partners/update-reward.ts b/apps/web/lib/actions/partners/update-reward.tsindex 9c44a63e96..0b1472de43 100644--- a/apps/web/lib/actions/partners/update-reward.ts+++ b/apps/web/lib/actions/partners/update-reward.ts@@ -2,9 +2,9 @@import { recordAuditLog } from "@/lib/api/audit-logs/record-audit-log";import { getRewardOrThrow } from "@/lib/api/partners/get-reward-or-throw";+import { serializeReward } from "@/lib/api/partners/serialize-reward";import { getDefaultProgramIdOrThrow } from "@/lib/api/programs/get-default-program-id-or-throw";import { validateReward } from "@/lib/api/rewards/validate-reward";-import { serializeReward } from "@/lib/api/partners/serialize-reward";import { getPlanCapabilities } from "@/lib/plan-capabilities";import { updateRewardSchema } from "@/lib/zod/schemas/rewards";import { prisma } from "@dub/prisma";diff --git a/apps/web/lib/api/domains/get-email-domain-or-throw.ts b/apps/web/lib/api/domains/get-email-domain-or-throw.tsindex 2e3c6b1464..2053082417 100644--- a/apps/web/lib/api/domains/get-email-domain-or-throw.ts+++ b/apps/web/lib/api/domains/get-email-domain-or-throw.ts@@ -30,4 +30,3 @@ export const getEmailDomainOrThrow = async ({return emailDomain;};-diff --git a/apps/web/lib/api/links/bulk-delete-links.ts b/apps/web/lib/api/links/bulk-delete-links.tsindex d5c91d8516..6e8a49685b 100644--- a/apps/web/lib/api/links/bulk-delete-links.ts+++ b/apps/web/lib/api/links/bulk-delete-links.ts@@ -20,7 +20,9 @@ export async function bulkDeleteLinks(links: ExpandedLink[]) {// For links that have an image, delete the image from R2links.filter((link) => link.image?.startsWith(`${R2_URL}/images/${link.id}`))- .map((link) => storage.delete({ key: link.image!.replace(`${R2_URL}/`, "") })),+ .map((link) =>+ storage.delete({ key: link.image!.replace(`${R2_URL}/`, "") }),+ ),// Update totalLinks for the workspaceprisma.project.update({diff --git a/apps/web/lib/api/workflows/render-campaign-email-markdown.ts b/apps/web/lib/api/workflows/render-campaign-email-markdown.tsindex 4ddcd52f36..88f53feca6 100644--- a/apps/web/lib/api/workflows/render-campaign-email-markdown.ts+++ b/apps/web/lib/api/workflows/render-campaign-email-markdown.ts@@ -45,11 +45,10 @@ export function renderCampaignEmailMarkdown({},});-markdown = markdown.replace(/^[\s\n]+|[\s\n]+$/g, "");- return interpolateEmailTemplate({- text: markdown,- variables+ return interpolateEmailTemplate({+ text: markdown,+ variables,});}diff --git a/apps/web/lib/rewardful/api.ts b/apps/web/lib/rewardful/api.tsindex 164031168b..6335e85800 100644--- a/apps/web/lib/rewardful/api.ts+++ b/apps/web/lib/rewardful/api.ts@@ -1,9 +1,9 @@import { DubApiError } from "@/lib/api/errors";import {RewardfulAffiliate,- RewardfulCoupon,RewardfulCampaign,RewardfulCommission,+ RewardfulCoupon,RewardfulReferral,} from "./types";diff --git a/apps/web/lib/zod/schemas/analytics-response.ts b/apps/web/lib/zod/schemas/analytics-response.tsindex 31bf6cc890..3b2aae6271 100644--- a/apps/web/lib/zod/schemas/analytics-response.ts+++ b/apps/web/lib/zod/schemas/analytics-response.ts@@ -545,9 +545,7 @@ export const analyticsResponse = {sales: z.number().describe("The total number of sales").default(0),saleAmount: z.number()- .describe(- "The total amount of sales from this group, in cents",- )+ .describe("The total amount of sales from this group, in cents").default(0),}).openapi({ ref: "AnalyticsTopGroups" }),diff --git a/apps/web/lib/zod/schemas/program-application-form.ts b/apps/web/lib/zod/schemas/program-application-form.tsindex a274577dcb..7665a56b81 100644--- a/apps/web/lib/zod/schemas/program-application-form.ts+++ b/apps/web/lib/zod/schemas/program-application-form.ts@@ -17,9 +17,10 @@ export const programApplicationFormShortTextFieldSchema =}),});-export const programApplicationFormShortTextFieldWithValueSchema = programApplicationFormShortTextFieldSchema.extend({- value: z.string(),-});+export const programApplicationFormShortTextFieldWithValueSchema =+ programApplicationFormShortTextFieldSchema.extend({+ value: z.string(),+ });// Long text fieldexport const programApplicationFormLongTextFieldSchema =@@ -31,9 +32,10 @@ export const programApplicationFormLongTextFieldSchema =}),});-export const programApplicationFormLongTextFieldWithValueSchema = programApplicationFormLongTextFieldSchema.extend({- value: z.string(),-});+export const programApplicationFormLongTextFieldWithValueSchema =+ programApplicationFormLongTextFieldSchema.extend({+ value: z.string(),+ });// Select fieldexport const programApplicationFormSelectOptionSchema = z.object({@@ -54,30 +56,35 @@ export const programApplicationFormMultipleChoiceOptionSchema = z.object({value: z.string(),});-export const programApplicationFormSelectFieldWithValueSchema = programApplicationFormSelectFieldSchema.extend({- value: z.string(),-});+export const programApplicationFormSelectFieldWithValueSchema =+ programApplicationFormSelectFieldSchema.extend({+ value: z.string(),+ });// Multiple-choice fieldexport const programApplicationFormMultipleChoiceData = z.object({multiple: z.literal(true),options: z.array(programApplicationFormMultipleChoiceOptionSchema),-})+});export const programApplicationFormSingleChoiceData = z.object({multiple: z.literal(false),options: z.array(programApplicationFormMultipleChoiceOptionSchema),-})+});export const programApplicationFormMultipleChoiceFieldSchema =programApplicationFormFieldCommonSchema.extend({type: z.literal("multiple-choice"),- data: z.discriminatedUnion("multiple", [programApplicationFormMultipleChoiceData, programApplicationFormSingleChoiceData]),+ data: z.discriminatedUnion("multiple", [+ programApplicationFormMultipleChoiceData,+ programApplicationFormSingleChoiceData,+ ]),});-export const programApplicationFormMultipleChoiceFieldWithValueSchema = programApplicationFormMultipleChoiceFieldSchema.extend({- value: z.union([z.array(z.string()), z.string()]),-});+export const programApplicationFormMultipleChoiceFieldWithValueSchema =+ programApplicationFormMultipleChoiceFieldSchema.extend({+ value: z.union([z.array(z.string()), z.string()]),+ });// Website and socials fieldexport const programApplicationFormSiteSchema = z.object({@@ -92,23 +99,24 @@ export const programApplicationFormSiteSchema = z.object({required: z.boolean(),});-export const programApplicationFormSiteSchemaWithValue = programApplicationFormSiteSchema.extend({- value: z.string(),-});--export const programApplicationFormWebsiteAndSocialsFieldSchema =- z.object({- id: z.string(),- type: z.literal("website-and-socials"),- data: z.array(programApplicationFormSiteSchema),+export const programApplicationFormSiteSchemaWithValue =+ programApplicationFormSiteSchema.extend({+ value: z.string(),});-export const programApplicationFormWebsiteAndSocialsFieldWithValueSchema = programApplicationFormWebsiteAndSocialsFieldSchema.extend({+export const programApplicationFormWebsiteAndSocialsFieldSchema = z.object({id: z.string(),type: z.literal("website-and-socials"),- data: z.array(programApplicationFormSiteSchemaWithValue),+ data: z.array(programApplicationFormSiteSchema),});+export const programApplicationFormWebsiteAndSocialsFieldWithValueSchema =+ programApplicationFormWebsiteAndSocialsFieldSchema.extend({+ id: z.string(),+ type: z.literal("website-and-socials"),+ data: z.array(programApplicationFormSiteSchemaWithValue),+ });+// All fieldsexport const programApplicationFormFieldSchema = z.discriminatedUnion("type", [programApplicationFormShortTextFieldSchema,@@ -118,17 +126,24 @@ export const programApplicationFormFieldSchema = z.discriminatedUnion("type", [programApplicationFormWebsiteAndSocialsFieldSchema,]);-export const programApplicationFormFieldWithValuesSchema = z.discriminatedUnion("type", [- programApplicationFormShortTextFieldWithValueSchema,- programApplicationFormLongTextFieldWithValueSchema,- programApplicationFormSelectFieldWithValueSchema,- programApplicationFormMultipleChoiceFieldWithValueSchema,- programApplicationFormWebsiteAndSocialsFieldWithValueSchema,-]);--export const programApplicationFormFieldsSchema = z.array(programApplicationFormFieldSchema);--export const programApplicationFormFieldsWithValuesSchema = z.array(programApplicationFormFieldWithValuesSchema);+export const programApplicationFormFieldWithValuesSchema = z.discriminatedUnion(+ "type",+ [+ programApplicationFormShortTextFieldWithValueSchema,+ programApplicationFormLongTextFieldWithValueSchema,+ programApplicationFormSelectFieldWithValueSchema,+ programApplicationFormMultipleChoiceFieldWithValueSchema,+ programApplicationFormWebsiteAndSocialsFieldWithValueSchema,+ ],+);++export const programApplicationFormFieldsSchema = z.array(+ programApplicationFormFieldSchema,+);++export const programApplicationFormFieldsWithValuesSchema = z.array(+ programApplicationFormFieldWithValuesSchema,+);// Full form schemaexport const programApplicationFormSchema = z.object({@@ -138,10 +153,11 @@ export const programApplicationFormSchema = z.object({fields: programApplicationFormFieldsSchema,});-export const programApplicationFormDataSchema = programApplicationFormSchema.extend({- fields: programApplicationFormFieldsWithValuesSchema,-});+export const programApplicationFormDataSchema =+ programApplicationFormSchema.extend({+ fields: programApplicationFormFieldsWithValuesSchema,+ });export const programApplicationFormDataWithValuesSchema = z.object({fields: programApplicationFormFieldsWithValuesSchema,-});\ No newline at end of file+});diff --git a/apps/web/scripts/testimonial/update-commissions.ts b/apps/web/scripts/testimonial/update-commissions.tsindex 3b651b97d6..7cf6752fc6 100644--- a/apps/web/scripts/testimonial/update-commissions.ts+++ b/apps/web/scripts/testimonial/update-commissions.ts@@ -1,5 +1,5 @@-import { calculateSaleEarnings } from "@/lib/api/sales/calculate-sale-earnings";import { serializeReward } from "@/lib/api/partners/serialize-reward";+import { calculateSaleEarnings } from "@/lib/api/sales/calculate-sale-earnings";import { prisma } from "@dub/prisma";import { Prisma } from "@dub/prisma/client";import "dotenv-flow/config";diff --git a/apps/web/ui/analytics/bar-list.tsx b/apps/web/ui/analytics/bar-list.tsxindex 21e0fd28b9..02e17c52d5 100644--- a/apps/web/ui/analytics/bar-list.tsx+++ b/apps/web/ui/analytics/bar-list.tsx@@ -1,7 +1,7 @@"use client";import { LinkProps } from "@/lib/types";-import { LinkifyTooltipContent, Tooltip, useMediaQuery } from "@dub/ui";+import { Tooltip, useMediaQuery } from "@dub/ui";import { cn, getPrettyUrl } from "@dub/utils";import NumberFlow, { NumberFlowGroup } from "@number-flow/react";import { Search } from "lucide-react";@@ -219,13 +219,8 @@ export function LineItem({</Tooltip>) : tab === "urls" ? (<Tooltip- content={- <div className="overflow-auto px-4 py-2">- <LinkifyTooltipContent tooltipClassName="max-w-md">- {title}- </LinkifyTooltipContent>- </div>- }+ content={`[${title}](${title})`}+ contentClassName="max-w-lg">{lineItem}</Tooltip>diff --git a/apps/web/ui/domains/add-edit-domain-form.tsx b/apps/web/ui/domains/add-edit-domain-form.tsxindex 61fcc47bb6..3f8da5e968 100644--- a/apps/web/ui/domains/add-edit-domain-form.tsx+++ b/apps/web/ui/domains/add-edit-domain-form.tsx@@ -16,7 +16,6 @@ import {LoadingSpinner,MobilePhone,ShimmerDots,- SimpleTooltipContent,Switch,useEnterSubmit,useMediaQuery,@@ -292,11 +291,7 @@ export function AddEditDomainForm({</h2><InfoTooltipcontent={- <SimpleTooltipContent- title="Not sure which domain to use?"- cta="Check out our guide"- href="https://dub.co/help/article/choosing-a-custom-domain"- />+ "Not sure which domain to use? [Check out our guide](https://dub.co/help/article/choosing-a-custom-domain)"}/></label>diff --git a/apps/web/ui/domains/register-domain-form.tsx b/apps/web/ui/domains/register-domain-form.tsxindex a8995d55fc..bf125c0f89 100644--- a/apps/web/ui/domains/register-domain-form.tsx+++ b/apps/web/ui/domains/register-domain-form.tsx@@ -4,7 +4,6 @@ import {AnimatedSizeContainer,Button,buttonVariants,- SimpleTooltipContent,TooltipContent,useMediaQuery,} from "@dub/ui";@@ -153,15 +152,7 @@ export function RegisterDomainForm({</p>{workspace.plan === "free" && variant === "modal" && (- <ProBadgeTooltip- content={- <SimpleTooltipContent- title="Search for a free .link domain to use for your short links."- cta="Learn more."- href="https://dub.co/help/article/free-dot-link-domain"- />- }- />+ <ProBadgeTooltip content="Search for a free .link domain to use for your short links. [Learn more.](https://dub.co/help/article/free-dot-link-domain)" />)}</div>@@ -364,12 +355,7 @@ function UpgradeTooltipContent() {const { slug } = useWorkspace();return (<TooltipContent- title={- <>- You can only claim a free <span className="font-semibold">.link</span>{" "}- domain on a Pro plan and above.- </>- }+ title="You can only claim a free `.link` domain on a Pro plan and above."cta="Upgrade to Pro"onClick={() => window.open(`/${slug}/upgrade`)}/>diff --git a/apps/web/ui/layout/page-content/page-content-header.tsx b/apps/web/ui/layout/page-content/page-content-header.tsxindex 97b7996822..41624372a8 100644--- a/apps/web/ui/layout/page-content/page-content-header.tsx+++ b/apps/web/ui/layout/page-content/page-content-header.tsx@@ -1,4 +1,4 @@-import { InfoTooltip, SimpleTooltipContent } from "@dub/ui";+import { InfoTooltip } from "@dub/ui";import { cn } from "@dub/utils";import { ChevronLeft } from "lucide-react";import Link from "next/link";@@ -26,11 +26,9 @@ export function PageContentHeader({titleInfo && typeof titleInfo === "object" && "title" in titleInfo ? (<InfoTooltipcontent={- <SimpleTooltipContent- title={titleInfo.title}- href={titleInfo.href}- cta="Learn more"- />+ titleInfo.href+ ? `${titleInfo.title} [Learn more](${titleInfo.href})`+ : titleInfo.title}/>) : (diff --git a/apps/web/ui/layout/sidebar/payout-stats.tsx b/apps/web/ui/layout/sidebar/payout-stats.tsxindex 06ae32430c..6067e51033 100644--- a/apps/web/ui/layout/sidebar/payout-stats.tsx+++ b/apps/web/ui/layout/sidebar/payout-stats.tsx@@ -10,7 +10,6 @@ import {AnimatedSizeContainer,ChevronRight,MoneyBills2,- SimpleTooltipContent,Tooltip,} from "@dub/ui";import { currencyFormatter } from "@dub/utils";@@ -44,13 +43,7 @@ export const PayoutStats = memo(() => {<div className="flex items-center gap-1">{partner && !partner.payoutsEnabledAt && (<Tooltip- content={- <SimpleTooltipContent- title="You need to connect your bank account to be able to receive payouts from the programs you are enrolled in."- cta="Learn more"- href="https://dub.co/help/article/receiving-payouts"- />- }+ content="You need to connect your bank account to be able to receive payouts from the programs you are enrolled in. [Learn more](https://dub.co/help/article/receiving-payouts)"side="right"><div>diff --git a/apps/web/ui/links/destination-url-input.tsx b/apps/web/ui/links/destination-url-input.tsxindex ab427dc45d..453f73cf9a 100644--- a/apps/web/ui/links/destination-url-input.tsx+++ b/apps/web/ui/links/destination-url-input.tsx@@ -1,12 +1,7 @@"use client";import { DomainProps } from "@/lib/types";-import {- InfoTooltip,- SimpleTooltipContent,- useMediaQuery,- UTM_PARAMETERS,-} from "@dub/ui";+import { InfoTooltip, useMediaQuery, UTM_PARAMETERS } from "@dub/ui";import { getParamsFromURL, getUrlFromString } from "@dub/utils";import { forwardRef, HTMLProps, ReactNode, useId } from "react";import { useFormContext } from "react-hook-form";@@ -53,25 +48,9 @@ export const DestinationUrlInput = forwardRef<Destination URL</label>{key === "_root" ? (- <ProBadgeTooltip- content={- <SimpleTooltipContent- title="The URL your users will get redirected to when they visit your root domain link."- cta="Learn more."- href="https://dub.co/help/article/how-to-redirect-root-domain"- />- }- />+ <ProBadgeTooltip content="The URL your users will get redirected to when they visit your root domain link. [Learn more.](https://dub.co/help/article/how-to-redirect-root-domain)" />) : (- <InfoTooltip- content={- <SimpleTooltipContent- title="The URL your users will get redirected to when they visit your short link."- cta="Learn more."- href="https://dub.co/help/article/how-to-create-link"- />- }- />+ <InfoTooltip content="The URL your users will get redirected to when they visit your short link. [Learn more.](https://dub.co/help/article/how-to-create-link)" />)}</div>{right}diff --git a/apps/web/ui/links/disabled-link-tooltip.tsx b/apps/web/ui/links/disabled-link-tooltip.tsxindex 6525bbbec5..0240835224 100644--- a/apps/web/ui/links/disabled-link-tooltip.tsx+++ b/apps/web/ui/links/disabled-link-tooltip.tsx@@ -2,29 +2,7 @@ import { StatusBadge, Tooltip } from "@dub/ui";export const DisabledLinkTooltip = () => {return (- <Tooltip- content={- <div className="max-w-xs px-4 py-2 text-center text-sm text-neutral-700">- This link is disabled. It will redirect to its{" "}- <a- href="https://dub.co/help/article/setting-not-found-url"- target="_blank"- className="cursor-alias underline decoration-dotted underline-offset-2"- >- domain's not found URL- </a>- , and its stats will be excluded from{" "}- <a- href="https://dub.co/help/article/dub-analytics"- target="_blank"- className="cursor-alias underline decoration-dotted underline-offset-2"- >- your overall stats- </a>- .- </div>- }- >+ <Tooltip content="This link is disabled. It will redirect to its [domain's not found URL](https://dub.co/help/article/setting-not-found-url), and its stats will be excluded from [your overall stats](https://dub.co/help/article/dub-analytics)."><StatusBadge variant="neutral" size="sm" icon={null}>Disabled</StatusBadge>diff --git a/apps/web/ui/links/link-builder/controls/link-builder-folder-selector.tsx b/apps/web/ui/links/link-builder/controls/link-builder-folder-selector.tsxindex 9425c18ba8..fff914db71 100644--- a/apps/web/ui/links/link-builder/controls/link-builder-folder-selector.tsx+++ b/apps/web/ui/links/link-builder/controls/link-builder-folder-selector.tsx@@ -1,5 +1,5 @@import { FolderDropdown } from "@/ui/folders/folder-dropdown";-import { InfoTooltip, SimpleTooltipContent } from "@dub/ui";+import { InfoTooltip } from "@dub/ui";import { useFormContext, useWatch } from "react-hook-form";import { LinkFormData } from "../link-builder-provider";@@ -13,11 +13,7 @@ export function LinkBuilderFolderSelector() {<h2 className="text-sm font-medium text-neutral-700">Folder</h2><InfoTooltipcontent={- <SimpleTooltipContent- title="Use folders to organize and manage access to your links."- cta="Learn more"- href="https://dub.co/help/article/link-folders"- />+ "Use folders to organize and manage access to your links. [Learn more](https://dub.co/help/article/link-folders)"}/></div>diff --git a/apps/web/ui/links/link-builder/controls/link-comments-input.tsx b/apps/web/ui/links/link-builder/controls/link-comments-input.tsxindex 5144937aea..8cd2455eb9 100644--- a/apps/web/ui/links/link-builder/controls/link-comments-input.tsx+++ b/apps/web/ui/links/link-builder/controls/link-comments-input.tsx@@ -1,4 +1,4 @@-import { InfoTooltip, SimpleTooltipContent, useEnterSubmit } from "@dub/ui";+import { InfoTooltip, useEnterSubmit } from "@dub/ui";import { memo } from "react";import { Controller } from "react-hook-form";import TextareaAutosize from "react-textarea-autosize";@@ -17,11 +17,7 @@ export const LinkCommentsInput = memo(() => {</label><InfoTooltipcontent={- <SimpleTooltipContent- title="Use comments to add context to your short links – for you and your team."- cta="Learn more."- href="https://dub.co/help/article/link-comments"- />+ "Use comments to add context to your short links – for you and your team. [Learn more.](https://dub.co/help/article/link-comments)"}/></div>diff --git a/apps/web/ui/links/link-builder/conversion-tracking-toggle.tsx b/apps/web/ui/links/link-builder/conversion-tracking-toggle.tsxindex 5dfba2bcd7..2647087cd3 100644--- a/apps/web/ui/links/link-builder/conversion-tracking-toggle.tsx+++ b/apps/web/ui/links/link-builder/conversion-tracking-toggle.tsx@@ -4,7 +4,6 @@ import {CrownSmall,FlaskSmall,InfoTooltip,- SimpleTooltipContent,Switch,TooltipContent,} from "@dub/ui";@@ -45,11 +44,7 @@ export const ConversionTrackingToggle = memo(() => {Conversion Tracking<InfoTooltipcontent={- <SimpleTooltipContent- title="View analytics on conversions from your short links."- cta="Learn more."- href="https://dub.co/docs/conversions/quickstart"- />+ "View analytics on conversions from your short links. [Learn more.](https://dub.co/docs/conversions/quickstart)"}/></span>diff --git a/apps/web/ui/links/link-builder/link-preview.tsx b/apps/web/ui/links/link-builder/link-preview.tsxindex e981a83af1..1adbc5cfca 100644--- a/apps/web/ui/links/link-builder/link-preview.tsx+++ b/apps/web/ui/links/link-builder/link-preview.tsx@@ -10,7 +10,6 @@ import {Icon,InfoTooltip,ShimmerDots,- SimpleTooltipContent,Switch,TooltipContent,useMediaQuery,@@ -108,15 +107,7 @@ export const LinkPreview = memo(() => {<h2 className="text-sm font-medium text-neutral-700">Custom Link Preview</h2>- <InfoTooltip- content={- <SimpleTooltipContent- title="Customize how your links look when shared on social media to improve click-through rates. When enabled, the preview settings below will be shown publicly (instead of the URL's original metatags)."- cta="Learn more."- href="https://dub.co/help/article/custom-link-previews"- />- }- />+ <InfoTooltip content="Customize how your links look when shared on social media to improve click-through rates. When enabled, the preview settings below will be shown publicly (instead of the URL's original metatags). [Learn more.](https://dub.co/help/article/custom-link-previews)" /></div><Switchdiff --git a/apps/web/ui/links/link-builder/more-dropdown.tsx b/apps/web/ui/links/link-builder/more-dropdown.tsxindex d1ab13512f..a6d6a14661 100644--- a/apps/web/ui/links/link-builder/more-dropdown.tsx+++ b/apps/web/ui/links/link-builder/more-dropdown.tsx@@ -6,7 +6,7 @@ import { usePartnersModal } from "@/ui/modals/link-builder/partners-modal";import { usePasswordModal } from "@/ui/modals/link-builder/password-modal";import { useTargetingModal } from "@/ui/modals/link-builder/targeting-modal";import { ProBadgeTooltip } from "@/ui/shared/pro-badge-tooltip";-import { Button, Popover, SimpleTooltipContent, useMediaQuery } from "@dub/ui";+import { Button, Popover, useMediaQuery } from "@dub/ui";import { Dots } from "@dub/ui/icons";import { cn } from "@dub/utils";import { useMemo, useState } from "react";@@ -142,13 +142,9 @@ export function MoreDropdown({{option.description && (<ProBadgeTooltipcontent={- <SimpleTooltipContent- title={option.description}- {...(option.learnMoreUrl && {- cta: "Learn more.",- href: option.learnMoreUrl,- })}- />+ option.learnMoreUrl+ ? `${option.description} [Learn more.](${option.learnMoreUrl})`+ : option.description}/>)}diff --git a/apps/web/ui/links/link-builder/options-list.tsx b/apps/web/ui/links/link-builder/options-list.tsxindex b3d26ccc49..dcc37edc58 100644--- a/apps/web/ui/links/link-builder/options-list.tsx+++ b/apps/web/ui/links/link-builder/options-list.tsx@@ -4,7 +4,7 @@ import {} from "@/ui/links/link-builder/constants";import { LinkFormData } from "@/ui/links/link-builder/link-builder-provider";import { AlertCircleFill, CheckCircleFill, X } from "@/ui/shared/icons";-import { SimpleTooltipContent, Tooltip, useMediaQuery } from "@dub/ui";+import { Tooltip, useMediaQuery } from "@dub/ui";import { LoadingSpinner } from "@dub/ui/icons";import { fetcher, isValidUrl as isValidUrlFn } from "@dub/utils";import { AnimatePresence, motion } from "motion/react";@@ -164,11 +164,7 @@ function LinkCloakingToggleBadge({<p>Your link will be successfully cloaked.</p></div>) : (- <SimpleTooltipContent- title="Your link is not cloakable – make sure you have the right security headers set on your target URL."- cta="Learn more"- href="https://dub.co/help/article/link-cloaking#link-cloaking-with-security-headers"- />+ "Your link is not cloakable – make sure you have the right security headers set on your target URL. [Learn more](https://dub.co/help/article/link-cloaking#link-cloaking-with-security-headers)")}>diff --git a/apps/web/ui/links/link-builder/qr-code-preview.tsx b/apps/web/ui/links/link-builder/qr-code-preview.tsxindex 5ab88c791a..e21a584629 100644--- a/apps/web/ui/links/link-builder/qr-code-preview.tsx+++ b/apps/web/ui/links/link-builder/qr-code-preview.tsx@@ -6,7 +6,6 @@ import {Button,InfoTooltip,ShimmerDots,- SimpleTooltipContent,useInViewport,useLocalStorage,useMediaQuery,@@ -79,11 +78,7 @@ export function QRCodePreview() {<h2 className="text-sm font-medium text-neutral-700">QR Code</h2><InfoTooltipcontent={- <SimpleTooltipContent- title="Set a custom QR code design to improve click-through rates."- cta="Learn more."- href="https://dub.co/help/article/custom-qr-codes"- />+ "Set a custom QR code design to improve click-through rates. [Learn more.](https://dub.co/help/article/custom-qr-codes)"}/></div>diff --git a/apps/web/ui/links/link-builder/tag-select.tsx b/apps/web/ui/links/link-builder/tag-select.tsxindex d3f6cf7006..26c8b3daf2 100644--- a/apps/web/ui/links/link-builder/tag-select.tsx+++ b/apps/web/ui/links/link-builder/tag-select.tsx@@ -10,7 +10,6 @@ import {Combobox,InfoTooltip,Magic,- SimpleTooltipContent,Tag,Tooltip,} from "@dub/ui";@@ -157,13 +156,7 @@ export const TagSelect = memo(() => {<div className="flex items-center gap-2"><p className="text-sm font-medium text-neutral-700">Tags</p><InfoTooltip- content={- <SimpleTooltipContent- title={`Tags are used to organize your links in your ${process.env.NEXT_PUBLIC_APP_NAME} dashboard.`}- cta="Learn more."- href="https://dub.co/help/article/how-to-use-tags"- />- }+ content={`Tags are used to organize your links in your ${process.env.NEXT_PUBLIC_APP_NAME} dashboard. [Learn more.](https://dub.co/help/article/how-to-use-tags)`}/></div><adiff --git a/apps/web/ui/links/link-controls.tsx b/apps/web/ui/links/link-controls.tsxindex 4317261b48..fe1f128d0a 100644--- a/apps/web/ui/links/link-controls.tsx+++ b/apps/web/ui/links/link-controls.tsx@@ -9,7 +9,6 @@ import {IconMenu,PenWriting,Popover,- SimpleTooltipContent,useCopyToClipboard,useKeyboardShortcut,} from "@dub/ui";@@ -321,15 +320,11 @@ export function LinkControls({shortcut="T"className="h-9 px-2 font-medium"disabledTooltip={- !isDubDomain(link.domain) ? (- <SimpleTooltipContent- title="Since this is a custom domain link, you can only transfer it to another workspace if you transfer the domain as well."- cta="Learn more."- href="https://dub.co/help/article/how-to-transfer-domains"- />- ) : !canManageLink ? (- "You don't have permission to transfer this link."- ) : undefined+ !isDubDomain(link.domain)+ ? "Since this is a custom domain link, you can only transfer it to another workspace if you transfer the domain as well. [Learn more.](https://dub.co/help/article/how-to-transfer-domains)"+ : !canManageLink+ ? "You don't have permission to transfer this link."+ : undefined}/>)}diff --git a/apps/web/ui/modals/add-edit-token-modal.tsx b/apps/web/ui/modals/add-edit-token-modal.tsxindex ebcf939b4f..ffdf557b22 100644--- a/apps/web/ui/modals/add-edit-token-modal.tsx+++ b/apps/web/ui/modals/add-edit-token-modal.tsx@@ -15,7 +15,6 @@ import {Modal,RadioGroup,RadioGroupItem,- SimpleTooltipContent,ToggleGroup,} from "@dub/ui";import { cn } from "@dub/utils";@@ -190,15 +189,7 @@ function AddEditTokenModal({className="flex flex-1 cursor-pointer items-center justify-between space-x-1 p-3 pl-0"><p className="text-neutral-600">You</p>- <InfoTooltip- content={- <SimpleTooltipContent- title="This API key will be tied to your user account – if you are removed from the workspace, it will be deleted."- cta="Learn more"- href="https://dub.co/docs/api-reference/tokens"- />- }- />+ <InfoTooltip content="This API key will be tied to your user account – if you are removed from the workspace, it will be deleted. [Learn more](https://dub.co/docs/api-reference/tokens)" /></Label></div><div@@ -227,15 +218,9 @@ function AddEditTokenModal({<p className="text-neutral-600">Machine</p><InfoTooltipcontent={- <SimpleTooltipContent- title={- isOwner- ? "A new bot member will be added to your workspace, and the key will be associated with it. Since the key is not tied to your account, it will not be deleted even if you leave the workspace."- : "Only the workspace owner can create machine users."- }- cta="Learn more"- href="https://dub.co/docs/api-reference/tokens#machine-users"- />+ isOwner+ ? "A new bot member will be added to your workspace, and the key will be associated with it. Since the key is not tied to your account, it will not be deleted even if you leave the workspace. [Learn more](https://dub.co/docs/api-reference/tokens#machine-users)"+ : "Only the workspace owner can create machine users."}/></Label>diff --git a/apps/web/ui/modals/add-partner-link-modal.tsx b/apps/web/ui/modals/add-partner-link-modal.tsxindex 62c9130c2d..843c77f92b 100644--- a/apps/web/ui/modals/add-partner-link-modal.tsx+++ b/apps/web/ui/modals/add-partner-link-modal.tsx@@ -10,7 +10,6 @@ import {Combobox,InfoTooltip,Modal,- SimpleTooltipContent,useCopyToClipboard,useMediaQuery,} from "@dub/ui";@@ -181,15 +180,7 @@ const AddPartnerLinkModal = ({Short Link</label>- <InfoTooltip- content={- <SimpleTooltipContent- title="This is the short link that will redirect to your destination URL."- cta="Learn more."- href="https://dub.co/help/article/how-to-create-link"- />- }- />+ <InfoTooltip content="This is the short link that will redirect to your destination URL. [Learn more.](https://dub.co/help/article/how-to-create-link)" /></div></div>@@ -227,15 +218,7 @@ const AddPartnerLinkModal = ({Destination URL</label>- <InfoTooltip- content={- <SimpleTooltipContent- title="The URL your users will get redirected to when they visit your short link."- cta="Learn more."- href="https://dub.co/help/article/how-to-create-link"- />- }- />+ <InfoTooltip content="The URL your users will get redirected to when they visit your short link. [Learn more.](https://dub.co/help/article/how-to-create-link)" /></div><div className="relative flex rounded-md shadow-sm">diff --git a/apps/web/ui/modals/import-rebrandly-modal.tsx b/apps/web/ui/modals/import-rebrandly-modal.tsxindex 7f65c53d76..b1d5754372 100644--- a/apps/web/ui/modals/import-rebrandly-modal.tsx+++ b/apps/web/ui/modals/import-rebrandly-modal.tsx@@ -8,7 +8,6 @@ import {LoadingSpinner,Logo,Modal,- SimpleTooltipContent,SmartDateTimePicker,Switch,useMediaQuery,@@ -284,13 +283,7 @@ function ImportRebrandlyModal({Rebrandly API Key</h2><InfoTooltip- content={- <SimpleTooltipContent- title={`Your Rebrandly API Key can be found in your Rebrandly account under`}- cta="Account > API"- href="https://app.rebrandly.com/account/api"- />- }+ content={`Your Rebrandly API Key can be found in your Rebrandly account under [Account > API](https://app.rebrandly.com/account/api)`}/></div><inputdiff --git a/apps/web/ui/modals/import-short-modal.tsx b/apps/web/ui/modals/import-short-modal.tsxindex 53bdfccbca..d07a261f10 100644--- a/apps/web/ui/modals/import-short-modal.tsx+++ b/apps/web/ui/modals/import-short-modal.tsx@@ -7,7 +7,6 @@ import {LoadingSpinner,Logo,Modal,- SimpleTooltipContent,Switch,buttonVariants,useMediaQuery,@@ -254,13 +253,7 @@ function ImportShortModal({Short.io API Key</h2><InfoTooltip- content={- <SimpleTooltipContent- title={`Your Short.io API Key can be found in your Short.io account under "Integrations & API".`}- cta="Read the guide."- href="https://dub.co/help/article/migrating-from-short"- />- }+ content={`Your Short.io API Key can be found in your Short.io account under "Integrations & API". [Read the guide.](https://dub.co/help/article/migrating-from-short)`}/></div><inputdiff --git a/apps/web/ui/modals/link-builder/ab-testing-modal.tsx b/apps/web/ui/modals/link-builder/ab-testing-modal.tsxindex 5cc5cca0f4..128ac29bd4 100644--- a/apps/web/ui/modals/link-builder/ab-testing-modal.tsx+++ b/apps/web/ui/modals/link-builder/ab-testing-modal.tsx@@ -15,7 +15,6 @@ import {Flask,InfoTooltip,Modal,- SimpleTooltipContent,Tooltip,TriangleWarning,} from "@dub/ui";@@ -244,15 +243,7 @@ function ABTestingModal({<div className="flex items-center justify-between"><div className="flex items-center gap-2"><h3 className="text-lg font-medium">A/B Testing</h3>- <BusinessBadgeTooltip- content={- <SimpleTooltipContent- title="Test different URLs against each other to optimize your conversion rates."- cta="Learn more."- href="https://dub.co/help/article/ab-testing"- />- }- />+ <BusinessBadgeTooltip content="Test different URLs against each other to optimize your conversion rates. [Learn more.](https://dub.co/help/article/ab-testing)" /></div><div className="max-md:hidden"><Tooltip@@ -278,15 +269,7 @@ function ABTestingModal({<label className="block text-sm font-medium text-neutral-700">Testing URLs</label>- <InfoTooltip- content={- <SimpleTooltipContent- title="Add up to 3 additional destination URLs to test for this short link."- cta="Learn more"- href="https://dub.co/help/article/ab-testing" // TODO: Add article- />- }- />+ <InfoTooltip content="Add up to 3 additional destination URLs to test for this short link. [Learn more](https://dub.co/help/article/ab-testing)" /></div><div className="mt-2"><AnimatedSizeContainer@@ -389,15 +372,7 @@ function ABTestingModal({>Completion Date</label>- <InfoTooltip- content={- <SimpleTooltipContent- title="Set when the A/B test should complete. After this date, all traffic will go to the best performing URL."- cta="Learn more."- href="https://dub.co/help/article/ab-testing"- />- }- />+ <InfoTooltip content="Set when the A/B test should complete. After this date, all traffic will go to the best performing URL. [Learn more.](https://dub.co/help/article/ab-testing)" /></div><div className="mt-2 flex w-full items-center justify-between rounded-md border border-neutral-300 bg-white shadow-sm transition-all focus-within:border-neutral-800 focus-within:outline-none focus-within:ring-1 focus-within:ring-neutral-500"><inputdiff --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.tsxindex 8efffaae3d..139f7b10f4 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@@ -15,7 +15,6 @@ import {Flask,InfoTooltip,Modal,- SimpleTooltipContent,Tooltip,TriangleWarning,useKeyboardShortcut,@@ -287,15 +286,7 @@ function ABTestingEdit({<div className="flex items-center justify-between"><div className="flex items-center gap-2"><h3 className="text-lg font-medium">A/B Testing</h3>- <BusinessBadgeTooltip- content={- <SimpleTooltipContent- title="Test different URLs against each other to optimize your conversion rates."- cta="Learn more."- href="https://dub.co/help/article/ab-testing"- />- }- />+ <BusinessBadgeTooltip content="Test different URLs against each other to optimize your conversion rates. [Learn more.](https://dub.co/help/article/ab-testing)" /></div><div className="max-md:hidden"><Tooltip@@ -321,15 +312,7 @@ function ABTestingEdit({<label className="block text-sm font-medium text-neutral-700">Testing URLs</label>- <InfoTooltip- content={- <SimpleTooltipContent- title="Add up to 3 additional destination URLs to test for this short link."- cta="Learn more"- href="https://dub.co/help/article/ab-testing" // TODO: Add article- />- }- />+ <InfoTooltip content="Add up to 3 additional destination URLs to test for this short link. [Learn more](https://dub.co/help/article/ab-testing)" /></div><div className="mt-2"><AnimatedSizeContainer@@ -432,15 +415,7 @@ function ABTestingEdit({>Completion Date</label>- <InfoTooltip- content={- <SimpleTooltipContent- title="Set when the A/B test should complete. After this date, all traffic will go to the best performing URL."- cta="Learn more."- href="https://dub.co/help/article/ab-testing"- />- }- />+ <InfoTooltip content="Set when the A/B test should complete. After this date, all traffic will go to the best performing URL. [Learn more.](https://dub.co/help/article/ab-testing)" /></div><div className="mt-2 flex w-full items-center justify-between rounded-md border border-neutral-300 bg-white shadow-sm transition-all focus-within:border-neutral-800 focus-within:outline-none focus-within:ring-1 focus-within:ring-neutral-500"><inputdiff --git a/apps/web/ui/modals/link-builder/advanced-modal.tsx b/apps/web/ui/modals/link-builder/advanced-modal.tsxindex 6729b4a1aa..1f876bd383 100644--- a/apps/web/ui/modals/link-builder/advanced-modal.tsx+++ b/apps/web/ui/modals/link-builder/advanced-modal.tsx@@ -1,12 +1,6 @@import { LinkFormData } from "@/ui/links/link-builder/link-builder-provider";import { useLinkBuilderKeyboardShortcut } from "@/ui/links/link-builder/use-link-builder-keyboard-shortcut";-import {- Button,- InfoTooltip,- Modal,- SimpleTooltipContent,- Tooltip,-} from "@dub/ui";+import { Button, InfoTooltip, Modal, Tooltip } from "@dub/ui";import {Dispatch,SetStateAction,@@ -102,25 +96,9 @@ function AdvancedModal({className="flex items-center gap-2 text-sm font-medium text-neutral-700">External ID{" "}- <InfoTooltip- content={- <SimpleTooltipContent- title="A unique identifier for this link in your database."- cta="Learn more about external IDs."- href="https://d.to/externalId"- />- }- />+ <InfoTooltip content="A unique identifier for this link in your database. [Learn more about external IDs.](https://d.to/externalId)" /></label>- <Tooltip- content={- <SimpleTooltipContent- title="A unique identifier for this link in your system."- cta="Learn more about external IDs."- href="https://d.to/externalId"- />- }- />+ <Tooltip content="A unique identifier for this link in your system. [Learn more about external IDs.](https://d.to/externalId)" /></div><div className="mt-2 rounded-md shadow-sm"><inputdiff --git a/apps/web/ui/modals/link-builder/expiration-modal.tsx b/apps/web/ui/modals/link-builder/expiration-modal.tsxindex 70a8e92390..018ab927cb 100644--- a/apps/web/ui/modals/link-builder/expiration-modal.tsx+++ b/apps/web/ui/modals/link-builder/expiration-modal.tsx@@ -5,7 +5,6 @@ import {Button,InfoTooltip,Modal,- SimpleTooltipContent,SmartDateTimePicker,Tooltip,useMediaQuery,@@ -92,15 +91,7 @@ function ExpirationModal({<div className="flex items-center justify-between"><div className="flex items-center gap-2"><h3 className="text-lg font-medium">Link Expiration</h3>- <ProBadgeTooltip- content={- <SimpleTooltipContent- title="Set an expiration date for your links – after which it won't be accessible."- cta="Learn more."- href="https://dub.co/help/article/link-expiration"- />- }- />+ <ProBadgeTooltip content="Set an expiration date for your links – after which it won't be accessible. [Learn more.](https://dub.co/help/article/link-expiration)" /></div><div className="max-md:hidden"><Tooltip@@ -141,15 +132,7 @@ function ExpirationModal({>Expiration URL</label>- <InfoTooltip- content={- <SimpleTooltipContent- title="Redirect users to a specific URL when the link has expired."- cta="Learn more."- href="https://dub.co/help/article/link-expiration#setting-a-custom-expiration-url"- />- }- />+ <InfoTooltip content="Redirect users to a specific URL when the link has expired. [Learn more.](https://dub.co/help/article/link-expiration#setting-a-custom-expiration-url)" /></div><div className="mt-2 rounded-md shadow-sm"><inputdiff --git a/apps/web/ui/modals/link-builder/og-modal.tsx b/apps/web/ui/modals/link-builder/og-modal.tsxindex 13554072ee..3e3175e4ef 100644--- a/apps/web/ui/modals/link-builder/og-modal.tsx+++ b/apps/web/ui/modals/link-builder/og-modal.tsx@@ -12,7 +12,6 @@ import {FileUpload,Modal,Popover,- SimpleTooltipContent,Tooltip,} from "@dub/ui";import { LoadingCircle, Magic, Unsplash } from "@dub/ui/icons";@@ -222,15 +221,7 @@ function OGModalInner({<div className="flex items-center justify-between"><div className="flex items-center gap-2"><h3 className="text-lg font-medium">Link Preview</h3>- <ProBadgeTooltip- content={- <SimpleTooltipContent- title="Customize how your links look when shared on social media to improve click-through rates. When enabled, the preview settings below will be shown publicly (instead of the URL's original metatags)."- cta="Learn more."- href="https://dub.co/help/article/custom-link-previews"- />- }- />+ <ProBadgeTooltip content="Customize how your links look when shared on social media to improve click-through rates. When enabled, the preview settings below will be shown publicly (instead of the URL's original metatags). [Learn more.](https://dub.co/help/article/custom-link-previews)" /></div><div className="max-md:hidden"><Tooltipdiff --git a/apps/web/ui/modals/link-builder/password-modal.tsx b/apps/web/ui/modals/link-builder/password-modal.tsxindex 240163fb0a..e8e16fb35c 100644--- a/apps/web/ui/modals/link-builder/password-modal.tsx+++ b/apps/web/ui/modals/link-builder/password-modal.tsx@@ -1,14 +1,7 @@import { LinkFormData } from "@/ui/links/link-builder/link-builder-provider";import { useLinkBuilderKeyboardShortcut } from "@/ui/links/link-builder/use-link-builder-keyboard-shortcut";import { ProBadgeTooltip } from "@/ui/shared/pro-badge-tooltip";-import {- Button,- ButtonTooltip,- Modal,- SimpleTooltipContent,- Tooltip,- useMediaQuery,-} from "@dub/ui";+import { Button, ButtonTooltip, Modal, Tooltip, useMediaQuery } from "@dub/ui";import { Eye, EyeSlash, InputPassword, Shuffle } from "@dub/ui/icons";import { cn, nanoid } from "@dub/utils";import {@@ -95,11 +88,7 @@ function PasswordModalInner({<h3 className="text-lg font-medium">Link Password</h3><ProBadgeTooltipcontent={- <SimpleTooltipContent- title="Restrict access to your short links by encrypting it with a password."- cta="Learn more."- href="https://dub.co/help/article/password-protected-links"- />+ "Restrict access to your short links by encrypting it with a password. [Learn more.](https://dub.co/help/article/password-protected-links)"}/></div>diff --git a/apps/web/ui/modals/link-builder/targeting-modal.tsx b/apps/web/ui/modals/link-builder/targeting-modal.tsxindex ebbdd54f25..7a20b36050 100644--- a/apps/web/ui/modals/link-builder/targeting-modal.tsx+++ b/apps/web/ui/modals/link-builder/targeting-modal.tsx@@ -1,14 +1,7 @@import { LinkFormData } from "@/ui/links/link-builder/link-builder-provider";import { useLinkBuilderKeyboardShortcut } from "@/ui/links/link-builder/use-link-builder-keyboard-shortcut";import { ProBadgeTooltip } from "@/ui/shared/pro-badge-tooltip";-import {- Button,- Combobox,- Modal,- SimpleTooltipContent,- Tooltip,- UTM_PARAMETERS,-} from "@dub/ui";+import { Button, Combobox, Modal, Tooltip, UTM_PARAMETERS } from "@dub/ui";import { Crosshairs3, Trash } from "@dub/ui/icons";import {cn,@@ -145,15 +138,7 @@ function TargetingModal({<span className="block text-sm font-medium text-neutral-700">Geo Targeting</span>- <ProBadgeTooltip- content={- <SimpleTooltipContent- title="Redirect your users to different links based on their location."- cta="Learn more about geo targeting."- href="https://dub.co/help/article/geo-targeting"- />- }- />+ <ProBadgeTooltip content="Redirect your users to different links based on their location. [Learn more about geo targeting.](https://dub.co/help/article/geo-targeting)" /></div><div className="mt-2">{geo && (@@ -291,15 +276,7 @@ function TargetingModal({>iOS Targeting</label>- <ProBadgeTooltip- content={- <SimpleTooltipContent- title="Redirect your iOS users to a different link."- cta="Learn more about device targeting."- href="https://dub.co/help/article/device-targeting"- />- }- />+ <ProBadgeTooltip content="Redirect your iOS users to a different link. [Learn more about device targeting.](https://dub.co/help/article/device-targeting)" /></div><div className="mt-2 rounded-md shadow-sm"><input@@ -331,15 +308,7 @@ function TargetingModal({>Android Targeting</label>- <ProBadgeTooltip- content={- <SimpleTooltipContent- title="Redirect your Android users to a different link."- cta="Learn more about device targeting."- href="https://dub.co/help/article/device-targeting"- />- }- />+ <ProBadgeTooltip content="Redirect your Android users to a different link. [Learn more about device targeting.](https://dub.co/help/article/device-targeting)" /></div><div className="mt-2 rounded-md shadow-sm"><inputdiff --git a/apps/web/ui/modals/link-builder/utm-modal.tsx b/apps/web/ui/modals/link-builder/utm-modal.tsxindex f0b88fc14f..8c6cef9052 100644--- a/apps/web/ui/modals/link-builder/utm-modal.tsx+++ b/apps/web/ui/modals/link-builder/utm-modal.tsx@@ -5,7 +5,6 @@ import {DiamondTurnRight,InfoTooltip,Modal,- SimpleTooltipContent,Tooltip,UTM_PARAMETERS,UTMBuilder,@@ -172,11 +171,7 @@ function UTMModalInner({ setShowUTMModal }: UTMModalProps) {<h3 className="text-lg font-medium">UTM Builder</h3><InfoTooltipcontent={- <SimpleTooltipContent- title="Add UTM parameters to your short links for conversion tracking."- cta="Learn more."- href="https://dub.co/help/article/utm-builder"- />+ "Add UTM parameters to your short links for conversion tracking. [Learn more.](https://dub.co/help/article/utm-builder)"}/></div>diff --git a/apps/web/ui/modals/link-qr-modal.tsx b/apps/web/ui/modals/link-qr-modal.tsxindex 033f2c009f..b898c636ba 100644--- a/apps/web/ui/modals/link-qr-modal.tsx+++ b/apps/web/ui/modals/link-qr-modal.tsx@@ -11,7 +11,6 @@ import {Modal,Popover,ShimmerDots,- SimpleTooltipContent,Switch,Tooltip,TooltipContent,@@ -153,15 +152,7 @@ function LinkQRModalInner({<div className="flex items-center justify-between"><div className="flex items-center gap-2"><h3 className="text-lg font-medium">QR Code</h3>- <ProBadgeTooltip- content={- <SimpleTooltipContent- title="Set a custom QR code design to improve click-through rates."- cta="Learn more."- href="https://dub.co/help/article/custom-qr-codes"- />- }- />+ <ProBadgeTooltip content="Set a custom QR code design to improve click-through rates. [Learn more.](https://dub.co/help/article/custom-qr-codes)" /></div><div className="max-md:hidden"><Tooltip@@ -187,15 +178,7 @@ function LinkQRModalInner({<span className="text-sm font-medium text-neutral-700">QR Code Preview</span>- <InfoTooltip- content={- <SimpleTooltipContent- title="Customize your QR code to fit your brand."- cta="Learn more."- href="https://dub.co/help/article/custom-qr-codes"- />- }- />+ <InfoTooltip content="Customize your QR code to fit your brand. [Learn more.](https://dub.co/help/article/custom-qr-codes)" /></div>{url && qrData && (<div className="flex items-center gap-2">@@ -260,15 +243,7 @@ function LinkQRModalInner({>Logo</label>- <InfoTooltip- content={- <SimpleTooltipContent- title="Display your logo in the center of the QR code."- cta="Learn more."- href="https://dub.co/help/article/custom-qr-codes"- />- }- />+ <InfoTooltip content="Display your logo in the center of the QR code. [Learn more.](https://dub.co/help/article/custom-qr-codes)" /></div><Switchid={`${id}-hide-logo`}diff --git a/apps/web/ui/modals/partner-link-modal.tsx b/apps/web/ui/modals/partner-link-modal.tsxindex 11e9cbe39c..364a3a16c2 100644--- a/apps/web/ui/modals/partner-link-modal.tsx+++ b/apps/web/ui/modals/partner-link-modal.tsx@@ -11,7 +11,6 @@ import {InfoTooltip,Modal,ShimmerDots,- SimpleTooltipContent,useCopyToClipboard,useEnterSubmit,useLocalStorage,@@ -116,15 +115,7 @@ function QRCodePreview({<LinkQRModal /><div className="flex items-center gap-2"><h4 className="text-sm font-medium text-neutral-700">QR Code</h4>- <InfoTooltip- content={- <SimpleTooltipContent- title="Set a custom QR code design to improve click-through rates."- cta="Learn more."- href="https://dub.co/help/article/custom-qr-codes"- />- }- />+ <InfoTooltip content="Set a custom QR code design to improve click-through rates. [Learn more.](https://dub.co/help/article/custom-qr-codes)" /></div><div className="relative mt-2 h-24 overflow-hidden rounded-md border border-neutral-300"><Button@@ -366,15 +357,7 @@ function PartnerLinkModalContent({>Short Link</label>- <InfoTooltip- content={- <SimpleTooltipContent- title="This is the short link that will redirect to your destination URL."- cta="Learn more."- href="https://dub.co/help/article/how-to-create-link"- />- }- />+ <InfoTooltip content="This is the short link that will redirect to your destination URL. [Learn more.](https://dub.co/help/article/how-to-create-link)" /></div>{lockKey && (<button@@ -432,15 +415,7 @@ function PartnerLinkModalContent({>Destination URL</label>- <InfoTooltip- content={- <SimpleTooltipContent- title="The URL your users will get redirected to when they visit your short link."- cta="Learn more."- href="https://dub.co/help/article/how-to-create-link"- />- }- />+ <InfoTooltip content="The URL your users will get redirected to when they visit your short link. [Learn more.](https://dub.co/help/article/how-to-create-link)" /></div><div className="relative mt-1 flex rounded-md shadow-sm"><div className="z-[1]">@@ -494,15 +469,7 @@ function PartnerLinkModalContent({>Comments</label>- <InfoTooltip- content={- <SimpleTooltipContent- title="Use comments to add context to your short links – for you and your team."- cta="Learn more."- href="https://dub.co/help/article/link-comments"- />- }- />+ <InfoTooltip content="Use comments to add context to your short links – for you and your team. [Learn more.](https://dub.co/help/article/link-comments)" /></div><TextareaAutosize{...register("comments")}diff --git a/apps/web/ui/modals/partner-link-qr-modal.tsx b/apps/web/ui/modals/partner-link-qr-modal.tsxindex 495b57dbd8..d016afb2de 100644--- a/apps/web/ui/modals/partner-link-qr-modal.tsx+++ b/apps/web/ui/modals/partner-link-qr-modal.tsx@@ -10,7 +10,6 @@ import {Modal,Popover,ShimmerDots,- SimpleTooltipContent,Tooltip,useCopyToClipboard,useLocalStorage,@@ -128,15 +127,7 @@ function PartnerLinkQRModalInner({><div className="flex items-center gap-2"><h3 className="text-lg font-medium">QR Code</h3>- <InfoTooltip- content={- <SimpleTooltipContent- title="Set a custom QR code design to improve click-through rates."- cta="Learn more."- href="https://dub.co/help/article/custom-qr-codes"- />- }- />+ <InfoTooltip content="Set a custom QR code design to improve click-through rates. [Learn more.](https://dub.co/help/article/custom-qr-codes)" /></div><div>@@ -145,15 +136,7 @@ function PartnerLinkQRModalInner({<span className="text-sm font-medium text-neutral-700">QR Code Preview</span>- <InfoTooltip- content={- <SimpleTooltipContent- title="Customize your QR code to fit your brand."- cta="Learn more."- href="https://dub.co/help/article/custom-qr-codes"- />- }- />+ <InfoTooltip content="Customize your QR code to fit your brand. [Learn more.](https://dub.co/help/article/custom-qr-codes)" /></div>{url && qrData && (<div className="flex items-center gap-2">diff --git a/apps/web/ui/modals/saml-modal.tsx b/apps/web/ui/modals/saml-modal.tsxindex c6da29ca07..5e52a77416 100644--- a/apps/web/ui/modals/saml-modal.tsx+++ b/apps/web/ui/modals/saml-modal.tsx@@ -1,13 +1,7 @@import useSAML from "@/lib/swr/use-saml";import useWorkspace from "@/lib/swr/use-workspace";import { SAMLProviderProps } from "@/lib/types";-import {- Button,- InfoTooltip,- Modal,- SimpleTooltipContent,- useMediaQuery,-} from "@dub/ui";+import { Button, InfoTooltip, Modal, useMediaQuery } from "@dub/ui";import { SAML_PROVIDERS } from "@dub/utils";import { Check, Lock, UploadCloud } from "lucide-react";import {@@ -144,13 +138,7 @@ function SAMLModal({{currentProvider.samlModalCopy}</h2><InfoTooltip- content={- <SimpleTooltipContent- title={`Your ${currentProvider.samlModalCopy} is the URL to your SAML provider's metadata.`}- cta="Learn more."- href={`https://dub.co/help/article/${selectedProvider}-saml`}- />- }+ content={`Your ${currentProvider.samlModalCopy} is the URL to your SAML provider's metadata. [Learn more.](https://dub.co/help/article/${selectedProvider}-saml)`}/></div><label@@ -201,13 +189,7 @@ function SAMLModal({{currentProvider.samlModalCopy}</h2><InfoTooltip- content={- <SimpleTooltipContent- title={`Your ${currentProvider.samlModalCopy} is the URL to your SAML provider's metadata.`}- cta="Learn more."- href={`https://dub.co/help/article/${selectedProvider}-saml#step-4-copy-the-metadata-url`}- />- }+ content={`Your ${currentProvider.samlModalCopy} is the URL to your SAML provider's metadata. [Learn more.](https://dub.co/help/article/${selectedProvider}-saml#step-4-copy-the-metadata-url)`}/></div><inputdiff --git a/apps/web/ui/modals/scim-modal.tsx b/apps/web/ui/modals/scim-modal.tsxindex 1892cb4eed..b05e85eb28 100644--- a/apps/web/ui/modals/scim-modal.tsx+++ b/apps/web/ui/modals/scim-modal.tsx@@ -8,7 +8,6 @@ import {Logo,Modal,Refresh2,- SimpleTooltipContent,Tick,useCopyToClipboard,} from "@dub/ui";@@ -111,17 +110,11 @@ function SCIMModal({Directory Provider</h2><InfoTooltip- content={- <SimpleTooltipContent- title="Your directory provider is the IDP you use to manage your users."- cta={selectedProvider ? "Read the guide." : "Learn more."}- href={`https://dub.co/help/${- currentProvider- ? `article/${currentProvider.saml}-scim`- : "category/saml-sso"- }`}- />- }+ content={`Your directory provider is the IDP you use to manage your users. [${selectedProvider ? "Read the guide." : "Learn more."}](https://dub.co/help/${+ currentProvider+ ? `article/${currentProvider.saml}-scim`+ : "category/saml-sso"+ })`}/></div><select@@ -167,13 +160,7 @@ function SCIMModal({{currentProvider.scimModalCopy.url}</h2><InfoTooltip- content={- <SimpleTooltipContent- title="Your directory provider is the IDP you use to manage your users."- cta="Read the guide."- href={`https://dub.co/help/article/${currentProvider.saml}-scim`}- />- }+ content={`Your directory provider is the IDP you use to manage your users. [Read the guide.](https://dub.co/help/article/${currentProvider.saml}-scim)`}/></div><div className="mt-1 flex w-full items-center justify-between rounded-md border border-neutral-300 bg-white px-3 py-2 shadow-sm">@@ -207,13 +194,7 @@ function SCIMModal({{currentProvider.scimModalCopy.token}</h2><InfoTooltip- content={- <SimpleTooltipContent- title="Your directory provider is the IDP you use to manage your users."- cta="Read the guide."- href={`https://dub.co/help/article/${currentProvider.saml}-scim`}- />- }+ content={`Your directory provider is the IDP you use to manage your users. [Read the guide.](https://dub.co/help/article/${currentProvider.saml}-scim)`}/></div><div className="mt-1 flex w-full items-center justify-between rounded-md border border-neutral-300 bg-white px-3 py-2 shadow-sm">diff --git a/apps/web/ui/partners/commission-status-badges.tsx b/apps/web/ui/partners/commission-status-badges.tsxindex 6e9ad99fff..3e4e68c7e2 100644--- a/apps/web/ui/partners/commission-status-badges.tsx+++ b/apps/web/ui/partners/commission-status-badges.tsx@@ -1,5 +1,4 @@import { Program } from "@dub/prisma/client";-import { SimpleTooltipContent } from "@dub/ui";import {CircleCheck,CircleHalfDottedClock,@@ -26,32 +25,24 @@ export const CommissionStatusBadges = {variant: "pending",className: "text-orange-600 bg-orange-100",icon: CircleHalfDottedClock,- tooltip: (data: CommissionTooltipDataProps) => (- <SimpleTooltipContent- title={`This commission is pending and will be eligible for payout after ${data.variant === "partner" ? "the" : "your"} program's ${data.program?.holdingPeriodDays}-day holding period.`}- cta="Learn more."- href="https://dub.co/help/article/commissions-payouts"- />- ),+ tooltip: (data: CommissionTooltipDataProps) =>+ `This commission is pending and will be eligible for payout ${data.program?.holdingPeriodDays ? `after ${data.variant === "partner" ? "the" : "your"} program's ${data.program?.holdingPeriodDays}-day holding period` : "shortly"}. [Learn more.](https://dub.co/help/article/commissions-payouts)`,},processed: {label: "Processed",variant: "new",className: "text-blue-600 bg-blue-100",icon: CircleHalfDottedClock,- tooltip: (data: CommissionTooltipDataProps) => (- <SimpleTooltipContent- title={`This commission has been processed and ${data.variant === "partner" && data.program?.minPayoutAmount ? `will be paid out once your payout total reaches the program's minimum payout amount of ${currencyFormatter(data.program?.minPayoutAmount / 100)}` : "is now eligible for payout"}.`}- cta={- data.variant === "partner" ? "Learn more." : "View pending payouts."- }- href={- data.variant === "partner"- ? "https://dub.co/help/article/commissions-payouts"- : `/${data.workspace?.slug}/program/payouts?status=pending&sortBy=amount`- }- />- ),+ tooltip: (data: CommissionTooltipDataProps) => {+ const title = `This commission has been processed and ${data.variant === "partner" && data.program?.minPayoutAmount ? `will be paid out once your payout total reaches the program's minimum payout amount of ${currencyFormatter(data.program?.minPayoutAmount / 100)}` : "is now eligible for payout"}.`;+ const cta =+ data.variant === "partner" ? "Learn more." : "View pending payouts.";+ const href =+ data.variant === "partner"+ ? "https://dub.co/help/article/commissions-payouts"+ : `/${data.workspace?.slug}/program/payouts?status=pending&sortBy=amount`;+ return `${title} [${cta}](${href})`;+ },},paid: {label: "Paid",@@ -65,83 +56,67 @@ export const CommissionStatusBadges = {variant: "error",className: "text-red-600 bg-red-100",icon: ShieldAlert,- tooltip: (data: CommissionTooltipDataProps) => (- <SimpleTooltipContent- title={`This commission was flagged as fraudulent.${data.variant === "partner" ? " If you believe this is incorrect, " : ""}`}- cta={- data.variant === "partner"- ? `reach out to the ${data.program?.name} team`- : undefined- }- href={- data.variant === "partner"- ? `${PARTNERS_DOMAIN}/messages/${data.program?.slug}`- : undefined- }- />- ),+ tooltip: (data: CommissionTooltipDataProps) => {+ const title = `This commission was flagged as fraudulent.${data.variant === "partner" ? " If you believe this is incorrect, " : ""}`;+ if (+ data.variant === "partner" &&+ data.program?.name &&+ data.program?.slug+ ) {+ return `${title}[reach out to the ${data.program.name} team](${PARTNERS_DOMAIN}/messages/${data.program.slug})`;+ }+ return title;+ },},duplicate: {label: "Duplicate",variant: "error",className: "text-red-600 bg-red-100",icon: Duplicate,- tooltip: (data: CommissionTooltipDataProps) => (- <SimpleTooltipContent- title={`This commission was flagged as duplicate.${data.variant === "partner" ? " If you believe this is incorrect, " : ""}`}- cta={- data.variant === "partner"- ? `reach out to the ${data.program?.name} team`- : undefined- }- href={- data.variant === "partner"- ? `${PARTNERS_DOMAIN}/messages/${data.program?.slug}`- : undefined- }- />- ),+ tooltip: (data: CommissionTooltipDataProps) => {+ const title = `This commission was flagged as duplicate.${data.variant === "partner" ? " If you believe this is incorrect, " : ""}`;+ if (+ data.variant === "partner" &&+ data.program?.name &&+ data.program?.slug+ ) {+ return `${title}[reach out to the ${data.program.name} team](${PARTNERS_DOMAIN}/messages/${data.program.slug})`;+ }+ return title;+ },},refunded: {label: "Refunded",variant: "error",className: "text-red-600 bg-red-100",icon: CircleXmark,- tooltip: (data: CommissionTooltipDataProps) => (- <SimpleTooltipContent- title={`This commission was refunded.${data.variant === "partner" ? " If you believe this is incorrect, " : ""}`}- cta={- data.variant === "partner"- ? `reach out to the ${data.program?.name} team`- : undefined- }- href={- data.variant === "partner"- ? `${PARTNERS_DOMAIN}/messages/${data.program?.slug}`- : undefined- }- />- ),+ tooltip: (data: CommissionTooltipDataProps) => {+ const title = `This commission was refunded.${data.variant === "partner" ? " If you believe this is incorrect, " : ""}`;+ if (+ data.variant === "partner" &&+ data.program?.name &&+ data.program?.slug+ ) {+ return `${title}[reach out to the ${data.program.name} team](${PARTNERS_DOMAIN}/messages/${data.program.slug})`;+ }+ return title;+ },},canceled: {label: "Canceled",variant: "neutral",className: "text-gray-600 bg-gray-100",icon: CircleXmark,- tooltip: (data: CommissionTooltipDataProps) => (- <SimpleTooltipContent- title={`This commission was canceled.${data.variant === "partner" ? " If you believe this is incorrect, " : ""}`}- cta={- data.variant === "partner"- ? `reach out to the ${data.program?.name} team`- : undefined- }- href={- data.variant === "partner"- ? `${PARTNERS_DOMAIN}/messages/${data.program?.slug}`- : undefined- }- />- ),+ tooltip: (data: CommissionTooltipDataProps) => {+ const title = `This commission was canceled.${data.variant === "partner" ? " If you believe this is incorrect, " : ""}`;+ if (+ data.variant === "partner" &&+ data.program?.name &&+ data.program?.slug+ ) {+ return `${title}[reach out to the ${data.program.name} team](${PARTNERS_DOMAIN}/messages/${data.program.slug})`;+ }+ return title;+ },},};diff --git a/apps/web/ui/partners/confirm-payouts-sheet.tsx b/apps/web/ui/partners/confirm-payouts-sheet.tsxindex f04ccb1418..07c2fc5cf0 100644--- a/apps/web/ui/partners/confirm-payouts-sheet.tsx+++ b/apps/web/ui/partners/confirm-payouts-sheet.tsx@@ -29,7 +29,6 @@ import {PaperPlane,Sheet,ShimmerDots,- SimpleTooltipContent,Table,TooltipContent,useRouterStuff,@@ -435,21 +434,7 @@ function ConfirmPayoutsSheetContent() {<CircleArrowRight className="size-3.5 text-neutral-500" /></div>),- tooltipContent: (- <div className="max-w-xs px-4 py-2 text-center text-sm text-neutral-700">- Payouts that are processed externally via the{" "}- <code className="rounded-md bg-neutral-100 px-1 py-0.5 font-mono">- payout.confirmed- </code>{" "}- webhook event.- <a- href="http://dub.co/docs/partners/external-payouts"- target="_blank"- >- <Button text="Learn more" className="mt-2 h-7 px-3" />- </a>- </div>- ),+ tooltipContent: `Payouts that are processed externally via the \`payout.confirmed\` [webhook event](${`/${slug}/settings/webhooks`}). [Learn more about external payouts](http://dub.co/docs/partners/external-payouts).`,},]: []),@@ -461,13 +446,9 @@ function ConfirmPayoutsSheetContent() {) : (<div className="h-4 w-24 animate-pulse rounded-md bg-neutral-200" />),- tooltipContent: selectedPaymentMethod ? (- <SimpleTooltipContent- title={`${selectedPaymentMethod.fee * 100}% processing fee${(fastAchFee ?? 0) > 0 ? ` + ${currencyFormatter((fastAchFee ?? 0) / 100)} Fast ACH fee` : ""}. ${!DIRECT_DEBIT_PAYMENT_METHOD_TYPES.includes(selectedPaymentMethod.type as Stripe.PaymentMethod.Type) ? " Switch to Direct Debit for a reduced fee." : ""}`}- cta="Learn more"- href="https://d.to/payouts"- />- ) : undefined,+ tooltipContent: selectedPaymentMethod+ ? `${selectedPaymentMethod.fee * 100}% processing fee${(fastAchFee ?? 0) > 0 ? ` + ${currencyFormatter((fastAchFee ?? 0) / 100)} Fast ACH fee` : ""}. ${!DIRECT_DEBIT_PAYMENT_METHOD_TYPES.includes(selectedPaymentMethod.type as Stripe.PaymentMethod.Type) ? " Switch to Direct Debit for a reduced fee." : ""} [Learn more](https://d.to/payouts)`+ : undefined,},{key: "Transfer Time",diff --git a/apps/web/ui/partners/discounts/add-edit-discount-sheet.tsx b/apps/web/ui/partners/discounts/add-edit-discount-sheet.tsxindex ffbecab249..44cbed8060 100644--- a/apps/web/ui/partners/discounts/add-edit-discount-sheet.tsx+++ b/apps/web/ui/partners/discounts/add-edit-discount-sheet.tsx@@ -18,13 +18,7 @@ import {InlineBadgePopoverMenu,} from "@/ui/shared/inline-badge-popover";import { UpgradeRequiredToast } from "@/ui/shared/upgrade-required-toast";-import {- Button,- InfoTooltip,- Sheet,- SimpleTooltipContent,- Switch,-} from "@dub/ui";+import { Button, InfoTooltip, Sheet, Switch } from "@dub/ui";import { CircleCheckFill, Tag } from "@dub/ui/icons";import { capitalize, cn, pluralize } from "@dub/utils";import { useAction } from "next-safe-action/hooks";@@ -343,11 +337,7 @@ function DiscountSheetContent({Use Stripe test coupon ID</h3>- <InfoTooltip- content={- <SimpleTooltipContent title="Enabling this will allow you to test your coupon code before going live by entering your Stripe test coupon ID." />- }- />+ <InfoTooltip content="Enabling this will allow you to test your coupon code before going live by entering your Stripe test coupon ID." /></div></div>diff --git a/apps/web/ui/partners/external-payouts-indicator.tsx b/apps/web/ui/partners/external-payouts-indicator.tsxindex a11b590af6..0cdfc7e74e 100644--- a/apps/web/ui/partners/external-payouts-indicator.tsx+++ b/apps/web/ui/partners/external-payouts-indicator.tsx@@ -1,4 +1,4 @@-import { Button, CircleArrowRight, Tooltip } from "@dub/ui";+import { CircleArrowRight, Tooltip } from "@dub/ui";import { useParams } from "next/navigation";export function ExternalPayoutsIndicator({@@ -10,28 +10,7 @@ export function ExternalPayoutsIndicator({return (<Tooltip- content={- <div className="max-w-xs px-4 py-2 text-center text-sm text-neutral-700">- This payout will be processed externally via the{" "}- <code className="rounded-md bg-neutral-100 px-1 py-0.5 font-mono">- payout.confirmed- </code>{" "}- <a- href={`/${slug}/settings/webhooks`}- target="_blank"- rel="noopener noreferrer"- className="cursor-alias underline decoration-dotted underline-offset-2"- >- webhook event.- </a>- <a- href="http://dub.co/docs/partners/external-payouts"- target="_blank"- >- <Button text="Learn more" className="mt-2 h-7 px-3" />- </a>- </div>- }+ content={`This payout will be processed externally via the \`payout.confirmed\` [webhook event](${`/${slug}/settings/webhooks`}). [Learn more about external payouts](http://dub.co/docs/partners/external-payouts).`}side={side}><CircleArrowRight className="size-3.5 text-purple-800" />diff --git a/apps/web/ui/partners/groups/design/application-form/fields/max-character-count.tsx b/apps/web/ui/partners/groups/design/application-form/fields/max-character-count.tsxindex 3f0323632a..e09300cdf2 100644--- a/apps/web/ui/partners/groups/design/application-form/fields/max-character-count.tsx+++ b/apps/web/ui/partners/groups/design/application-form/fields/max-character-count.tsx@@ -1,12 +1,20 @@import { cn } from "@dub/utils";-export const MaxCharacterCount = ({ currentLength, maxLength }: { currentLength: number, maxLength: number }) => {+export const MaxCharacterCount = ({+ currentLength,+ maxLength,+}: {+ currentLength: number;+ maxLength: number;+}) => {const isOverLimit = currentLength > maxLength;return (- <span className={cn(- "transition-colors duration-75 text-xs",- isOverLimit ? "text-red-500" : "text-neutral-500"- )}>+ <span+ className={cn(+ "text-xs transition-colors duration-75",+ isOverLimit ? "text-red-500" : "text-neutral-500",+ )}+ >{currentLength}/{maxLength}</span>);diff --git a/apps/web/ui/partners/groups/design/application-form/fields/website-and-socials-field.tsx b/apps/web/ui/partners/groups/design/application-form/fields/website-and-socials-field.tsxindex 2ea4cac720..b09558e242 100644--- a/apps/web/ui/partners/groups/design/application-form/fields/website-and-socials-field.tsx+++ b/apps/web/ui/partners/groups/design/application-form/fields/website-and-socials-field.tsx@@ -1,5 +1,12 @@-import { sanitizeSocialHandle, sanitizeWebsite, SocialPlatform } from "@/lib/social-utils";-import { programApplicationFormSiteSchema, programApplicationFormWebsiteAndSocialsFieldSchema } from "@/lib/zod/schemas/program-application-form";+import {+ sanitizeSocialHandle,+ sanitizeWebsite,+ SocialPlatform,+} from "@/lib/social-utils";+import {+ programApplicationFormSiteSchema,+ programApplicationFormWebsiteAndSocialsFieldSchema,+} from "@/lib/zod/schemas/program-application-form";import { cn } from "@dub/utils";import { useCallback } from "react";import { useFormContext } from "react-hook-form";@@ -8,9 +15,11 @@ import { FormControl } from "./form-control";type WebsiteAndSocialsFieldData = z.infer<typeof programApplicationFormWebsiteAndSocialsFieldSchema->+>;-type WebsiteAndSocialsSiteData = z.infer<typeof programApplicationFormSiteSchema>+type WebsiteAndSocialsSiteData = z.infer<+ typeof programApplicationFormSiteSchema+>;const Field = ({keyPath: keyPathProp,@@ -18,13 +27,13 @@ const Field = ({preview,}: {keyPath?: string;- field: WebsiteAndSocialsSiteData+ field: WebsiteAndSocialsSiteData;preview?: boolean;}) => {const { register, getFieldState, setValue } = useFormContext<any>();const keyPath = keyPathProp ? `${keyPathProp}.value` : "value";const state = getFieldState(keyPath);- const error = !!state.error+ const error = !!state.error;const onPasteSocial = useCallback((e: React.ClipboardEvent<HTMLInputElement>, platform: SocialPlatform) => {@@ -55,145 +64,139 @@ const Field = ({switch (field.type) {case "website":return (- <FormControl- required={field.required}- label="Website"- >+ <FormControl required={field.required} label="Website"><inputtype="text"className={cn(- "block w-full rounded-md focus:outline-none text-sm min-h-10",+ "block min-h-10 w-full rounded-md text-sm focus:outline-none",error? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"- : "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:ring-neutral-500 focus:border-[var(--brand)] focus:ring-[var(--brand)]",+ : "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-[var(--brand)] focus:border-neutral-500 focus:ring-[var(--brand)] focus:ring-neutral-500",)}placeholder=""onPaste={onPasteWebsite}- {...(preview ? {} : register(keyPath, { required: field.required }))}+ {...(preview+ ? {}+ : register(keyPath, { required: field.required }))}/></FormControl>);case "youtube":return (- <FormControl- required={field.required}- label="YouTube"- >+ <FormControl required={field.required} label="YouTube"><div className="flex rounded-md bg-white">- <span className="inline-flex items-center rounded-l-md border border-r-0 border-neutral-300 px-3 text-neutral-800 font-medium text-sm">+ <span className="inline-flex items-center rounded-l-md border border-r-0 border-neutral-300 px-3 text-sm font-medium text-neutral-800">youtube.com/</span><inputtype="text"className={cn(- "block w-full rounded-none rounded-r-md focus:outline-none text-sm min-h-10",+ "block min-h-10 w-full rounded-none rounded-r-md text-sm focus:outline-none",error? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"- : "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:ring-neutral-500 focus:border-[var(--brand)] focus:ring-[var(--brand)]",+ : "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-[var(--brand)] focus:border-neutral-500 focus:ring-[var(--brand)] focus:ring-neutral-500",)}placeholder="handle"onPaste={(e) => onPasteSocial(e, "youtube")}- {...(preview ? {} : register(keyPath, { required: field.required }))}+ {...(preview+ ? {}+ : register(keyPath, { required: field.required }))}/></div></FormControl>);case "twitter":return (- <FormControl- required={field.required}- label="X/Twitter"- >+ <FormControl required={field.required} label="X/Twitter"><div className="flex rounded-md bg-white">- <span className="inline-flex items-center rounded-l-md border border-r-0 border-neutral-300 px-3 text-neutral-800 font-medium text-sm">+ <span className="inline-flex items-center rounded-l-md border border-r-0 border-neutral-300 px-3 text-sm font-medium text-neutral-800">x.com/</span><inputtype="text"className={cn(- "block w-full rounded-none rounded-r-md focus:outline-none text-sm min-h-10",+ "block min-h-10 w-full rounded-none rounded-r-md text-sm focus:outline-none",error? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"- : "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:ring-neutral-500 focus:border-[var(--brand)] focus:ring-[var(--brand)]",+ : "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-[var(--brand)] focus:border-neutral-500 focus:ring-[var(--brand)] focus:ring-neutral-500",)}placeholder="handle"onPaste={(e) => onPasteSocial(e, "twitter")}- {...(preview ? {} : register(keyPath, { required: field.required }))}+ {...(preview+ ? {}+ : register(keyPath, { required: field.required }))}/></div></FormControl>);case "linkedin":return (- <FormControl- required={field.required}- label="LinkedIn"- >+ <FormControl required={field.required} label="LinkedIn"><div className="flex rounded-md bg-white">- <span className="inline-flex items-center rounded-l-md border border-r-0 border-neutral-300 px-3 text-neutral-800 font-medium text-sm">+ <span className="inline-flex items-center rounded-l-md border border-r-0 border-neutral-300 px-3 text-sm font-medium text-neutral-800">linkedin.com/in/</span><inputtype="text"className={cn(- "block w-full rounded-none rounded-r-md focus:outline-none text-sm min-h-10",+ "block min-h-10 w-full rounded-none rounded-r-md text-sm focus:outline-none",error? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"- : "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:ring-neutral-500 focus:border-[var(--brand)] focus:ring-[var(--brand)]",+ : "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-[var(--brand)] focus:border-neutral-500 focus:ring-[var(--brand)] focus:ring-neutral-500",)}placeholder="handle"onPaste={(e) => onPasteSocial(e, "linkedin")}- {...(preview ? {} : register(keyPath, { required: field.required }))}+ {...(preview+ ? {}+ : register(keyPath, { required: field.required }))}/></div></FormControl>);case "instagram":return (- <FormControl- required={field.required}- label="Instagram"- >+ <FormControl required={field.required} label="Instagram"><div className="flex rounded-md bg-white">- <span className="inline-flex items-center rounded-l-md border border-r-0 border-neutral-300 px-3 text-neutral-800 font-medium text-sm">+ <span className="inline-flex items-center rounded-l-md border border-r-0 border-neutral-300 px-3 text-sm font-medium text-neutral-800">instagram.com/</span><inputtype="text"className={cn(- "block w-full rounded-none rounded-r-md focus:outline-none text-sm min-h-10",+ "block min-h-10 w-full rounded-none rounded-r-md text-sm focus:outline-none",error? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"- : "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:ring-neutral-500 focus:border-[var(--brand)] focus:ring-[var(--brand)]",+ : "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-[var(--brand)] focus:border-neutral-500 focus:ring-[var(--brand)] focus:ring-neutral-500",)}placeholder="handle"onPaste={(e) => onPasteSocial(e, "instagram")}- {...(preview ? {} : register(keyPath, { required: field.required }))}+ {...(preview+ ? {}+ : register(keyPath, { required: field.required }))}/></div></FormControl>);case "tiktok":return (- <FormControl- required={field.required}- label="TikTok"- >+ <FormControl required={field.required} label="TikTok"><div className="flex rounded-md bg-white">- <span className="inline-flex items-center rounded-l-md border border-r-0 border-neutral-300 px-3 text-neutral-800 font-medium text-sm">+ <span className="inline-flex items-center rounded-l-md border border-r-0 border-neutral-300 px-3 text-sm font-medium text-neutral-800">tiktok.com/</span><inputtype="text"className={cn(- "block w-full rounded-none rounded-r-md focus:outline-none text-sm min-h-10",+ "block min-h-10 w-full rounded-none rounded-r-md text-sm focus:outline-none",error? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"- : "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:ring-neutral-500 focus:border-[var(--brand)] focus:ring-[var(--brand)]",+ : "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-[var(--brand)] focus:border-neutral-500 focus:ring-[var(--brand)] focus:ring-neutral-500",)}placeholder="handle"onPaste={(e) => onPasteSocial(e, "tiktok")}- {...(preview ? {} : register(keyPath, { required: field.required }))}+ {...(preview+ ? {}+ : register(keyPath, { required: field.required }))}/></div></FormControl>@@ -201,8 +204,7 @@ const Field = ({default:return null;}--}+};export function WebsiteAndSocialsField({keyPath,@@ -220,8 +222,9 @@ export function WebsiteAndSocialsField({key={index}field={fieldData}keyPath={`${keyPath}.data.${index}`}- preview={preview} />+ preview={preview}+ />))}- </div >+ </div>);}diff --git a/apps/web/ui/partners/merge-accounts/merge-partner-accounts-modal.tsx b/apps/web/ui/partners/merge-accounts/merge-partner-accounts-modal.tsxindex 2231656442..cce0d06d8c 100644--- a/apps/web/ui/partners/merge-accounts/merge-partner-accounts-modal.tsx+++ b/apps/web/ui/partners/merge-accounts/merge-partner-accounts-modal.tsx@@ -4,7 +4,7 @@ import { MergePartnerAccountsFormProvider } from "@/ui/partners/merge-accounts/fimport { MergeAccountForm } from "@/ui/partners/merge-accounts/merge-account-form";import { SendVerificationCodeForm } from "@/ui/partners/merge-accounts/send-verification-code-form";import { VerifyCodeForm } from "@/ui/partners/merge-accounts/verify-code-form";-import { InfoTooltip, Modal, SimpleTooltipContent } from "@dub/ui";+import { InfoTooltip, Modal } from "@dub/ui";import { AnimatePresence, motion, Variants } from "motion/react";import {Dispatch,@@ -72,15 +72,7 @@ function MergePartnerAccountsModalInner({<div><div className="flex items-center gap-2 border-b border-neutral-200 p-4 sm:p-6"><h3 className="text-lg font-medium leading-none">Merge accounts</h3>- <InfoTooltip- content={- <SimpleTooltipContent- title="Learn how to merge one of your partner accounts with another, to keep things organized and better managed."- cta="Learn more"- href="https://dub.co/help/article/merging-partner-accounts"- />- }- />+ <InfoTooltip content="Learn how to merge one of your partner accounts with another, to keep things organized and better managed. [Learn more](https://dub.co/help/article/merging-partner-accounts)" /></div><div className="flex flex-col gap-2 bg-neutral-50 p-4 sm:p-6">diff --git a/apps/web/ui/partners/partners-upgrade-modal.tsx b/apps/web/ui/partners/partners-upgrade-modal.tsxindex b3b3cbccb9..9890c07c9d 100644--- a/apps/web/ui/partners/partners-upgrade-modal.tsx+++ b/apps/web/ui/partners/partners-upgrade-modal.tsx@@ -5,7 +5,6 @@ import {Grid,Modal,PLAN_FEATURE_ICONS,- SimpleTooltipContent,Switch,Tooltip,useRouterStuff,@@ -229,7 +228,13 @@ export function PartnersUpgradeModal({><Icon className="size-3 shrink-0 [&_*]:stroke-2" />{tooltip ? (- <Tooltip content={<SimpleTooltipContent {...tooltip} />}>+ <Tooltip+ content={+ tooltip.href && tooltip.cta+ ? `${tooltip.title} [${tooltip.cta}](${tooltip.href})`+ : tooltip.title+ }+ ><span className="cursor-help underline decoration-dotted underline-offset-2">{text}</span>diff --git a/apps/web/ui/partners/program-link-configuration.tsx b/apps/web/ui/partners/program-link-configuration.tsxindex 35823a6d81..e231175da2 100644--- a/apps/web/ui/partners/program-link-configuration.tsx+++ b/apps/web/ui/partners/program-link-configuration.tsx@@ -3,7 +3,7 @@ import useWorkspace from "@/lib/swr/use-workspace";import { DomainVerificationStatusProps } from "@/lib/types";import DomainConfiguration from "@/ui/domains/domain-configuration";import { DomainSelector } from "@/ui/domains/domain-selector";-import { InfoTooltip, Input, LinkLogo, SimpleTooltipContent } from "@dub/ui";+import { InfoTooltip, Input, LinkLogo } from "@dub/ui";import { ArrowTurnRight2 } from "@dub/ui/icons";import { fetcher, getApexDomain, getPrettyUrl } from "@dub/utils";import { AnimatePresence, motion } from "motion/react";@@ -49,15 +49,7 @@ export function ProgramLinkConfiguration({Custom domain</label>- <InfoTooltip- content={- <SimpleTooltipContent- title="A connected domain or sub-domain is required to create a program."- cta="Learn more"- href="https://dub.co/help/article/choosing-a-custom-domain"- />- }- />+ <InfoTooltip content="A connected domain or sub-domain is required to create a program. [Learn more](https://dub.co/help/article/choosing-a-custom-domain)" /></div><DomainSelectordiff --git a/apps/web/ui/workspaces/plan-features.tsx b/apps/web/ui/workspaces/plan-features.tsxindex e56164ab62..09a9fdc766 100644--- a/apps/web/ui/workspaces/plan-features.tsx+++ b/apps/web/ui/workspaces/plan-features.tsx@@ -2,7 +2,6 @@ import {AdvancedLinkFeaturesTooltip,Check,PLAN_FEATURE_ICONS,- SimpleTooltipContent,STAGGER_CHILD_VARIANTS,Tooltip,} from "@dub/ui";@@ -64,8 +63,10 @@ export function PlanFeatures({) : (tooltip)+ ) : tooltip.href && tooltip.cta ? (+ `${tooltip.title} [${tooltip.cta}](${tooltip.href})`) : (- <SimpleTooltipContent {...tooltip} />+ tooltip.title)}>diff --git a/packages/email/src/templates/partner-user-invited.tsx b/packages/email/src/templates/partner-user-invited.tsxindex 7948bafa16..ef68c18e34 100644--- a/packages/email/src/templates/partner-user-invited.tsx+++ b/packages/email/src/templates/partner-user-invited.tsx@@ -54,8 +54,8 @@ export default function PartnerUserInvited({</Text>) : (<Text className="text-sm leading-6 text-black">- You have been invited to join the{" "}- <strong>{partnerName}</strong> partner profile on Dub Partners!+ You have been invited to join the <strong>{partnerName}</strong>{" "}+ partner profile on Dub Partners!</Text>)}<Section className="mb-8 mt-8">diff --git a/packages/embeds/react/src/example/app.tsx b/packages/embeds/react/src/example/app.tsxindex a934750c58..fd35290ca3 100644--- a/packages/embeds/react/src/example/app.tsx+++ b/packages/embeds/react/src/example/app.tsx@@ -1,6 +1,5 @@-import { createRoot } from "react-dom/client";import { useCallback, useEffect, useState } from "react";-import ReactDom from "react-dom";+import { createRoot } from "react-dom/client";import { DubEmbed } from "../embed";const Embed = () => {diff --git a/packages/tailwind-config/tailwind.config.ts b/packages/tailwind-config/tailwind.config.tsindex c81a9b5a73..47b078b64a 100644--- a/packages/tailwind-config/tailwind.config.ts+++ b/packages/tailwind-config/tailwind.config.ts@@ -21,6 +21,8 @@ const config: Config = {css: {"blockquote p:first-of-type::before": { content: "none" },"blockquote p:first-of-type::after": { content: "none" },+ "code::before": { content: '""' },+ "code::after": { content: '""' },},},},diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 48652f9875..9d41ed7b1e 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -104,6 +104,7 @@"lucide-react": "^0.462.0","motion": "^12.23.22","react-day-picker": "^8.10.1",+ "react-markdown": "^9.0.3","sonner": "^1.4.41","swr": "^2.1.5","use-debounce": "^8.0.4",diff --git a/packages/ui/src/hooks/use-enter-submit.ts b/packages/ui/src/hooks/use-enter-submit.tsindex 737a422fe0..bf721a4ec7 100644--- a/packages/ui/src/hooks/use-enter-submit.ts+++ b/packages/ui/src/hooks/use-enter-submit.ts@@ -1,6 +1,8 @@import { KeyboardEvent, useCallback } from "react";-export function useEnterSubmit(formRef?: React.RefObject<HTMLFormElement | null>) {+export function useEnterSubmit(+ formRef?: React.RefObject<HTMLFormElement | null>,+) {const handleKeyDown = useCallback((event: KeyboardEvent<HTMLTextAreaElement>) => {// Check if CMD/CTRL + Enter is presseddiff --git a/packages/ui/src/scroll-container.tsx b/packages/ui/src/scroll-container.tsxindex 15917a2e43..c749e54a33 100644--- a/packages/ui/src/scroll-container.tsx+++ b/packages/ui/src/scroll-container.tsx@@ -25,7 +25,7 @@ export function ScrollContainer({</div>{/* Bottom scroll fade */}<div- className="pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full rounded-b-lg bg-gradient-to-t from-white to-transparent sm:block z-10"+ className="pointer-events-none absolute bottom-0 left-0 z-10 hidden h-16 w-full rounded-b-lg bg-gradient-to-t from-white to-transparent sm:block"style={{ opacity: 1 - Math.pow(scrollProgress, 2) }}/></div>diff --git a/packages/ui/src/tooltip.tsx b/packages/ui/src/tooltip.tsxindex 415bd51c71..7e83b696b1 100644--- a/packages/ui/src/tooltip.tsx+++ b/packages/ui/src/tooltip.tsx@@ -1,11 +1,11 @@"use client";-import { cn, nFormatter, timeAgo } from "@dub/utils";+import { cn } from "@dub/utils";import * as TooltipPrimitive from "@radix-ui/react-tooltip";-import Linkify from "linkify-react";import { HelpCircle } from "lucide-react";import Link from "next/link";import { ReactNode, useState } from "react";+import ReactMarkdown from "react-markdown";import { Badge } from "./badge";import { Button, ButtonProps, buttonVariants } from "./button";@@ -17,6 +17,38 @@ export function TooltipProvider({ children }: { children: ReactNode }) {);}+const TooltipMarkdown = ({+ className,+ children,+}: {+ className?: string;+ children: string;+}) => {+ return (+ <ReactMarkdown+ className={cn(+ "prose prose-sm prose-neutral max-w-xs text-pretty px-4 py-2 text-center leading-snug transition-all",+ "prose-a:cursor-alias prose-a:underline prose-a:decoration-dotted prose-a:underline-offset-2",+ className,+ )}+ components={{+ a: ({ node, ...props }) => (+ <a+ {...props}+ target="_blank"+ rel="noopener noreferrer"+ onClick={(e) => e.stopPropagation()}+ />+ ),+ code: ({ node, ...props }) => (+ <code {...props} className="rounded-md bg-neutral-100 px-1 py-0.5" />+ ),+ }}+ >+ {children}+ </ReactMarkdown>+ );+};export interface TooltipPropsextends Omit<TooltipPrimitive.TooltipContentProps, "content"> {content:@@ -68,14 +100,9 @@ export function Tooltip({{...rest}>{typeof content === "string" ? (- <span- className={cn(- "block max-w-xs text-pretty px-4 py-2 text-center text-sm text-neutral-700",- contentClassName,- )}- >+ <TooltipMarkdown className={contentClassName}>{content}- </span>+ </TooltipMarkdown>) : typeof content === "function" ? (content({ setOpen })) : (@@ -94,7 +121,7 @@ export function TooltipContent({target,onClick,}: {- title: ReactNode;+ title: string;cta?: string;href?: string;target?: string;@@ -102,7 +129,7 @@ export function TooltipContent({}) {return (<div className="flex max-w-xs flex-col items-center space-y-3 p-4 text-center">- <p className="text-sm text-neutral-700">{title}</p>+ <TooltipMarkdown>{title}</TooltipMarkdown>{cta &&(href ? (<Link@@ -127,69 +154,6 @@ export function TooltipContent({);}-export function SimpleTooltipContent({- title,- cta,- href,-}: {- title: string;- cta?: string;- href?: string;-}) {- return (- <div className="max-w-xs px-4 py-2 text-center text-sm text-neutral-700">- {title}- {cta && href && (- <>- {" "}- <a- href={href}- target="_blank"- rel="noopener noreferrer"- onClick={(e) => e.stopPropagation()}- className="inline-flex text-neutral-500 underline underline-offset-4 hover:text-neutral-800"- >- {cta}- </a>- </>- )}- </div>- );-}--export function LinkifyTooltipContent({- children,- className,- tooltipClassName,-}: {- children: ReactNode;- className?: string;- tooltipClassName?: string;-}) {- return (- <div- className={cn(- "block max-w-xs whitespace-pre-wrap text-balance px-4 py-2 text-center text-sm text-neutral-700",- tooltipClassName,- )}- >- <Linkify- as="p"- options={{- target: "_blank",- rel: "noopener noreferrer nofollow",- className: cn(- "underline underline-offset-4 text-neutral-400 hover:text-neutral-700",- className,- ),- }}- >- {children}- </Linkify>- </div>- );-}-export function InfoTooltip(props: Omit<TooltipProps, "children">) {return (<Tooltip {...props}>@@ -198,46 +162,6 @@ export function InfoTooltip(props: Omit<TooltipProps, "children">) {);}-export function NumberTooltip({- value,- unit = "total clicks",- prefix,- children,- lastClicked,-}: {- value?: number | null;- unit?: string;- prefix?: string;- children: ReactNode;- lastClicked?: Date | null;-}) {- if ((!value || value < 1000) && !lastClicked) {- return children;- }- return (- <Tooltip- content={- <div className="block max-w-xs px-4 py-2 text-center text-sm text-neutral-700">- <p className="text-sm font-semibold text-neutral-700">- {prefix}- {nFormatter(value || 0, { full: true })} {unit}- </p>- {lastClicked && (- <p- className="mt-1 text-xs text-neutral-500"- suppressHydrationWarning- >- Last clicked {timeAgo(lastClicked, { withAgo: true })}- </p>- )}- </div>- }- >- {children}- </Tooltip>- );-}-export function BadgeTooltip({ children, content, ...props }: TooltipProps) {return (<Tooltip content={content} {...props}>diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex adafb24152..4129d5196a 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -856,6 +856,9 @@ importers:react-dom:specifier: 19.1.1version: 19.1.1([email protected])+ react-markdown:+ specifier: ^9.0.3+ version: 9.0.3(@types/[email protected])([email protected])sonner:specifier: ^1.4.41@@ -5861,9 +5864,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==}- '@types/[email protected]':- resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}-'@types/[email protected]':resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}@@ -18571,7 +18571,7 @@ snapshots:'@rollup/[email protected]([email protected])':dependencies:- '@types/estree': 1.0.5+ '@types/estree': 1.0.8estree-walker: 2.0.2picomatch: 4.0.3optionalDependencies:@@ -20057,18 +20057,16 @@ snapshots:'@types/[email protected]':dependencies:'@types/eslint': 8.56.2- '@types/estree': 1.0.5+ '@types/estree': 1.0.8'@types/[email protected]':dependencies:- '@types/estree': 1.0.5+ '@types/estree': 1.0.8'@types/json-schema': 7.0.15'@types/[email protected]':dependencies:- '@types/estree': 1.0.5-- '@types/[email protected]': {}+ '@types/estree': 1.0.8'@types/[email protected]': {}@@ -22991,7 +22989,7 @@ snapshots:dependencies:- '@types/estree': 1.0.5+ '@types/estree': 1.0.8@@ -23788,7 +23786,7 @@ snapshots:dependencies:- '@types/estree': 1.0.5+ '@types/estree': 1.0.8'@types/hast': 3.0.4'@types/unist': 3.0.2comma-separated-tokens: 2.0.3@@ -29682,7 +29680,7 @@ snapshots:dependencies:'@types/eslint-scope': 3.7.7- '@types/estree': 1.0.5+ '@types/estree': 1.0.8'@webassemblyjs/ast': 1.11.6'@webassemblyjs/wasm-edit': 1.11.6'@webassemblyjs/wasm-parser': 1.11.6@@ -29785,7 +29783,7 @@ snapshots:isarray: 2.0.5which-boxed-primitive: 1.0.2which-collection: 1.0.2- which-typed-array: 1.1.11+ which-typed-array: 1.1.15dependencies: