From b5f627c5151601afe1f0cd4d71e02d2182973b80 Mon Sep 17 00:00:00 2001 From: rschumann Date: Sun, 26 Jul 2026 10:36:17 +0200 Subject: [PATCH] Keep internal pricing history out of the published landing page I wrote the rationale for the rewrite into web/index.html as source comments -- naming the retired plans, their $39/$79/$149 prices, and the money-back incident. web/ IS the website. Cloudflare Workers serves ./web directly (wrangler.jsonc assets.directory) and the Pages job does `cp -rL web/. _site/`. So that history shipped to anyone who hit View Source on get.traylinx.com; confirmed against the live deploy. The suite did not catch it because my own assertion stripped `//` comments before scanning -- it was checking rendered copy when the whole file is public. Both comments now point at tests/landing-pricing.test.mjs (outside web/, not served) for the history. The two claim assertions scan the ENTIRE file, comments included, and a new one forbids any $NN literal anywhere in it. Co-Authored-By: Claude Opus 5 (1M context) --- tests/landing-pricing.test.mjs | 21 ++++++++++++++++----- web/index.html | 15 +++++++-------- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/tests/landing-pricing.test.mjs b/tests/landing-pricing.test.mjs index 4899361..d0c1fe1 100644 --- a/tests/landing-pricing.test.mjs +++ b/tests/landing-pricing.test.mjs @@ -96,15 +96,26 @@ const livePayload = (interval, label) => ({ console.log('landing pricing contract'); // ── 1. the page must never carry a price of its own ─────────────────────── -await test('no retired plan names survive in the markup', () => { - const body = HTML.split('