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.

small updates

Steven Tey65941135a982
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/marketplace/program-card.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/marketplace/program-card.tsx
index cf6d1be8a7..fbf3dcf91e 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/marketplace/program-card.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/marketplace/program-card.tsx
@@ -211,21 +211,17 @@ export function FeaturedProgramCard({
return (
<div
- className={cn(
- "border-border-subtle relative h-full overflow-hidden rounded-xl border p-6",
- program?.id &&
- "cursor-pointer border-transparent bg-black hover:drop-shadow-sm",
- )}
+ className="border-border-subtle relative h-full cursor-pointer overflow-hidden rounded-xl border p-6"
{...getClickHandlers(url, router)}
>
{program?.marketplaceHeaderImage && (
<>
<img
src={program.marketplaceHeaderImage}
- alt=""
+ alt={program.name}
className="absolute inset-0 size-full object-cover opacity-80"
/>
- <div className="absolute inset-0 backdrop-blur-sm [mask-image:linear-gradient(transparent_10%,black)]" />
+ <div className="absolute inset-0" />
</>
)}
diff --git a/packages/prisma/schema/network.prisma b/packages/prisma/schema/network.prisma
index 4a7009e4cb..13a9690d3f 100644
--- a/packages/prisma/schema/network.prisma
+++ b/packages/prisma/schema/network.prisma
@@ -1,48 +1,25 @@
-enum IndustryInterest {
- SaaS
- DevTool
- AI
- Creative_And_Design
- Productivity_Software
- Marketing
- Gaming
+enum Category {
+ Artificial_Intelligence
+ Development
+ Design
+ Productivity
Finance
- Sales
+ Marketing
Ecommerce
- Customer_Service_And_Support
- Content_Management
- Human_Resources
Security
- Analytics_And_Data
- Social_Media
- Consumer_Tech
- Education_And_Learning
- Health_And_Fitness
- Food_And_Beverage
- Travel_And_Lifestyle
- Entertainment_And_Media
- Sports
- Science_And_Engineering
+ Education
+ Health
+ Consumer
+ // Prediction_Markets
}
-model DiscoveredPartner {
- id String @id @default(cuid())
+model ProgramCategory {
programId String
- partnerId String
-
- starredAt DateTime?
- ignoredAt DateTime?
- invitedAt DateTime?
- messagedAt DateTime?
-
- createdAt DateTime @default(now())
- updatedAt DateTime @updatedAt
+ category Category
program Program @relation(fields: [programId], references: [id], onDelete: Cascade)
- partner Partner @relation(fields: [partnerId], references: [id], onDelete: Cascade)
- @@unique([programId, partnerId])
- @@index(partnerId)
+ @@unique([programId, category])
}
model ProgramSimilarity {
@@ -61,3 +38,51 @@ model ProgramSimilarity {
@@index([programId, similarityScore])
@@index(similarProgramId)
}
+
+model DiscoveredPartner {
+ id String @id @default(cuid())
+ programId String
+ partnerId String
+
+ starredAt DateTime?
+ ignoredAt DateTime?
+ invitedAt DateTime?
+ messagedAt DateTime?
+
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+
+ program Program @relation(fields: [programId], references: [id], onDelete: Cascade)
+ partner Partner @relation(fields: [partnerId], references: [id], onDelete: Cascade)
+
+ @@unique([programId, partnerId])
+ @@index(partnerId)
+}
+
+// TODO: remove after we refactor all partner.industryInterests to use programCategory instead
+enum IndustryInterest {
+ SaaS
+ DevTool
+ AI
+ Creative_And_Design
+ Productivity_Software
+ Marketing
+ Gaming
+ Finance
+ Sales
+ Ecommerce
+ Customer_Service_And_Support
+ Content_Management
+ Human_Resources
+ Security
+ Analytics_And_Data
+ Social_Media
+ Consumer_Tech
+ Education_And_Learning
+ Health_And_Fitness
+ Food_And_Beverage
+ Travel_And_Lifestyle
+ Entertainment_And_Media
+ Sports
+ Science_And_Engineering
+}
diff --git a/packages/prisma/schema/program.prisma b/packages/prisma/schema/program.prisma
index 9e36f6117f..5cfa57145f 100644
--- a/packages/prisma/schema/program.prisma
+++ b/packages/prisma/schema/program.prisma
@@ -189,27 +189,4 @@ model ProgramApplication {
@@index(programId)
@@index(groupId)
@@index(email)
-}
-
-enum Category {
- Artificial_Intelligence
- Development
- Design
- Productivity
- Finance
- Marketing
- Ecommerce
- Security
- Education
- Health
- Consumer
-}
-
-model ProgramCategory {
- programId String
- category Category
-
- program Program @relation(fields: [programId], references: [id], onDelete: Cascade)
-
- @@unique([programId, category])
-}
+}
\ No newline at end of file