Repository navigation
fix(AddressPage): country reverts to previous one after selecting state - #45394
Conversation
|
LGTM 🎸 |
|
@hoangzinh 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] |
| if (currentRoute?.path) { | ||
| return currentRoute.path; | ||
| } |
There was a problem hiding this comment.
Is the currentRoute.path incorrect here? Seems that the bug should be fixed in navigationRef.current.getCurrentRoute()
There was a problem hiding this comment.
Indeed navigationRef.current.getCurrentRoute() returns wrong path, it's connected to the fact that when choosing whole address (in addressLine1) we change values of the fields but we don't navigate, so the path is not changing.
However the if condition was added to fix a navigation issue which no longer occurs (even without it)
There was a problem hiding this comment.
Ah I see. Although getPathFromState still suffers from the encoding issue it's seems okay to use for now.
s77rt
left a comment
There was a problem hiding this comment.
@hoangzinh Can you please complete the checklist?
|
@s77rt Yep, actually I'm verifying the solution carefully. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-07-17.at.23.15.29.android.movAndroid: mWeb ChromeScreen.Recording.2024-07-17.at.23.17.14.android.chrome.moviOS: NativeScreen.Recording.2024-07-17.at.23.12.39.ios.moviOS: mWeb SafariScreen.Recording.2024-07-17.at.23.14.47.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2024-07-17.at.23.05.08.web.movMacOS: DesktopScreen.Recording.2024-07-17.at.23.05.51.desktop.mov |
hoangzinh
left a comment
There was a problem hiding this comment.
Looks good. Tested well
|
@mountiny all yours! |
mountiny
left a comment
There was a problem hiding this comment.
Thanks for the fix and apologies for taking longer with the review, been ooo
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.10-2 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.0.10-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.10-7 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.11-5 🚀
|
Details
Fixed Issues
$ #44957
PROPOSAL:
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
android.mov
Android: mWeb Chrome
android-web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
Screen.Recording.2024-07-15.at.16.10.49.mov
MacOS: Chrome / Safari
Screen.Recording.2024-07-15.at.14.23.41.mov
MacOS: Desktop
desktop.mov