Skip to content

Load params from a file#818

Merged
1Blademaster merged 8 commits intomainfrom
793-load-params-from-file
Nov 5, 2025
Merged

Load params from a file#818
1Blademaster merged 8 commits intomainfrom
793-load-params-from-file

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

@1Blademaster 1Blademaster commented Nov 4, 2025

image

Copilot AI review requested due to automatic review settings November 4, 2025 12:44
@1Blademaster 1Blademaster linked an issue Nov 4, 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 load parameters from a file, allowing users to review and apply parameter changes from external files. The feature includes a new modal to display parameter differences before applying them.

Key changes:

  • Added file loading capability with parameter comparison and exclusion filtering
  • Introduced new Redux state management for loaded parameters and modal visibility
  • Created a modal component to display parameter differences before applying changes

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
gcs/src/redux/slices/paramsSlice.js Added state properties and actions for managing loaded parameters and modal, includes debug console.log statements
gcs/src/params.jsx Implemented loadParamsFromFile function with parameter comparison logic and cleanFloat helper
gcs/src/helpers/mavlinkConstants.js Added EXCLUDE_PARAMS_LOAD array to filter out system parameters that shouldn't be loaded
gcs/src/components/params/rowItem.jsx Fixed potential null reference with optional chaining operator
gcs/src/components/params/paramsToolbar.jsx Added "Load params from file" button with upload icon
gcs/src/components/params/loadParamsFileModal.jsx Created modal component to display and accept loaded parameter differences
gcs/electron/utils/paramsFile.ts Added utility function to parse parameter files
gcs/electron/preload.js Whitelisted new IPC channel for file loading
gcs/electron/main.ts Implemented IPC handler for opening file dialog and reading parameter files

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

Comment thread gcs/src/redux/slices/paramsSlice.js Outdated
Comment thread gcs/src/redux/slices/paramsSlice.js Outdated
Comment thread gcs/src/components/params/loadParamsFileModal.jsx
Comment thread gcs/electron/main.ts
Comment thread gcs/src/params.jsx
@1Blademaster 1Blademaster requested a review from Copilot November 4, 2025 19:54
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 10 out of 10 changed files in this pull request and generated 4 comments.


💡 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/controllers/paramsController.py Outdated
Comment thread gcs/src/redux/slices/paramsSlice.js Outdated
Comment thread gcs/src/params.jsx Outdated
@1Blademaster 1Blademaster requested a review from a team November 4, 2025 20:46
@1Blademaster 1Blademaster changed the title Add loading params to modified params list Load params from a file Nov 4, 2025
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.

lgtm

@1Blademaster 1Blademaster merged commit d79c70c into main Nov 5, 2025
8 checks passed
@1Blademaster 1Blademaster deleted the 793-load-params-from-file branch November 5, 2025 16:58
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.

Load params from file

3 participants