Open source CapCut alternative.
TypeScript
fix(site): an outreach note reads like a note
David Le6683e2498751
diff --git a/site/src/emails/outreach.tsx b/site/src/emails/outreach.tsxindex 9e589e56..d681c739 100644--- a/site/src/emails/outreach.tsx+++ b/site/src/emails/outreach.tsx@@ -2,7 +2,6 @@ import {Body,Container,Head,- Hr,Html,Link,Preview,@@ -13,15 +12,14 @@ import {import { Fragment } from "react";import { CommunityPs } from "./_components/CommunityPs";-import { DonkeyMark } from "./_components/DonkeyMark";-// The shell every outreach note is written into: the mark, the operator's text-// as paragraphs, the community P.S., and the unsubscribe footer. The words-// themselves come from a template in src/lib/marketing/templates/ or straight-// from the send dialog, already filled for this recipient. Preview with-// `npm run email:dev`. This module stays pure — the react-email preview server-// bundles it on its own, so everything it needs comes in as props and-// asset/link URLs are absolute.+// The shell every outreach note is written into: the operator's text as+// paragraphs, the community P.S., and one grey line to unsubscribe. It reads+// like a note a person typed, so there is no letterhead. The words come from a+// template in src/lib/marketing/templates/ or straight from the send dialog,+// already filled for this recipient. Preview with `npm run email:dev`. This+// module stays pure — the react-email preview server bundles it on its own, so+// everything it needs comes in as props and link URLs are absolute.type OutreachEmailProps = {/** Plain text. A blank line starts a paragraph, a single newline breaks a@@ -46,7 +44,6 @@ export default function OutreachEmail({ body, unsubscribeUrl }: OutreachEmailPro<Tailwind config={{ presets: [pixelBasedPreset] }}><Body className="bg-white font-sans text-[#0F0E0D]"><Container className="mx-auto max-w-[520px] px-6 py-12">- <DonkeyMark />{blocks.map((block, index) => (<Text key={index} className="text-[15px] leading-relaxed">{block.split("\n").map((line, lineIndex) => (@@ -58,13 +55,10 @@ export default function OutreachEmail({ body, unsubscribeUrl }: OutreachEmailPro</Text>))}<CommunityPs />- <Hr className="mt-6 border-[#0F0E0D]/15" />- <Text className="text-[12px] leading-relaxed text-[#0F0E0D]/60">- You're receiving this because you created a Donkey Cut- account.{" "}+ <Text className="mt-8 text-[12px] leading-relaxed text-[#0F0E0D]/50"><Linkhref={unsubscribeUrl}- className="text-[#0F0E0D]/60 underline"+ className="text-[#0F0E0D]/50 underline">Unsubscribe</Link>{" "}diff --git a/site/src/lib/marketing/send-outreach.ts b/site/src/lib/marketing/send-outreach.tsindex 3ba0f883..23bc17de 100644--- a/site/src/lib/marketing/send-outreach.ts+++ b/site/src/lib/marketing/send-outreach.ts@@ -1,7 +1,3 @@-import {- DONKEY_LOGO_CID,- DONKEY_LOGO_PNG_BASE64,-} from "@/emails/_components/logo";import OutreachEmail from "@/emails/outreach";import {emailFrom,@@ -42,10 +38,10 @@ type SendOutreachInput = {vars: OutreachVars;};-// Sends one outreach note. Promotional mail, so it checks the opt-out first-// and carries the one-click unsubscribe headers. The reply-to is the row's own-// address: a reply comes back through Resend Inbound and finds its row without-// matching on the sender.+// Sends one outreach note. Promotional mail, so it checks the opt-out first and+// carries the one-click unsubscribe headers alongside the link in the message.+// The reply-to is the row's own address: a reply comes back through Resend+// Inbound and finds its row without matching on the sender.export async function sendOutreachEmail({attempt,body,@@ -87,17 +83,6 @@ export async function sendOutreachEmail({body: filledBody,unsubscribeUrl: unsubscribePageUrl(user.id),}),- // The mark rides inside the message (Content-ID embed) so no client- // fetches anything external; Gmail strips data URIs, so cid is the only- // fetch-free form that renders everywhere.- attachments: [- {- content: DONKEY_LOGO_PNG_BASE64,- contentId: DONKEY_LOGO_CID,- contentType: "image/png",- filename: "donkey-cut.png",- },- ],// RFC 8058 one-click: mail providers POST here with no session; the// signed token in the URL is the authorization.headers: {