From d40458057be4352a62b8946e31ac68bb68f0f7d0 Mon Sep 17 00:00:00 2001 From: justin Date: Wed, 1 Jul 2026 08:42:13 -0500 Subject: [PATCH] corp-check tool: show annual-report-overdue for active-but-overdue entities The tool treated any ACTIVE entity as 'good standing, no action' - so an overdue-but-active CT business (the CT campaign's target) saw a false all-clear. Now: overdue-but-active -> 'REPORT OVERDUE' badge + past-due message with the due date + days overdue + cost-to-fix, matching the corp-status API signal. --- .../public/tools/corporation-check/index.html | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/site/public/tools/corporation-check/index.html b/site/public/tools/corporation-check/index.html index aafea60..ac58984 100644 --- a/site/public/tools/corporation-check/index.html +++ b/site/public/tools/corporation-check/index.html @@ -164,8 +164,11 @@ function doCheck() { function renderResult(data, state) { var status = (data.status || "UNKNOWN").toUpperCase(); - var isGood = status === "ACTIVE"; - var isBad = status === "DELINQUENT" || status === "SUSPENDED" || status === "DISSOLVED" || status === "INACTIVE"; + // An entity's annual report can be past due even while the state still lists it + // ACTIVE (e.g. CT). Treat overdue-but-active as "needs action", not good standing. + var overdue = !!data.annual_report_overdue; + var isGood = status === "ACTIVE" && !overdue; + var isBad = status === "DELINQUENT" || status === "SUSPENDED" || status === "DISSOLVED" || status === "INACTIVE" || (status === "ACTIVE" && overdue); var borderColor = isGood ? "border-green-200" : isBad ? "border-red-200" : "border-gray-200"; var bgColor = isGood ? "bg-green-50" : isBad ? "bg-red-50" : "bg-gray-50"; @@ -179,7 +182,7 @@ function renderResult(data, state) { if (data.entity_number) html += '

Filing #: ' + data.entity_number + '

'; if (data.formation_date) html += '

Formed: ' + data.formation_date + '

'; html += ''; - html += '' + status + ''; + html += '' + ((status === "ACTIVE" && overdue) ? "REPORT OVERDUE" : status) + ''; html += ''; if (isGood) { @@ -192,12 +195,18 @@ function renderResult(data, state) { html += ''; } else if (isBad) { html += '
'; - if (data.years_behind > 0) { + if (status === "ACTIVE" && overdue) { + var od = (data.annual_report_days_overdue != null) ? data.annual_report_days_overdue : null; + html += '

Your annual report is past due' + + (data.annual_report_due_date ? ' (was due ' + data.annual_report_due_date + (od != null ? ', ' + od + ' days ago' : '') + ')' : '') + + '.

'; + html += '

Your business is still active, but an unfiled annual report can cost you good standing and, if it keeps lapsing, lead to administrative dissolution. File it now to stay clear.

'; + } else if (data.years_behind > 0) { html += '

You are ' + data.years_behind + ' year' + (data.years_behind > 1 ? 's' : '') + ' behind on annual reports.

'; } if (status === "DISSOLVED") { html += '

This entity has been administratively dissolved. Reinstatement is required to restore good standing.

'; - } else { + } else if (!(status === "ACTIVE" && overdue)) { html += '

File your overdue annual report(s) to return to good standing before the state administratively dissolves your entity.

'; }