diff --git a/site/public/tools/dot-compliance-check/index.html b/site/public/tools/dot-compliance-check/index.html index 112b644..a067a72 100644 --- a/site/public/tools/dot-compliance-check/index.html +++ b/site/public/tools/dot-compliance-check/index.html @@ -358,13 +358,24 @@ Send reset link html += '
Or call (888) 411-0383
'; html += ''; } else if (s.yellow > 0) { - // No red issues but yellow state-level warnings — show softer CTA + // No red issues but yellow warnings — list what needs attention var yellowSvcParam = recommendedServices.length > 0 ? "&services=" + recommendedServices.join(",") : ""; if (data.phy_state) yellowSvcParam += "&state=" + data.phy_state; - html += 'Your FMCSA filings are current, but you may have state-level obligations to address.
'; - html += 'Review State Compliance →'; + var yellowItems = []; + (data.checks || []).forEach(function(c) { + if (c.status === "yellow") yellowItems.push(c.label); + }); + html += 'Your FMCSA filings are current. The following may need attention:
'; + html += 'Or call (888) 411-0383