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.

small changes

Steven Tey403af44b675d
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index ae2271d03c..a3c1ab0c31 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -13,7 +13,7 @@ const LinksQuerySchema = z.object({
.string()
.optional()
.describe(
- "[DEPRECATED (use tagIds instead)]: The tag ID to filter the links by.",
+ "[DEPRECATED] (use tagIds instead): The tag ID to filter the links by.",
)
.openapi({ deprecated: true }),
tagIds: z
@@ -187,7 +187,7 @@ export const createLinkBodySchema = z.object({
.string()
.nullish()
.describe(
- "[DEPRECATED (use tagIds instead)]: The unique ID of the tag assigned to the short link.",
+ "[DEPRECATED] (use tagIds instead): The unique ID of the tag assigned to the short link.",
)
.openapi({ deprecated: true }),
tagIds: z
@@ -289,7 +289,7 @@ export const LinkSchema = z
.string()
.nullable()
.describe(
- "[DEPRECATED (use `tags` instead)]: The unique ID of the tag assigned to the short link.",
+ "[DEPRECATED] (use `tags` instead): The unique ID of the tag assigned to the short link.",
)
.openapi({ deprecated: true }),
tags: TagSchema.array()
@@ -349,7 +349,7 @@ export const LinkSchema = z
projectId: z
.string()
.describe(
- "[DEPRECATED (use workspaceId instead)]: The project ID of the short link.",
+ "[DEPRECATED] (use workspaceId instead): The project ID of the short link.",
)
.openapi({ deprecated: true }),
})
diff --git a/apps/web/ui/analytics/toggle.tsx b/apps/web/ui/analytics/toggle.tsx
index 44bd21db01..68e52641a5 100644
--- a/apps/web/ui/analytics/toggle.tsx
+++ b/apps/web/ui/analytics/toggle.tsx
@@ -112,11 +112,7 @@ export default function Toggle() {
key={value}
content={
<TooltipContent
- title={
- slug
- ? `${display} stats can only be viewed on a Pro plan or higher. Upgrade now to view all-time stats.`
- : `${display} stats can only be viewed on a workspace with a Pro plan or higher. Create a workspace or navigate to an existing workspace to upgrade.`
- }
+ title={`${display} stats can only be viewed on a Pro plan or higher. Upgrade now to view all-time stats.`}
cta="Upgrade to Pro"
{...(isPublicStatsPage
? {