Repository navigation
Compose ApplicationSettings and NoticeHost onto ThemedApp and fix Conversation.contents selector collision - #2271
Merged
Conversation
…onversationContents directly
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.
Numbers
-3net lines insrc/), 38 tests turned green across 11 filesqt_inherit_ratchet=0,shadow_check=0,guarded_imports=0, cold-startPRE-SPLASH=253,POST-LOAD=1757(comms=False,pkg=False)Mechanisms
ApplicationSettings+NoticeHostcapability mixins (Paper 1 Prop. 4.2, Cor. 4.12):#1983movedsaved_settings/settings/configuration_stateontoClientApplicationand a later PR movedshow_errorontoCommsHost, leaving standaloneThemedAppsubclasses abstract onconfiguration_stateandshow_errorwhileThemedApp.__init__still called missingself.open_settings().ApplicationSettingsinsrc/toad/client/view_settings.py(inherited by bothClientApplicationandThemedApp;ThemedApp.open_settingsreturns in-memorySavedSettings(),ClientApplication.open_settingsloadsSavedSettings.path()) andNoticeHostinsrc/toad/client/host.py(inherited by bothCommsHostandThemedApp, afterAppsoApp.notifywins).NavigatingHost[Source](CommsHost)->NavigatingHost(Generic[Source], CommsHost)soGenericprecedesCommsHost/NoticeHostconsistently withtextual.app.App(Generic[ReturnType], DOMNode).Conversation.contentsCSS type collision (IDEN-2):Conversation.compose()always mountsConversationContents, whileConversation.contentsqueriedgetters.query_one(Contents). BecauseCollapsible.ContentsandMessageNotifications.Contentsalso carry CSS type name"Contents", mounting/expandingMessageNotificationsunderConversationthrewWrongType.Conversation.contents = getters.query_one(ConversationContents)atsrc/toad/widgets/conversation.py:577.tests/textual/test_draft_render_task.py: importFragmentPlan,PageFiles,transcript_fragmentsfromtoad.client.transcript_fragmentsand passclasses=TEXTUAL_FRAGMENT_CLASSES, files=PageFiles().tests/textual/test_forms.py:OptionalEditor.member->member_editor(renamed onsrc/toad/forms/editors.py:234).Verification
ToadApp,QtToadApp,ThemedApp(ThemedApp.__abstractmethods__ == frozenset()).qt_inherit_ratchet.py,shadow_check.py,guarded_imports.py: all0.PRE-SPLASH: 253 window=False comms=False pkg=False,POST-LOAD: 1757 comms=False pkg=False.pytest -p no:xdistacrosstests/guards/test_shared_frontend_members.py+ 10 Textual test files: 38 passed.