Add timer to prevent over clicking of didn't receive a magic code button #20732
Conversation
|
@s77rt @roryabraham 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] |
minor style/comment adjustments
|
thanks for the review @s77rt 🙇 updated! |
Reviewer Checklist
Screenshots/VideosWebweb.mp4Mobile Web - Chromemweb-chrome.mp4Mobile Web - Safarimweb-safari.mp4Desktopdesktop.mp4iOSios.mp4Androidandroid.mp4 |
|
Looks good but we have conflicts |
…send-validate-code-timer
remove linkSent logic
…/Expensify/App into nikki-resend-validate-code-timer
|
updated once more to resolve conflicts |
|
Retested. Working well 👍 |
| textAlign: 'center', | ||
| }, | ||
|
|
||
| validateCodeTimer: { |
There was a problem hiding this comment.
Actually, this style is a duplicate of textBlue, so let's use that instead of introducing a new one. There is this checklist item:
If a new CSS style is added I verified that ... A similar style doesn't already exist
There was a problem hiding this comment.
Oops, I swear I looked for a matching style. Nice catch, @roryabraham!
|
@s77rt @roryabraham updated 🙇 |
|
Friendly bump on reviewing here @s77rt @roryabraham |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.31-0 🚀
|
| import Terms from '../Terms'; | ||
| import DotIndicatorMessage from '../../../components/DotIndicatorMessage'; | ||
| import PressableWithFeedback from '../../../components/Pressable/PressableWithFeedback'; | ||
| import usePrevious from '../../../hooks/usePrevious'; |
There was a problem hiding this comment.
There was a problem hiding this comment.
This is the expected behaviour
Press the blue Go back link before the timer ends and re-enter your email
Confirm the timer has restarted on the magic code view and that you receive another magic code notification
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.31-3 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.31-3 🚀
|
|
@NikkiWines Seems a regression #21545 from this PR where an error display part has been moved. |
|
Oh right, we missed that, the errors part was moved inside an if condition (covering only one case) where it used to cover two cases (outside the if condition). @NikkiWines Can you draft a quick PR for this since I think this is within the regression period |
|
Ah, yep - I can spin up a fix today |
Details
Users occasionally end up throttling themselves by over clicking the
Didn't receive a magic codebutton. This is a quick UI update that should hopefully discourage that so that users are less likely to temporarily block themselves. 'Fixed Issues
$ https://github.com/Expensify/Expensify/issues/290805
PROPOSAL: N/A Internal
Tests
Didn't receive a magic codelinkGo backlink before the timer ends and re-enter your emailOffline tests
Didn't receive a magic codelink and that it is disabledQA Steps
Didn't receive a magic codelinkGo backlink before the timer ends and re-enter your emailPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
web.mov
Mobile Web - Chrome
Screen.Recording.2023-06-13.at.20.38.52.mov
Mobile Web - Safari
mweb-safari.mp4
Desktop
desktop.mov
iOS
ios.mp4
Android
2023-06-14_14-54-47.mp4