-
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
User facing errors and messages on success / failure of magic code sending #14854
Conversation
@dangrous @Santhosh-Sellavel One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@dangrous @eVoloshchak One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@NikkiWines this is ready for your review - comment is updated! As for the test/QA steps, it's tricky. I've updated them to be clearer, but we're looking for one error message that will show if you hit the throttle when clicking "Didn't receive a magic code?" - which is The steps I put above hit these in the right order pretty regularly, but it looks like that wasn't the case for you - were you maybe using an Expensify email with a different limit? I want to make sure this will be easily grabbable by QA... |
Hmm, yeah tbh I'm not sure why we have such a minor difference in copy for effectively the same error message (with the same outcome - wait for a bit and try again) I'll try again - I was just using a random dev email, not an expensify/expensifail domain one |
We can keep it the same I guess? We need a specific message there otherwise it uses the generic "contact concierge" and it's set in a different place. But we could use the same one. In this case I felt it might be confusing to talk about magic codes where there is no reference on the page to magic codes... so tried to give it a bit more context here, but definitely open for discussion |
Ah, I see. No, I think its fine. Tried once more and it's working as expected and I think the steps are sufficiently clear 👍 |
Okay conflicts resolved, @Santhosh-Sellavel we should be ready for your review now! (the backend change is on prod) |
@Beamanator @dangrous Can anyone add my account |
@Santhosh-Sellavel I've added that email to the beta, it make take a little while for it to apply to your account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
How long is the wait time here to try again after the error? @Beamanator @dangrous @NikkiWines santhoshsellavel+beta1@gmail.com |
2 hours assuming you don't hit the IP throttling. I am able to remove the throttling for your account if necessary @Santhosh-Sellavel
done |
Cool, I saw both error messages, I'll quickly test success cases and capture possible error scenarios. Thanks! |
I'll test this tomorrow! |
Reviewer Checklist
Screenshots/VideosWeb & DesktopScreen.Recording.2023-02-23.at.10.19.39.PM.movMobile Web - Chrome & Mobile Web - SafariScreen.Recording.2023-02-23.at.10.38.39.PM.moviOS & AndroidScreen.Recording.2023-02-23.at.10.42.22.PM.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, tests well!
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
🚀 Deployed to staging by https://github.com/NikkiWines in version: 1.2.76-5 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.2.76-7 🚀
|
1 similar comment
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.2.76-7 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.2.76-7 🚀
|
const optimisticData = [{ | ||
onyxMethod: CONST.ONYX.METHOD.MERGE, | ||
key: ONYXKEYS.ACCOUNT, | ||
value: { | ||
isLoading: true, | ||
errors: null, | ||
message: null, | ||
}, | ||
}]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the loading
state to true
caused a "regression". This made the sign in button show a loader which is kinda odd because the user didn't click on that button. (Coming from #22083)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense, thank you!
Details
A bit of #passwordless polish
Fixed Issues
$ #14687
Tests
delete from nameValuePairs where name glob 'private_throttleAttempts_resendValidateCode*';
in your local db).You've reached the maximum number of magic codes. Please wait a few minutes and try again.
You need a magic code to sign in, but you've reached the maximum number of magic codes that can be sent. Please wait a few minutes and try again.
Offline tests
N/A
QA Steps
You've reached the maximum number of magic codes. Please wait a few minutes and try again.
You need a magic code to sign in, but you've reached the maximum number of magic codes that can be sent. Please wait a few minutes and try again.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android