-
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
[$500] Contact methods - Two error messages appear the same time #33061
Comments
Triggered auto assignment to @NicMendonca ( |
Job added to Upwork: https://www.upwork.com/jobs/~01f249f131d8120932 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Two error messages appear the same time What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)If we want to display both errors at the same time, we should move them to 1 single location, either below of above the button, so it'll be 2 lines of errors. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Magic code shows error while other error is still shown What is the root cause of that problem?The error for the maximum retries is shown regardless of the validateLoginError is empty or not. App/src/pages/settings/Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js Line 198 in 207d4ac
What changes do you think we should make in order to solve the problem?Add a condition so that it only shows then the <OfflineWithFeedback
pendingAction={lodashGet(loginData, 'pendingFields.validateCodeSent', null)}
errors={_.isEmpty(validateLoginError) ? ErrorUtils.getLatestErrorField(loginData, 'validateCodeSent') : null}
errorRowStyles={[styles.mt2]}
onClose={() => User.clearContactMethodErrors(props.contactMethod, 'validateCodeSent')}
> What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.Two error messages appear the same time What is the root cause of that problem?we have several issues ( What changes do you think we should make in order to solve the problem?
<OfflineWithFeedback
pendingAction={_.isEmpty(validateLoginError)? lodashGet(loginData, 'pendingFields.validateCodeSent', null) : lodashGet(loginData, 'pendingFields.validateLogin', null)}
errors={_.isEmpty(validateLoginError)? ErrorUtils.getLatestErrorField(loginData, 'validateCodeSent') : validateLoginError}
errorRowStyles={[styles.mt2]}
onClose={() => _.isEmpty(validateLoginError)? User.clearContactMethodErrors(props.contactMethod, 'validateCodeSent') : User.clearContactMethodErrors(props.contactMethod, 'validateLogin')}
>
<OfflineWithFeedback
pendingAction={_.isEmpty(validateLoginError)? lodashGet(loginData, 'pendingFields.validateCodeSent', null) : null}
errors={_.isEmpty(validateLoginError)? ErrorUtils.getLatestErrorField(loginData, 'validateCodeSent') : null}
errorRowStyles={[styles.mt2]}
onClose={() => _.isEmpty(validateLoginError)? User.clearContactMethodErrors(props.contactMethod, 'validateCodeSent') : {}}
> What alternative solutions did you explore? (Optional)We can get respected result. Screen.Recording.2023-12-17.at.7.53.16.PM.mov |
Proposal here by @dukenv0307 looks good to me. 🎀 👀 🎀 C+ Reviewed |
Triggered auto assignment to @cristipaval, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
please check this discussion before going ahead |
@c3024 My proposal has been updated. |
@aimane-chnaif I think this case is different, I commented on the thread |
Since two components are created at each place these doesn't need to be one components. Because the developer designed each errors to show below each components(If 2 become one components then the error message only show on one functions place). When maximum request error occurs, the error shows below the clickable resend magic code guide. When verifying fails, incorrect error shows below the verify button. |
Seems there is no condition to decide which one is showed between verifying error and maximum request error. I found <OfflineWithFeedback
pendingAction={lodashGet(loginData, 'pendingFields.validateCodeSent', null)}
errors={ErrorUtils.getLatestErrorField(loginData, 'validateCodeSent')}
//new condition below:
shouldShowErrorMessages={isVerifyingFailed}
//new condition above
errorRowStyles={[styles.mt2]}
onClose={() => User.clearContactMethodErrors(props.contactMethod, 'validateCodeSent')}
> |
📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@c3024 The PR is ready for review. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.15-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-12-29. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
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:
|
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:
|
Regression Test Proposal
👍 or 👎 |
@cristipaval, @NicMendonca, @c3024, @dukenv0307 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I wonder why Melvin didn't remove the hold 👀 |
@cristipaval @NicMendonca @c3024 @dukenv0307 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! |
@NicMendonca, What is the payment status here? |
@c3024 / @dukenv0307 - you've both been paid via upwork |
all set here |
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: v1.4.12-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: Applause-Internal Team
Slack conversation: @
Action Performed:
Didn't receive a magic code?
until you get an error messageExpected Result:
The previous error disappears when the next one appears
Actual Result:
Two error messages appear the same time
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6312958_1702554590620.bandicam_2023-12-13_20-47-27-664.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: