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.

WIP program marketplace

Tim Wilson25ed5540446a
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/marketplace/page-client.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/marketplace/page-client.tsx
new file mode 100644
index 0000000000..d73672194f
--- /dev/null
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/marketplace/page-client.tsx
@@ -0,0 +1,5 @@
+"use client";
+
+export function ProgramMarketplacePageClient() {
+ return <div>WIP</div>;
+}
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/marketplace/page.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/marketplace/page.tsx
new file mode 100644
index 0000000000..9102f6984f
--- /dev/null
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/marketplace/page.tsx
@@ -0,0 +1,10 @@
+import { PageContent } from "@/ui/layout/page-content";
+import { ProgramMarketplacePageClient } from "./page-client";
+
+export default function PartnersDashboard() {
+ return (
+ <PageContent title="Program Marketplace">
+ <ProgramMarketplacePageClient />
+ </PageContent>
+ );
+}
diff --git a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
index 35ca8ffc8d..d5ed5e4e55 100644
--- a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
@@ -15,6 +15,7 @@ import {
MoneyBills2,
Msgs,
ShieldCheck,
+ Shop,
SquareUserSparkle2,
Trophy,
UserCheck,
@@ -97,7 +98,14 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
href: "/programs",
isActive: (pathname, href) =>
pathname.startsWith(href) &&
- !pathname.startsWith(`${href}/invitations`),
+ ["invitations", "marketplace"].every(
+ (k) => !pathname.startsWith(`${href}/${k}`),
+ ),
+ },
+ {
+ name: "Marketplace",
+ icon: Shop,
+ href: "/programs/marketplace",
},
{
name: "Invitations",
diff --git a/packages/ui/src/icons/nucleo/index.ts b/packages/ui/src/icons/nucleo/index.ts
index ccc3f47c2a..1ca6980fec 100644
--- a/packages/ui/src/icons/nucleo/index.ts
+++ b/packages/ui/src/icons/nucleo/index.ts
@@ -203,6 +203,7 @@ export * from "./shield-check";
export * from "./shield-keyhole";
export * from "./shield-slash";
export * from "./shield-user";
+export * from "./shop";
export * from "./shuffle";
export * from "./sitemap";
export * from "./sliders";
diff --git a/packages/ui/src/icons/nucleo/shop.tsx b/packages/ui/src/icons/nucleo/shop.tsx
new file mode 100644
index 0000000000..f679128926
--- /dev/null
+++ b/packages/ui/src/icons/nucleo/shop.tsx
@@ -0,0 +1,65 @@
+import { SVGProps } from "react";
+
+export function Shop(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">
+ <line
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ x1="3.75"
+ x2="3.75"
+ y1="16.25"
+ y2="9.5"
+ />
+ <line
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ x1="14.25"
+ x2="14.25"
+ y1="9.5"
+ y2="16.25"
+ />
+ <line
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ x1="1.75"
+ x2="16.25"
+ y1="16.25"
+ y2="16.25"
+ />
+ <path
+ d="M13.668,1.75H4.331c-.359,0-.691,.193-.869,.505l-1.706,2.995c.475,1.031,1.51,1.75,2.72,1.75,.908,0,1.712-.412,2.262-1.049,.55,.637,1.354,1.049,2.262,1.049s1.711-.411,2.261-1.048c.55,.637,1.354,1.048,2.261,1.048,1.209,0,2.245-.719,2.72-1.75l-1.704-2.995c-.178-.312-.51-.505-.869-.505Z"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ />
+ <path
+ d="M7.25,16v-3c0-.966,.784-1.75,1.75-1.75h0c.966,0,1.75,.784,1.75,1.75v3"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ />
+ </g>
+ </svg>
+ );
+}