From 1f83de5698f67e13d4f4675893f388227bbc9c44 Mon Sep 17 00:00:00 2001 From: pablorevilla-meshtastic Date: Tue, 12 May 2026 19:34:26 -0700 Subject: [PATCH] reach.html updated with new content and formatting. --- meshview/templates/reach.html | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/meshview/templates/reach.html b/meshview/templates/reach.html index 4c7fe7d..22cfd2f 100644 --- a/meshview/templates/reach.html +++ b/meshview/templates/reach.html @@ -23,11 +23,6 @@ background: rgba(255, 255, 255, 0.04); } -.reach-node-id { - font-family: monospace; - font-size: 1rem; -} - .reach-controls { display: flex; gap: 8px; @@ -39,14 +34,18 @@ flex: 0 1 420px; } +.reach-search-label, .reach-limit-label { align-self: center; - margin-left: auto; white-space: nowrap; color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; } +.reach-limit-label { + margin-left: auto; +} + @media (max-width: 600px) { .reach-controls { flex-direction: column; @@ -157,10 +156,8 @@
-
Selected Node ID
-
3530776522
-
+ ${ + escapeHtml(gatewayLabel(nodeId, nodesById)) + }`; +} + function nodeSearchLabel(node) { const name = node.long_name || node.short_name || "Unnamed"; return `${name} (${node.node_id})`; @@ -318,14 +321,12 @@ async function loadReachReport(nodeId = reachNodeId) { document.getElementById("reach-packet-body-right"), ]; const bucketBodyEl = document.getElementById("reach-bucket-body"); - const selectedNodeEl = document.getElementById("reach-node-id"); const setGatewayTables = html => { bodyEls.forEach(el => { el.innerHTML = html; }); }; - selectedNodeEl.textContent = reachNodeId; packetCountEl.textContent = "..."; gatewayCountEl.textContent = "..."; bucketBodyEl.innerHTML = 'Loading statistics...'; @@ -407,7 +408,7 @@ async function loadReachReport(nodeId = reachNodeId) { const renderGatewayRows = rows => rows.length ? rows.map(row => ` - ${escapeHtml(gatewayLabel(row.nodeId, nodesById))} + ${nodeLink(row.nodeId, nodesById)} ${row.heardCount} (${packets.length}) ${row.percent.toFixed(1)}%