From 16b5c2da0b123dcb8ca60d6c47e4d77b2d2fcce6 Mon Sep 17 00:00:00 2001 From: justin Date: Mon, 4 May 2026 06:17:06 -0500 Subject: [PATCH] Fix BDC pricing in compliance checker CTA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - BDC both (broadband+voice): $299 (was $349, now matches bdc-filing API price) - BDC broadband-only: $199 (uses bdc_broadband slug) - BDC voice-only: $149 (uses bdc_voice slug — was showing $199) - Added _bdcVariant tracking so CTA uses correct slug per user answer - Reset variant on undo Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/pages/tools/fcc-compliance-check.astro | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/site/src/pages/tools/fcc-compliance-check.astro b/site/src/pages/tools/fcc-compliance-check.astro index 8a9b804..b1b2828 100644 --- a/site/src/pages/tools/fcc-compliance-check.astro +++ b/site/src/pages/tools/fcc-compliance-check.astro @@ -609,12 +609,16 @@ import Base from "../../layouts/Base.astro"; let newStatus, detail; if (hasBroadband && bdcHasVoice) { newStatus = "red"; detail = "Broadband + retail voice: both BDC Broadband and BDC Voice filings required. Filed semi-annually June 1 and December 1."; + check._bdcVariant = "both"; } else if (hasBroadband) { newStatus = "yellow"; detail = "BDC Broadband Deployment filing required. Filed semi-annually June 1 and December 1."; + check._bdcVariant = "broadband"; } else if (bdcHasVoice) { newStatus = "yellow"; detail = "BDC Voice Subscription filing required (formerly Form 477 Voice). Filed semi-annually June 1 and December 1."; + check._bdcVariant = "voice"; } else { newStatus = "green"; detail = "Not applicable — no retail voice or broadband service."; + check._bdcVariant = null; } check.status = newStatus; const c3 = colorMap[newStatus]; @@ -627,6 +631,7 @@ import Base from "../../layouts/Base.astro"; `; card.querySelector(".bdc-undo")?.addEventListener("click", () => { check.status = "unknown"; + check._bdcVariant = null; bdcHasVoice = false; const cu = colorMap.unknown; card.className = `${cu.bg} ${cu.border} border rounded-xl p-4 flex items-start gap-3`; @@ -807,11 +812,14 @@ import Base from "../../layouts/Base.astro"; } break; case "bdc_filing": - if (s === "red") { - // Both broadband + voice filings - services.push({ id: "bdc_filing", name: "BDC Broadband + Voice Filing", desc: "both filings", price: 349 }); - } else if (s === "yellow") { - services.push({ id: "bdc_filing", name: "BDC / Form 477 Filing", desc: "", price: 199 }); + if (check._bdcVariant === "both") { + services.push({ id: "bdc_filing", name: "BDC Broadband + Voice Filing", desc: "both filings", price: 299 }); + } else if (check._bdcVariant === "broadband") { + services.push({ id: "bdc_broadband", name: "BDC Broadband Filing", desc: "", price: 199 }); + } else if (check._bdcVariant === "voice") { + services.push({ id: "bdc_voice", name: "BDC Voice Filing", desc: "formerly Form 477", price: 149 }); + } else if (s !== "green") { + services.push({ id: "bdc_filing", name: "BDC Filing", desc: "", price: 299 }); } break; }