Fix broken back button on currency select#22135
Conversation
|
@abdulrahuman5196 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] |
|
Starting to look into this |
Julesssss
left a comment
There was a problem hiding this comment.
Thanks for fixing! I'm going to ask for a C+ in the channel so I can unblock todays deploy.
|
Oh sorry @abdulrahuman5196, I just saw your comment that you have started reviewing already! |
|
Yeah @Julesssss will complete the verification soon and update if any issues comes |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-04.at.4.10.39.PM.mp4Mobile Web - Chromeaz_recorder_20230704_162822.mp4Mobile Web - SafariUntitled.2.mp4DesktopScreen.Recording.2023-07-04.at.5.37.06.PM.mp4iOSScreen.Recording.2023-07-04.at.5.28.41.PM.mp4Androidaz_recorder_20230704_174004.mp4 |
|
NAB: Not sure why we have to do "Remove the &backTo=... from the URL and press enter" in tests. backTo is used during currency selection which is same way after this PR as well. |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @Julesssss
🎀👀🎀
C+ Reviewed
|
NAB: Kindly mark "Verify that no errors appear in the JS console" in QA tests as well. |
|
Cherry-picking the fix: https://github.com/Expensify/App/actions/runs/5455140852 |
This comment was marked as outdated.
This comment was marked as outdated.
…nbackbutton Fix broken back button on currency select (cherry picked from commit 1fb5319)
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 1.3.36-4 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.36-5 🚀
|
So this is because the code that we changed only gets triggered if there isn't a route in the URL already (otherwise |
@dangrous I doubt that. AFAIK backTo is only used after we select currency. The route we gave in |
|
Hm maybe I'm misinterpreting the parameter name, it's definitely called a App/src/libs/Navigation/Navigation.js Lines 89 to 105 in 3b68701 |

cc @Julesssss
Details
Code was pointing to a function that didn't exist. Replaced it with the older (but more updated) version that was there previously. Fixes the bug!
Screenshots are in except for Mobile Chrome - I couldn't get it to load on my simulator, but it also wasn't loading on
mainso it's not this PR.Fixed Issues
$ #22130
Tests
&backTo=...from the URL and press enterOffline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
DesktopWeb.mp4
Mobile Web - Chrome
Mobile Web - Safari
MobileSafari.mp4
Desktop
Desktop.mp4
iOS
iOS.mp4
Android
Android.mp4