Optimize RX UI rendering, add Error Log, and standardize debug logging tags#136
Merged
Merged
Conversation
Co-authored-by: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com>
Co-authored-by: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com>
Co-authored-by: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com>
…NCE) Co-authored-by: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com>
Co-authored-by: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update debug logging standards for WarDriver
Optimize RX UI rendering, add Error Log, and standardize debug logging tags
Dec 23, 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.
Fixes excessive debug console output from RX UI re-rendering all entries, removes queue status from user-visible status bar, adds Error Log UI for session error tracking, and standardizes 400+ debug messages with subsystem tags for filtering.
Changes
RX UI Rendering Optimization
renderRxLogEntries()to support incremental vs full rendering modesBefore: Debug console logs all 12 entries on 13th arrival
After: Debug console logs only entry 13/13
Status Bar Cleanup
Queued (X/50)from dynamic status bar (user-visible)Posting ${batch.length} to APIfrom dynamic status barError Log UI
debugError()hook when debug mode enabledDebug Log Tagging
Tagged all debug messages with subsystem identifiers for console filtering:
[BLE][GPS][PING][API QUEUE][UI][CHANNEL][TIMER][GEOFENCE][AUTO]Plus:
[RX BATCH],[PASSIVE RX],[PASSIVE RX UI],[SESSION LOG],[UNIFIED RX],[DECRYPT],[WAKE LOCK],[CAPACITY],[INIT],[ERROR LOG]Updated
docs/DEVELOPMENT_REQUIREMENTS.mdwith tag table and usage examples.Example filter in console:
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(), auto-ping lifecycle)Requested Change
MeshCore GOME WarDriver: Bug Fixes and Enhancements
Summary
Fix debug logging issues, simplify status bar messaging, add a new Error Log UI component, and standardize debug log tagging in the MeshCore GOME WarDriver web app.
Bug Fix 1: PASSIVE RX UI Re-rendering All Entries on Each New Event
Current Behavior
The
renderRxLogEntries()function clears and re-renders ALL entries every time a new RX event is received. This causes excessive debug console output showing all entries being appended each time:Then when a 13th entry arrives:
Expected Behavior
When a new RX entry is added, only append the new entry to the DOM instead of re-rendering all entries. The debug log should only show the new entry being added (e.g.,
Appended entry 13/13).Files Affected
content/wardrive.js-renderRxLogEntries()function andaddRxLogEntry()functionBug Fix 2: Remove "Status applied" Debug Messages
Current Behavior
The
applyStatusImmediately()function logs[DEBUG] Status applied: "<message>"for every status update. This clutters the debug console:Expected Behavior
Remove or suppress the
debugLog(Status applied: "${text}")call. The existing debug logging earlier in the status update flow is sufficient.Files Affected
content/wardrive.js-applyStatusImmediately()function (line 296)Enhancement 1: Add ERROR Log UI Below RX Log
Description
Add a new "Error Log" section below the existing RX Log in the user interface. This log should capture and display all errors that occur during the session so...
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.