The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
run format
Kiran K41f8540a5929
diff --git a/apps/web/app/(ee)/api/programs/[programId]/payouts/eligible/route.ts b/apps/web/app/(ee)/api/programs/[programId]/payouts/eligible/route.tsindex 31125645da..0b56e1e44f 100644--- a/apps/web/app/(ee)/api/programs/[programId]/payouts/eligible/route.ts+++ b/apps/web/app/(ee)/api/programs/[programId]/payouts/eligible/route.ts@@ -30,7 +30,7 @@ export const GET = withWorkspace(async ({ workspace, searchParams }) => {const { cutoffPeriod } = confirmPayoutsQuerySchema.parse(searchParams);- await getProgramOrThrow({+ await getProgramOrThrow({workspaceId: workspace.id,programId,});@@ -67,22 +67,21 @@ export const GET = withWorkspace(async ({ workspace, searchParams }) => {});if (cutoffPeriodValue) {- payouts = payouts- .map((payout) => {- // custom payouts are included by default- if (!payout.periodStart && !payout.periodEnd) {- return payout;- }+ payouts = payouts.map((payout) => {+ // custom payouts are included by default+ if (!payout.periodStart && !payout.periodEnd) {+ return payout;+ }- const newPayoutAmount = payout.commissions.reduce((acc, commission) => {- return acc + commission.earnings;- }, 0);+ const newPayoutAmount = payout.commissions.reduce((acc, commission) => {+ return acc + commission.earnings;+ }, 0);- return {- ...payout,- amount: newPayoutAmount,- };- })+ return {+ ...payout,+ amount: newPayoutAmount,+ };+ });}return NextResponse.json(z.array(PayoutResponseSchema).parse(payouts));diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-details-sheet.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-details-sheet.tsxindex d5ab53452a..e763a52953 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-details-sheet.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-details-sheet.tsx@@ -184,7 +184,7 @@ function PayoutDetailsSheetContent({ payout }: PayoutDetailsSheetProps) {return (<div>- <div className="flex items-center justify-between border-b border-neutral-200 px-6 py-4 h-16">+ <div className="flex h-16 items-center justify-between border-b border-neutral-200 px-6 py-4"><Sheet.Title className="text-lg font-semibold">Payout details</Sheet.Title>diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-clawback-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-clawback-sheet.tsxindex ecb303261d..e066baae74 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-clawback-sheet.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-clawback-sheet.tsx@@ -77,7 +77,7 @@ function CreateClawbackSheetContent(return (<form onSubmit={handleSubmit(onSubmit)} className="flex h-full flex-col"><div className="sticky top-0 z-10 border-b border-neutral-200 bg-white">- <div className="flex items-center justify-between px-6 py-4 h-16">+ <div className="flex h-16 items-center justify-between px-6 py-4"><Sheet.Title className="text-lg font-semibold">Create clawback</Sheet.Title>diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsxindex d33ace70b3..bfc6953e11 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx@@ -176,7 +176,7 @@ function CreateCommissionSheetContent(props: CreateCommissionSheetProps) {return (<form onSubmit={handleSubmit(onSubmit)} className="flex h-full flex-col"><div className="sticky top-0 z-10 border-b border-neutral-200 bg-white">- <div className="flex items-center justify-between px-6 py-4 h-16">+ <div className="flex h-16 items-center justify-between px-6 py-4"><Sheet.Title className="text-lg font-semibold">Create commission</Sheet.Title>diff --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 9ddc91bb7b..205990db81 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@@ -119,7 +119,7 @@ function InvitePartnerSheetContent({ setIsOpen }: InvitePartnerSheetProps) {return (<form onSubmit={handleSubmit(onSubmit)} className="flex h-full flex-col"><div className="sticky top-0 z-10 border-b border-neutral-200 bg-white">- <div className="flex items-center justify-between px-6 py-4 h-16">+ <div className="flex h-16 items-center justify-between px-6 py-4"><Sheet.Title className="text-lg font-semibold">Invite partner</Sheet.Title>diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/payout-details-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/payout-details-sheet.tsxindex b339ecbbe3..c98ef2a3dc 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/payout-details-sheet.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/payout-details-sheet.tsx@@ -207,7 +207,7 @@ function PayoutDetailsSheetContent({ payout }: PayoutDetailsSheetProps) {return (<div className="flex h-full flex-col">- <div className="sticky top-0 z-10 flex items-center justify-between border-b border-neutral-200 bg-white px-6 py-4 h-16">+ <div className="sticky top-0 z-10 flex h-16 items-center justify-between border-b border-neutral-200 bg-white px-6 py-4"><Sheet.Title className="text-lg font-semibold">{capitalize(payout.status)} payout</Sheet.Title>diff --git a/apps/web/guides/stripe-payment-links.md b/apps/web/guides/stripe-payment-links.mdindex 86ef82b38e..e8e4b85766 100644--- a/apps/web/guides/stripe-payment-links.md+++ b/apps/web/guides/stripe-payment-links.md@@ -31,4 +31,4 @@ If you're using [Stripe Pricing Tables](https://docs.stripe.com/payments/checkou></stripe-pricing-table></body>-```\ No newline at end of file+```diff --git a/apps/web/scripts/stripe/manual-payouts.ts b/apps/web/scripts/stripe/manual-payouts.tsindex ac275dc1be..bdbc887c73 100644--- a/apps/web/scripts/stripe/manual-payouts.ts+++ b/apps/web/scripts/stripe/manual-payouts.ts@@ -1,5 +1,5 @@-import "dotenv-flow/config";import { stripe } from "@/lib/stripe";+import "dotenv-flow/config";// Just for testing purposesasync function main() {diff --git a/apps/web/scripts/stripe/update-stripe-payouts-schedule.ts b/apps/web/scripts/stripe/update-stripe-payouts-schedule.tsindex 844f920776..a577621407 100644--- a/apps/web/scripts/stripe/update-stripe-payouts-schedule.ts+++ b/apps/web/scripts/stripe/update-stripe-payouts-schedule.ts@@ -1,6 +1,6 @@-import "dotenv-flow/config";import { stripe } from "@/lib/stripe";import { prisma } from "@dub/prisma";+import "dotenv-flow/config";async function main() {const limit = 1;diff --git a/apps/web/ui/links/link-builder/more-dropdown.tsx b/apps/web/ui/links/link-builder/more-dropdown.tsxindex cf91786522..c4e8a40d21 100644--- a/apps/web/ui/links/link-builder/more-dropdown.tsx+++ b/apps/web/ui/links/link-builder/more-dropdown.tsx@@ -29,7 +29,7 @@ export function MoreDropdown() {if (option.key === "testVariants") return flags?.abTesting;if (option.key === "partnerId") return Boolean(defaultProgramId);return true;- }+ },);}, [data, isMobile, flags, defaultProgramId]);diff --git a/apps/web/ui/partners/commission-status-badges.tsx b/apps/web/ui/partners/commission-status-badges.tsxindex 10da16e558..606f6516b3 100644--- a/apps/web/ui/partners/commission-status-badges.tsx+++ b/apps/web/ui/partners/commission-status-badges.tsx@@ -6,7 +6,6 @@ import {Duplicate,ShieldAlert,} from "@dub/ui/icons";-import { currencyFormatter } from "@dub/utils";interface CommissionTooltipDataProps {holdingPeriodDays: number;diff --git a/apps/web/ui/partners/merge-accounts/account-input-group.tsx b/apps/web/ui/partners/merge-accounts/account-input-group.tsxindex 71c2443b0e..c0d8b2cef5 100644--- a/apps/web/ui/partners/merge-accounts/account-input-group.tsx+++ b/apps/web/ui/partners/merge-accounts/account-input-group.tsx@@ -16,4 +16,4 @@ export function AccountInputGroup({ title, children }: AccountInputGroupProps) {</div></div>);-}\ No newline at end of file+}diff --git a/apps/web/ui/partners/merge-accounts/otp-input-field.tsx b/apps/web/ui/partners/merge-accounts/otp-input-field.tsxindex c73e096e4b..c7073112b9 100644--- a/apps/web/ui/partners/merge-accounts/otp-input-field.tsx+++ b/apps/web/ui/partners/merge-accounts/otp-input-field.tsx@@ -45,4 +45,4 @@ export function OTPInputField({ value, onChange, label }: OTPInputFieldProps) {</div></div>);-}\ No newline at end of file+}diff --git a/apps/web/ui/partners/partner-application-sheet.tsx b/apps/web/ui/partners/partner-application-sheet.tsxindex cb6b41b4c2..60c968ee1f 100644--- a/apps/web/ui/partners/partner-application-sheet.tsx+++ b/apps/web/ui/partners/partner-application-sheet.tsx@@ -31,7 +31,7 @@ function PartnerApplicationSheetContent({return (<><div className="flex grow flex-col">- <div className="flex items-center justify-between px-6 py-4 h-16">+ <div className="flex h-16 items-center justify-between px-6 py-4"><Sheet.Title className="text-lg font-semibold">Partner application</Sheet.Title>@@ -328,7 +328,9 @@ function PartnerRejectButton({{onSuccess: async () => {await mutatePrefix("/api/partners");- toast.success("Application rejected. No email sent, and can they reapply in 30 days.");+ toast.success(+ "Application rejected. No email sent, and can they reapply in 30 days.",+ );setIsOpen(false);},onError({ error }) {diff --git a/apps/web/ui/partners/partner-profile-sheet.tsx b/apps/web/ui/partners/partner-profile-sheet.tsxindex 36449607f8..d24cb8319e 100644--- a/apps/web/ui/partners/partner-profile-sheet.tsx+++ b/apps/web/ui/partners/partner-profile-sheet.tsx@@ -63,7 +63,7 @@ function PartnerProfileSheetContent({return (<><div className="flex grow flex-col">- <div className="flex items-center justify-between px-6 py-4 h-16">+ <div className="flex h-16 items-center justify-between px-6 py-4"><Sheet.Title className="text-lg font-semibold">Partner profile</Sheet.Title>diff --git a/apps/web/ui/partners/payout-invoice-sheet.tsx b/apps/web/ui/partners/payout-invoice-sheet.tsxindex 40ad4cf71b..6a9bad6c4e 100644--- a/apps/web/ui/partners/payout-invoice-sheet.tsx+++ b/apps/web/ui/partners/payout-invoice-sheet.tsx@@ -365,7 +365,7 @@ function PayoutInvoiceSheetContent() {return (<div className="flex h-full flex-col">- <div className="flex items-center justify-between border-b border-neutral-200 px-6 py-4 h-16">+ <div className="flex h-16 items-center justify-between border-b border-neutral-200 px-6 py-4"><Sheet.Title className="text-lg font-semibold">Payout invoice</Sheet.Title>