Unified DOT intake form — one form for all trucking services

Single DOTIntakeStep shows/hides sections based on services ordered:
- Company info + address + signer (always)
- Entity & operations (MCS-150, USDOT, MC Auth, bundles)
- Fleet info (MCS-150, UCR, bundles)
- UCR fleet bracket + base state (UCR)
- Cargo types (MCS-150, bundles)
- D&A program (CDL drivers, DER, consortium)
- BOC-3 docket info (BOC-3)
- Photo ID upload (MCS-150, MC Auth)
- Security/encryption notices

All DOT services now use ["dot-intake", "review"] instead of ["review"].

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
justin 2026-05-30 15:23:48 -05:00
parent 72d1b336c5
commit 8ce9e2e118
3 changed files with 423 additions and 11 deletions

View file

@ -35,7 +35,8 @@ export type IntakeStep =
| "cpni_questions" // NEW: CPNI certification questionnaire (sec 5-9)
| "cdr_period"
| "ocn"
| "mcs150" // MCS-150 biennial update form fields
| "mcs150" // MCS-150 biennial update form fields (standalone)
| "dot-intake" // Unified DOT intake — shows sections based on services ordered
| "review"
| "payment";
@ -103,16 +104,15 @@ export const INTAKE_MANIFEST: Record<string, IntakeStep[]> = {
],
// ── DOT / FMCSA Motor Carrier Services ──────────────────────────
// Review-only intake: DOT#, name, email already collected at checkout.
// Admin handles the filing using the info from the order.
"mcs150-update": ["mcs150", "review"],
"boc3-filing": ["review"],
"ucr-registration": ["review"],
"dot-registration": ["review"],
"mc-authority": ["review"],
"dot-drug-alcohol": ["review"],
"dot-audit-prep": ["review"],
"dot-full-compliance": ["review"],
// Unified DOT intake form — shows relevant sections based on service.
"mcs150-update": ["dot-intake", "review"],
"boc3-filing": ["dot-intake", "review"],
"ucr-registration": ["dot-intake", "review"],
"dot-registration": ["dot-intake", "review"],
"mc-authority": ["dot-intake", "review"],
"dot-drug-alcohol": ["dot-intake", "review"],
"dot-audit-prep": ["dot-intake", "review"],
"dot-full-compliance": ["dot-intake", "review"],
// ── State-Level Trucking Compliance ─────────────────────────────────
// Admin-assisted: info collected at checkout, no intake form needed.