-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Delay in showing new currency when selecting a new currency #42183
Delay in showing new currency when selecting a new currency #42183
Conversation
@rojiphil |
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.
I have left few comments for consideration. Please check.
@@ -0,0 +1,13 @@ | |||
export default function setNavigationActionToMicrotaskQueue(nabigationAction: () => void) { |
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.
Let us use the correct word i.e. navigationAction
here
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.
Sorry, but what do you mean?
If you are talking about a mistake in a word, I have already fixed 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.
I am referring to nabigationAction
which doesn't seem correct.
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.
Oh
Sorry
You're right )
I didn't notice in these places
Thank you
src/libs/actions/Policy.ts
Outdated
Navigation.navigate(featureRoute); | ||
}); | ||
}); | ||
Navigation.setNavigationActionToMicrotaskQueue(() => Navigation.navigate(featureRoute)); |
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.
NAB but as we made changes here, let us add a test case to avoid possible regression.
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.
Done )
@@ -20,7 +20,7 @@ function WorkspaceProfileCurrencyPage({policy}: WorkspaceProfileCurrencyPageProp | |||
|
|||
const onSelectCurrency = (item: CurrencyListItem) => { | |||
Policy.updateGeneralSettings(policy?.id ?? '', policy?.name ?? '', item.currencyCode); | |||
Navigation.goBack(); | |||
Navigation.setNavigationActionToMicrotaskQueue(Navigation.goBack); |
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.
NAB but same here. Let us add a test case for this to avoid possible regression.
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safari42183-web-safari.mp4Android: Native42183-android-native.mp4Android: mWeb Chrome42183-mweb-chrome.mp4iOS: Native42183-ios-native.mp4iOS: mWeb Safari42183-mweb-safari.mp4MacOS: Desktop42183-desktop.mp4 |
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. LGTM and tests well too.
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!
[Currently held on merge freeze] |
@ZhenjaHorbach There are conflicts here. Please resolve. |
Seems fine from a design-perspective too. |
✋ 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/amyevans in version: 1.4.77-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
Details
Delay in showing new currency when selecting a new currency
Fixed Issues
$ #41515
PROPOSAL: #41515 (comment)
Tests
Offline tests
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
2024-05-17.20.34.07.mov
Android: mWeb Chrome
android.mov
2024-05-17.20.34.07.mov
iOS: Native
ios.mov
2024-05-17.20.32.01.mov
iOS: mWeb Safari
ios-web.mov
2024-05-17.20.38.39.mov
MacOS: Chrome / Safari
web.mov
2024-05-17.20.35.40.mov
MacOS: Desktop
desktop.mov
2024-05-17.20.40.13.mov