Fix: App back button returns to the same page after clicking back button on Import RHP#53520
Fix: App back button returns to the same page after clicking back button on Import RHP#53520arosiclair merged 8 commits intoExpensify:mainfrom
Conversation
Signed-off-by: GitHub <noreply@github.com>
|
@dominictb 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-12-30.at.23.43.12-compressed.movAndroid: mWeb ChromeScreen.Recording.2024-12-30.at.23.45.01-compressed.moviOS: NativeScreen.Recording.2024-12-30.at.23.38.19-compressed.moviOS: mWeb SafariScreen.Recording.2024-12-30.at.23.39.58-compressed.movMacOS: Chrome / SafariScreen.Recording.2024-12-30.at.23.29.56-compressed.movMacOS: DesktopScreen.Recording.2024-12-30.at.23.35.59-compressed.mov |
|
@twilight2294 BUG:
Expected result: App goes back to categories quick settings flow. |
|
Looking |
|
@dominictb do you have any suggestions here ? we flush the navigation state on refresh |
|
@twilight2294 the backTo param you removed is used for this purpose. Please investigate more. |
|
Still looking for a solution, @dominictb do you have anything in mind i can experiment ? |
|
This seems to be not correct from the proposal. We can close the PR and get back to proposal evaluation again. |
|
I think i know how to fix it, will try and let you know if that solution works |
|
@twilight2294 How is this going? If you're stuck, we can come back to proposal review. Just need to solve this ASAP. |
|
I'll try once tomorrow, else we can move to proposal review stage again, thanks for patience, mainly i'm try to remember the navigation state like we do for money request |
|
Okay i have a fix here, pushing shortly |
|
@dominictb thanks for the patience, last week my setup was terribly broken and that is why there was so much delay, all my PR's were delayed in fact, I'm extremely sorry for that delay, The bug is now fixed. The flow was over complicated, we don't need to have to put a navigation route again, we can simply pass the We follow the same appraoch when we navigate from the empty category IOU page to workspace categories RHP: App/src/pages/iou/request/step/IOURequestStepCategory.tsx Lines 181 to 188 in e94df0f |
|
@twilight2294 Please update your QA Steps to include steps 4 - 7 only. Ping me when you're done. |
|
✋ 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/arosiclair in version: 9.0.80-1 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.0.80-6 🚀
|
Explanation of Change
Fixed Issues
$ #53047
PROPOSAL: #53047 (comment)
Tests
Same as QA
Offline tests
Same as QA
QA Steps
Verify that we get to the workspace list page.
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: Native
Screen_recording_20241204_130637.mp4
Android: mWeb Chrome
Screen_recording_20241204_130023.mp4
iOS: Native
Simulator.Screen.Recording.-.Expensify.testing.-.2024-12-04.at.13.03.39.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.Expensify.testing.-.2024-12-04.at.13.02.42.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-12-04.at.12.50.08.PM.mov
MacOS: Desktop
Screen.Recording.2024-12-04.at.12.58.21.PM.mov