The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
display screenshots
Kiran Kbe949298fae1
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/integrations/[integrationSlug]/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/integrations/[integrationSlug]/page-client.tsxindex 37477f178f..6815f8ed7b 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/integrations/[integrationSlug]/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/integrations/[integrationSlug]/page-client.tsx@@ -137,30 +137,29 @@ export default function IntegrationPageClient({</div></div>- <Carousel autoplay={{ delay: 5000 }} className="w-full bg-gray-100 rounded-lg">- <CarouselContent>- {[- "https://assets.dub.co/brand/screenshot-01.jpg",- "https://assets.dub.co/brand/screenshot-02.jpg",- ].map((src, idx) => (- <CarouselItem key={idx}>- <div className="group relative">- <AssetImage- image={{- src,- alt: "Screenshot",- fill: true,- style: { objectFit: "cover" },- }}- className="static mx-auto mt-10 aspect-[2880/1640] w-5/6 overflow-hidden rounded-t-2xl border border-gray-200"- />- {/* <div className="absolute bottom-0 h-32 w-full bg-gradient-to-t from-white via-white/75 to-transparent" /> */}- </div>- </CarouselItem>- ))}- </CarouselContent>- <CarouselNavBar variant="floating" />- </Carousel>+ {integration.screenshots?.length && (+ <Carousel autoplay={{ delay: 5000 }} className="bg-white">+ <CarouselContent>+ {integration.screenshots.map((src, idx) => (+ <CarouselItem key={idx} className="bg-gray-100">+ <div className="group relative">+ <AssetImage+ image={{+ src,+ alt: "Screenshot",+ fill: true,+ style: { objectFit: "cover" },+ }}+ className="static mx-auto mt-10 aspect-[2880/1640] w-5/6 overflow-hidden rounded-t-2xl border border-gray-200"+ />+ {/* <div className="absolute bottom-0 h-32 w-full bg-gradient-to-t from-white via-white/75 to-transparent" /> */}+ </div>+ </CarouselItem>+ ))}+ </CarouselContent>+ <CarouselNavBar variant="floating" />+ </Carousel>+ )}{integration.readme && (<div className="w-full rounded-lg border border-gray-200 bg-white">diff --git a/apps/web/lib/types.ts b/apps/web/lib/types.tsindex 8435b57727..0f84c6d0e5 100644--- a/apps/web/lib/types.ts+++ b/apps/web/lib/types.ts@@ -211,6 +211,7 @@ export type InstalledIntegrationInfoProps = Pick<| "description"| "readme"| "website"+ | "screenshots"> & {createdAt: Date;installations: number;diff --git a/apps/web/lib/zod/schemas/oauth.ts b/apps/web/lib/zod/schemas/oauth.tsindex 26c2fbfd77..ee69c6a842 100644--- a/apps/web/lib/zod/schemas/oauth.ts+++ b/apps/web/lib/zod/schemas/oauth.ts@@ -72,6 +72,7 @@ export const oAuthAppSchema = z.object({createdAt: z.date(),updatedAt: z.date(),installations: z.number().default(0),+ screenshots: z.array(z.string()).nullable(),});// Schema for OAuth2.0 Authorization requestdiff --git a/apps/web/prisma/schema/oauth.prisma b/apps/web/prisma/schema/oauth.prismaindex 1d73886392..b50529d71a 100644--- a/apps/web/prisma/schema/oauth.prisma+++ b/apps/web/prisma/schema/oauth.prisma@@ -11,6 +11,7 @@ model OAuthApp {partialClientSecret StringredirectUris Jsonlogo String?+ screenshots Json?pkce Boolean @default(false)verified Boolean @default(false)createdAt DateTime @default(now())