-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 blank view when report is deleted #51920
Fix blank view when report is deleted #51920
Conversation
@allroundexperts 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] |
After deleting the report, the report screen will infinitely show a skeleton loader instead of a not found page because App/src/pages/home/ReportScreen.tsx Lines 391 to 394 in bef062b
It was first added at #33041 and its purpose is actually similar to |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-07.at.4.39.05.AM.movAndroid: mWeb ChromeScreen.Recording.2024-11-07.at.4.37.55.AM.moviOS: NativeScreen.Recording.2024-11-07.at.4.36.31.AM.moviOS: mWeb SafariScreen.Recording.2024-11-07.at.4.35.22.AM.movMacOS: Chrome / SafariScreen.Recording.2024-11-07.at.4.31.24.AM.movMacOS: DesktopScreen.Recording.2024-11-07.at.4.33.58.AM.mov |
✋ 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/lakchote in version: 9.0.59-0 🚀
|
This PR is failing because of issue #52191 |
|
Oh, this PR #51425 now changes it so when we delete the report, we navigate to concierge. App/src/pages/Debug/Report/DebugReportPage.tsx Lines 146 to 148 in c658375
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.59-3 🚀
|
Explanation of Change
A blank detail page is shown when deleting report from debug page for from another client. This PR fixes it by preventing showing the blank view if the screen is focused.
Fixed Issues
$ #51388
PROPOSAL: #51388 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Prerequisite: enable debug mode
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
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
android.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4