refactor(ui): refactor PanelModal and PanelWidget into MVC Modal, ModalView, and ModalContent classes (#1454)

* feat(ui): replace add tag modal with autocomplete search/create bar

* refactor: code cleanup and fixes

* refactor: RADICAL mvc refactor...

* feat: add setting to open edit window when creating tags

* refactor(ui): refactor preview panel into new MVC pattern

* refactor: remove controller suffix from preview_panel.py

* refactor: remove unnecessary methods and properties

* Revert "refactor: remove controller suffix from preview_panel.py"

This reverts commit c8ba9b15c2.

* feat(ui): add autocomplete search for field templates

* fix(ui): fix issues with tag and field widget appearances

* refactor(ui): use Qt's .layout() method instead of _layout references

* refactor: remove view parameters

* refactor(ui): refactor PanelModal and PanelWidget into MVC Modal, ModalView, and ModalContent classes

* chore: fixes after rebase
This commit is contained in:
Travis Abendshien
2026-07-27 11:54:03 -07:00
committed by GitHub
parent ac4c28687e
commit ff43c4a4bd
30 changed files with 312 additions and 356 deletions
+3 -2
View File
@@ -22,8 +22,9 @@ def test_add_tag_callback(qt_driver: QtDriver):
qt_driver.add_tag_action_callback()
# When
assert isinstance(qt_driver.modal.widget, BuildTagPanel)
qt_driver.modal.widget.name_field.setText("xxx")
build_tag_panel = qt_driver.modal.layout().content_widget
assert isinstance(build_tag_panel, BuildTagPanel)
build_tag_panel.name_field.setText("xxx")
# qt_driver.modal.widget.color_field.setCurrentIndex(1)
qt_driver.modal.saved.emit()