Add countdown timer to API post delay for ping operations#27
Merged
Conversation
- Changed "Waiting for API post" to "Wait to post API" - Added countdown display from 7s to 0s during API post delay - Implemented startApiCountdown, stopApiCountdown, and updateApiCountdownStatus functions - Added state variables apiCountdownTimer and apiPostTime - Countdown updates every second similar to auto-ping countdown - Clean up API countdown timer on disconnect Co-authored-by: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update waiting for API post message and add countdown
Add countdown timer to API post delay for ping operations
Dec 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The API post status message was static text with no indication of remaining time. Both manual and auto ping modes now display a countdown during the 7-second MeshMapper API delay.
Changes
Status Display
Implementation
updateApiCountdownStatus()- calculates and displays remaining timestartApiCountdown(delayMs)- initializes countdown with 1s update intervalstopApiCountdown()- cleanup to prevent memory leakssendPing()to trigger countdown after STATUS_UPDATE_DELAY_MSState Management
apiCountdownTimer- stores interval IDapiPostTime- target timestamp for API postPattern
Follows existing auto-ping countdown implementation:
Applies to both manual "Send Ping" and "Auto Ping" modes.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.