-
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] Sign in - Auto Sign-In Fails When Entering Correct Magic Code After an Incorrect One #31798
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01eeb6f4313958fefe |
Triggered auto assignment to @garrettmknight ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Auto Sign-In Fails When Entering Correct Magic Code After an Incorrect One. What is the root cause of that problem?The issue is caused by this PR: #29731. App/src/components/MagicCodeInput.js Lines 133 to 138 in f52c59d
The PR prevents resubmitting the code again if the user updated digits. It was supposed to prevent resubmitting every time if the user updated only one digit. What changes do you think we should make in order to solve the problem?We can fix this issue by resetting App/src/components/MagicCodeInput.js Lines 186 to 190 in f52c59d
For this, we can update onChangeText function by adding below code.
This code will check if the user completed inputting last digit and allow resubmitting again. What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.After initial submission of magic code, auto sign-in does not happen on entering the correct magic code again. What is the root cause of that problem?There was a lengthy discussion on the issue of auto sign-in after initial submission of incorrect magic code. All the available options had been summarised here. However, the final conclusion was to ignore auto sign-in after initial incorrect submission and PR for the issue implemented manually submission if the magic code was submitted incorrectly for the first time. This is the reason why auto sign-in does not work here. What changes do you think we should make in order to solve the problem?To allow auto sign-in post initial incorrect submission, we need to reset the
If we do not check that all the other inputs are set already, the user will notice that sometimes keying in any input within the magic code also triggers resubmission which is not a consistent behaviour for users. Additionally, post initial incorrect submission, the focus on the magic code text input is lost for the user. So, the user is forced to select any one input and, then, proceed. Here, on
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
const validateAndSubmit = () => {
const numbers = decomposeString(props.value, props.maxLength);
+ if (!props.shouldSubmitOnComplete || _.filter(numbers, (n) => ValidationUtils.isNumeric(n)).length !== props.maxLength || props.network.isOffline) {
return;
}
if (!wasSubmitted) {
setWasSubmitted(true);
}
+ if (wasSubmitted) {
+ debounceBlurMagicCodeInputAndCallOnFulfill();
+ return;
}
blurMagicCodeInput();
props.onFulfill(props.value);
}; What alternative solutions did you explore? (Optional)
|
@garrettmknight, @mananjadhav Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Reviewing this now. |
I think this is a non-issue. Considering we explicitly removed the auto-submission, do we want to add it again here? cc - @garrettmknight @shawnborton @Expensify/design Your inputs please. |
This is intentional after #28019 |
Agreed. |
Cool, I think we can close then |
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.4.3-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 - Interanal Team
Slack conversation:
Action Performed:
Expected Result:
When entering the correct magic code after an incorrect one, it should automatically sign in
Actual Result:
Auto Sign-In Fails When Entering Correct Magic Code After an Incorrect One
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6288542_1700746451421.2023-11-22_17-11-31.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: