passepartout-apple/Library/Sources/AppUIMain/Views/App
Davide 0a1886fe31
Handle all connection attempts in AppCoordinator (#968)
Let the AppCoordinator take care of the connection requirements via
modals:

- onInteractiveLogin() - now presented on AppError
- onProviderEntityRequired()
- onPurchaseRequired()
- Any other connection error

Subviews must not use tunnel.connect(), rather they route connection
requests via the ConnectionFlow callbacks. In particular, migrate to the
AppCoordinator the connection logic from:

- TunnelToggleButton.perform()
- ProviderEntitySelector.onSelect()

onInteractiveLogin() and onPurchaseRequired() are now handled
internally, while onProviderEntityRequired() is kept public because it's
how subviews may present the entity selector.

Extras:

- Avoid modals overlap with a 500ms delay
- Shrink interactive login size on macOS
2024-12-01 22:34:41 +01:00
..
AddProfileMenu.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
AppCoordinator.swift Handle all connection attempts in AppCoordinator (#968) 2024-12-01 22:34:41 +01:00
AppCoordinator+ModalRoute.swift Handle all connection attempts in AppCoordinator (#968) 2024-12-01 22:34:41 +01:00
AppToolbar.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
InstalledProfileView.swift Handle all connection attempts in AppCoordinator (#968) 2024-12-01 22:34:41 +01:00
OnboardingModifier.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
ProfileAttributesView.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
ProfileCardView.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
ProfileContainerView.swift Handle all connection attempts in AppCoordinator (#968) 2024-12-01 22:34:41 +01:00
ProfileContextMenu.swift Handle all connection attempts in AppCoordinator (#968) 2024-12-01 22:34:41 +01:00
ProfileDuplicateButton.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
ProfileFlow.swift Handle all connection attempts in AppCoordinator (#968) 2024-12-01 22:34:41 +01:00
ProfileGridView.swift Handle all connection attempts in AppCoordinator (#968) 2024-12-01 22:34:41 +01:00
ProfileImporterModifier.swift Fix OpenVPN/WireGuard import error messages (#967) 2024-12-01 21:33:58 +01:00
ProfileInfoButton.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
ProfileListView.swift Handle all connection attempts in AppCoordinator (#968) 2024-12-01 22:34:41 +01:00
ProfileRemoveButton.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
ProfileRowView.swift Handle all connection attempts in AppCoordinator (#968) 2024-12-01 22:34:41 +01:00
ProfilesLayoutPicker.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
TunnelRestartButton.swift Handle all connection attempts in AppCoordinator (#968) 2024-12-01 22:34:41 +01:00