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.

tooltip improvements

Steven Teybc65a315170c
diff --git a/apps/web/ui/domains/domain-card-title-column.tsx b/apps/web/ui/domains/domain-card-title-column.tsx
index 541c8cf01f..09ca950557 100644
--- a/apps/web/ui/domains/domain-card-title-column.tsx
+++ b/apps/web/ui/domains/domain-card-title-column.tsx
@@ -1,3 +1,4 @@
+import { Tooltip } from "@dub/ui";
import { ArrowTurnRight2, ConnectedDots4, Flag2, Globe } from "@dub/ui/icons";
import { cn, getPrettyUrl, punycode } from "@dub/utils";
@@ -49,16 +50,20 @@ export function DomainCardTitleColumn({
</a>
<div className="flex items-center gap-1">
{primary ? (
- <span className="xs:px-3 xs:py-1 flex items-center gap-1 rounded-full bg-sky-400/[.15] px-1.5 py-0.5 text-xs font-medium text-sky-600">
- <Flag2 className="hidden h-3 w-3 sm:block" />
- Primary
- </span>
+ <Tooltip content="This is the [primary domain](https://dub.co/help/article/how-to-set-primary-domain) that Dub defaults to in the [link builder](https://dub.co/help/article/dub-link-builder) and the [Links API](https://dub.co/docs/concepts/links/introduction).">
+ <span className="xs:px-3 xs:py-1 flex cursor-help items-center gap-1 rounded-full bg-sky-400/[.15] px-1.5 py-0.5 text-xs font-medium text-sky-600">
+ <Flag2 className="hidden h-3 w-3 sm:block" />
+ Primary
+ </span>
+ </Tooltip>
) : null}
{program ? (
- <span className="xs:px-3 xs:py-1 flex items-center gap-1 rounded-full bg-violet-400/[.15] px-1.5 py-0.5 text-xs font-medium text-violet-600">
- <ConnectedDots4 className="hidden h-3 w-3 sm:block" />
- Program
- </span>
+ <Tooltip content="This domain is the [referral link domain](https://dub.co/help/article/partner-link-settings#changing-your-referral-link-domain) for your [partner program](https://dub.co/partners).">
+ <span className="xs:px-3 xs:py-1 flex cursor-help items-center gap-1 rounded-full bg-violet-400/[.15] px-1.5 py-0.5 text-xs font-medium text-violet-600">
+ <ConnectedDots4 className="hidden h-3 w-3 sm:block" />
+ Program
+ </span>
+ </Tooltip>
) : null}
</div>
</div>
diff --git a/apps/web/ui/modals/change-program-domain-modal.tsx b/apps/web/ui/modals/change-program-domain-modal.tsx
index 84ef92fc9c..379ab7fb65 100644
--- a/apps/web/ui/modals/change-program-domain-modal.tsx
+++ b/apps/web/ui/modals/change-program-domain-modal.tsx
@@ -60,7 +60,7 @@ function ChangeProgramDomainModalInner({
<>
<div className="space-y-2 border-b border-neutral-200 p-4 sm:p-6">
<h3 className="text-lg font-medium leading-none">
- Switching to a different program domain
+ Changing your referral link domain
</h3>
</div>