The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
small tweaks
Steven Tey9edf983b96e0
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/domains/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/domains/page-client.tsxindex e94b440fcb..f86e4eee80 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/domains/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/domains/page-client.tsx@@ -183,7 +183,7 @@ export default function WorkspaceDomainsClient() {><Buttonvariant="primary"- className="w-fit"+ className="h-9 w-fit rounded-lg"text={<div className="flex items-center gap-2">Add domain{" "}diff --git a/apps/web/prisma/schema/link.prisma b/apps/web/prisma/schema/link.prismaindex 04123138a5..96b2d64ce8 100644--- a/apps/web/prisma/schema/link.prisma+++ b/apps/web/prisma/schema/link.prisma@@ -77,33 +77,4 @@ model Link {@@index(lastClicked)@@index(userId)@@fulltext([key, url])-}--model UtmTemplate {- id String @id @default(cuid())- name String-- // Parameters- utm_source String?- utm_medium String?- utm_campaign String?- utm_term String?- utm_content String?- ref String?-- // User who created the template- user User? @relation(fields: [userId], references: [id])- userId String?-- // Project that the template belongs to- project Project? @relation(fields: [projectId], references: [id], onUpdate: Cascade, onDelete: Cascade)- projectId String?-- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt-- @@index(userId)- @@index(projectId)- @@unique([projectId, name])- @@index(updatedAt(sort: Desc))-}+}\ No newline at end of filediff --git a/apps/web/prisma/schema/utm.prisma b/apps/web/prisma/schema/utm.prismanew file mode 100644index 0000000000..5b3c0ea8aa--- /dev/null+++ b/apps/web/prisma/schema/utm.prisma@@ -0,0 +1,28 @@+model UtmTemplate {+ id String @id @default(cuid())+ name String++ // Parameters+ utm_source String?+ utm_medium String?+ utm_campaign String?+ utm_term String?+ utm_content String?+ ref String?++ // User who created the template+ user User? @relation(fields: [userId], references: [id])+ userId String?++ // Project that the template belongs to+ project Project? @relation(fields: [projectId], references: [id], onUpdate: Cascade, onDelete: Cascade)+ projectId String?++ createdAt DateTime @default(now())+ updatedAt DateTime @updatedAt++ @@index(userId)+ @@index(projectId)+ @@unique([projectId, name])+ @@index(updatedAt(sort: Desc))+}diff --git a/apps/web/ui/layout/sidebar/items.ts b/apps/web/ui/layout/sidebar/items.tsindex 9efcfe43bd..5a33ac2c7b 100644--- a/apps/web/ui/layout/sidebar/items.ts+++ b/apps/web/ui/layout/sidebar/items.ts@@ -87,6 +87,11 @@ export const ITEMS: Record<icon: Tag,href: `/${slug}/settings/tags`,},+ {+ name: "UTM Templates",+ icon: DiamondTurnRight,+ href: `/${slug}/settings/utm-templates`,+ },{name: "Billing",icon: Receipt2,@@ -116,11 +121,6 @@ export const ITEMS: Record<},]: []),- {- name: "UTM Templates",- icon: DiamondTurnRight,- href: `/${slug}/settings/utm-templates`,- },],},{