Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Merge branch 'main' into email-campaigns

Steven Tey35fe165feee9
diff --cc apps/web/lib/types.ts
index bc625cb492,81aeabafb9..c085af6864
--- a/apps/web/lib/types.ts
+++ b/apps/web/lib/types.ts
@@@ -656,13 -652,4 +659,15 @@@ export type BountySubmissionsQueryFilte
export type Message = z.infer<typeof MessageSchema>;
+export type CampaignList = z.infer<typeof CampaignListSchema>;
+
+export type Campaign = z.infer<typeof CampaignSchema>;
+
+export type UpdateCampaignFormData = z.infer<typeof updateCampaignSchema>;
+
+export type CampaignWorkflowAttribute =
+ (typeof CAMPAIGN_WORKFLOW_ATTRIBUTES)[number];
+
+export type CampaignSummary = z.infer<typeof campaignSummarySchema>;
++
+ export type StripeMode = "test" | "sandbox" | "live";
diff --cc apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
index 904dc41a20,2e4ce51c07..2950ab3e1c
--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
@@@ -491,14 -478,7 +491,8 @@@ export function AppSidebarNav(
? "userSettings"
: pathname.startsWith(`/${slug}/settings`)
? "workspaceSettings"
- : // hacky fix for guides because slug is undefined at render time
- // TODO: remove when we migrate to Next.js 15 + PPR
- pathname.endsWith("/guides") ||
- pathname.includes("/guides/") ||
- // for the email editor page
- pathname.includes("/program/campaigns/") ||
- : pathname.includes("/program/messages/") ||
++ : pathname.includes("/program/campaigns/") ||
+ pathname.includes("/program/messages/") ||
- // this one is for the payout success page
pathname.endsWith("/program/payouts/success")
? null
: pathname.startsWith(`/${slug}/program`)