Give finished Rules a print path, folded launch counts, and a two-day follow-up.

Export is PDF, RULE.md, and Print on US Letter, with every shared term, no member names, and a takeaway that points at Ask an organizer. Finished Rules keep type and place so the team can read folded counts without a database, Umami can sit beside the app with no cookies, and the person who holds the pen gets working PDF and RULE.md links 48 hours later.
This commit is contained in:
adilallo committed 2026-11-10 18:32:33 -07:00
1 parent 0efc907633
commit d9c475a967
74 files changed
+2401 -630

No files matched your search

+18
View File
@@ -12,6 +12,10 @@ import {
stakeholderInviteReplyTo,
type RuleStakeholderInviteMailInput,
} from "./ruleStakeholderInviteMail";
import {
buildRuleFollowUpMail,
type RuleFollowUpMailInput,
} from "./ruleFollowUpMail";
function escapeHtml(value: string): string {
return value
@@ -115,6 +119,20 @@ export async function sendRuleStakeholderInviteEmail(
});
}
/** 48-hour print follow-up to the address that holds the pen. */
export async function sendRuleFollowUpEmail(
input: RuleFollowUpMailInput,
): Promise<void> {
const { subject, text, html } = buildRuleFollowUpMail(input);
await sendHtmlMail({
to: input.to,
subject,
text,
html,
devLog: `[dev] Rule follow-up mail for ${input.to}`,
});
}
/** Notify support/organizers when a visitor submits the Ask an organizer form. */
export async function sendOrganizerInquiryNotification(params: {
/** Destination inbox (e.g. from ORGANIZER_INQUIRY_TO). */