Fix unending skeleton when deleting an expense and navigating back to self DM#78966
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@akinwale, the PR is ready for your review. However, I think it would be best to wait for #74045 to be merged first, as it may already address this issue. If not, we can continue with this PR afterward. cc @francoisl |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp78966-android-hybrid.mp4Android: mWeb Chrome78966-android-chrome.mp4iOS: HybridApp78966-ios-hybrid.mp4iOS: mWeb Safari78966-ios-safari.mp4MacOS: Chrome / Safari78966-web.mp4 |
I missed the comment somehow. We can pull and test the other PR to see if it actually solves the issue here. Would you be able to do this @marufsharifi? |
|
@akinwale, I will test it and update here. thanks. |
|
@akinwale, thanks for your patience. I tested this using PR #74045 and got the following result, which I believe is expected. Since the expense is deleted, it shows Not Found, and after another back action it navigates to the self-DM. That PR hasn’t been approved yet, so I think it’s best to wait for it to be merged first. If any changes are still required after that, we can address them then. Screen.Recording.1404-10-26.at.6.37.25.PM.movcc @francoisl |
|
@marufsharifi I don't think the Not Found page is the desired outcome here, since in the bug report, the expected result is that the user should be navigated back to self-DM. So I believe this can be merged without waiting for the other PR. @francoisl Thoughts? |
|
Yes it's good like this, the important part is that it doesn't redirect to a Page Not Found error, or an infinite loading skeleton view. |
|
🚀 Deployed to staging by https://github.com/francoisl in version: 9.3.5-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.5-7 🚀
|
Explanation of Change
Navigation back to Self DM, when the report is already deleted.
Fixed Issues
$ #71761
PROPOSAL: #71761 (Comment)
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Android: Native
Screen.Recording.1404-10-17.at.9.07.10.AM.mov
Android: mWeb Chrome
Screen.Recording.1404-10-17.at.9.09.27.AM.mov
iOS: Native
Screen.Recording.1404-10-17.at.9.12.17.AM.mov
iOS: mWeb Safari
Screen.Recording.1404-10-17.at.9.14.45.AM.mov
MacOS: Chrome / Safari
Screen.Recording.1404-10-17.at.8.52.57.AM.mov