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.

acknowledge autoApprovePartners in PartnerApplicationReceived

Steven Tey243ce1733783
diff --git a/apps/web/lib/api/partners/notify-partner-application.ts b/apps/web/lib/api/partners/notify-partner-application.ts
index 17ea066d01..f97d04e332 100644
--- a/apps/web/lib/api/partners/notify-partner-application.ts
+++ b/apps/web/lib/api/partners/notify-partner-application.ts
@@ -58,6 +58,9 @@ export async function notifyPartnerApplication({
},
program: {
name: program.name,
+ autoApprovePartners: program.autoApprovePartnersEnabledAt
+ ? true
+ : false,
},
workspace: {
slug: project.slug,
diff --git a/packages/email/src/templates/partner-application-received.tsx b/packages/email/src/templates/partner-application-received.tsx
index 695d038e73..db2e587921 100644
--- a/packages/email/src/templates/partner-application-received.tsx
+++ b/packages/email/src/templates/partner-application-received.tsx
@@ -30,6 +30,7 @@ export function PartnerApplicationReceived({
},
program = {
name: "Acme",
+ autoApprovePartners: true,
},
workspace = {
slug: "acme",
@@ -47,6 +48,7 @@ export function PartnerApplicationReceived({
};
program: {
name: string;
+ autoApprovePartners: boolean;
};
workspace: {
slug: string;
@@ -73,8 +75,9 @@ export function PartnerApplicationReceived({
</Heading>
<Text className="text-sm leading-6 text-neutral-600">
- You have a new pending application to review, view their
- application below or{" "}
+ Your program <strong>{program.name}</strong> just received a new
+ application from <strong>{partner.name}</strong> ({partner.email}
+ ). You can view it below or{" "}
<Link
href={applicationUrl}
className="text-neutral-600 underline underline-offset-4"
@@ -84,6 +87,14 @@ export function PartnerApplicationReceived({
.
</Text>
+ {program.autoApprovePartners && (
+ <Text className="text-sm leading-6 text-neutral-600">
+ Since you have auto-approve partners enabled, this application
+ will be <strong>automatically approved</strong> – no action is
+ needed on your part.
+ </Text>
+ )}
+
<Container className="mb-8 mt-10 rounded-lg border border-solid border-neutral-200">
<Section className="p-2">
<Container className="mb-4 w-full rounded-lg border border-solid border-neutral-100 bg-neutral-50 p-6">