From 37be3dcd1f2675fd1384969af07da5a4556fea2e Mon Sep 17 00:00:00 2001 From: Kpa-clawbot Date: Mon, 6 Apr 2026 15:43:43 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20Prefix=20Tool=20text=20consistency=20?= =?UTF-8?q?=E2=80=94=20use=20'repeaters'=20everywhere=20(#642)=20(#645)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Fixes remaining text inconsistencies in the Prefix Tool after #643 added the repeater filter. The Torvalds review on #643 flagged: 1. **Must-fix (already addressed in #643):** "About these numbers" text — fixed 2. **Out-of-scope:** Empty state says "No nodes" should say "No repeaters" This PR fixes ALL remaining "nodes" references in the Prefix Tool to say "repeaters": - Empty state: "No nodes in the network yet" → "No repeaters in the network yet" - Stat card label: "Total nodes" → "Total repeaters" - Region note link: "Check all nodes →" → "Check all repeaters →" - Recommendation text: "With N nodes" → "With N repeaters" Verified: zero occurrences of stale "all nodes", "Total nodes", or "No nodes" remain in the Prefix Tool section. Closes #642 Co-authored-by: you --- public/analytics.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/analytics.js b/public/analytics.js index f82fd59e..1f3d26b8 100644 --- a/public/analytics.js +++ b/public/analytics.js @@ -2353,7 +2353,7 @@ function destroy() { _analyticsData = {}; _channelData = null; if (_ngState && _ const nodes = allNodes.filter(n => n.role === 'repeater'); if (nodes.length === 0) { - el.innerHTML = `

No nodes in the network yet. Any prefix is available!

`; + el.innerHTML = `

No repeaters in the network yet. Any prefix is available!

`; return; } @@ -2382,11 +2382,11 @@ function destroy() { _analyticsData = {}; _channelData = null; if (_ngState && _ const totalNodes = nodes.length; let rec, recDetail; if (totalNodes < 20) { - rec = '1-byte'; recDetail = `With only ${totalNodes} nodes, 1-byte prefixes have low collision risk.`; + rec = '1-byte'; recDetail = `With only ${totalNodes} repeaters, 1-byte prefixes have low collision risk.`; } else if (totalNodes < 500) { - rec = '2-byte'; recDetail = `With ${totalNodes} nodes, 2-byte prefixes are recommended to avoid collisions.`; + rec = '2-byte'; recDetail = `With ${totalNodes} repeaters, 2-byte prefixes are recommended to avoid collisions.`; } else { - rec = '2-byte'; recDetail = `With ${totalNodes} nodes, 2-byte prefixes are strongly recommended.`; + rec = '2-byte'; recDetail = `With ${totalNodes} repeaters, 2-byte prefixes are strongly recommended.`; } // URL params for pre-fill / auto-run @@ -2395,7 +2395,7 @@ function destroy() { _analyticsData = {}; _channelData = null; if (_ngState && _ const initGenerate = hashParams.get('generate') || ''; const regionNote = regionLabel - ? `

Showing data for region: ${esc(regionLabel)}. Check all nodes →

` + ? `

Showing data for region: ${esc(regionLabel)}. Check all repeaters →

` : ''; el.innerHTML = ` @@ -2408,7 +2408,7 @@ function destroy() { _analyticsData = {}; _channelData = null; if (_ngState && _ ${regionNote}
-
Total nodes
+
Total repeaters
${totalNodes.toLocaleString()}
${[1, 2, 3].map(b => `