From b2bb9345fe62bd871d340c3b70cb3951554ea98e Mon Sep 17 00:00:00 2001 From: pablorevilla-meshtastic Date: Wed, 7 Jan 2026 13:29:56 -0800 Subject: [PATCH] Changes to nodelist.html. fix some of the data --- meshview/templates/nodelist.html | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/meshview/templates/nodelist.html b/meshview/templates/nodelist.html index 4f199f3..8a0c7c4 100644 --- a/meshview/templates/nodelist.html +++ b/meshview/templates/nodelist.html @@ -466,11 +466,17 @@ document.addEventListener("DOMContentLoaded", async function() { const hwMatch = !hwFilter.value || n.hw_model === hwFilter.value; const fwMatch = !firmwareFilter.value || n.firmware === firmwareFilter.value; - const searchMatch = - !searchTerm || - (n.long_name && n.long_name.toLowerCase().includes(searchTerm)) || - (n.short_name && n.short_name.toLowerCase().includes(searchTerm)) || - n.node_id.toString().includes(searchTerm); + const searchBlob = [ + n.node_id, // numeric ID + n.id, // hex ID (if present) + n.long_name, + n.short_name + ] + .filter(Boolean) + .join(" ") + .toLowerCase(); + + const searchMatch = !searchTerm || searchBlob.includes(searchTerm); const favMatch = !showOnlyFavorites || isFavorite(n.node_id);