Repository navigation
Replace THREAD_SIDEBAR_PANELS tuple and spec_key strings with ThreadSidebarPanel DeclaredFamily - #2264
Merged
Conversation
…idebarPanel DeclaredFamily
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the sole SSOT-critical NRA semantic-descent boundary on
src/toad/{qt,client}(MEMB-1,MEMB-2,MEMB-4) and hoists repeatedsetWindowFlags(Qt.WindowType.Widget)(Pattern 59: Sibling Override Step):src/toad/thread_sidebar_declarations.py: replaceTHREAD_SIDEBAR_PANELStuple literal,ThreadSidebarPanelSpec,spec_for(key: str), andpanel_specs_for_view(*, is_session: bool)withThreadSidebarPanel(DeclaredFamily, affix="SidebarPanel")+DmSidebarPanelcapability base and five declarative members (CoordinationSidebarPanel,CommsSidebarPanel,PlanSidebarPanel,ProjectSidebarPanel,ContextSidebarPanel).ThreadSidebarPanelBodynow bindspanel_type: ClassVar[type[ThreadSidebarPanel]]directly instead of a stringspec_key.src/toad/widgets/session_thread_panels.py,src/toad/qt/{coordination_panel,thread_comms_panel,plan_panel,project_panel,context_panel,placement}.py: delete all 10spec_key = "..."string literals, keyThreadSettingsPanebodies and controls directly byThreadSidebarPanelmember classes, and iterateThreadSidebarPanel.members_with(ThreadSidebarPanel).src/toad/qt/session_panel.py+context_panel.py,plan_panel.py,thread_comms_panel.py: hoistself.setWindowFlags(Qt.WindowType.Widget)once intoSessionPanel.__init__, deleting all 3 repeated sibling calls (NRAd380271da0).tests/guards/test_shared_frontend_members.py: addtest_thread_sidebar_panel_family_owns_both_frontends_panels.Verified:
da434f76) on touched sidebar panel modules: 0 SSOT-critical semantic-descent boundary groups (down from 1).toad.qt.android.load_client()cold-start: 1757 modules,agent_comms.comms=False,packaging=False.tools/qt_inherit_ratchet.py: 0 / 0 / 0 / 0 / 0;tools/shadow_check.py: 0;tools/guarded_imports.py: 0.tests/guards/test_shared_frontend_members.py+test_qt_members_are_not_shadowed.py: 11 passed (4.08s).