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

Remove GenericCallLinkCoordinator, merging it into CallScreen. #3181

Merged
merged 4 commits into from
Aug 19, 2024

Conversation

pixlwave
Copy link
Member

This PR removes the GenericCallLinkCoordinator so we can share logic for the 2 types of call. This will allow for the use of PiP when available and so generic calls are now presented with the same overlay.

@pixlwave pixlwave added the pr-misc for other changes label Aug 19, 2024
@pixlwave pixlwave requested a review from a team as a code owner August 19, 2024 11:49
@pixlwave pixlwave requested review from Velin92 and removed request for a team August 19, 2024 11:49
Copy link
Member Author

Choose a reason for hiding this comment

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

Note to self: The navigation bar and bottom safe area now show up in light mode even though EC links are always in dark mode.

Copy link

github-actions bot commented Aug 19, 2024

Warnings
⚠️ Some of the commits are missing ticket numbers. Please consider squashing all commits that don't have a tracking number.
⚠️ You seem to have made changes to views. Please consider adding screenshots.

Generated by 🚫 Danger Swift against 56d7982

Comment on lines +174 to +182
.overlay {
Group {
if let coordinator = rootCoordinator.overlayModule?.coordinator {
coordinator.toPresentable()
.transition(.opacity)
}
}
.animation(.elementDefault, value: rootCoordinator.overlayModule)
}
Copy link
Member

Choose a reason for hiding this comment

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

what about the navigation triggered by notifications? I imagine this won't dismiss the overlay but just navigate behind it right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmmm, so it doesn't matter in this instance and it is only used when signed out (and we're not supporting PiP there even if there was somewhere to navigate to). But you're right, I need to think about this in the UserSessionFlowCoordinator 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Will follow this up in another PR.

Copy link

codecov bot commented Aug 19, 2024

Codecov Report

Attention: Patch coverage is 23.04527% with 187 lines in your changes missing coverage. Please review.

Project coverage is 77.67%. Comparing base (4e66788) to head (56d7982).
Report is 2 commits behind head on develop.

Files Patch % Lines
...urces/Screens/CallScreen/CallScreenViewModel.swift 0.00% 62 Missing ⚠️
...ervices/ElementCall/ElementCallConfiguration.swift 0.00% 39 Missing ⚠️
ElementX/Sources/Application/AppCoordinator.swift 0.00% 25 Missing ⚠️
.../FlowCoordinators/UserSessionFlowCoordinator.swift 0.00% 23 Missing ⚠️
...ices/ElementCall/GenericCallLinkWidgetDriver.swift 0.00% 17 Missing ⚠️
...ication/Navigation/NavigationRootCoordinator.swift 75.00% 10 Missing ⚠️
...X/Sources/Screens/CallScreen/View/CallScreen.swift 0.00% 8 Missing ⚠️
...pplication/Navigation/NavigationCoordinators.swift 0.00% 1 Missing ⚠️
...ces/Screens/CallScreen/CallScreenCoordinator.swift 0.00% 1 Missing ⚠️
...Services/ElementCall/ElementCallWidgetDriver.swift 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3181      +/-   ##
===========================================
- Coverage    77.85%   77.67%   -0.19%     
===========================================
  Files          716      718       +2     
  Lines        56461    56601     +140     
===========================================
+ Hits         43959    43966       +7     
- Misses       12502    12635     +133     
Flag Coverage Δ
unittests 68.44% <23.04%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Velin92 Velin92 left a comment

Choose a reason for hiding this comment

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

LGTM, just a suggestion and question about push notifications

Copy link

sonarcloud bot commented Aug 19, 2024

@pixlwave pixlwave merged commit e0ba992 into develop Aug 19, 2024
10 checks passed
@pixlwave pixlwave deleted the doug/generic-call-links branch August 19, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-misc for other changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants