The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
WIP `partners.` bounties
Tim Wilsone80fa25cb078
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/bounties/page-client.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/bounties/page-client.tsxnew file mode 100644index 0000000000..8d8e0d0855--- /dev/null+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/bounties/page-client.tsx@@ -0,0 +1,37 @@+"use client";++import { PageWidthWrapper } from "@/ui/layout/page-width-wrapper";+import { AnimatedEmptyState } from "@/ui/shared/animated-empty-state";+import { Heart, Trophy } from "@dub/ui/icons";++export function BountiesPageClient() {+ return (+ <PageWidthWrapper className="pb-10">+ <AnimatedEmptyState+ title="No bounties to collect"+ description={+ <>+ This program isn't offering any bounties at the moment.{" "}+ <a+ href="https://dub.co/help/article/bounties"+ target="_blank"+ className="hover:text-content-default underline sm:whitespace-nowrap"+ >+ Learn more about bounties+ </a>+ .+ </>+ }+ cardContent={(idx) => {+ const Icon = [Trophy, Heart][idx % 2];+ return (+ <>+ <Icon className="size-4 text-neutral-700" />+ <div className="h-2.5 w-24 min-w-0 rounded-sm bg-neutral-200" />+ </>+ );+ }}+ />+ </PageWidthWrapper>+ );+}diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/bounties/page.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/bounties/page.tsxnew file mode 100644index 0000000000..dacdba7159--- /dev/null+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/bounties/page.tsx@@ -0,0 +1,10 @@+import { PageContent } from "@/ui/layout/page-content";+import { BountiesPageClient } from "./page-client";++export default function BountiesPage() {+ return (+ <PageContent title="Bounties">+ <BountiesPageClient />+ </PageContent>+ );+}diff --git a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsxindex 451ab61b5c..56d31190c0 100644--- a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx+++ b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx@@ -16,6 +16,7 @@ import {MoneyBills2,ShieldCheck,SquareUserSparkle2,+ Trophy,UserCheck,} from "@dub/ui/icons";import { useParams, usePathname } from "next/navigation";@@ -116,6 +117,12 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {href: `/programs/${programSlug}/links`,locked: isUnapproved,},+ {+ name: "Bounties",+ icon: Trophy,+ href: `/programs/${programSlug}/bounties`,+ locked: isUnapproved,+ },{name: "Resources",icon: ColorPalette2,diff --git a/packages/ui/src/icons/nucleo/heart.tsx b/packages/ui/src/icons/nucleo/heart.tsxnew file mode 100644index 0000000000..9df44f24ce--- /dev/null+++ b/packages/ui/src/icons/nucleo/heart.tsx@@ -0,0 +1,24 @@+import { SVGProps } from "react";++export function Heart(props: SVGProps<SVGSVGElement>) {+ return (+ <svg+ height="18"+ width="18"+ viewBox="0 0 18 18"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <g fill="currentColor">+ <path+ d="M8.529,15.222c.297,.155,.644,.155,.941,0,1.57-.819,6.529-3.787,6.529-8.613,.008-2.12-1.704-3.846-3.826-3.859-1.277,.016-2.464,.66-3.173,1.72-.71-1.06-1.897-1.704-3.173-1.72-2.123,.013-3.834,1.739-3.826,3.859,0,4.826,4.959,7.794,6.529,8.613Z"+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ </g>+ </svg>+ );+}diff --git a/packages/ui/src/icons/nucleo/index.ts b/packages/ui/src/icons/nucleo/index.tsindex cf2d695375..8c435c07fe 100644--- a/packages/ui/src/icons/nucleo/index.ts+++ b/packages/ui/src/icons/nucleo/index.ts@@ -123,6 +123,7 @@ export * from "./grid-layout-rows";export * from "./grid-plus";export * from "./grip-dots-vertical";export * from "./headset";+export * from "./heart";export * from "./heart-fill";export * from "./hexadecagon-star";export * from "./history";