Closed lanitochka17 closed 5 months ago
Triggered auto assignment to @laurenreidexpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Platforms
in OP are ✅)In WS currency selection currency name search is not working correctly
We are not considering currency name in the filtration, it is only checks for code and symbol currently. https://github.com/Expensify/App/blob/fe282b45cb13e01519282ccc023e5bfbd7714158/src/pages/workspace/WorkspaceSettingsCurrencyPage.js#L44
We need to add name field also for comparing the search text.
|| currency.name.toLowerCase().includes(trimmedText)
OR
Use the same approach with the regex which we have used in IOUCurrencySelection
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (External
)
Let's use the same pattern as IOUCurrencySelection page as that is more updated. @Pujan92 's proposal looks good to me.
:ribbon: :eyes: :ribbon: C+ reviewed
Triggered auto assignment to @cead22, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
@cead22 bump ^^
@Pujan92 @parasharrajat is there a reason we're not using the same component here, or the same code to display the currencies? It seems like the main reason for this problem could be that we have code in 2 different places doing the same thing
Job added to Upwork: https://www.upwork.com/jobs/~01810f204b38ab0d0d
Current assignee @parasharrajat is eligible for the External assigner, not assigning anyone new.
Readded external label to get the job on Upwork as looks like the API call failed the first time
@Pujan92 @parasharrajat is there a reason we're not using the same component here, or the same code to display the currencies? It seems like the main reason for this problem could be that we have code in 2 different places doing the same thing
The functionality looks the same for both components, I am not sure but tagging @thiagobrez for their input as the workspace currency push page added recently in https://github.com/Expensify/App/pull/27861
@Pujan92 I believe it's because when I worked on this, the IOUCurrencySelection
page was still using the old list, OptionsSelector
, and in #27861 we're using the new implementation SelectionList
. Other differences might come because previously, WS currency selector was using the old pattern with native HTML select, so it didn't need search
@cead22 are you fine to assign now with the additional context?
@thiagobrez @Pujan92 I imagine auto complete in a currency selector is always going to work by looking at the currency, code, and symbol. If that's a safe assumption, would it make sense to design a solution such that all currency selectors moving forward share this functionality?
Not yet @laurenreidexpensify :)
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
Waiting for proposals that are more future-proof
@cead22 @parasharrajat @laurenreidexpensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
Waiting for proposals.
Default currency selection of Workspace has different behavior with IOU currency selection
We are using different two different currency selection list component for the IOU request and workspace default currency setting
We could make a new component: CurrencySelectionList
based on the currency selection list of the IOU Request and use it in IOU request and in the workspace default currency setting.
The CurrencySelectionList could be something like this :
and use it in workspace and iou, for worskapce change the selectionlist section into something like this:
<CurrencySelectionList
textInputLabel={translate('workspace.editor.currencyInputLabel')}
onSelect={onSelectCurrency}
initiallySelectedCurrencyCode={initiallySelectedCurrencyCode}
/>
This is still in progress, so to give a global idea of the component.
Edit:
I will check the differences between the pages and review the proposal accordingly.
Reviewing...
I am about to post the same proposal which @tsa321 has proposed, only change that differs from my idea is to pass selectedCurrencyCode
instead of initiallyFocusedOptionKey
from a parent.
<CurrencySelection
textInputLabel={translate('workspace.editor.currencyInputLabel')}
selectedCurrencyCode={policy.outputCurrency}
onSelectCurrency={confirmCurrencySelection}
/>
Given that both posted proposals are quite the same, let's go with the first one posted by @tsa321 . Also, both proposals differ from our standard pattern.
We should be using CountrySelection
pattern for such pages. These should be URL navigatable.
@tsa321 If you don't have any challenges, let's go with it.
:ribbon: :eyes: :ribbon: C+ reviewed
Current assignee @cead22 is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
📣 @parasharrajat Please request via NewDot manual requests for the Reviewer role ($500)
❌ There was an error making the offer to @tsa321 for the Contributor role. The BZ member will need to manually hire the contributor.
Thank you, my plan is to submit a PR within 3 working days.
@cead22 @parasharrajat @laurenreidexpensify @tsa321 this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!
This issue has not been updated in over 15 days. @cead22, @parasharrajat, @laurenreidexpensify, @tsa321 eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
Update: The PR is waiting for a review.
Update: On it.
PR is still in review
@cead22, @parasharrajat, @laurenreidexpensify, @tsa321, this Monthly task hasn't been acted upon in 6 weeks; closing.
If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead.
This issue is not yet completed. We were on a long hold.
@tsa321 What is your plan for next steps?
@parasharrajat because there are changes in IOU request flow, here is a suggestion from internal engineer : https://github.com/Expensify/App/pull/30889#issuecomment-1915004958 :
Yes, I agree that we should only move forward with
IOURequestStepCurrency
. I don't think it needs to be held on the old component being removed though.
So I am really not sure what is the best next step here...
@parasharrajat What do you think the best next step here? I am agree with whatever the best action here...
@tsa321 let's move forward with https://github.com/Expensify/App/pull/30889#issuecomment-1910679325 steps. Let me know if you have some questions.
@parasharrajat Ok, I am working on it...
@laurenreidexpensify please reopen this issue.
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.4.69-2 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-05-09. :confetti_ball:
For reference, here are some details about the assignees on this issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
Payment Summary:
C+ @parasharrajat requires payment through NewDot Manual Requests $500 Contributor: @tsa321 $500 - offer sent in Upwork, please accept
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
Do you agree 👍 or 👎 ?
@laurenreidexpensify I have accepted the job interview in the upwork. Link: https://www.upwork.com/jobs/~0143fc0e3c3d547cfc
@tsa321 pls accept next step in upwork and i will issue payment thanks
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.84-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
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: Applause - Internal Team
Slack conversation:
Action Performed:
Go to https://staging.new.expensify.com/
Tap on announce room
Tap plus icon----Split bill
Tap currency
Search euro/rupee and note search results displayed
Navigate back to LHN
Tap profile---Workspaces
Tap on a Workspace
Tap on Workspace name
Tap on default currency
Enter euro/ rupee in search field
Expected Result:
In WS default currency section searching for euro/rupee showing "no results found" but in announce room split bill currency drop down searching for euro/rupee showing results. The behavior must not be inconsistent within the site
Actual Result:
In WS default currency section searching for euro/rupee showing "no results found" but in announce room split bill currency drop down searching for euro/rupee showing results. The behaviour is inconsistent within the site
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
https://github.com/Expensify/App/assets/78819774/3da92bde-b004-4e88-895f-7b56da0d049biOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @laurenreidexpensify