Skip to content

Add functionality to save params to file#804

Merged
1Blademaster merged 4 commits intomainfrom
771-save-params-to-file
Nov 3, 2025
Merged

Add functionality to save params to file#804
1Blademaster merged 4 commits intomainfrom
771-save-params-to-file

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings October 31, 2025 16:59
@1Blademaster 1Blademaster linked an issue Oct 31, 2025 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 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_file to handle parameter export requests
  • Implemented exportParamsToFile method in ParamsController to 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-path to generic app:get-save-file-path for 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.

Comment thread radio/app/controllers/paramsController.py Outdated
Comment thread radio/app/endpoints/params.py
@1Blademaster 1Blademaster requested a review from a team October 31, 2025 17:05
Copy link
Copy Markdown
Contributor

@Kwash67 Kwash67 left a comment

Choose a reason for hiding this comment

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

Works well 👍

@1Blademaster 1Blademaster merged commit e9eb5d6 into main Nov 3, 2025
8 checks passed
@1Blademaster 1Blademaster deleted the 771-save-params-to-file branch November 3, 2025 03:51
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.

Save params to file

3 participants