Fix the spinner showing when uploading twice the same image on android#19816
Conversation
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
|
@madmax330 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
It's not exactly the solution that I said in my proposal. I first tried this solution and it works well. I thought the solution in my proposal would be more regression free but I tried it more while doing this PR and it's not always working. |
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
|
@aimane-chnaif @twisterdotcom I made this PR, it is a little different than my proposal, I explained why here |
|
Ready for review |
aimane-chnaif
left a comment
There was a problem hiding this comment.
@ShogunFire do you see reviewers are wrongly auto-assigned? Please link issue correctly in PR description.
Should be exactly:
$ https://github.com/Expensify/App/issues/17480
PROPOSAL: https://github.com/Expensify/App/issues/17480#issuecomment-1526913376
|
@joelbettner please assign yourself as a reviewer. You're not auto-assigned because @ShogunFire wrongly linked issue. |
It makes sense to me. So the idea is that we don't want to show spinner and image at the same time. Spinner shows only when no image has been loaded yet. |
Signed-off-by: Pierre Michel <pmiche04@gmail.com>
|
Thanks @aimane-chnaif I was always wondering why the correct reviewers were not assigned. |
|
@ShogunFire let's address @joelbettner's feedback here. And then all good I think. |
Co-authored-by: Aimane Chnaif <96077027+aimane-chnaif@users.noreply.github.com>
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
aimane-chnaif
left a comment
There was a problem hiding this comment.
@joelbettner LGTM 🎉
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/joelbettner in version: 1.3.23-0 🚀
|
1 similar comment
|
🚀 Deployed to staging by https://github.com/joelbettner in version: 1.3.23-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.23-7 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.23-7 🚀
|
Details
The onLoadStart event is fired again on android when the same image is being loaded. We have to make sure that the image hasn't already been loaded before showing the spinner or it shows above the image
Fixed Issues
$ #17480
PROPOSAL: #17480 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android