-
Notifications
You must be signed in to change notification settings - Fork 66
IOS-5425 Hide chat layouts in chat spaces with space-aware filtering #4198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS-5425 Hide chat layouts in chat spaces with space-aware filtering #4198
Conversation
- Add showsChatLayouts property to SpaceUxType (true for non-chat spaces) - Update DetailsLayout methods to accept optional SpaceUxType and filter chat layouts - Update SearchHelper.defaultObjectTypeSort to use SpaceUxType parameter - Remove Container.shared access from SetSubscriptionData struct - Inject spaceViewsStorage in all ViewModels and pass spaceUxType as parameter - Replace isChat boolean checks with showsChatLayouts property across codebase
Code Review - PR #4198Architecture & Design ✅Strengths:
Implementation Quality:
Potential Issues1. Stale SpaceUxType in Long-Running ViewModels
|
Summary
showsChatLayoutsproperty onSpaceUxTypeSpaceUxTypeparameters with internal fallback handlingChanges
Core Infrastructure
showsChatLayoutsproperty (returnsfalsefor.chat,truefor others)SpaceUxType?with.datafallbackvisibleLayouts(spaceUxType:)visibleLayoutsWithFiles(spaceUxType:)supportedForCreation(spaceUxType:)widgetTypeLayouts(spaceUxType:)defaultObjectTypeSortto acceptSpaceUxType?instead ofisChatbooleanArchitecture Improvements
Container.sharedaccess, now receivesspaceUxTypeas parameterspaceViewsStorageinjection to ViewModels that needed it:EditorSetViewModelSetObjectWidgetInternalViewModelObjectTypeRowsBuilderHomeBottomNavigationPanelViewModelUpdated Components (21 files)
All search, mention, widget, and type selection components now properly filter chat layouts in chat spaces:
Benefits
?.isChat ?? falsepatterns