-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix - Hybrid - Android - After downloading receipt and tapping on receipt, receipt disappears #59540
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 - Hybrid - Android - After downloading receipt and tapping on receipt, receipt disappears #59540
Conversation
@FitseTLT on android and web_chrome is looking good: Android: Native59540_android_native.movMacOS: Chrome / Safari59540_web_chrome.movBut on desktop it's not right, when downloading the receipt > going back to the confirmation page > clicking on the receipt again, instead of opening the receipt modal we go to the page to replace it. Can you reproduce it? Am I doing something wrong? I have to leave now, when I get there I'll come back here. MacOS: Desktop59540_web_desktop.mov |
@brunovjk This is expected behavior BTW. When you choose to replace the file the current receipt will be deleted that is why it is prompting you to re-add the receipt. cc @cristipaval 2025-04-02.20-00-03.mp4 |
I see, I'm not trying to replace the receipt in the app, just on my PC, this shouldn't happen, I think, since this doesn't happen on other platforms, only on desktop. However, I tested it in the last main, and I was also able to reproduce as well, I'll continue with the checklist. Should we open a discussion on Slack, what do you think? I saw that you updated the PR test steps, very good Thanks. MacOS: Desktop - This PR59540.movMacOS: Desktop - main v9.1.22-5main.mov |
@brunovjk Other platforms by default save the file with other name like adding App/src/pages/TransactionReceiptPage.tsx Lines 71 to 90 in 3f7933f
Even if you comment out this code the app will crash trying to confirm the expense here it is 2025-04-03.00-56-01.mp4If the user wants to save it then it has to be as a new file but if they replace the first one it is expected that we should restart the flow. 👍 |
Reviewer Checklist
Screenshots/VideosAndroid: Native59540_android_native.movAndroid: mWeb Chrome59540_android_web.moviOS: Native59540_ios_native.moviOS: mWeb Safari59540_ios_web.movMacOS: Chrome / Safari59540_web_chrome.movMacOS: Desktop59540_web_desktop.mov |
Great @FitseTLT Thank you very much for clarifying!!! 🚀 |
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/cristipaval in version: 9.1.23-1 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.23-7 🚀
|
Details
We normally unlink
RNFetchBlob.fs.unlink
after download on android native but for local receipts in expense creation flow we still need the local file to show and also create the expense with it so this PR avoids unlinking in this case.Fixed Issues
$ #59521
PROPOSAL:
Tests
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.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
Android: Native
2025-04-02.17-23-22.mp4
Android: mWeb Chrome
2025-04-02.17-28-58.mp4
iOS: Native
2025-04-02.17-45-30.mp4
iOS: mWeb Safari
2025-04-02.17-32-11.mp4
MacOS: Chrome / Safari
2025-04-02.17-31-23.mp4
MacOS: Desktop
2025-04-02.17-33-10.mp4