From de50971fb326fcaf80788a9d19a5616a8647ceb1 Mon Sep 17 00:00:00 2001 From: justin Date: Fri, 22 May 2026 01:26:33 -0500 Subject: [PATCH] Add intake form links to compliance order confirmation email The confirmation email now includes a prominent blue box with direct links to the intake form for each ordered service. Subject changed to "Action Required" to prompt the customer to complete it. Co-Authored-By: Claude Opus 4.6 (1M context) --- api/src/routes/checkout.ts | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/api/src/routes/checkout.ts b/api/src/routes/checkout.ts index ce3ed0a..58005dd 100644 --- a/api/src/routes/checkout.ts +++ b/api/src/routes/checkout.ts @@ -2038,10 +2038,29 @@ async function sendComplianceIntakeEmail(

` : ""; + // Build intake form links for each service + const intakeLinks = orders.map(o => { + const slug = o.service_slug as string; + const orderNum = o.order_number as string; + const name = o.service_name as string; + const intakeUrl = `${SITE_DOMAIN}/order/${slug}?order=${orderNum}`; + return `
  • ${name}
  • `; + }).join("\n"); + + const intakeSection = ` +
    +

    Action Required: Complete Your Intake Form

    +

    + Please fill out the intake form for each service so we have the information we need to prepare your filing. +

    +
      ${intakeLinks}
    +

    This usually takes 2-5 minutes. We cannot begin your filing until the intake form is complete.

    +
    `; + const { sendEmail } = await import("../email.js"); await sendEmail({ to: customerEmail, - subject: `Next Steps — ${entityName || "Your"} FCC Compliance Order`, + subject: `Action Required — ${entityName || "Your"} FCC Compliance Order`, html: ` @@ -2074,10 +2093,13 @@ async function sendComplianceIntakeEmail( ${usacSection} + ${intakeSection} +

    What to Expect

    -

    1. We will review your compliance status within 1 business day.

    -

    2. If we need any additional information, we will email you.

    -

    3. You will receive a confirmation for each filing as it is completed.

    +

    1. Complete the intake form above so we have the details we need.

    +

    2. We will prepare your filing within 3-7 business days.

    +

    3. You will receive the document for review and electronic signature.

    +

    4. Once signed, we file it with the FCC and send you confirmation.

    ${has499 ? `

    4. For 499-A filings, complete the USAC delegation above and click the confirmation button.

    ` : ""}