From 7c90a260ca9b26af2ff8a3a17658efd865ea801c Mon Sep 17 00:00:00 2001 From: you Date: Thu, 19 Mar 2026 09:02:38 +0000 Subject: [PATCH] Fix hash matrix: green=available, blue=1 node, yellow-red=collision --- public/analytics.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/analytics.js b/public/analytics.js index e5e4f278..b1d44b24 100644 --- a/public/analytics.js +++ b/public/analytics.js @@ -787,9 +787,9 @@ const count = nodes.length; let bg, color; if (count === 0) { - bg = 'var(--bg-card, #1a1a2e)'; color = 'var(--text-muted)'; + bg = '#166534'; color = '#86efac'; // green — no nodes, available } else if (count === 1) { - bg = '#166534'; color = '#fff'; // green — free, single user + bg = '#1e3a5f'; color = '#93c5fd'; // blue — single user, no collision } else { // 2+ nodes: interpolate yellow→red based on count const t = Math.min((count - 2) / 4, 1); // 2=yellow, 6+=full red @@ -797,7 +797,7 @@ const g = Math.round(180 * (1 - t)); bg = `rgb(${r},${g},50)`; color = '#fff'; } - const status = count === 0 ? 'unused' : count === 1 ? `1 node: ${nodes[0].name || nodes[0].public_key.slice(0,12)}` : `${count} nodes — COLLISION`; + const status = count === 0 ? 'available' : count === 1 ? `1 node: ${nodes[0].name || nodes[0].public_key.slice(0,12)}` : `${count} nodes — COLLISION`; html += `${hex}`; } html += ''; @@ -805,8 +805,8 @@ html += ''; html += `
- Unused - 1 node (free) + Available + 1 node (no collision) 2 nodes 3+ nodes (collision)
`;