Skip to content

Add log message description generation and update FLA to utilize new data#962

Merged
1Blademaster merged 4 commits into
mainfrom
955-bug-no-message-item-info-in-fla
Jan 26, 2026
Merged

Add log message description generation and update FLA to utilize new data#962
1Blademaster merged 4 commits into
mainfrom
955-bug-no-message-item-info-in-fla

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

@1Blademaster 1Blademaster commented Jan 25, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 25, 2026 16:40
@1Blademaster 1Blademaster linked an issue Jan 25, 2026 that may be closed by this pull request
@1Blademaster 1Blademaster changed the title Add log message description generation and update FLA to utilize new … Add log message description generation and update FLA to utilize new data Jan 25, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds functionality to automatically generate log message descriptions from ArduPilot XML files and updates the FLA (Falcon Log Analyzer) component to display field-level tooltips with these descriptions. Previously, log message descriptions were hardcoded in JavaScript; now they are dynamically generated from upstream sources.

Changes:

  • Adds a Python script to download and parse ArduPilot log message definition XML files, generating JSON files with message and field descriptions for both Copter and Plane variants
  • Updates the FLA messages filter accordion to use the generated JSON data and display field descriptions as tooltips
  • Adds runtime checks in Electron main process to verify required data files exist before app startup
  • Integrates data generation into Windows and macOS build scripts

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
gcs/data/generate_log_message_descriptions.py New Python script that downloads ArduPilot log message XML definitions, parses them, and generates JSON files with message and field descriptions
gcs/src/components/fla/messagesFiltersAccordion.jsx Updated to import generated JSON files, added memoized FieldCheckbox component with tooltip support, and implemented field description lookup logic
gcs/src/helpers/logMessageDescriptions.js Removed hardcoded dataflash log message descriptions (now sourced from generated JSON), retained MAVLink message descriptions
gcs/electron/main.ts Added checkRequiredDataFiles function to verify generated JSON files exist at app startup, displays error dialog if missing
gcs/.gitignore Added entries to ignore the two new generated JSON files (copter and plane log message descriptions)
building/windows/build.ps1 Added call to generate_log_message_descriptions.py in the build process
building/macos/build.sh Added call to generate_log_message_descriptions.py in the build process

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gcs/data/generate_log_message_descriptions.py Outdated
Comment thread gcs/src/components/fla/messagesFiltersAccordion.jsx Outdated
Comment thread gcs/electron/main.ts Outdated
Comment thread gcs/data/generate_log_message_descriptions.py Outdated
Comment thread gcs/src/components/fla/messagesFiltersAccordion.jsx Outdated
Comment thread gcs/.gitignore Outdated
Comment thread gcs/data/generate_log_message_descriptions.py Outdated
Comment thread gcs/data/generate_log_message_descriptions.py Outdated
Comment thread gcs/electron/main.ts Outdated
Comment thread gcs/electron/main.ts Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gcs/src/components/fla/messagesFiltersAccordion.jsx
Comment thread gcs/data/generate_log_message_descriptions.py
Comment thread gcs/electron/main.ts
@1Blademaster 1Blademaster merged commit 5bf071a into main Jan 26, 2026
5 checks passed
@1Blademaster 1Blademaster deleted the 955-bug-no-message-item-info-in-fla branch January 26, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] No message item info in FLA

2 participants