diff --git a/meshview/lang/en.json b/meshview/lang/en.json index 340b409..18df79d 100644 --- a/meshview/lang/en.json +++ b/meshview/lang/en.json @@ -1,6 +1,6 @@ { "base": { - "conversations": "Conversations", + "chat": "Chat", "nodes": "Nodes", "everything": "See Everything", "graphs": "Mesh Graphs", diff --git a/meshview/templates/base.html b/meshview/templates/base.html index 6c778bb..a16566d 100644 --- a/meshview/templates/base.html +++ b/meshview/templates/base.html @@ -171,7 +171,7 @@ async function initializePage() { const menu = document.getElementById("site-menu"); if (menu) { const items = []; - const keys = ["nodes", "conversations", "everything", "graphs", "net", "map", "stats", "top"]; + const keys = ["nodes", "chat", "everything", "graphs", "net", "map", "stats", "top"]; const urls = ["/nodelist", "/chat", "/firehose", "/nodegraph", "/net", "/map", "/stats", "/top"]; for (let i = 0; i < keys.length; i++) { diff --git a/meshview/templates/chat.html b/meshview/templates/chat.html index e5c5a80..b464030 100644 --- a/meshview/templates/chat.html +++ b/meshview/templates/chat.html @@ -134,7 +134,7 @@ document.addEventListener("DOMContentLoaded", async () => { ${escapeHtml(packet.channel || "")} - + ${escapeHtml((packet.long_name || "").trim() || `Node ${packet.from_node_id}`)} @@ -153,9 +153,9 @@ document.addEventListener("DOMContentLoaded", async () => { // import_time_us=0 is migrated/cleaned up. Can be simplified once all // legacy records have been updated. // Sort by import_time_us with fallback to import_time - const aTime = (a.import_time_us && a.import_time_us > 0) ? a.import_time_us : + const aTime = (a.import_time_us && a.import_time_us > 0) ? a.import_time_us : (a.import_time ? new Date(a.import_time).getTime() * 1000 : 0); - const bTime = (b.import_time_us && b.import_time_us > 0) ? b.import_time_us : + const bTime = (b.import_time_us && b.import_time_us > 0) ? b.import_time_us : (b.import_time ? new Date(b.import_time).getTime() * 1000 : 0); return bTime - aTime; }); diff --git a/meshview/web_api/api.py b/meshview/web_api/api.py index fffc490..a732c3d 100644 --- a/meshview/web_api/api.py +++ b/meshview/web_api/api.py @@ -496,7 +496,7 @@ async def api_config(request): "message": get_str(site, "message", ""), "starting": get_str(site, "starting", "/chat"), "nodes": get_bool(site, "nodes", True), - "conversations": get_bool(site, "conversations", True), + "chat": get_bool(site, "chat", True), "everything": get_bool(site, "everything", True), "graphs": get_bool(site, "graphs", True), "stats": get_bool(site, "stats", True),