-
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-06-21] [$1000] Login - "Magic code sent" below email field after go back from code input page offline #19867
Comments
Triggered auto assignment to @sakluger ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Login - "Magic code sent" below email field after go back from code input page offline What is the root cause of that problem?We allowed to resend the magic code when it was offline, so after user pressed resend magic code and pressed back, later when user was back online, the data from server will fill the account data, which has the message inside. App/src/pages/signin/LoginForm.js Lines 196 to 202 in 31740a1
What changes do you think we should make in order to solve the problem?Since we disabled the Signin button when it's offline, it'd better to disable the const disableStyles = this.props.network.isOffline ? styles.opacity50 : {}
<PressableWithFeedback
style={[styles.mt2, disableStyles]}
onPress={this.resendValidateCode}
underlayColor={themeColors.componentBG}
hoverDimmingValue={1}
pressDimmingValue={0.2}
disabled={this.props.network.isOffline}
accessibilityRole="button"
accessibilityLabel={this.props.translate('validateCodeForm.magicCodeNotReceived')}
>
<Text style={[styles.link]}>{this.props.translate('validateCodeForm.magicCodeNotReceived')}</Text>
</PressableWithFeedback> What alternative solutions did you explore? (Optional)N/A |
Job added to Upwork: https://www.upwork.com/jobs/~01a43ea4a6751f6484 |
Current assignee @sakluger is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Triggered auto assignment to @pecanoro ( |
Reproduced and agree that this is a bug. I like @hungvu193's proposal to just remove the "Didn't receive magic link" link when offline, curious to hear @pecanoro and @sobitneupane's thoughts. |
I'm going to be OOO all next week, so I'm going to add another BugZero assignee to keep this moving while I'm out. |
Triggered auto assignment to @trjExpensify ( |
I don't think we should "remove" the link. If it's following pattern C, it should appear disabled. Looking up the offline support in the Passwordless doc it should be following pattern c - so not sure where that got broken. CC: @johnmlee101 @NikkiWines (Link on below only accessible by internal employees)
|
I think my proposal is only to disable the button when user's offline. |
I agree with @trjExpensify. We should disable the |
How should |
Yes, I suspect the opacity would be reduced to 50%. Though @NikkiWines, how did this look on original implementation from the doc? CC: @shawnborton |
is this issue opening for proposal? |
50% opacity sounds good to me, not sure we had specific styling outlined in the doc + the UI has changed a bunch from the original implementation as well 😅 |
@hungvu193 Please take your time to test and update your proposal. We want 50% opacity only when user if offline not always. |
@sobitneupane my bad 😄 . I've updated it again |
Thanks @hungvu193. Proposal from @hungvu193 looks good to me. 🎀👀🎀 C+ reviewed |
Sounds good! Assigning @hungvu193 |
📣 @hungvu193 You have been assigned to this job by @pecanoro! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.27-7 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-21. 🎊 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:
|
Thanks for the fast work! This one qualifies for the efficiency bonus. As soon as the 7-day hold is over and the BZ checklist is complete, I can pay out and close. |
Hey @sobitneupane mind finishing the BZ checklist so I can complete payment? Thanks! |
Bump @sobitneupane |
https://expensify.slack.com/archives/C049HHMV9SM/p1687539235356429
I don't think we need a separate regression test here. |
Thanks! We're all good 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!
Action Performed:
Expected Result:
No messages appear in email input screen after going back online
Actual Result:
A message "Magic code sent!" appears below the email input field after going back online
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.20-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
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/3d4252eff76baa6e91d6bee9290541864472ccb83d454db8509a2e5b6d7b07a8
https://platform.applause.com/services/links/v1/external/fc6da469ebfd90d76b6b239a7f2a9b7c235e9e50e2d12c1a85ecaa3245110f37
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: