From 90bccfda329f4936acc6fef07c14a97a1f334444 Mon Sep 17 00:00:00 2001 From: justin Date: Mon, 8 Jun 2026 23:48:56 -0500 Subject: [PATCH] fix(checkout): route dot-new-carrier-bundle on success page + worker pipeline Follow-on to the trucking new-carrier slug fix: - success page: add dot-new-carrier-bundle to DOT_SLUGS + NEW_CARRIER_SLUGS so the order-confirmation 'what to expect' messaging classifies it as trucking. - pipeline_orchestrator: the trucking onboarding PIPELINE was keyed under the bare 'new-carrier-bundle' slug, which is the TELECOM bundle's slug (also a collision at the worker layer). Re-keyed to 'dot-new-carrier-bundle' so a trucking bundle never runs the telecom pipeline (and vice versa). --- scripts/workers/pipeline_orchestrator.py | 6 +++++- site/public/order/success/index.html | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/workers/pipeline_orchestrator.py b/scripts/workers/pipeline_orchestrator.py index b5407f1..1353251 100644 --- a/scripts/workers/pipeline_orchestrator.py +++ b/scripts/workers/pipeline_orchestrator.py @@ -45,7 +45,11 @@ DB_URL = os.getenv("DATABASE_URL", "") # (e.g. MC authority needs an *active* USDOT; UCR/D&A need an active USDOT). # `activation_target` names what must be active at FMCSA: "usdot" | "authority". PIPELINES = { - "new-carrier-bundle": [ + # Trucking/DOT new-carrier onboarding pipeline. Keyed by the DOT-specific + # slug (dot-new-carrier-bundle); the bare "new-carrier-bundle" slug is the + # TELECOM VoIP bundle, handled by NewCarrierBundleHandler -- they must not + # share a key here or trucking orders would run the telecom pipeline. + "dot-new-carrier-bundle": [ {"slug": "llc-formation", "name": "LLC Formation", "wait_for": None}, {"slug": "ein-application", "name": "EIN Application", "wait_for": "llc-formation"}, {"slug": "dot-registration", "name": "USDOT Registration", "wait_for": "ein-application"}, diff --git a/site/public/order/success/index.html b/site/public/order/success/index.html index 80a3848..eca77f8 100644 --- a/site/public/order/success/index.html +++ b/site/public/order/success/index.html @@ -234,8 +234,8 @@ Send reset link var params = new URLSearchParams(window.location.search); var orderId = params.get("order_id") || params.get("session_id") || ""; var API = window.__PW_API || "https://api.performancewest.net"; - var DOT_SLUGS = ["mcs150-update","ucr-registration","boc3-filing","dot-registration","mc-authority","dot-drug-alcohol","dot-audit-prep","dot-full-compliance","irp-registration","ifta-application","usdot-reactivation","emergency-temporary-authority","new-carrier-bundle"]; - var NEW_CARRIER_SLUGS = ["new-carrier-bundle","dot-registration","mc-authority"]; + var DOT_SLUGS = ["mcs150-update","ucr-registration","boc3-filing","dot-registration","mc-authority","dot-drug-alcohol","dot-audit-prep","dot-full-compliance","irp-registration","ifta-application","usdot-reactivation","emergency-temporary-authority","new-carrier-bundle","dot-new-carrier-bundle"]; + var NEW_CARRIER_SLUGS = ["new-carrier-bundle","dot-new-carrier-bundle","dot-registration","mc-authority"]; // Fetch and render order timeline function renderTimeline(orderId) {