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:
parent
f9c4f6783b
commit
f4230e1cb1
1 changed files with 6 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue