-
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
fix: preserve magic code when login #23023
fix: preserve magic code when login #23023
Conversation
@aimane-chnaif 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] |
@aimane-chnaif Sorry for this inconvenience. I had a mistake with the form name. Can you help check the PR to fix the regression? I'm recording the video on ios and android and will post them in a few mins |
src/libs/actions/Session/index.js
Outdated
@@ -172,7 +172,7 @@ function resendValidateCode(login = credentials.login) { | |||
key: ONYXKEYS.ACCOUNT, | |||
value: { | |||
errors: null, | |||
loadingForm: CONST.FORMS.VALIDATE_CODE_FORM, | |||
loadingForm: CONST.FORMS.RESEND_VALIDATION_FORM, |
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.
This form name is already used in resend page. We should introduce new name, maybe RESEND_VALIDATE_CODE_FORM
@aimane-chnaif I just updated my PR. Can you help review? |
Screen.Recording.2023-07-18.at.11.58.55.mov@aimane-chnaif My PR fixed it. Thanks |
Still codes are cleared while logging in. Screen.Recording.2023-07-18.at.6.10.37.AM.mov |
Nvm, I was testing on Safari and code changes are not applied for some reason. Tests well after force refresh |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-18.at.6.21.27.AM.movMobile Web - ChromeMobile Web - SafariScreen.Recording.2023-07-18.at.6.31.21.AM.movDesktopiOSAndroid |
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.
@danieldoglas let's CP this as original PR was already deployed to staging
🚀 Deployed to staging by https://github.com/danieldoglas in version: 1.3.42-13 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.42-26 🚀
|
🚀 Deployed to staging by https://github.com/danieldoglas in version: 1.3.44-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.44-2 🚀
|
Details
Fixed Issues
$ #21293
$ #23087
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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.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
Web
Screen.Recording.2023-07-18.at.00.02.00.mp4
Mobile Web - Chrome
original-BCA41B7B-9BE5-4E54-B46C-BE8051DD235D.mp4
Mobile Web - Safari
original-A95D8992-3BB4-4BFC-8348-AACAF4E6B533.mp4
Desktop
Screen.Recording.2023-07-18.at.00.20.35.mov
iOS
Screen.Recording.2023-07-18.at.00.30.48.mov
Android
Screen.Recording.2023-07-18.at.00.44.07.mp4