From f4230e1cb119a9453fec0e1cdc550e4221efdfe9 Mon Sep 17 00:00:00 2001 From: justin Date: Sun, 31 May 2026 19:54:43 -0500 Subject: [PATCH] intake email: DOT services now send a customer intake-form link (auto) Federal DOT services (MCS-150, BOC-3, UCR, authority, D&A, audit, full-compliance, reactivation, ETA, closeout) now have customer intake pages, so they get an intake-form link like FCC services instead of the old 'admin-assisted / we're working on it' message. Only form-less state-level filings stay admin-assisted. Co-Authored-By: Claude Opus 4.8 (1M context) --- api/src/routes/checkout.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/api/src/routes/checkout.ts b/api/src/routes/checkout.ts index d91b38e..7195b9e 100644 --- a/api/src/routes/checkout.ts +++ b/api/src/routes/checkout.ts @@ -2058,19 +2058,18 @@ async function sendComplianceIntakeEmail(

` : ""; - // DOT services are admin-assisted — no intake form needed - const DOT_SLUGS = new Set([ - "mcs150-update", "boc3-filing", "ucr-registration", "dot-registration", - "mc-authority", "dot-drug-alcohol", "dot-audit-prep", "dot-full-compliance", - // State-level trucking + // Fully admin-assisted services — NO customer intake form (state-level filings + // collected by ops). Everything else (FCC + federal DOT: MCS-150, BOC-3, UCR, + // authority, D&A, audit, etc.) now has a customer intake page and gets a link. + const ADMIN_ASSISTED_SLUGS = new Set([ "irp-registration", "ifta-application", "ifta-quarterly", "or-weight-mile-tax", "ny-hut-registration", "ky-kyu-registration", "nm-weight-distance", "ct-highway-use-fee", "ca-mcp-carb", "state-dot-registration", "intrastate-authority", "osow-permit", "state-trucking-bundle", ]); - const dotOrders = orders.filter(o => DOT_SLUGS.has(o.service_slug as string)); - const fccOrders = orders.filter(o => !DOT_SLUGS.has(o.service_slug as string)); + const dotOrders = orders.filter(o => ADMIN_ASSISTED_SLUGS.has(o.service_slug as string)); + const fccOrders = orders.filter(o => !ADMIN_ASSISTED_SLUGS.has(o.service_slug as string)); const isDotOnly = fccOrders.length === 0; // Build intake form links for FCC services only