Remove external action_url links from compliance checker
Don't send users to FMCSA portal or state agency sites — keep them on our site to order services through us. Removed all action_url from API responses and "Fix this" / "Learn more" links from frontend. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
da00817174
commit
c47c52e9e8
2 changed files with 1 additions and 9 deletions
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue