The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Merge branch 'remove-flags' into conversions-ga
Steven Tey7d7b24d7d12a
diff --cc apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/new/page-client.tsxindex 3883f881c4,12906d5d50..f1f14c9a00--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/new/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/new/page-client.tsx@@@ -12,14 -12,11 +12,10 @@@ export default function NewWebhookPageC}: {newSecret: string;}) {- const { slug, flags, plan } = useWorkspace();- const { slug, plan, conversionEnabled } = useWorkspace();++ const { slug, plan } = useWorkspace();- const needsHigherPlan =- (plan === "free" || plan === "pro") && !conversionEnabled;+ const needsHigherPlan = plan === "free" || plan === "pro";- if (!flags?.webhooks) {- redirect(`/${slug}/settings`);- }-if (needsHigherPlan) {redirect(`/${slug}/settings/webhooks`);}diff --cc apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/page-client.tsxindex 80c277a9f7,bbc12bd42b..8c231ed0fe--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/page-client.tsx@@@ -12,11 -12,7 +12,7 @@@ import { useRouter } from "next/navigatexport default function WebhooksPageClient() {const router = useRouter();- const { slug, plan, role, flags } = useWorkspace();-- if (!flags?.webhooks) {- redirect(`/${slug}/settings`);- }- const { slug, plan, role, conversionEnabled } = useWorkspace();++ const { slug, plan, role } = useWorkspace();const { webhooks, isLoading } = useWebhooks();diff --cc apps/web/lib/types.tsindex 982f11cfd3,0bff380804..9ce0507abc--- a/apps/web/lib/types.ts+++ b/apps/web/lib/types.ts@@@ -115,8 -115,10 +115,8 @@@ export type PlanProps = (typeof plans)[export type RoleProps = (typeof roles)[number];- export type BetaFeatures = "webhooks" | "noDubLink";+ export type BetaFeatures = "noDubLink";-export type AddOns = "conversion" | "sso";-export interface WorkspaceProps extends Project {logo: string | null;plan: PlanProps;