-
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(AddressPage): country reverts to previous one after selecting state #45394
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the currentRoute.path
incorrect here? Seems that the bug should be fixed in navigationRef.current.getCurrentRoute()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see. Although getPathFromState
still suffers from the encoding issue it's seems okay to use for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Tested well
@mountiny all yours! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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.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