-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-06-13] [$1000] Contact Method - Validation error message doesn't disappear upon requesting new magic code #19471
Comments
Triggered auto assignment to @puneetlath ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~013b03109026ba1aa6 |
Current assignee @puneetlath is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Current assignee @puneetlath is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Validation error message doesn't disappear upon requesting new magic code What is the root cause of that problem?While requesting the new magic code we are not cleaning the previous error in the onyx which seems the cause for the issue. What changes do you think we should make in order to solve the problem?Add a line to reset errorField Lines 136 to 138 in 228f409
To fix the above point from this comment we need to clear the validate code field and focus the same we need below two functions call required within
Resulthttps://github.com/Expensify/App/assets/14358475/31610824-7b99-4551-a14a-5a5c77c6aa58 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Validation error message doesn't disappear when requesting new magic code What is the root cause of that problem?The validation error message is passed to this component as App/src/pages/settings/Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js Lines 154 to 159 in e9f6a37
Here Line 76 in e9f6a37
App/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.js Lines 293 to 295 in e9f6a37
The root cause of this issue is here. We only set Lines 130 to 144 in e9f6a37
What changes do you think we should make in order to solve the problem?We need to reset the Lines 136 to 138 in e9f6a37
with
And add the following code here App/src/pages/settings/Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js Lines 80 to 82 in 12b9b0e
And the following code isn't needed and remove it. App/src/pages/settings/Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js Lines 69 to 75 in 12b9b0e
This works perfectly Mac Chromemac_chrome_19471.mp4What alternative solutions did you explore? (Optional) |
@puneetlath Can you please clarify the expected output? As of now, when user presses "Resend Magic Code", only after receiving api response, "Link has been re-sent" message is displayed and input in cleared. So, would we expect the error to be cleared as soon as the user presses "Resend Magic Code"? IMO, we should clear and refocus the input magic code and clear the error as soon as user presses "Resend Magic Code". And show "Link has been re-sent" message only after user receives the api response. |
@sobitneupane I agree with that. That sounds good. |
@Pujan92 Would you like to update your proposal to yield this outcome? |
@sobitneupane |
@sobitneupane I just updated my proposal. |
Proposal |
Proposal from @Pujan92 looks good to me. 🎀👀🎀 C+ reviewed |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
📣 @Pujan92 You have been assigned to this job by @puneetlath! |
@sobitneupane @puneetlath PR is ready for review! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.24-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-06-13. 🎊 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.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
Triggered auto assignment to @lschurr ( |
This comment was marked as outdated.
This comment was marked as outdated.
Sent Upwork hiring offers. @lschurr adding you for payment since I'll be OOO next week. Thanks! |
Not overdue. This will be paid tomorrow. |
https://expensify.slack.com/archives/C049HHMV9SM/p1686632713430389 |
Regression Test Proposal
Do we agree 👍 or 👎 |
Cool - these have been paid. I'll create a GH for a new regression test today. |
All set. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR #19040
Action Performed:
Expected Result:
Input is cleared and you are focused on the first input box. Error message should disappear.
Actual Result:
Input is cleared and focused on the first input, but error message still persists requesting a new code and try again.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.17.0
Reproducible in staging?: Yes
Reproducible in production?: n/a
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
Notes/Photos/Videos: Any additional supporting documentation
https://platform.applause.com/services/links/v1/external/d3721b2fe38422b24fa746eb47d7892d16fccf9337780c8d13264980a75745e8
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: