Skip to content

Commit 6e5c50a

Browse files
committed
feat(param editor): hide upload checkboxes when UI complexity == simple
1 parent e5f14b1 commit 6e5c50a

File tree

4 files changed

+1497
-141
lines changed

4 files changed

+1497
-141
lines changed

ARCHITECTURE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@ the following system design requirements were derived:
7676
- Users should be able to edit the new value for each parameter directly in the table.
7777
- Users should be able to edit the reason changed for each parameter directly in the table.
7878
- The software must perform efficiently, with minimal lag or delay in response to user actions.
79+
- The software must provide a `gui_complexity` setting that controls the user interface complexity:
80+
- When set to "simple" (default), the interface simplifies for beginners by:
81+
- In the component editor:
82+
- only displaying non-optional properties
83+
- only displaying components that have at least one non-optional parameter, hiding components with only optional parameters
84+
- not displaying component template load/save controls
85+
- In the parameter editor:
86+
- hiding the "Upload" column, "Current intermediate parameter file" combobox, "See only changed parameters" checkbox, and "Annotate docs into .param files" checkbox;
87+
- automatically selecting all parameters for upload
88+
- When set to "normal", all interface elements are displayed for advanced users
89+
- Users should be able to switch between complexity levels using a dropdown combobox in the component editor
7990

8091
#### 4. Documentation and Help
8192

ardupilot_methodic_configurator/frontend_tkinter_parameter_editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def on_upload_selected_click(self) -> None:
728728
self.parameter_editor_table.generate_edit_widgets_focus_out()
729729

730730
self.write_changes_to_intermediate_parameter_file()
731-
selected_params = self.parameter_editor_table.get_upload_selected_params(self.current_file)
731+
selected_params = self.parameter_editor_table.get_upload_selected_params(self.current_file, str(self.gui_complexity))
732732
if selected_params:
733733
if hasattr(self.flight_controller, "fc_parameters") and self.flight_controller.fc_parameters:
734734
self.upload_selected_params(selected_params)

0 commit comments

Comments
 (0)