-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/28347 Navaigate back when reloading in scan receipt #28893
Conversation
@mollfpr Could you help to check this PR when you have a chance? Many thanks |
Reviewer Checklist
Screenshots/VideosWeb28893.Web.mp4Mobile Web - Chrome28893.mWeb-Chrome.mp4Mobile Web - Safari28893.mWeb-Safari.mp4Desktop28893.Desktop.mp4iOSAndroid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a regression. Step to reproduce:
- Open the scan money request page
- Select a file
- Select the participants
- Press the back button until it show the scan money request page again
- Select a file again
The second select image should set the selected file, not redirect the user back to the selection page.
Screen.Recording.2023-10-09.at.12.24.27.mov
@mollfpr I can reproduce your bug on the staging. Screen-Recording-2023-10-09-at-12.34.18.mp4So I think It is another bug and don't relate to this one |
@DylanDylann Oh yeah, I just did the staging, and the issue is already there. I think we are all good here. |
@mollfpr I updated the lastest main. Could you help to complete the checklist here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good on Web and Desktop. For native, I think we don't have the step to test it out.
On the mWeb, sometimes I got redirect to the LHN after refreshing the page. It's not always reproduce and I don't clear step to reproduce it.
mweb.webm
Could you check if we can find what the issue above?
@mollfpr It seems we have some changes recently, It causes this issue on mWeb. I am not sure if It is bug or not |
@DylanDylann Could you check the root cause? We can discuss the solution, if it's can be done here or should be address in a different issue. |
@mollfpr When reloading, goBack (new change) is executed 2 times. It causes this problem. I updated to fix it by using the new useEffect for new changes. Tested and everything work well Screen.Recording.2023-10-11.at.00.42.50.mp4 |
We failed Reassure Performance Tests (first time I see). I am checking |
@mollfpr It is resolved after I merge main. Please help to review this PR again. |
@mollfpr Bump, could you help to review the change on this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @DylanDylann, Sorry for the late review. I just got out from the hospital after surgery from the motorcycle accident on Wednesday 🙏
I tested the latest PR, but it seems the FileUtils.readFileAsync
is never resolved now. So after the refresh, it will only take me somewhere.
Screen.Recording.2023-10-15.at.21.43.48.mov
@DylanDylann Have you tested the above issue? |
@mollfpr merged main to ensure that we are not outdated. I am checking, I will response soon |
@mollfpr I used wrong condition in the early return condition. Updated, please help to review again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't test this on native platform since there's no way to imitate the refresh behavior.
LGTM and tests well 👍
All yours @luacmartins
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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/luacmartins in version: 1.3.86-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.86-5 🚀
|
Details
Navaigate back when reloading in scan receipt
Fixed Issues
$ #28347
PROPOSAL: #28347 (comment)
Tests
Press the request button
Offline tests
Same above
QA Steps
Same above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Screen.Recording.2023-10-05.at.13.40.30.mp4
Mobile Web - Chrome
Screen.Recording.2023-10-05.at.13.51.31.mp4
Mobile Web - Safari
Screen.Recording.2023-10-11.at.00.42.50.mp4
Desktop
Screen.Recording.2023-10-05.at.13.59.37.mp4
iOS
Using deeplink doesn't reload page. So I don't see anyway to test it
Android
Using deeplink doesn't reload page. So I don't see anyway to test it