-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2023-11-22] [$500] Request Money - Error Does not disappear when returning back #29774
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.Error Does not disappear when returning back in request money What is the root cause of that problem?Currently when user switches between tabs in request money iou, component MoneyRequestAmountForm will not unmount and still has What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Error message doesn't clear when changing tabs and coming back. What is the root cause of that problem?The root cause of this problem is here in the App/src/pages/iou/steps/MoneyRequestAmountForm.js Lines 136 to 138 in be44c93
But we are not clearing the error when the selected tab is changed. What changes do you think we should make in order to solve the problem?We can pass a prop App/src/pages/iou/steps/NewRequestAmountPage.js Lines 153 to 160 in be44c93
like this: <MoneyRequestAmountForm
isEditing={isEditing}
currency={currency}
amount={iou.amount}
ref={(e) => (textInput.current = e)}
onCurrencyButtonPress={navigateToCurrencySelectionPage}
onSubmitButtonPress={navigateToNextPage}
selectedTab={selectedTab} //Add this line
/> and add a useEffect on useEffect(() => {
setFormError('');
}, [selectedTab]); What alternative solutions did you explore? (Optional)We can also follow the pattern we used on App/src/components/DistanceRequest/index.js Lines 99 to 111 in 4c1ae82
Instead of passing the selectedTab to MoneyRequestAmountForm we can pass the transactionID
<MoneyRequestAmountForm
isEditing={isEditing}
currency={currency}
amount={iou.amount}
ref={(e) => (textInput.current = e)}
onCurrencyButtonPress={navigateToCurrencySelectionPage}
onSubmitButtonPress={navigateToNextPage}
transactionID={iou.transactionID} //Add this line
/> and add a useEffect on useEffect(() => {
setFormError('');
}, [transactionID]); |
Triggered auto assignment to @strepanier03 ( |
Job added to Upwork: https://www.upwork.com/jobs/~01b128a1e4d22d1251 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Will review proposals today |
@strepanier03 Yes easy to recreate but is that expected behavior can you check and confirm with the Product team, please? |
@strepanier03, @Santhosh-Sellavel Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Raised it @Santhosh-Sellavel - My recommendation is for closing it because the error is correct, the amount is still invalid. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@strepanier03 if you do the same thing in 'distance' section, the error is dismissed when going back. Switch to distance > click next. Notice an error is shown |
I'll have to circle back to this next week. |
Any update @strepanier03? |
I didn't get any traction on the discussion raised. It makes sense to me we should be consistent in this behavior and in the example @daveSeife shared we do clear the error when switching. Let's move forward with being consistent with that. |
@strepanier03 @Santhosh-Sellavel 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! |
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:
|
@dangrous, @strepanier03, @Santhosh-Sellavel, @DylanDylann Eep! 4 days overdue now. Issues have feelings too... |
_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:
|
My apologies for the delay here everyone! I was out most of last week for the US holiday but I'm working on this now and will have an update shortly. |
@daveSeife and @DylanDylann - I've paid you both via Upwork and ended the contracts, thanks again for being part of the community! @Santhosh-Sellavel - Please post the checklist responses as soon as you have the time to do so and I'll move this forward. Once the checklist is done I'lll post the payment summary for your manual request. Thanks! |
@Santhosh-Sellavel - Sorry I missed your comment right before mine yesterday with the checklist. It appears empty to me though, was that a bad copy paste? |
Regression Test StepsBug: Request Money - Error Does not disappear when returning back Steps
|
Thanks @Santhosh-Sellavel - I'll work on the regression test now and then post the payment summary. |
Payment summary
@JmillsExpensify @Santhosh-Sellavel - Please submit your Manual Request for payment. |
This can be closed once your request is paid. Let me know or close if you can. |
@Santhosh-Sellavel - Have you submitted your request for payment yet? |
@JmillsExpensify, @dangrous, @strepanier03, @Santhosh-Sellavel, @DylanDylann Huh... This is 4 days overdue. Who can take care of this? |
Yes submitted last week, yet to receive payment. |
@JmillsExpensify - Friendly bump on the payment for the C+. Santhosh says they submitted their request last week. Feel free to close this GH once you pay it or @mention me so I can do ti. |
@Santhosh-Sellavel Did you potentially submit on the old workspace? This is the chat room/workspace you should be using for report submissions. I announced in Slack, though no worries if you missed it. |
Moved Request to new workspace |
Thank you @Santhosh-Sellavel for moving that and @JmillsExpensify for checking in and helping us wrap this up. |
I think we're just waiting on payment of the (new) request, right? Anything else we need? |
$500 payment approved for @Santhosh-Sellavel based on this comment. |
P.S. @strepanier03 In the future, no need to hold issues open for NewDot payments. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.3.85.0
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: @daveSeife
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697510382480569
Action Performed:
Notice an error will appear.
Notice the error is still there
Expected Result:
Error disappears when returning back
Actual Result:
Error Does not disappear when returning back
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
XRecorder_17102023_053114.mp4
Android: mWeb Chrome
XRecorder_17102023_053023.mp4
iOS: Native
RPReplay_Final1697510044.MP4
iOS: mWeb Safari
RPReplay_Final1697510004.MP4
MacOS: Chrome / Safari
T159macchrome.Error.After.Going.Back-1.mp4
Recording.5033.mp4
MacOS: Desktop
T159macdesk.Error.When.Going.Back-1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @JmillsExpensifyThe text was updated successfully, but these errors were encountered: