The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Merge branch 'main' into @dub/email
Kiran K90c26d654086
diff --cc apps/web/package.jsonindex b8b0f10f49,b780874a8d..7a87189697--- a/apps/web/package.json+++ b/apps/web/package.json@@@ -24,7 -24,7 +24,8 @@@"@dub/tailwind-config": "workspace:*","@dub/ui": "workspace:*","@dub/utils": "workspace:*",+ "@dub/email": "workspace:*",+ "@floating-ui/react": "^0.26.20","@hookform/resolvers": "^3.9.0","@next-auth/prisma-adapter": "^1.0.5","@next/third-parties": "^15.1.0",diff --cc packages/email/src/templates/upgrade-email.tsxindex e5778eb0d1,9f03f17866..f1bc34ce29--- a/packages/email/src/templates/upgrade-email.tsx+++ b/packages/email/src/templates/upgrade-email.tsx@@@ -12,12 -12,12 +12,12 @@@ importTailwind,Text,} from "@react-email/components";-import Footer from "./components/footer";+import { Footer } from "../components/footer";-export default function UpgradeEmail({+export function UpgradeEmail({name = "Brendon Urie",email = "[email protected]",- plan = "Pro",+ plan = "Business",}: {name: string | null;email: string;diff --cc packages/email/src/templates/webhook-disabled.tsxindex e4d6144123,76cc9069d1..ee3c688b6d--- a/packages/email/src/templates/webhook-disabled.tsx+++ b/packages/email/src/templates/webhook-disabled.tsx@@@ -1,4 -1,4 +1,4 @@@- // import { WEBHOOK_FAILURE_NOTIFY_THRESHOLD } from "@/lib/webhook/constants";-import { WEBHOOK_FAILURE_DISABLE_THRESHOLD } from "@/lib/webhook/constants";++// import { WEBHOOK_FAILURE_DISABLE_THRESHOLD } from "@/lib/webhook/constants";import { DUB_WORDMARK } from "@dub/utils";import {Body,diff --cc packages/email/src/templates/webhook-failed.tsxindex 0000000000,50327803de..1d73bf5f26mode 000000,100644..100644--- a/packages/email/src/templates/webhook-failed.tsx+++ b/packages/email/src/templates/webhook-failed.tsx@@@ -1,0 -1,78 +1,78 @@@+ import { DUB_WORDMARK } from "@dub/utils";+ import {+ Body,+ Container,+ Head,+ Heading,+ Html,+ Img,+ Link,+ Preview,+ Section,+ Tailwind,+ Text,+ } from "@react-email/components";-import Footer from "./components/footer";++import { Footer } from "../components/footer";++ export default function WebhookFailed({+ email = "[email protected]",+ workspace = {+ name: "Acme, Inc",+ slug: "acme",+ },+ webhook = {+ id: "wh_tYedrqsWgNJxUwQOaAnupcUJ1",+ url: "https://example.com/webhook",+ },+ }: {+ email: string;+ workspace: {+ name: string;+ slug: string;+ };+ webhook: {+ id: string;+ url: string;+ };+ }) {+ return (+ <Html>+ <Head />+ <Preview>Webhook is failing to deliver</Preview>+ <Tailwind>+ <Body className="mx-auto my-auto bg-white font-sans">+ <Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">+ <Section className="mt-8">+ <Img+ src={DUB_WORDMARK}+ height="40"+ alt="Dub.co"+ className="mx-auto my-0"+ />+ </Section>+ <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">+ Webhook is failing to deliver+ </Heading>+ <Text className="text-sm leading-6 text-black">+ Your webhook <strong>{webhook.url}</strong> is encountering+ delivery failures and will be disabled if it continues to fail.+ </Text>+ <Text className="text-sm leading-6 text-black">+ Please review the webhook details and update the URL if necessary+ to restore functionality.+ </Text>+ <Section className="mb-8 mt-4 text-center">+ <Link+ className="rounded-full bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"+ href={`https://app.dub.co/${workspace.slug}/settings/webhooks/${webhook.id}/edit`}+ >+ Edit Webhook+ </Link>+ </Section>+ <Footer email={email} />+ </Container>+ </Body>+ </Tailwind>+ </Html>+ );+ }diff --cc pnpm-lock.yamlindex f484d9aa4f,ebd06e364d..490434b0bc--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@@ -46,11 -46,8 +46,11 @@@ importersspecifier: ^0.3.9version: 0.3.9'@dub/analytics':- specifier: ^0.0.22- version: 0.0.22+ specifier: ^0.0.23+ version: 0.0.23+ '@dub/email':+ specifier: workspace:*+ version: link:../../packages/email'@dub/embed-react':specifier: workspace:*version: link:../../packages/embeds/react@@@ -1840,7 -1847,7 +1843,7 @@@ packages'@babel/core': 7.24.5'@babel/helper-compilation-targets': 7.25.2'@babel/helper-plugin-utils': 7.25.9-- debug: 4.3.4++ debug: 4.4.0lodash.debounce: 4.0.8resolve: 1.22.6transitivePeerDependencies:@@@ -12261,6 -12401,18 +12286,17 @@@dependencies:ms: 2.1.2+ resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==}+ engines: {node: '>=6.0'}+ peerDependencies:+ supports-color: '*'+ peerDependenciesMeta:+ supports-color:+ optional: true+ dependencies:+ ms: 2.1.3- dev: true+resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==}engines: {node: '>=0.10.0'}