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.

update empty state

Steven Tey1f0660914aa3
diff --git a/apps/web/ui/customers/customer-table/customer-table.tsx b/apps/web/ui/customers/customer-table/customer-table.tsx
index 1ba251d43e..6b4ed5a2ee 100644
--- a/apps/web/ui/customers/customer-table/customer-table.tsx
+++ b/apps/web/ui/customers/customer-table/customer-table.tsx
@@ -325,7 +325,7 @@ export function CustomerTable() {
breakdown etc.? Upgrade to our Business Plan to get deeper,
real-time customer insights.{" "}
<a
- href="https://dub.co/help"
+ href="https://dub.co/help/article/customer-insights"
target="_blank"
className="underline underline-offset-2 hover:text-neutral-800"
>
@@ -353,12 +353,16 @@ export function CustomerTable() {
</Table>
) : (
<AnimatedEmptyState
- title="No customers found"
+ title={`No customers ${isFiltered ? "found" : "yet"}`}
description={
isFiltered
? "No customers found for the selected filters."
- : "No customers have been added to this program yet."
+ : "No customers have been recorded for your workspace yet. Learn how to track your first customer."
}
+ {...(!isFiltered && {
+ learnMoreHref: "https://dub.co/help/article/customer-insights",
+ learnMoreText: "Read the guide",
+ })}
cardContent={() => (
<>
<User className="size-4 text-neutral-700" />
diff --git a/apps/web/ui/shared/animated-empty-state.tsx b/apps/web/ui/shared/animated-empty-state.tsx
index f5d570f782..5e682775d4 100644
--- a/apps/web/ui/shared/animated-empty-state.tsx
+++ b/apps/web/ui/shared/animated-empty-state.tsx
@@ -48,7 +48,7 @@ export function AnimatedEmptyState({
</div>
</div>
{pillContent && <Badge variant="blueGradient">{pillContent}</Badge>}
- <div className="max-w-xs text-pretty text-center">
+ <div className="max-w-sm text-pretty text-center">
<span className="text-base font-medium text-neutral-900">{title}</span>
<p className="mt-2 text-pretty text-sm text-neutral-500">
{description}