Skip to content

Refactor component editor#729

Merged
amilcarlucas merged 4 commits into
masterfrom
refactor_component_editor
Aug 21, 2025
Merged

Refactor component editor#729
amilcarlucas merged 4 commits into
masterfrom
refactor_component_editor

Conversation

@amilcarlucas
Copy link
Copy Markdown
Collaborator

@amilcarlucas amilcarlucas commented Aug 21, 2025

This PR refactors the component editor to improve the save workflow and data model structure. The changes focus on separating validation from save operations and improving project state tracking.

  • Renamed and refactored the save validation method to clarify its purpose
  • Replaced template-based project tracking with a dedicated new project flag
  • Updated tests to reflect the new save workflow

Copilot AI review requested due to automatic review settings August 21, 2025 13:13
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 refactors the component editor to improve the save workflow and data model structure. The changes focus on separating validation from save operations and improving project state tracking.

  • Renamed and refactored the save validation method to clarify its purpose
  • Replaced template-based project tracking with a dedicated new project flag
  • Updated tests to reflect the new save workflow

Reviewed Changes

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

Show a summary per file
File Description
ardupilot_methodic_configurator/frontend_tkinter_component_editor_base.py Refactored save method from validate_and_save_component_json to on_save_pressed, added window closing behavior, and improved exception handling
ardupilot_methodic_configurator/data_model_vehicle_components_base.py Replaced get_configuration_template() with is_new_project() flag for better project state tracking
tests/test_frontend_tkinter_component_editor_base.py Updated tests to use new method names and adjusted assertions for the refactored save workflow
tests/test_data_model_vehicle_components_templates.py Removed tests related to the deprecated configuration template tracking
.github/workflows/bump_version_and_tag.yml Fixed regex pattern to use head -n1 for more reliable version extraction

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 21, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
7957 6116 77% 73% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
ardupilot_methodic_configurator/data_model_vehicle_components_base.py 94% 🟢
ardupilot_methodic_configurator/frontend_tkinter_component_editor_base.py 87% 🟢
TOTAL 91% 🟢

updated for commit: 4b8132c by action🐍

@github-actions
Copy link
Copy Markdown
Contributor

Test Results

    2 files  ±0      2 suites  ±0   1m 16s ⏱️ -8s
1 568 tests ±0  1 567 ✅ +3  1 💤 ±0  0 ❌  - 3 
3 136 runs  ±0  3 134 ✅ +6  2 💤 ±0  0 ❌  - 6 

Results for commit 4b8132c. ± Comparison against base commit 085090c.

@amilcarlucas amilcarlucas merged commit 39a0add into master Aug 21, 2025
28 checks passed
@amilcarlucas amilcarlucas deleted the refactor_component_editor branch August 21, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants