[HOLD for payment 2021-11-04] Sync indicator get stuck when on a slow internet connection - Reported by: @parasharrajat
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- Log in to New Expensify
- Open console tools > Network
- Set the page as Offline
- Set the page to Slow 3G
Expected Result:
Sync indicator should spin for a bit and then show the online status.
Actual Result:
Sync indicator gets stuck after a bit.
Workaround:
None needed. Visual issue.
Platform:
Where is this issue occurring?
- Web
- iOS
- Android
- Desktop App
- Mobile Web
Version Number: 1.1.8-0
Reproducible in staging?: Yes Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/44479856/137932363-6675a3f0-1426-4da2-96a3-f4786ac5e4f4.mp4
Expensify/Expensify Issue URL:
Issue reported by: @parasharrajat Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1634327555375700
Triggered auto assignment to @thienlnam (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Proposal
-
I remember the main issue that caused the spinner to stop when I implemented this feature. But Recently, we abstracted the spinner animation code to a wrapper which caused it again.
-
On the Web,
Animated.loopdoes not work withuseNativeDriver: true. we only need native driver for Native.
So to fix this,
I would suggest creating a useNativeDriver lib which is false on the Web and the use it for animation.
https://github.com/Expensify/App/blob/c7812aca6cdfa1fee69a49c0ff04b29ed7235055/src/styles/animation/SpinningIndicatorAnimation.js#L26
Animated.loop(
Animated.timing(this.rotate, {
toValue: 1,
duration: 2000,
easing: Easing.linear,
isInteraction: false,
useNativeDriver: useNativeDriver(),
}),
).start();
Triggered auto assignment to @adelekennedy (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Triggered auto assignment to @tgolen (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
I don't have direct knowledge of what @parasharrajat is proposing, but I trust his proposal and it sounds good, so 🟢 !
Just hired you @parasharrajat, once we deploy we'll pay you your bonus as well for reporting the issue!
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.1.10-2 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
- https://github.com/Expensify/App/pull/5955
If no regressions arise, payment will be issued on 2021-11-04. :confetti_ball:
Closed the job and paid out your fee and bonus @parasharrajat!