-
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
feat: add timer on validate code action modal #51663
feat: add timer on validate code action modal #51663
Conversation
…r-magic-code-resend
…r-magic-code-resend
@hungvu193 Please 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] |
Having difficulties to build on native @hungvu193, will update it once i get it working. you can start the review |
src/components/ValidateCodeActionModal/ValidateCodeForm/BaseValidateCodeForm.tsx
Outdated
Show resolved
Hide resolved
…lidateCodeForm.tsx Co-authored-by: Youssef Lourayad <youssef@expensify.com>
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-10-30.at.14.20.16.movAndroid: mWeb ChromeScreen.Recording.2024-10-30.at.14.16.13.moviOS: NativeScreen.Recording.2024-10-30.at.13.45.49.moviOS: mWeb SafariScreen.Recording.2024-10-30.at.13.47.32.movMacOS: Chrome / SafariScreen.Recording.2024-10-30.at.11.14.36.movMacOS: DesktopScreen.Recording.2024-10-30.at.11.25.55.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.
Thanks! changes look good to me
✋ 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/mountiny in version: 9.0.56-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.56-9 🚀
|
return ( | ||
<ValidateCodeActionModal | ||
clearError={clearError} | ||
onClose={onBackButtonPress} | ||
validateError={validateLoginError} | ||
isVisible={isValidateCodeActionModalVisible} | ||
title={translate('delegate.makeSureItIsYou')} | ||
sendValidateCode={sendValidateCode} | ||
sendValidateCode={() => User.requestValidateCodeAction()} | ||
hasMagicCodeBeenSent={!!currentDelegate?.validateCodeSent} |
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.
Coming from #53177 , currentDelegate
don’t think have validateCodeSent
hence the timer will not be displayed in this case. we should have used validateCodeAction?.validateCodeSent
instead.
Details
Had to change the way we pass
sendValidateCode
removing the condition, which in result help us avoid writing repetitive code. cc @youssef-lrFixed Issues
$ #49270
PROPOSAL:
Tests
Didn't receive a magic code?
Offline tests
N/a
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-10-30.at.12.02.23.in.the.afternoon.mov
Android: mWeb Chrome
Screen.Recording.2024-10-29.at.2.13.31.in.the.afternoon.mov
iOS: Native
Screen.Recording.2024-10-30.at.11.47.28.in.the.morning.mov
iOS: mWeb Safari
Screen.Recording.2024-10-29.at.2.16.42.in.the.afternoon.mov
MacOS: Chrome / Safari
Screen.Recording.2024-10-29.at.1.13.33.in.the.afternoon.mov
MacOS: Desktop
Screen.Recording.2024-10-30.at.12.04.39.in.the.afternoon.mov