Add functionality to save params to file#804
Merged
1Blademaster merged 4 commits intomainfrom Nov 3, 2025
Merged
Conversation
Closed
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds functionality to export drone parameters to a file. Users can now save the current parameter set to a file via a new "Save params to file" button in the params toolbar.
Key changes:
- Added backend endpoint
export_params_to_fileto handle parameter export requests - Implemented
exportParamsToFilemethod inParamsControllerto write parameters to file - Added frontend UI button and Redux action to trigger parameter export
- Refactored IPC channel name from
missions:get-save-mission-file-pathto genericapp:get-save-file-pathfor reusability
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| radio/app/endpoints/params.py | Added new socket endpoint to handle parameter export requests with validation |
| radio/app/controllers/paramsController.py | Implemented exportParamsToFile method to write sorted parameters to CSV format |
| gcs/src/redux/slices/paramsSlice.js | Added emitExportParamsToFile action to Redux slice |
| gcs/src/redux/middleware/socketMiddleware.js | Added socket listener for export_params_result events |
| gcs/src/redux/middleware/emitters.js | Added emitter handler for export_params_to_file socket event |
| gcs/src/missions.jsx | Updated IPC channel reference to use generic app:get-save-file-path |
| gcs/src/components/params/paramsToolbar.jsx | Added "Save params to file" button and handler function, removed extraneous whitespace |
| gcs/electron/preload.js | Updated allowed IPC channels to use generic name |
| gcs/electron/main.ts | Refactored save dialog handler to be generic and reusable |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
No description provided.