Skip to content
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

Conditionally hide room list tabs #6533

Merged
merged 45 commits into from
Aug 5, 2022

Conversation

gileluard
Copy link
Contributor

resolves #6515

gileluard and others added 30 commits May 10, 2022 22:15
- First implementation
# Conflicts:
#	Riot/Generated/UntranslatedStrings.swift
- Update after reviews
- fixed build after merge
- renamed AllChats classes
- new Build settings  newAppLayoutEnaled
- Removed the Pinned space feature
- Removed the All chats layout editor screen
- Added feature flag
- Added context menus
- Removed analytics used for IA test
- Added Space selector bottom sheet
- Changed placement for the context menus in the all chats screen
…Implement_new_Space_selector_bottom_sheet

# Conflicts:
#	Riot/Modules/ContextMenu/ActionProviders/AllChatsActionProvider.swift
#	Riot/Modules/Home/AllChats/AllChatsViewController.swift
- Added space switching analytics
- Implemented unit and UI test for space selector bottom sheet
- Animation for bottom action panel
- UI tweaks
- Temporarily reintroduced invites
…vector-im/element-ios into gil/6079-Delight_Edit_layout_experiment
- Changed Recents type to Breadcrumbs
…Implement_new_Space_selector_bottom_sheet

# Conflicts:
#	Riot/Modules/Home/AllChats/AllChatsActionPanelView.swift
#	Riot/Modules/Home/AllChats/AllChatsActionPanelView.xib
#	Riot/Modules/Home/AllChats/AllChatsViewController.swift
#	Riot/Modules/TabBar/TabBarCoordinator.swift
- Do not show coach message with the new App Layout
…tom_sheet

# Conflicts:
#	Riot/Assets/en.lproj/Vector.strings
#	Riot/Generated/Strings.swift
#	Riot/Modules/Common/Recents/DataSources/RecentsDataSource.m
#	Riot/Modules/Common/Recents/Service/MatrixSDK/RecentsListService.swift
#	Riot/Modules/Common/Recents/Service/Mock/MockRecentsListService.swift
#	Riot/Modules/Common/Recents/Service/RecentsListServiceProtocol.swift
#	Riot/Modules/ContextMenu/ActionProviders/AllChatsActionProvider.swift
#	Riot/Modules/Home/AllChats/AllChatsViewController.swift
#	Riot/Modules/Home/AllChats/AllChatsViewController.xib
#	Riot/Modules/TabBar/TabBarCoordinator.swift
- Removed unnecessary images
- Changed for SVG format
- Now using the default toolbar of the navigation controller
- Removed the swipe actions menu in recents
- Reverted some Theme tweaks to fix some UI regressions
- Added change log
- Hide toolbar when leave All Chats screen
Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@@ -966,6 +966,10 @@ - (UIView *)viewForHeaderInSection:(NSInteger)section withFrame:(CGRect)frame in

if (self.allChatsOptionsView)
{
[self.allChatsFilterOptions updateWithFilterOptionListView:self.allChatsOptionsView
unreadsCount:1 // unreads is allways visible
Copy link
Member

@pixlwave pixlwave Aug 5, 2022

Choose a reason for hiding this comment

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

I'm wondering if it actually makes sense to have the unreadsCount parameter on the method if we always pass 1 to force a result?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's clearly a matter of point of view. In my opinion, the AllChatsFilterOptions instance has to manage 3 tabs for now:
unreads, favourites, and people. For consistency purpose, this method needs the count for all those 3 tabs. Up to the caller to set the unreads tab as always visible as requested for now in the related issue.

I can change it if this makes no sense to you.

Copy link
Member

Choose a reason for hiding this comment

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

Nah its totally fine as is, was only a thought :)

Base automatically changed from gil/6410-Implement_new_Space_selector_bottom_sheet to develop August 5, 2022 11:39
# Conflicts:
#	Riot/Modules/Common/Recents/RecentsViewController.m
#	Riot/Modules/ContextMenu/ActionProviders/AllChatsEditActionProvider.swift
#	Riot/Modules/Home/AllChats/AllChatsViewController.swift
#	RiotSwiftUI/Modules/Spaces/SpaceSelectorBottomSheet/Coordinator/SpaceSelectorBottomCoordinator.swift
#	RiotSwiftUI/Modules/Spaces/SpaceSelectorBottomSheet/Coordinator/SpaceSelectorBottomCoordinatorBridgePresenter.swift
#	RiotSwiftUI/Modules/Spaces/SpaceSelectorBottomSheet/SpaceSelector/Coordinator/SpaceSelectorCoordinator.swift
#	RiotSwiftUI/Modules/Spaces/SpaceSelectorBottomSheet/SpaceSelector/MockSpaceSelectorScreenState.swift
#	RiotSwiftUI/Modules/Spaces/SpaceSelectorBottomSheet/SpaceSelector/Service/MatrixSDK/SpaceSelectorService.swift
#	RiotSwiftUI/Modules/Spaces/SpaceSelectorBottomSheet/SpaceSelector/Service/Mock/MockSpaceSelectorService.swift
#	RiotSwiftUI/Modules/Spaces/SpaceSelectorBottomSheet/SpaceSelector/Service/SpaceSelectorServiceProtocol.swift
#	RiotSwiftUI/Modules/Spaces/SpaceSelectorBottomSheet/SpaceSelector/SpaceSelectorModels.swift
#	RiotSwiftUI/Modules/Spaces/SpaceSelectorBottomSheet/SpaceSelector/SpaceSelectorViewModel.swift
#	RiotSwiftUI/Modules/Spaces/SpaceSelectorBottomSheet/SpaceSelector/SpaceSelectorViewModelProtocol.swift
#	RiotSwiftUI/Modules/Spaces/SpaceSelectorBottomSheet/SpaceSelector/Test/UI/SpaceSelectorUITests.swift
#	RiotSwiftUI/Modules/Spaces/SpaceSelectorBottomSheet/SpaceSelector/Test/Unit/SpaceSelectorViewModelTests.swift
#	RiotSwiftUI/Modules/Spaces/SpaceSelectorBottomSheet/SpaceSelector/View/SpaceSelector.swift
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 5, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@gileluard gileluard marked this pull request as ready for review August 5, 2022 12:39
@gileluard gileluard merged commit da27091 into develop Aug 5, 2022
@gileluard gileluard deleted the gil/6515-Conditionally_hide_room_list_tabs branch August 5, 2022 12:56
@github-actions
Copy link

github-actions bot commented Aug 5, 2022

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/x2b13k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conditionally hide room list tabs
2 participants