Hold /privacy behind a flag until counsel reads it, and fix leftover legal and email copy.

This commit is contained in:
adilallo committed 2026-11-20 15:36:06 -07:00
1 parent ead6c8f716
commit 072e5362f5
43 files changed
+548 -191

No files matched your search

+6 -10
View File
@@ -1,6 +1,7 @@
import { ASSETS, getAssetPath } from "../assetUtils";
import { communityPossessive } from "../create/ruleInviteCardMeta";
import { RULE_MD_FILENAME } from "../create/ruleExportModel";
import { mailLegalFooterHtml, mailLegalFooterUrls } from "./mailLegalFooter";
export const RULE_FOLLOW_UP_LOGO_PATH = getAssetPath(ASSETS.LOGO_MARK);
@@ -55,8 +56,7 @@ export function buildRuleFollowUpMail(
const why = `Sent because you finished a Rule at ${host}.`;
const madeBy =
"CommunityRule is made by the Media Economies Design Lab at the University of Colorado Boulder.";
const privacyUrl = `${origin}/privacy`;
const aboutUrl = `${origin}/about`;
const { privacyUrl } = mailLegalFooterUrls(origin);
const logoUrl = `${origin}${RULE_FOLLOW_UP_LOGO_PATH}`;
const text = [
@@ -82,7 +82,7 @@ export function buildRuleFollowUpMail(
why,
"",
madeBy,
`Privacy ${privacyUrl}`,
...(privacyUrl ? [`Privacy ${privacyUrl}`] : []),
].join("\n");
const html = followUpHtml({
@@ -98,8 +98,7 @@ export function buildRuleFollowUpMail(
signOff,
why,
madeBy,
privacyUrl,
aboutUrl,
origin,
logoUrl,
kitHostPath: `${host}/kit`,
});
@@ -120,8 +119,7 @@ function followUpHtml(opts: {
signOff: string;
why: string;
madeBy: string;
privacyUrl: string;
aboutUrl: string;
origin: string;
logoUrl: string;
kitHostPath: string;
}): string {
@@ -180,9 +178,7 @@ function followUpHtml(opts: {
<p style="margin:0 0 12px;font-family:Inter,Arial,sans-serif;font-size:14px;line-height:20px;color:#464646;">${escapeHtml(opts.why)}</p>
<p style="margin:0 0 12px;font-family:Inter,Arial,sans-serif;font-size:14px;line-height:20px;color:#464646;">${escapeHtml(opts.madeBy)}</p>
<p style="margin:0;font-family:Inter,Arial,sans-serif;font-size:14px;line-height:20px;color:#464646;">
<a href="${escapeHtml(opts.privacyUrl)}" style="color:#464646;text-decoration:underline;">Privacy</a>
&nbsp;&nbsp;
<a href="${escapeHtml(opts.aboutUrl)}" style="color:#464646;text-decoration:underline;">About CommunityRule</a>
${mailLegalFooterHtml(opts.origin)}
</p>
</div>
</td>