Repository navigation
Description
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.85-1
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697535573916749
Action Performed:
- Open the app
- Click on green plus and click on request money/send money
- Click on select currency
- Search 'AED' or 'AWG' and observe that we don't have symbols for them
- Go to settings->workspaces->any workspace->settings->default currency
- Search for 'AED' or 'AWG' and observe that we have symbols for them in that currency list
Expected Result:
Currency list should be upto date throughout the app
Actual Result:
Currency list of request money/ send money has many missing symbols and is not upto date as workspace default currency list
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- Android: Native
- Android: mWeb Chrome
- iOS: Native
- iOS: mWeb Safari
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Android: Native
Android.native.currency.list.not.upto.date.mp4
Android: mWeb Chrome
Android.chrome.currency.list.is.not.upto.date.mp4
iOS: Native
ios.native.currency.list.not.upto.date.mov
iOS: mWeb Safari
ios.safari.currency.list.not.upto.date.mov
MacOS: Chrome / Safari
mac.chrome.currency.list.not.upto.date.mov
Recording.115.mp4
MacOS: Desktop
mac.desktop.currency.list.not.upto.date.mov
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01726365c65211c39c
- Upwork Job ID: 1714364607492071424
- Last Price Increase: 2023-11-07
- Automatic offers:
- s77rt | Contributor | 0
Issue Owner
Current Issue Owner: @miljakljajicMetadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]Currency list for request money/send money not upto date[/-][+][$500] Currency list for request money/send money not upto date[/+]melvin-bot commentedon Oct 17, 2023
Triggered auto assignment to @miljakljajic (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Oct 17, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01726365c65211c39c
melvin-bot commentedon Oct 17, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)rakshitjain13 commentedon Oct 17, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Currency list for request money/send money not up to date
What is the root cause of that problem?
There is inconsistency about how to show text in the list
App/src/pages/iou/IOUCurrencySelection.js
Line 99 in 12d3669
App/src/pages/workspace/WorkspaceSettingsCurrencyPage.js
Line 58 in 12d3669
Above use the concept of
App/src/pages/workspace/WorkspaceSettingsCurrencyPage.js
Line 34 in 12d3669
What changes do you think we should make in order to solve the problem?
We should implement the same logic as we implemented in selecting the default currency for the workspace, i.e., 2 points above
if we go with the second option
We have to also update the following things in
BaseTextInputWithCurrencySymbol.jsApp/src/components/TextInputWithCurrencySymbol/BaseTextInputWithCurrencySymbol.js
Line 11 in 6389c2d
with
and currencyList will be passed as
What alternative solutions did you explore? (Optional)
NA
melvin-bot commentedon Oct 17, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @robertKozik (
External)Charan-hs commentedon Oct 17, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Currency list for request money/send money not upto date
What is the root cause of that problem?
here we are using
getLocalizedCurrencySymbolto get Currency symbol, which usesLocale, defines which Symbol to use based on locality. for example for the US Dollar, the symbol is "$" if the default locale is the US, while for other locales it may be "US$". If no symbol can be determined, the ISO 4217 currency code is returned.In
workspaceswe are using the ISO 4217 list to determine the Currency symbol so it contains all Standard currency symbols.What changes do you think we should make in order to solve the problem?
here we replace
getLocalizedCurrencySymbolwith thisWhat alternative solutions did you explore? (Optional)
In
workspacewe can update to usegetLocalizedCurrencySymbolto get the currency symbol.or
If we won't get the Currency symbol from
getLocalizedCurrencySymboland rather than returningCurrencyCode, we can add a fallback toCurrencySymbolfromCurrencyList.AliYar-Khan commentedon Oct 18, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Currency list for request money/send money not upto date. Missing currency symbols
What is the root cause of that problem?
We have inconsistency in the code at both locations where currency with symbols are being placed:
App/src/pages/workspace/WorkspaceSettingsCurrencyPage.js
Line 58 in 12d3669
App/src/pages/iou/IOUCurrencySelection.js
Line 99 in 12d3669
What changes do you think we should make in order to solve the problem?
use the workspace settings method we will get the same results i.e currency code with symbols
What alternative solutions did you explore? (Optional)
N/A
DylanDylann commentedon Oct 19, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Currency list for request money/send money not upto date
What is the root cause of that problem?
It causes the consistency
What changes do you think we should make in order to solve the problem?
we had both functions to get normal symbol and localized symbol
App/src/libs/CurrencyUtils.ts
Line 45 in b38171d
and
App/src/libs/CurrencyUtils.ts
Line 56 in b38171d
First, we need to confirm that we should use normal or localized symbols. And then use that function in the both places to avoid consistency
Updated:
In here
App/src/pages/workspace/WorkspaceSettingsCurrencyPage.js
Line 58 in 12d3669
and
App/src/pages/iou/IOUCurrencySelection.js
Line 99 in 12d3669
We should use getCurrencySymbol instead of in both places
108 remaining items
s77rt commentedon Mar 28, 2024
@cead22 or @miljakljajic Can you please assign me? I'm taking this as C+ replacing @robertKozik
melvin-bot commentedon Apr 1, 2024
📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
DylanDylann commentedon May 6, 2024
#30889 is merged, this issue can't be reproduced anymore
s77rt commentedon May 6, 2024
We can close this
dhanashree-sawant commentedon May 7, 2024
Hi @s77rt , @cead22 is this job eligible for reporting bonus?
mallenexpensify commentedon May 7, 2024
Unfortunately not @dhanashree-sawant . The PR that fixed this was from a bug issue that was reported 3 days before your report. #29618
There wasn't a PR raised for this one, it was just on hold (for forever).