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) <noreply@anthropic.com>
This commit is contained in:
justin 2026-05-31 19:54:43 -05:00
parent f9c4f6783b
commit f4230e1cb1

View file

@ -2058,19 +2058,18 @@ async function sendComplianceIntakeEmail(
</p>
</div>` : "";
// 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