Add log message description generation and update FLA to utilize new data#962
Conversation
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
No description provided.