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 links

Tim Wilson21048ea3a7c8
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/about-you-form.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/about-you-form.tsx
index 227f6f55d4..bc1dcb231f 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/about-you-form.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/about-you-form.tsx
@@ -82,6 +82,7 @@ export function AboutYouForm({ partner }: { partner?: PartnerProps }) {
})}
>
<SettingsRow
+ id="about"
heading="About you"
description="Share who you are, what you do, and who your audience is. A strong bio helps you stand out and get accepted into more programs."
>
@@ -109,6 +110,7 @@ export function AboutYouForm({ partner }: { partner?: PartnerProps }) {
</SettingsRow>
<SettingsRow
+ id="interests"
heading="Industry interests"
description="Add the industries you care and post content about. This helps programs in those areas discover you."
>
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/how-you-work-form.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/how-you-work-form.tsx
index bd45426de1..59cf4174e1 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/how-you-work-form.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/how-you-work-form.tsx
@@ -131,6 +131,7 @@ export function HowYouWorkForm({ partner }: { partner?: PartnerProps }) {
</SettingsRow>
<SettingsRow
+ id="channels"
heading="Sales channels"
description="Where you promote products and links. Select all that apply."
>
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/profile-details-form.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/profile-details-form.tsx
index 95a7721456..1befde3571 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/profile-details-form.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/profile-details-form.tsx
@@ -91,6 +91,7 @@ export function ProfileDetailsForm({ partner }: { partner?: PartnerProps }) {
</SettingsRow>
<SettingsRow
+ id="sites"
heading="Website and socials"
description="Add your website and social accounts you use to share links. Verifying at least one helps build trust with programs."
>
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/profile-discovery-guide.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/profile-discovery-guide.tsx
index f76f654dc0..41cc5d672d 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/profile-discovery-guide.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/profile-discovery-guide.tsx
@@ -24,18 +24,22 @@ export function ProfileDiscoveryGuide({ partner }: { partner: PartnerProps }) {
},
{
label: "Verify your website or social account",
+ href: "#sites",
completed: false,
},
{
label: "Write your bio",
+ href: "#about",
completed: false,
},
{
label: "Select your industry interests",
+ href: "#interests",
completed: false,
},
{
label: "Choose your sales channels",
+ href: "#channels",
completed: false,
},
{
@@ -108,13 +112,14 @@ export function ProfileDiscoveryGuide({ partner }: { partner: PartnerProps }) {
className="grid grid-cols-1 rounded-lg bg-neutral-800 p-2 sm:grid-cols-2"
onClick={(e) => e.stopPropagation()}
>
- {tasks.map(({ label, completed }) => (
+ {tasks.map(({ label, completed, href }) => (
<ConditionalLink
key={label}
- href={completed ? undefined : `#`}
+ href={completed ? undefined : href}
className={cn(
"group flex items-center justify-between gap-2 rounded-md px-3 py-2",
!completed &&
+ href &&
"transition-colors duration-100 ease-out hover:bg-neutral-700",
)}
>
@@ -126,7 +131,7 @@ export function ProfileDiscoveryGuide({ partner }: { partner: PartnerProps }) {
)}
<span className="min-w-0 truncate text-sm">{label}</span>
</div>
- {!completed && (
+ {!completed && href && (
<div className="shrink-0 pr-4">
<ExpandingArrow className="group-hover:text-content-inverted text-neutral-500" />
</div>
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/settings-row.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/settings-row.tsx
index b4f3e27dfc..bd36b37648 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/settings-row.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/profile/settings-row.tsx
@@ -3,13 +3,18 @@ import { PropsWithChildren } from "react";
export function SettingsRow({
heading,
description,
+ id,
children,
}: PropsWithChildren<{
heading: string;
description: string;
+ id?: string;
}>) {
return (
- <div className="@2xl/page:grid-cols-2 grid grid-cols-1 gap-10 px-6 py-8 lg:gap-16">
+ <div
+ id={id}
+ className="@2xl/page:grid-cols-2 grid scroll-mt-12 grid-cols-1 gap-10 px-6 py-8 lg:gap-16"
+ >
<div className="flex flex-col gap-1">
<h3 className="text-content-emphasis text-base font-semibold leading-none">
{heading}