Skip to content

refactor: organized pages - #303

Open
Robert0Mart wants to merge 2 commits into
ref/filamentTab-stackedWidgetfrom
ref/printTab-stackedWidget
Open

Robert0Mart wants to merge 2 commits into
ref/filamentTab-stackedWidgetfrom
ref/printTab-stackedWidget

Conversation

@Robert0Mart

@Robert0Mart Robert0Mart commented Aug 13, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked PR — merge order

This PR is stacked on top of:

  1. refactor main window stacked widget #298
  2. refactor: separated control stacked widget into pages #299

Do not merge until #298 and #299 are merged first.

CI won't run here until the base becomes dev (after the parents merge).

Description

  • refactor

BlocksScreen/lib/panels/printTab.py

  • updated paths

BlocksScreen/lib/panels/widgets/PrintTab/babystepPage.py
BlocksScreen/lib/panels/widgets/PrintTab/confirmPage.py
BlocksScreen/lib/panels/widgets/PrintTab/filesPage.py
BlocksScreen/lib/panels/widgets/PrintTab/jobStatusPage.py
BlocksScreen/lib/panels/widgets/PrintTab/sensorsPanel.py
BlocksScreen/lib/panels/widgets/PrintTab/sensorWidget.py
BlocksScreen/lib/panels/widgets/PrintTab/tunePage.py

  • organized pages into a single folder

BlocksScreen/lib/ui/printStackedWidget.ui
BlocksScreen/lib/ui/printStackedWidget_ui.py

  • deleted unused UI files

@Robert0Mart
Robert0Mart marked this pull request as ready for review August 14, 2026 08:54
@Robert0Mart Robert0Mart added the Refactor Enhancing code's readability, maintainability, and extensibility while addressing technical debt. label Aug 14, 2026
@gmmcosta15
gmmcosta15 self-requested a review September 23, 2026 10:10

@gmmcosta15 gmmcosta15 left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's good

  • 6 of the 7 moves are 100% renames; the 7th (sensorsPanel.py) only has its one import line fixed, so review and rebase cost is minimal
  • Drops ~3.7k lines of unused printStackedWidget.ui/_ui.py (no importers)
  • test_job_status_page_unit.py import updated in the same PR
  • Import block stays isort-ordered, so ruff I001 stays quiet
  • Groups the print-tab pages next to their only user, printTab.py (checked: no other importers)

1. widgets/PrintTab/ has no __init__.py, but lib/panels/widgets/ does
Same as FilamentTab/ (#302) and ControlTab/ (#299).

touch BlocksScreen/lib/panels/widgets/PrintTab/__init__.py

2. pyuic names still point at the deleted printStackedWidget.ui
printTab.py:504 setObjectName("printStackedWidget"), printTab.py:615 and PrintTab/tunePage.py:472 setWindowTitle(_translate("printStackedWidget", "StackedWidget")). A window title does nothing on a stacked page.

self.setObjectName("print_tab")
# delete both setWindowTitle(...) lines

@RobeMartins
RobeMartins force-pushed the ref/printTab-stackedWidget branch from d7ff146 to 41f8480 Compare September 25, 2026 09:25

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Enhancing code's readability, maintainability, and extensibility while addressing technical debt.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants