Skip to content

[HOLD] [$500] Currency list for request money/send money not up to date #29822

Closed

Description

@m-natarajan

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:

  1. Open the app
  2. Click on green plus and click on request money/send money
  3. Click on select currency
  4. Search 'AED' or 'AWG' and observe that we don't have symbols for them
  5. Go to settings->workspaces->any workspace->settings->default currency
  6. 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

View all open jobs on GitHub

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 OwnerCurrent Issue Owner: @miljakljajic

Activity

  1. added
    External
    Daily
    Bug
    on Oct 17, 2023
  2. changed the title [-]Currency list for request money/send money not upto date[/-] [+][$500] Currency list for request money/send money not upto date[/+] on Oct 17, 2023
  3. melvin-bot commented on Oct 17, 2023

    @melvin-bot

    Triggered auto assignment to @miljakljajic (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  4. melvin-bot commented on Oct 17, 2023

    @melvin-bot
  5. added
    Help Wanted
    on Oct 17, 2023
  6. melvin-bot commented on Oct 17, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  7. rakshitjain13 commented on Oct 17, 2023

    @rakshitjain13
    Contributor

    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

    1. In Request money
      text: `${currencyCode} - ${CurrencyUtils.getLocalizedCurrencySymbol(currencyCode)}`,
    2. In selecting the default currency for the workspace
      text: getDisplayText(currencyCode, currency.symbol),

      Above use the concept of
      const getDisplayText = (currencyCode, currencySymbol) => `${currencyCode} - ${currencySymbol}`;

    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.js

    const currencySymbol = CurrencyUtils.getLocalizedCurrencySymbol(props.selectedCurrencyCode);

    with

    const currencySymbol = props.currencyList[props.selectedCurrencyCode].symbol;
    

    and currencyList will be passed as

    export default compose(
        withOnyx({
            currencyList: {key: ONYXKEYS.CURRENCY_LIST},
        }),
    )(BaseTextInputWithCurrencySymbolWithRef);
    

    What alternative solutions did you explore? (Optional)

    NA

  8. melvin-bot commented on Oct 17, 2023

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @robertKozik (External)

  9. Charan-hs commented on Oct 17, 2023

    @Charan-hs
    Contributor

    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 getLocalizedCurrencySymbol to get Currency symbol, which uses Locale, 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 workspaces we 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 getLocalizedCurrencySymbol with this

    CurrencyUtils.getCurrencySymbol(currencyCode)

    Note: if we implement this then we lose Locale currency symbol

    What alternative solutions did you explore? (Optional)

    In workspace we can update to use getLocalizedCurrencySymbol to get the currency symbol.
    or
    If we won't get the Currency symbol from getLocalizedCurrencySymbol and rather than returning CurrencyCode, we can add a fallback to CurrencySymbol from CurrencyList.

  10. AliYar-Khan commented on Oct 18, 2023

    @AliYar-Khan

    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:

    1. text: getDisplayText(currencyCode, currency.symbol),

    2. text: `${currencyCode} - ${CurrencyUtils.getLocalizedCurrencySymbol(currencyCode)}`,

    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

  11. DylanDylann commented on Oct 19, 2023

    @DylanDylann
    Contributor

    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?

    1. In Request Money Flow, we use localized symbol for currency
    2. In the workspace, we use normal symbol for currency

    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

    function getLocalizedCurrencySymbol(currencyCode: string): string | undefined {

    and
    function getCurrencySymbol(currencyCode: string): string | undefined {

    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:

    1. If we decide to use normal symbol in both places.
      In here
      text: getDisplayText(currencyCode, currency.symbol),

      and
      text: `${currencyCode} - ${CurrencyUtils.getLocalizedCurrencySymbol(currencyCode)}`,

    We should use getCurrencySymbol instead of in both places

  12. 108 remaining items

  13. s77rt commented on Mar 28, 2024

    @s77rt
    Member

    @cead22 or @miljakljajic Can you please assign me? I'm taking this as C+ replacing @robertKozik

  14. assigned and unassigned on Apr 1, 2024
  15. removed
    Help Wanted
    on Apr 1, 2024
  16. melvin-bot commented on Apr 1, 2024

    @melvin-bot

    📣 @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 📖

  17. DylanDylann commented on May 6, 2024

    @DylanDylann
    Contributor

    #30889 is merged, this issue can't be reproduced anymore

  18. s77rt commented on May 6, 2024

    @s77rt
    Member

    We can close this

  19. dhanashree-sawant commented on May 7, 2024

    @dhanashree-sawant

    Hi @s77rt , @cead22 is this job eligible for reporting bonus?

  20. mallenexpensify commented on May 7, 2024

    @mallenexpensify
    Contributor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugEngineeringExternalMonthly

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions