From 885d348fa51145dfc18d0dd97c57a6d8afd2aa70 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 17 Dec 2025 23:48:18 +0000 Subject: [PATCH 1/2] Initial plan From 4a175529f34ce48dee5e36d3a7f7aa8316a97cac Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 17 Dec 2025 23:51:07 +0000 Subject: [PATCH 2/2] Fix auto ping status message flow to show correct sequence Co-authored-by: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com> --- content/wardrive.js | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/content/wardrive.js b/content/wardrive.js index 8617bdf..81e5dec 100644 --- a/content/wardrive.js +++ b/content/wardrive.js @@ -471,6 +471,12 @@ async function sendPing(manual = false) { return; } + // Stop the countdown timer when sending an auto ping to avoid status conflicts + if (!manual && state.running) { + stopAutoCountdown(); + setStatus("Sending auto ping...", "text-sky-300"); + } + let lat, lon, accuracy; // In auto mode, always use the most recent GPS coordinates from the watch @@ -519,20 +525,21 @@ async function sendPing(manual = false) { // Start cooldown period after successful ping startCooldown(); + // Update status after ping is sent + // Brief delay to show "Ping sent" status before moving to "Waiting for API post" setStatus(manual ? "Ping sent" : "Auto ping sent", "text-emerald-300"); + + setTimeout(() => { + if (state.connection) { + setStatus("Waiting for API post", "text-sky-300"); + } + }, STATUS_UPDATE_DELAY_MS); // Schedule MeshMapper API call with 7-second delay (non-blocking) // Clear any existing timer first if (state.meshMapperTimer) { clearTimeout(state.meshMapperTimer); } - - // Update status to show we're waiting to post to API - setTimeout(() => { - if (state.connection) { - setStatus("Waiting to post to API", "text-sky-300"); - } - }, STATUS_UPDATE_DELAY_MS); state.meshMapperTimer = setTimeout(async () => { // Capture accuracy in closure to ensure it's available in nested callback