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.

add messages to partnersidebarnav

Steven Teyca0fc1239113
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/messages/[programSlug]/page-client.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/messages/[programSlug]/page-client.tsx
index 4f53138269..31f8eb01f9 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/messages/[programSlug]/page-client.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/messages/[programSlug]/page-client.tsx
@@ -102,7 +102,7 @@ export function PartnerMessagesProgramPageClient() {
<button
type="button"
onClick={() => setIsRightPanelOpen((o) => !o)}
- className="-mx-2 -my-1 flex min-w-0 max-w-full items-center gap-3 rounded-lg px-2 py-1 transition-colors duration-100 hover:bg-black/5 active:bg-black/10"
+ className="-mx-2 -my-1 flex items-center gap-3 rounded-lg px-2 py-1 transition-colors duration-100 hover:bg-black/5 active:bg-black/10"
>
{!program ? (
<>
@@ -116,7 +116,7 @@ export function PartnerMessagesProgramPageClient() {
alt={`${program?.name} logo`}
className="size-8 shrink-0 rounded-full"
/>
- <h2 className="text-content-emphasis min-w-0 truncate text-lg font-semibold leading-7">
+ <h2 className="text-content-emphasis text-lg font-semibold leading-7">
{program?.name ?? "Program"}
</h2>
</>
@@ -230,14 +230,13 @@ export function PartnerMessagesProgramPageClient() {
Program
</h2>
<div className="flex items-center gap-2">
- <Button
- variant="secondary"
- text="View program"
- className="h-8 rounded-lg px-3"
- onClick={() =>
- window.open(`/programs/${programSlug}`, "_blank")
- }
- />
+ <Link href={`/programs/${programSlug}`} target="_blank">
+ <Button
+ variant="secondary"
+ text="View program"
+ className="h-8 rounded-lg px-3"
+ />
+ </Link>
<button
type="button"
onClick={() => setIsRightPanelOpen(false)}
diff --git a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
index b312a2c8b3..f8056b1682 100644
--- a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
@@ -17,6 +17,7 @@ import {
GridIcon,
MoneyBills2,
Msgs,
+ PaperPlane,
ShieldCheck,
SquareUserSparkle2,
Trophy,
@@ -139,21 +140,11 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
locked: isUnapproved,
},
{
- name: "Bounties",
- icon: Trophy,
- href: `/programs/${programSlug}/bounties` as `/${string}`,
- badge: programBountiesCount
- ? programBountiesCount > 99
- ? "99+"
- : programBountiesCount
- : "New",
- locked: isUnapproved,
- },
- {
- name: "Resources",
- icon: ColorPalette2,
- href: `/programs/${programSlug}/resources`,
+ name: "Messages",
+ icon: PaperPlane,
+ href: `/messages/${programSlug}`,
locked: isUnapproved,
+ arrow: true,
},
],
},
@@ -180,6 +171,28 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
},
],
},
+ {
+ name: "Engage",
+ items: [
+ {
+ name: "Bounties",
+ icon: Trophy,
+ href: `/programs/${programSlug}/bounties` as `/${string}`,
+ badge: programBountiesCount
+ ? programBountiesCount > 99
+ ? "99+"
+ : programBountiesCount
+ : "New",
+ locked: isUnapproved,
+ },
+ {
+ name: "Resources",
+ icon: ColorPalette2,
+ href: `/programs/${programSlug}/resources`,
+ locked: isUnapproved,
+ },
+ ],
+ },
],
}),