Conversation
|
@nyomanjyotisa 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] |
|
Note @joekaufmanexpensify if you want to test this outside dev, you'll have to wait until https://github.com/Expensify/Auth/pull/20370 is deployed |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 098815ef5c
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product. I can QA this on staging once it's ready
49693ce
192502a to
ab51e2f
Compare
|
Ready for re-review @chuckdries, I tested with https://github.com/Expensify/Auth/pull/20395 and confirmed it works great |
src/pages/workspace/receiptPartners/ChangeReceiptBillingAccountPage.tsx
Outdated
Show resolved
Hide resolved
| if (settings?.currency) { | ||
| return settings.currency; | ||
| } |
There was a problem hiding this comment.
@rafecolton I can see that card.nameValuePairs.currency exists on my account, but settings.currency is still unavailable. Is it expected that settings.currency is only available in some cases and not for all accounts?
There was a problem hiding this comment.
Hm I assumed so but I'm actually not sure. What's your accountID? I can look it up.
There was a problem hiding this comment.
this is my AccountID: 18600054
There was a problem hiding this comment.
I found 110 test cards, all are on US workspaces or domains. None of them have currency set, nor do any of ours for any of our US policies, so that seems expected. Importantly, it would produce the correct result here. Currency is always present in the settings for EU/UK account settings.
ab51e2f to
a1cd814
Compare
|
@DylanDylann after merging main, the lint error I observed earlier disappeared. Note that until https://github.com/Expensify/Auth/pull/20395 is deployed, currency will always display USD for physical cards until they are ordered. Once a physical card is ordered and awaiting activation, it will show the correct currency. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
@Beamanator 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] |
|
🎯 @DylanDylann, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #85301. |
|
@rafecolton I haven’t tested with a UK/EU card yet because I need Jairo to run his server so I can use his testing account. I can do that on Monday, but I approved first in case we want to merge this PR soon. |
|
🚧 @chuckdries has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/chuckdries in version: 9.3.39-0 🚀
|
|
Tested and works well on staging! |
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.39-3 🚀
|




Explanation of Change
We were relying on
getCurrencyKeyByCountryCodeto determine what card currency to show. While the function did literally what the name suggested, the country's currency is not necessarily the card program currency.There is no list of card program currency by country in App, so instead of duplicating the list, which would be brittle, or pulling in the list to App, we add currency to the card NVPs sent by Auth (see https://github.com/Expensify/Auth/pull/20370)
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/610038
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as tests
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))npm run compress-svg)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
Before:
After:
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari