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 Teyc09fdeea2cd7
diff --git a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsx b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsx
index 3e9ab79ec3..bcea219f88 100644
--- a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsx
+++ b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsx
@@ -98,7 +98,10 @@ export default async function DeepLinkPreviewPage(props: {
<Link
href="https://dub.co/docs/concepts/deep-links/quickstart"
target="_blank"
- className="flex items-center gap-1 whitespace-nowrap text-sm font-medium text-neutral-900"
+ className={cn(
+ "flex items-center gap-1 whitespace-nowrap text-sm font-medium text-neutral-900",
+ t["poweredByOrder"] === "inverted" ? "flex-row-reverse" : "",
+ )}
>
{t.poweredBy} <Wordmark className="text-content-emphasis h-3.5" />
</Link>
diff --git a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/translations.ts b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/translations.ts
index fec7d50221..028f708841 100644
--- a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/translations.ts
+++ b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/translations.ts
@@ -26,9 +26,9 @@ export const translations = {
openInAppWithoutCopying: "Ouvrir dans l'application sans copier",
},
tr: {
- poweredBy: "Tarafından desteklenmektedir",
- description:
- "Aşağıya tıklamak bu sayfayı kopyalayacak ve uygulamada açacaktır.",
+ poweredBy: "tarafından desteklenmektedir",
+ poweredByOrder: "inverted",
+ description: "Linki uygulamada açmak için aşağıdaki butona tıklayın.",
openInApp: "Uygulamada aç",
openInAppWithoutCopying: "Kopyalamadan uygulamada aç",
},
diff --git a/apps/web/lib/referrals/constants.ts b/apps/web/lib/referrals/constants.ts
index 361dc1f72a..465fae1b3d 100644
--- a/apps/web/lib/referrals/constants.ts
+++ b/apps/web/lib/referrals/constants.ts
@@ -1,4 +1,5 @@
import { textFieldSchema } from "@/lib/zod/schemas/referral-form";
+import { ACME_PROGRAM_ID } from "@dub/utils";
import * as z from "zod/v4";
// Required fields configuration for referral forms
@@ -46,6 +47,6 @@ export const REFERRAL_FORM_FIELD_INPUT_PROPS: Record<
};
export const REFERRAL_ENABLED_PROGRAM_IDS = [
- "prog_CYCu7IMAapjkRpTnr8F1azjN", // Acme
+ ACME_PROGRAM_ID, // Acme
"prog_1K7Y2RGFC4BKZQQZAZEEK9MVE", // SelectCode
];
diff --git a/apps/web/ui/referrals/partner-referral-table.tsx b/apps/web/ui/referrals/partner-referral-table.tsx
index 2763e16a2d..72bfdde026 100644
--- a/apps/web/ui/referrals/partner-referral-table.tsx
+++ b/apps/web/ui/referrals/partner-referral-table.tsx
@@ -90,97 +90,91 @@ export function PartnerReferralTable({
referralsColumns,
);
- const columns = useMemo(
- () =>
- [
- {
- id: "lead",
- header: "Lead",
- enableHiding: false,
- minSize: 250,
- cell: ({ row }: { row: Row<PartnerReferralProps> }) => {
- const referral = row.original;
- const companyLogoUrl = getCompanyLogoUrl(referral.email);
+ const columns = [
+ {
+ id: "lead",
+ header: "Lead",
+ enableHiding: false,
+ minSize: 250,
+ cell: ({ row }: { row: Row<PartnerReferralProps> }) => {
+ const referral = row.original;
+ const companyLogoUrl = getCompanyLogoUrl(referral.email);
- return (
- <div className="flex items-center gap-2 truncate">
- <img
- alt={referral.email}
- src={companyLogoUrl || `${OG_AVATAR_URL}${referral.id}`}
- className="size-5 shrink-0 rounded-full border border-neutral-200"
- />
- <span className="truncate" title={referral.email}>
- {referral.email}
- </span>
- </div>
- );
- },
- },
- {
- id: "company",
- header: "Company",
- accessorKey: "company",
- minSize: 150,
- cell: ({ row }: { row: Row<PartnerReferralProps> }) => {
- return (
- <span className="min-w-0 truncate" title={row.original.company}>
- {row.original.company}
- </span>
- );
- },
- },
- {
- id: "partner",
- header: "Partner",
- minSize: 200,
- cell: ({ row }: { row: Row<PartnerReferralProps> }) => {
- return (
- <PartnerRowItem
- partner={row.original.partner}
- showPermalink={true}
- showFraudIndicator={false}
- />
- );
- },
- },
- {
- id: "submitted",
- header: "Submitted",
- cell: ({ row }: { row: Row<PartnerReferralProps> }) => (
- <TimestampTooltip
- timestamp={row.original.createdAt}
- rows={["local"]}
- side="left"
- delayDuration={150}
- >
- <span>
- {formatDate(row.original.createdAt, { month: "short" })}
- </span>
- </TimestampTooltip>
- ),
- },
- {
- id: "status",
- header: "Status",
- accessorKey: "status",
- cell: ({ row }: { row: Row<PartnerReferralProps> }) => {
- const status = row.original.status;
- const badge = ReferralStatusBadges[status];
+ return (
+ <div className="flex items-center gap-2 truncate">
+ <img
+ alt={referral.email}
+ src={companyLogoUrl || `${OG_AVATAR_URL}${referral.id}`}
+ className="size-5 shrink-0 rounded-full border border-neutral-200"
+ />
+ <span className="truncate" title={referral.email}>
+ {referral.email}
+ </span>
+ </div>
+ );
+ },
+ },
+ {
+ id: "company",
+ header: "Company",
+ accessorKey: "company",
+ minSize: 150,
+ cell: ({ row }: { row: Row<PartnerReferralProps> }) => {
+ return (
+ <span className="min-w-0 truncate" title={row.original.company}>
+ {row.original.company}
+ </span>
+ );
+ },
+ },
+ {
+ id: "partner",
+ header: "Partner",
+ minSize: 200,
+ cell: ({ row }: { row: Row<PartnerReferralProps> }) => {
+ return (
+ <PartnerRowItem
+ partner={row.original.partner}
+ showPermalink={true}
+ showFraudIndicator={false}
+ />
+ );
+ },
+ },
+ {
+ id: "submitted",
+ header: "Submitted",
+ cell: ({ row }: { row: Row<PartnerReferralProps> }) => (
+ <TimestampTooltip
+ timestamp={row.original.createdAt}
+ rows={["local"]}
+ side="left"
+ delayDuration={150}
+ >
+ <span>{formatDate(row.original.createdAt, { month: "short" })}</span>
+ </TimestampTooltip>
+ ),
+ },
+ {
+ id: "status",
+ header: "Status",
+ accessorKey: "status",
+ cell: ({ row }: { row: Row<PartnerReferralProps> }) => {
+ const status = row.original.status;
+ const badge = ReferralStatusBadges[status];
- return (
- <StatusBadge
- variant={badge.variant}
- icon={null}
- className={cn("border-0", badge.className)}
- >
- {badge.label}
- </StatusBadge>
- );
- },
- },
- ].filter((c) => referralsColumns.all.includes(c.id)),
- [workspaceSlug],
- );
+ return (
+ <StatusBadge
+ variant={badge.variant}
+ icon={null}
+ className={cn("border-0", badge.className)}
+ >
+ {badge.label}
+ </StatusBadge>
+ );
+ },
+ },
+ ].filter((c) => referralsColumns.all.includes(c.id));
const { table, ...tableProps } = useTable({
data: referrals || [],