diff --git a/api/src/routes/dot-lookup.ts b/api/src/routes/dot-lookup.ts index cc43360..60fb9bf 100644 --- a/api/src/routes/dot-lookup.ts +++ b/api/src/routes/dot-lookup.ts @@ -111,7 +111,6 @@ router.get("/api/v1/dot/lookup", async (req, res) => { status: "red", detail: `OVERDUE${mcs150Date ? " — last filed " + mcs150Date : ""}. The MCS-150 must be updated every 2 years. ` + `Failure to update can result in USDOT deactivation and fines up to $1,000/day (capped at $10,000).`, - action_url: "https://portal.fmcsa.dot.gov/login", }); } else if (carrier && carrier.mcs150Outdated === "N") { // API confirms not outdated — show green even without exact date @@ -328,7 +327,6 @@ router.get("/api/v1/dot/lookup", async (req, res) => { label: "IRP (Apportioned Registration)", status: "yellow", detail: `Interstate carriers based in ${phyState} must register under the International Registration Plan (IRP) through ${st.irp_agency || "their state DMV"}.`, - action_url: st.irp_url || null, }); } @@ -339,7 +337,6 @@ router.get("/api/v1/dot/lookup", async (req, res) => { label: "IFTA (Fuel Tax)", status: "yellow", detail: `Interstate carriers must file quarterly IFTA fuel tax returns through ${st.ifta_agency || "their base state"}.`, - action_url: st.ifta_url || null, }); } @@ -351,7 +348,6 @@ router.get("/api/v1/dot/lookup", async (req, res) => { status: "yellow", detail: `${phyState} requires a ${st.weight_distance_tax_name || "weight-distance tax"} for commercial vehicles${st.weight_distance_threshold_lbs ? ` over ${st.weight_distance_threshold_lbs.toLocaleString()} lbs` : ""}.` + (st.weight_distance_notes ? ` ${st.weight_distance_notes}` : ""), - action_url: st.weight_distance_url || null, }); } @@ -363,7 +359,6 @@ router.get("/api/v1/dot/lookup", async (req, res) => { status: "yellow", detail: `${phyState} requires a ${st.state_carrier_permit_name || "state motor carrier permit"}.` + (st.state_carrier_permit_notes ? ` ${st.state_carrier_permit_notes}` : ""), - action_url: st.state_carrier_permit_url || null, }); } @@ -375,7 +370,6 @@ router.get("/api/v1/dot/lookup", async (req, res) => { status: "yellow", detail: `${phyState} has emissions requirements for commercial vehicles: ${st.emissions_program_name || "state emissions program"}.` + (st.emissions_notes ? ` ${st.emissions_notes}` : ""), - action_url: st.emissions_url || null, }); } @@ -387,7 +381,6 @@ router.get("/api/v1/dot/lookup", async (req, res) => { status: "yellow", detail: `For-hire intrastate carriers in ${phyState} need ${st.intrastate_authority_name || "state operating authority"} from ${st.intrastate_authority_agency || "the state PUC/PSC"}.` + (st.intrastate_authority_notes ? ` ${st.intrastate_authority_notes}` : ""), - action_url: st.intrastate_authority_url || null, }); } @@ -399,7 +392,6 @@ router.get("/api/v1/dot/lookup", async (req, res) => { status: "yellow", detail: `${phyState} requires a ${st.state_dot_number_name || "state DOT number"} in addition to your federal USDOT number.` + (st.state_dot_notes ? ` ${st.state_dot_notes}` : ""), - action_url: st.state_dot_url || null, }); } } diff --git a/site/public/tools/dot-compliance-check/index.html b/site/public/tools/dot-compliance-check/index.html index 2f964a7..598ab00 100644 --- a/site/public/tools/dot-compliance-check/index.html +++ b/site/public/tools/dot-compliance-check/index.html @@ -231,7 +231,7 @@ Send reset link html += '
'; html += '
' + c.label + '
'; html += '
' + c.detail + '
'; - if (c.action_url) html += '' + (st === 'red' ? 'Fix this →' : 'Learn more →') + ''; + // No external links — keep users on our site html += '
'; });