Repository navigation
Conversation
Collaborator
Author
TestPR: #274 (with nethesis/phone-island#323, Setup: NethLink built from this branch, logged in with a user that has a NethLink extension. To lose the connection, turn off Wi-Fi or unplug the network cable; to get it back, turn it on again. Run the tests on Linux, Windows and macOS, in Italian and in English. Test Case 1 - Short drop, nothing shown
Test Case 2 - Offline with NethLink closed
Test Case 3 - Offline with NethLink open
Test Case 4 - Connection back
Test Case 5 - Two outages in a row
Test Case 6 - Calls while offline
Test Case 7 - Tray icon
Test Case 8 - Start without connection
Test Case 9 - NethVoice CTI unchanged
|
This branch has not been deployed
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.
Reference:
When the network drops, NethLink covers its whole window with a "No internet connection" dialog. One failed check is enough to show it, so a few lost packets that no other app notices are enough too. The dialog also blocks the window while the user is doing something else. Users still need to know when they can't make or receive calls, but the warning can be lighter.
Threshold before going offline
phone-island checks the internet every 5 seconds. NethLink now marks itself offline only after 3 failed checks in a row (about 10-15 seconds), so short drops no longer show anything. One successful check marks it online again.
Banner instead of the blocking dialog
The dialog in the NethLink window is replaced by a slim amber banner at the top: "No connection: you can't make or receive calls" with a "Retry" link. The window stays usable, and the banner goes away on its own when the connection comes back. The splash screen keeps the dialog.
Tray badge and one notification
While NethLink is offline:
No connection alert popping up in the island
The
webrtc_down/socket_downalerts used to open the island window in the middle of the screen ("Connection error, click the icon to reconnect"). NethLink now passes the newhideConnectionAlertsprop (nethesis/phone-island#323), so these alerts no longer open the island by themselves. When the island is already open, for example during a call, they are shown as before.phone-island is temporarily on
1.1.9-dev.1: it will be moved to the release version before merging.Tests
npm run build(typecheck included)npm run dev, I took the phone-island window offline through the DevTools Protocol (Network.emulateNetworkConditions):