Skip to content

Add log download modal#968

Merged
1Blademaster merged 4 commits intomainfrom
908-add-ability-to-download-logs-for-analysis
Feb 2, 2026
Merged

Add log download modal#968
1Blademaster merged 4 commits intomainfrom
908-add-ability-to-download-logs-for-analysis

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings February 1, 2026 16:03
@1Blademaster 1Blademaster linked an issue Feb 1, 2026 that may be closed by this pull request
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 download flight logs directly from the drone through a new modal interface in the Flight Log Analyzer. It removes state-based access restrictions for FTP operations, adds intelligent log file discovery, and enhances the file reading functionality to save files directly to disk.

Changes:

  • Added new listLogFiles endpoint that intelligently searches for logs in common directories (/logs, /APM/LOGS, etc.)
  • Modified readFile to optionally save files directly to disk instead of returning data over the socket
  • Removed state-based restrictions that previously required users to be on the config screen to access FTP operations

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
radio/tests/test_ftp.py Removed state validation tests and added basic test for listLogFiles endpoint
radio/app/endpoints/ftp.py Removed state checks, added listLogFiles endpoint, modified readFile to support save_path parameter
radio/app/controllers/ftpController.py Added listLogFiles method with intelligent directory detection, enhanced readFile to save to disk
gcs/src/redux/slices/ftpSlice.js Added logPath state, modified file addition logic for direct directory listings, exported cancelReadFile action
gcs/src/redux/middleware/socketMiddleware.js Added handler for list_log_files_result event
gcs/src/redux/middleware/emitters.js Added emitter for list_log_files, updated read_file emitter to include savePath
gcs/src/components/fla/SelectFlightLog.jsx Added button to open download modal when connected to drone
gcs/src/components/fla/DownloadLogModal.jsx New modal component for browsing and downloading log files from drone

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

Comment thread radio/tests/test_ftp.py
Comment thread radio/tests/test_ftp.py
Comment thread radio/app/controllers/ftpController.py
Comment thread gcs/src/components/fla/DownloadLogModal.jsx Outdated
Comment thread gcs/src/redux/slices/ftpSlice.js Outdated
Comment thread radio/app/controllers/ftpController.py
Comment thread gcs/src/redux/middleware/socketMiddleware.js Outdated
Comment thread gcs/src/components/fla/DownloadLogModal.jsx
Comment thread radio/tests/test_ftp.py
Comment thread radio/app/endpoints/ftp.py Outdated
@1Blademaster 1Blademaster changed the title Start adding log download modal Add log download modal Feb 2, 2026
@1Blademaster 1Blademaster merged commit 96a518e into main Feb 2, 2026
8 of 10 checks passed
@1Blademaster 1Blademaster deleted the 908-add-ability-to-download-logs-for-analysis branch February 2, 2026 19:11
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.

Add ability to download logs for analysis

2 participants