The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
improve returned info
Steven Tey50104ae09539
diff --git a/apps/web/app/(ee)/admin.dub.co/(dashboard)/components/user-info.tsx b/apps/web/app/(ee)/admin.dub.co/(dashboard)/components/user-info.tsxindex e2128bb9ff..ee64461e51 100644--- a/apps/web/app/(ee)/admin.dub.co/(dashboard)/components/user-info.tsx+++ b/apps/web/app/(ee)/admin.dub.co/(dashboard)/components/user-info.tsx@@ -31,7 +31,9 @@ export interface UserInfoProps {slug: string;plan: string;planPeriod: string | null;+ stripeId: string | null;trialEndsAt: string | Date | null;+ disabledAt: string | Date | null;events: number;links: number;statsInterval: "30d" | "all";@@ -196,6 +198,11 @@ function WorkspaceCard({Trial ends {formatDate(workspace.trialEndsAt, { month: "short" })}</Badge>)}+ {workspace.disabledAt && (+ <Badge variant="red">+ Disabled {formatDate(workspace.disabledAt, { month: "short" })}+ </Badge>+ )}</div></div>@@ -213,6 +220,15 @@ function WorkspaceCard({</div><MetaRow label="ID" value={workspace.id} copyValue={workspace.id} mono />+ {workspace.stripeId && (+ <MetaRow+ label="Stripe ID"+ value={workspace.stripeId}+ copyValue={workspace.stripeId}+ href={`https://dashboard.stripe.com/customers/${workspace.stripeId}`}+ mono+ />+ )}{workspace.program && (<div className="space-y-0.5 border-t border-neutral-100 bg-neutral-50/80 py-1">diff --git a/apps/web/app/(ee)/api/admin/impersonate/route.ts b/apps/web/app/(ee)/api/admin/impersonate/route.tsindex af9962aff5..377c5a45da 100644--- a/apps/web/app/(ee)/api/admin/impersonate/route.ts+++ b/apps/web/app/(ee)/api/admin/impersonate/route.ts@@ -30,7 +30,9 @@ const userSelect = {slug: true,plan: true,planPeriod: true,+ stripeId: true,trialEndsAt: true,+ disabledAt: true,defaultProgramId: true,partnersUsage: true,totalClicks: true,@@ -350,7 +352,9 @@ async function serializeWorkspaces(projects: ImpersonateProject[]) {slug: project.slug,plan: project.plan,planPeriod: project.planPeriod,+ stripeId: project.stripeId,trialEndsAt: project.trialEndsAt,+ disabledAt: project.disabledAt,events: stats?.clicks ?? project.totalClicks,links: stats?.links ?? project.totalLinks,statsInterval: useLast30DaysStats ? ("30d" as const) : ("all" as const),diff --git a/apps/web/app/api/callback/plain/workspace/route.ts b/apps/web/app/api/callback/plain/workspace/route.tsindex ec4940a9b6..ed78f5d0e0 100644--- a/apps/web/app/api/callback/plain/workspace/route.ts+++ b/apps/web/app/api/callback/plain/workspace/route.ts@@ -68,6 +68,7 @@ export async function POST(req: NextRequest) {const topWorkspace = await prisma.project.findFirst({where: {+ environment: "production",users: {some: {userId: customer.externalId,