The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
updates
Steven Teyf615a7ab0f83
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/branding/branding-preview.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/branding/branding-preview.tsxindex 20ea3ec849..575254ee90 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/branding/branding-preview.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/branding/branding-preview.tsx@@ -5,8 +5,8 @@ import { useState } from "react";const TABS = [{ id: "portal", label: "Partner portal" },- { id: "application", label: "Applicant form" },- { id: "embed", label: "Embed" },+ // { id: "application", label: "Application form" },+ { id: "embed", label: "Embedded dashboard" },] as const;export function BrandingPreview() {@@ -42,13 +42,15 @@ export function BrandingPreview() {</div><div className="relative flex min-w-0 grow items-center justify-center gap-2 truncate rounded-md bg-neutral-50 px-2 py-1"><LockFill className="size-2.5 shrink-0 text-neutral-900" />- <span className="select-none truncate text-sm text-xs font-medium leading-none">+ <span className="select-none truncate text-xs font-medium leading-none">partners.dub.co</span></div><div className="hidden grow basis-0 sm:block" /></div>- <div className="h-12 border-t border-neutral-200 bg-neutral-100/50" />+ <div className="flex h-60 items-center justify-center border-t border-neutral-200 bg-neutral-100/50 text-sm text-neutral-500">+ Preview coming soon+ </div></div></div></div>diff --git a/apps/web/scripts/move-links-to-folder.ts b/apps/web/scripts/move-links-to-folder.tsindex 748babd8de..796d404702 100644--- a/apps/web/scripts/move-links-to-folder.ts+++ b/apps/web/scripts/move-links-to-folder.ts@@ -8,16 +8,16 @@ async function main() {const workspaceId = "xxx";const folderId = "fold_xxx";- const condition = {- programId: {- not: null,- },- };-const links = await prisma.link.findMany({where: {projectId: workspaceId,- ...condition,+ programId: {+ not: null,+ },+ folderId: null,+ },+ select: {+ id: true,},});@@ -30,16 +30,18 @@ async function main() {await prisma.link.updateMany({where: {- projectId: workspaceId,- ...condition,+ id: {+ in: links.map((link) => link.id),+ },},data: { folderId },});const updatedLinks = await prisma.link.findMany({where: {- projectId: workspaceId,- ...condition,+ id: {+ in: links.map((link) => link.id),+ },},include: includeTags,});