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 @@ - + - +