You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$500] Merchant entry field should clear when editing the merchant name that is missing #32780
changed the title [-]Merchant entry field should clear when editing the merchant name that is missing [/-][+][$500] Merchant entry field should clear when editing the merchant name that is missing [/+]on Dec 9, 2023
Please re-state the problem that we are trying to solve in this issue.
The merchant field should clear when editing the merchant name that is missing
What is the root cause of that problem?
none is returned from the backend in case the merchant is empty
What changes do you think we should make in order to solve the problem?
we check if the returned value is (none) and display it as empty string or add a placeholder and asign it (none) in casse we still want to show (none) and clear it on changing the value
Please re-state the problem that we are trying to solve in this issue.
Merchant name input is showing none as placeholder but when we try to edit then text is none text is not clearing from prefix
What is the root cause of that problem?
On the MoneyRequestView we check if the merchat name is empty(is equal to "(none)") and has errors from BE then show the brickRoadIndicator but when we press edit then we does not check same thing at edit request page here
What changes do you think we should make in order to solve the problem?
I think instead of displaying blank, we should auto-select the text input if the value of merchant is the default. Add selectTextOnFocus prop into the merchant input.
Activity
[-]Merchant entry field should clear when editing the merchant name that is missing [/-][+][$500] Merchant entry field should clear when editing the merchant name that is missing [/+]melvin-bot commentedon Dec 9, 2023
Job added to Upwork: https://www.upwork.com/jobs/~017434affbfc54ad52
melvin-bot commentedon Dec 9, 2023
Triggered auto assignment to @conorpendergrast (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Dec 9, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Dec 9, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh (
External)namhihi237 commentedon Dec 9, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The merchant field should clear when editing the merchant name that is missing
What is the root cause of that problem?
Currently, we use the default value
(none)when create a transactionWhat changes do you think we should make in order to solve the problem?
We can check if is default value is
(none)we will show empty this field inEditRequestMerchantPageWhat alternative solutions did you explore? (Optional)
N/A
abzokhattab commentedon Dec 9, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The merchant field should clear when editing the merchant name that is missing
What is the root cause of that problem?
none is returned from the backend in case the merchant is empty

What changes do you think we should make in order to solve the problem?
we check if the returned value is
(none)and display it as empty string or add a placeholder and asign it (none) in casse we still want to show (none) and clear it on changing the valuewe can do that by changing this:
App/src/pages/EditRequestMerchantPage.js
Lines 54 to 66 in 134f72a
to:
jayeshmangwani commentedon Dec 9, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Merchant name input is showing none as placeholder but when we try to edit then text is none text is not clearing from prefix
What is the root cause of that problem?
On the MoneyRequestView we check if the merchat name is empty(is equal to "(none)") and has errors from BE then show the brickRoadIndicator but when we press edit then we does not check same thing at edit request page here
App/src/pages/EditRequestPage.js
Lines 185 to 188 in 632c5c6
App/src/pages/EditRequestPage.js
Line 82 in 632c5c6
and we directly pass the BE value, in this case it will be (none) from the BE
What changes do you think we should make in order to solve the problem?
We should add the same check on the edit page, if the server response has error and value is "(none)" then pass the empty string as default value
Logic at MoneyRequestView for showing error
App/src/components/ReportActionItem/MoneyRequestView.js
Lines 246 to 247 in 632c5c6
Can use same logic on the edit page
App/src/pages/EditRequestPage.js
Line 188 in 632c5c6
We should create a common util for this and we should use at
MoneyRequestViewandEditRequestPageor ant other page where we need same logicWhat alternative solutions did you explore? (Optional)
N/A
dukenv0307 commentedon Dec 10, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Default merchant doesn't clear when editing the merchant name
What is the root cause of that problem?
We always set default value for merchant as the correct value
App/src/pages/EditRequestMerchantPage.js
Line 59 in 632c5c6
What changes do you think we should make in order to solve the problem?
I think instead of displaying blank, we should auto-select the text input if the value of merchant is the default. Add
selectTextOnFocusprop into the merchant input.What alternative solutions did you explore? (Optional)
19 remaining items
melvin-bot commentedon Jan 4, 2024
@conorpendergrast, @fedirjh Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
fedirjh commentedon Jan 5, 2024
Not overdue , just waititng for close.
melvin-bot commentedon Jan 6, 2024
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon Jan 6, 2024
@conorpendergrast @fedirjh this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks!
melvin-bot commentedon Jan 6, 2024
Current assignee @fedirjh is eligible for the Internal assigner, not assigning anyone new.
fedirjh commentedon Jan 6, 2024
This is already fixed, check #32780 (comment).
conorpendergrast commentedon Jan 8, 2024
Ah, I was OoO. Thanks for finding that @fedirjh !