fix: navigate to parent report on delete track expense#55015
fix: navigate to parent report on delete track expense#55015puneetlath merged 7 commits intoExpensify:mainfrom
Conversation
|
@dukenv0307 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] |
|
@daledah After deleting the track expense, the self-dm appears 2 times in the stack. I'm not sure why it happens for now. Can you pls check? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-01-15.at.12.17.11.movAndroid: mWeb ChromeScreen.Recording.2025-01-15.at.11.54.59.moviOS: NativeScreen.Recording.2025-01-15.at.11.57.46.moviOS: mWeb SafariScreen.Recording.2025-01-15.at.11.54.27.movMacOS: Chrome / SafariScreen.Recording.2025-01-15.at.11.49.44.movMacOS: DesktopScreen.Recording.2025-01-15.at.14.44.38.mov |
|
@puneetlath can you please take a look at this issue? Thanks |
|
Sorry for the delay here. I have a handful of questions. |
|
@puneetlath I updated |
| return getTopmostCentralPaneRoute(navigationRef.getRootState() as State<RootStackParamList>); | ||
| } | ||
|
|
||
| function getReportRouteByID(reportID?: string) { |
There was a problem hiding this comment.
Ok sorry, one more dumb question. Why isn't the report route just /r/<reportID> ?
There was a problem hiding this comment.
I think it's better to return the whole Route object here because in the future there might be use of it, instead of just return the route name/key.
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.0.94-0 🚀
|
|
FYI this was reverted: #56381 |
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.94-25 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.94-25 🚀
|
Explanation of Change
Fixed Issues
$ #54058
PROPOSAL: #54058 (comment)
Tests
Offline tests
Same as above
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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: Nativehttps://github.com/user-attachments/assets/2022e45e-a88a-4d94-b597-0e0f7a6c5561
mmary>
Android: mWeb Chrome
Screen.Recording.2025-01-09.at.17.24.54.mov
iOS: Native
Screen.Recording.2025-01-09.at.17.25.31.mov
iOS: mWeb Safari
Screen.Recording.2025-01-09.at.17.26.15.mov
MacOS: Chrome / Safari
Screen.Recording.2025-01-09.at.17.20.19.mov
MacOS: Desktop
Uploading Screen Recording 2025-01-09 at 17.27.08.mov…