App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-11-04] Sync indicator get stuck when on a slow internet connection - Reported by: @parasharrajat

Open isagoico opened this issue 5 years ago • 9 comments

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:

  1. Log in to New Expensify
  2. Open console tools > Network
  3. Set the page as Offline
  4. 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

View all open jobs on GitHub

isagoico avatar Oct 19 '21 14:10 isagoico

Triggered auto assignment to @thienlnam (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Oct 19 '21 14:10 MelvinBot

Proposal

  1. 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.

  2. On the Web, Animated.loop does not work with useNativeDriver: 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();

parasharrajat avatar Oct 19 '21 15:10 parasharrajat

Triggered auto assignment to @adelekennedy (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Oct 19 '21 15:10 MelvinBot

Created a job in Upwork: Internal External

adelekennedy avatar Oct 19 '21 22:10 adelekennedy

Triggered auto assignment to @tgolen (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Oct 19 '21 22:10 MelvinBot

I don't have direct knowledge of what @parasharrajat is proposing, but I trust his proposal and it sounds good, so 🟢 !

tgolen avatar Oct 19 '21 23:10 tgolen

Just hired you @parasharrajat, once we deploy we'll pay you your bonus as well for reporting the issue!

adelekennedy avatar Oct 19 '21 23:10 adelekennedy

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:

botify avatar Oct 28 '21 20:10 botify

Closed the job and paid out your fee and bonus @parasharrajat!

adelekennedy avatar Nov 04 '21 17:11 adelekennedy