Skip to content

847 show feedback when writing multiple params#848

Merged
1Blademaster merged 9 commits intomainfrom
847-show-feedback-when-writing-multiple-params
Nov 17, 2025
Merged

847 show feedback when writing multiple params#848
1Blademaster merged 9 commits intomainfrom
847-show-feedback-when-writing-multiple-params

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

@1Blademaster 1Blademaster commented Nov 9, 2025

image image

Copilot AI review requested due to automatic review settings November 9, 2025 16:17
@1Blademaster 1Blademaster linked an issue Nov 9, 2025 that may be closed by this pull request
@1Blademaster
Copy link
Copy Markdown
Member Author

I think it'd be nice in another issue to show a scrollable list of all the feedback messages within the modal.
image

@1Blademaster
Copy link
Copy Markdown
Member Author

I also would like to add a cross to close the modal or a button to close the modal, this will also act as a "cancel" action

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 progress tracking and better error handling for setting multiple parameters on a drone. Users can now see real-time progress while parameters are being written, and receive detailed feedback about which parameters succeeded or failed.

Key changes:

  • Added progress callback mechanism to report parameter write status in real-time
  • Improved error handling to continue processing remaining parameters even if some fail
  • Modified UI to show progress modal during writes and failure modal for unsuccessful parameters

Reviewed Changes

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

Show a summary per file
File Description
radio/app/endpoints/params.py Added progress callback type definition and function, updated set_multiple_params to pass callback
radio/app/controllers/paramsController.py Enhanced setMultipleParams with progress callback support and better error handling; refactored setParam to return saved_param status and reduce timeout
gcs/src/redux/slices/paramsSlice.js Added state management for write progress tracking and failed parameter handling
gcs/src/redux/middleware/socketMiddleware.js Added handling for progress updates and differentiated success/warning/error notifications based on results
gcs/src/redux/middleware/emitters.js Triggered progress modal when emitting set_multiple_params
gcs/src/params.jsx Added two new modal components for displaying write progress and failures
gcs/src/helpers/notification.js Added warning notification support with yellow color
gcs/src/components/params/valueInput.jsx Fixed appendModifiedParams call to pass array instead of object
gcs/src/components/params/paramsWriteModal.jsx New component showing progress bar while writing parameters
gcs/src/components/params/paramsFailedToWriteModal.jsx New component showing table of parameters that failed to write
Comments suppressed due to low confidence (2)

radio/app/controllers/paramsController.py:187

  • The docstring is missing documentation for the progress_update_callback parameter that was added to the function signature.
            params_list (list[IncomingParam]): The list of parameters to set

radio/app/controllers/paramsController.py:190

  • The return type documentation is outdated. The function now returns a Response dictionary, not a boolean.
            bool: True if all parameters were set, False if any failed

💡 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 radio/app/controllers/paramsController.py Outdated
Comment thread gcs/src/components/params/paramsWriteModal.jsx Outdated
Comment thread gcs/src/components/params/paramsWriteModal.jsx Outdated
@1Blademaster 1Blademaster requested a review from a team November 16, 2025 15:28
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 3e33929 into main Nov 17, 2025
8 checks passed
@1Blademaster 1Blademaster deleted the 847-show-feedback-when-writing-multiple-params branch November 17, 2025 19:12
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.

Show feedback when writing multiple params

3 participants