-
Notifications
You must be signed in to change notification settings - Fork 49
Add bulk parameter addition via suggested parameters (#654) #1170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Thanks for the review! This PR implements the approach discussed in the issue by enabling bulk addition when ≤15 suggested parameters are shown. Happy to adjust the implementation or UI behavior if you’d prefer a different approach. |
651d51f to
2aa3691
Compare
5c2deff to
a790549
Compare
|
I did some fixes and force pushed to your repo. Please review and test |
93f3e29 to
0addc6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did some changes, please test this. The button gets hidden under the parameter suggestions. Please fix that.
|
Hi @amilcarlucas, Thanks for the fixes. I’ve reviewed and tested the latest changes locally. The “Add” dialog now behaves correctly and the button is no longer hidden under the parameter suggestions. Users can:
Everything is working as expected on my end. Thanks! |
a96f9c3 to
bf794cf
Compare
amilcarlucas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now goes in a completely different direction than what I suggested, but I do like it, thanks.
I rebased it on master and squashed the commits again. Whatever LLM that you are using keeps messing code indentation.
Please learn to use "git rebase -i origin/master" to clean up.
When I press enter no parameter gets added, and I get:
File "ardupilot_methodic_configurator\frontend_tkinter_parameter_editor_table.py", line 975, in _on_parameter_add
def add_selected(_event: tk.Event | None = None) -> None:
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
Please fix that
|
Thanks a lot for the review and for rebasing/squashing the commits. |
This PR addresses issue ArduPilot#654, where adding parameters one-by-one via the GUI was inefficient and time-consuming when multiple related parameters needed to be added. A new “Add suggested parameters” button has been added to the Add Parameter dialog. - The button is disabled by default - It becomes enabled only when ≤ 15 filtered parameter suggestions are visible - When clicked, all currently suggested parameters are added at once - Existing single-parameter add behavior remains unchanged Closes ArduPilot#654 feat(parameter editor): searchable multi-select add dialog for parameters feat(parameter editor) : allow searching and adding multiple parameters at once
bf794cf to
f57552c
Compare
|
Thanks for the review and for rebasing/squashing the commits. I’ve fixed the Enter key issue and removed the tk.Event | None annotation entirely to ensure compatibility with Python < 3.10. The Enter key is now handled via a lambda binding, and parameters are added correctly without raising errors. I also fixed the dialog closing logic to correctly handle both BaseWindow and tk.Toplevel. I’ve tested locally: Searching parameters Selecting one or multiple parameters (Ctrl / Shift) Adding via Enter key and via button Please let me know if you’d prefer the handler to explicitly accept an event argument instead. Thanks again for the guidance. |
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 7.1.6 to 7.2.0. - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](astral-sh/setup-uv@681c641...61cb8a9) --- updated-dependencies: - dependency-name: astral-sh/setup-uv dependency-version: 7.2.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
closes ArduPilot#1108 Signed-off-by: Omkar Sarkar <[email protected]>
Non-production code is only used in development and testing
023d874 to
978d3a7
Compare
Signed-off-by: Om Abhishek Tripathi <[email protected]>
Problem
This PR addresses issue #654, where adding parameters one-by-one via the GUI was inefficient and time-consuming when multiple related parameters needed to be added.
Solution
A new “Add suggested parameters” button has been added to the Add Parameter dialog.
This follows the approach suggested in the issue discussion and keeps the UI simple while significantly improving usability.
Notes
Related issue
Closes #654