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 += '
'; - html += '

Federal filings look good!

'; - 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 += '
'; + html += '

Federal filings look good — but ' + yellowItems.length + ' item' + (yellowItems.length > 1 ? 's' : '') + ' to review

'; + html += '

Your FMCSA filings are current. The following may need attention:

'; + html += ''; + html += '
Get These Handled →'; + html += '

Or call (888) 411-0383

'; html += '
'; } else { html += '
';