From fdf5555eb6563c583e02457a5dc1985dc701a2c3 Mon Sep 17 00:00:00 2001 From: you Date: Thu, 19 Mar 2026 22:41:01 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20hash=20matrix=20=E2=80=94=20bigger=20fon?= =?UTF-8?q?t,=20remove=20=E2=9A=A0=20clutter,=20use=20=C2=B7=20for=20empty?= =?UTF-8?q?=20cells;=20collision=20risk=20sorted=20closest-first?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/analytics.js | 16 ++++++++-------- public/index.html | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/public/analytics.js b/public/analytics.js index 79167a20..db868fa9 100644 --- a/public/analytics.js +++ b/public/analytics.js @@ -790,7 +790,7 @@ const cellSize = 36; const headerSize = 24; - let html = `
`; + let html = `
`; html += ``; for (const n of nibbles) { html += ``; @@ -815,9 +815,9 @@ bg = `rgb(200,${g},30)`; color = '#fff'; } const status = count === 0 ? 'available' : count === 1 ? `1 node: ${nodes[0].name || nodes[0].public_key.slice(0,12)}` : `${count} nodes — COLLISION`; - const countLabel = count === 0 ? '0' : count >= 3 ? '3+' : String(count); - const cellText = count >= 2 ? `⚠${countLabel}` : countLabel; - html += ``; + const countLabel = count === 0 ? '·' : count >= 3 ? '3+' : String(count); + const cellText = count >= 2 ? `${countLabel}` : countLabel; + html += ``; } html += ''; } @@ -826,8 +826,8 @@
0 — Available 1 — One node - ⚠2 — Two nodes (collision) - ⚠3+ — Three+ nodes (collision) + 2 — Two nodes (collision) + 3+ — Three+ nodes (collision)
`; el.innerHTML = html; @@ -890,8 +890,8 @@ } if (!collisions.length) { el.innerHTML = '
No collisions detected
'; return; } - // Sort: distant first (most interesting), then regional, local, incomplete - const classOrder = { distant: 0, regional: 1, local: 2, incomplete: 3, unknown: 4 }; + // Sort: local first (most likely to collide), then regional, distant, incomplete + const classOrder = { local: 0, regional: 1, distant: 2, incomplete: 3, unknown: 4 }; collisions.sort((a, b) => classOrder[a.classification] - classOrder[b.classification] || b.count - a.count); el.innerHTML = `
${n}${cellText}${cellText}
diff --git a/public/index.html b/public/index.html index ee0a43db..3333c817 100644 --- a/public/index.html +++ b/public/index.html @@ -83,9 +83,9 @@ - + - +