[WIP] Add debug logging and status message guidelines#127
Closed
[WIP] Add debug logging and status message guidelines#127
Conversation
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.
Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.
Original prompt
MeshCore GOME WarDriver - Development Guidelines
Overview
This document defines the coding standards and requirements for all changes to the MeshCore GOME WarDriver repository. AI agents and contributors must follow these guidelines for every modification.
Code Style & Standards
Debug Logging
debugLog(message, ...args)- For general debug informationdebugWarn(message, ... args)- For warning conditionsdebugError(message, ... args)- For error conditionsDEBUG_ENABLEDflag (URL parameter? debug=true)Status Messages
STATUS_MESSAGES.mdwhen adding or modifying user-facing status messagessetStatus(message, color)function for all UI status updatesSTATUS_COLORSconstants:STATUS_COLORS.idle- Default/waiting stateSTATUS_COLORS. success- Successful operationsSTATUS_COLORS.warning- Warning conditionsSTATUS_COLORS.error- Error statesSTATUS_COLORS.info- Informational/in-progress statesDocumentation Requirements
Code Comments
@paramfor parameters@returnsfor return valuesdocs/STATUS_MESSAGES.md Updates
When adding new status messages, include:
docs/CONNECTION_WORKFLOW.mdUpdatesWhen modifying connect or disconnect logic, you must:
docs/CONNECTION_WORKFLOW.mdbefore making the change (to understand current intended behavior).docs/CONNECTION_WORKFLOW.mdso it remains accurate after the change:docs/PING_AUTO_PING_WORKFLOW.md Updates
When modifying ping or auto-ping logic, you must:
docs/PING_AUTO_PING_WORKFLOW.mdbefore making the change (to understand current intended behavior).docs/PING_AUTO_PING_WORKFLOW.mdso it remains accurate after the change:sendPing()withmanual=true)startAutoPing(),stopAutoPing(),scheduleNextAutoPing())getGpsCoordinatesForPing())buildPayload(), power settings)startRepeaterTracking(),stopRepeaterTracking(),handleRxLogEvent())postToMeshMapperAPI())state.pingInProgress,updateControlsForCooldown())startCooldown(),isInCooldown())Requested Change: Update App Connection Flow (Reorder Steps)
Background
Below is the current app connection flow used when a user connects to a device for wardriving.
Current Connection Flow
#wardrivingchannelRequested Change
Passive RX Log API Integration - AI Agent Prompt
Background Context
Last night we implemented several PRs that added the following functionality:
handleUnifiedRxLogEvent) processes all RX eventshandleSessionLogTracking()when tracking is activehandlePassiveRxLogging()for non-echoesWe also built in a future API integration stub:
-...
💡 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.