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.

Ordering + UI tweaks

Tim Wilson97ee1e019e4b
diff --git a/apps/web/app/(ee)/api/network/partners/route.ts b/apps/web/app/(ee)/api/network/partners/route.ts
index 2188f6c864..a0f3552d57 100644
--- a/apps/web/app/(ee)/api/network/partners/route.ts
+++ b/apps/web/app/(ee)/api/network/partners/route.ts
@@ -84,8 +84,7 @@ export const GET = withWorkspace(
${industryInterests && industryInterests.length > 0 ? Prisma.sql`AND EXISTS (SELECT 1 FROM PartnerIndustryInterest WHERE partnerId = p.id AND industryInterest IN (${Prisma.join(industryInterests)}))` : Prisma.sql``}
${salesChannels && salesChannels.length > 0 ? Prisma.sql`AND EXISTS (SELECT 1 FROM PartnerSalesChannel WHERE partnerId = p.id AND salesChannel IN (${Prisma.join(salesChannels)}))` : Prisma.sql``}
${preferredEarningStructures && preferredEarningStructures.length > 0 ? Prisma.sql`AND EXISTS (SELECT 1 FROM PartnerPreferredEarningStructure WHERE partnerId = p.id AND preferredEarningStructure IN (${Prisma.join(preferredEarningStructures)}))` : Prisma.sql``}
- -- Ordering
- ${starred === true ? Prisma.sql`ORDER BY dp.starredAt DESC` : Prisma.sql``}
+ ORDER BY ${starred === true ? Prisma.sql`dp.starredAt DESC,` : Prisma.sql``} metrics.conversionRate DESC
LIMIT ${pageSize} OFFSET ${(page - 1) * pageSize}`) satisfies Array<any>;
return NextResponse.json(
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/directory/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/directory/page-client.tsx
index 794a0b5dbe..12264aa38e 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/directory/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/directory/page-client.tsx
@@ -275,7 +275,7 @@ function PartnerCard({
icon: <UserPlus className="size-3.5 shrink-0" />,
text: partner
? partner.discoverableAt
- ? `Listed ${formatDate(partner.discoverableAt)}`
+ ? `Listed ${formatDate(partner.discoverableAt, { month: "short" })}`
: null
: undefined,
},