Repository navigation
Hoist MessagePromptComposer draft capture and rebind onto shared base - #2357
Merged
Merged
Conversation
QtMessageComposer and MessagePrompt both inherit MessagePromptComposer ahead of Composer/Prompt -> RebindableComposer, yet duplicated the same attached_files/takes_files capture and rebind logic (IMPL-12). Move capture_composer_draft and rebind_conversation onto MessagePromptComposer via cooperative super(), deleting both overrides from QtMessageComposer and trimming MessagePrompt to its Textual-only simple_placeholder state.
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.
Deletes duplicated
attached_files/takes_filescapture_composer_draftandrebind_conversationoverrides acrossQtMessageComposer(src/toad/qt/composer.py) andMessagePrompt(src/toad/widgets/prompt.py) by hoisting them cooperatively onto their shared baseMessagePromptComposer(src/toad/client/message_files.py).QtMessageComposer: both overrides deleted (-14 lines).MessagePrompt: trimmed to Textual-onlysimple_placeholder(-7 lines).test_shared_frontend_members.py,test_message_files.py,test_android_perf_ux_arrivals.py,test_older_bus.py),tools/qt_inherit_ratchet.py0/0/0/0/0,REL_IMPORTS=0.