-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 going back from magic code page after refresh doesn't show the submitted email #30228
Fix going back from magic code page after refresh doesn't show the submitted email #30228
Conversation
@@ -78,6 +84,7 @@ const propTypes = { | |||
|
|||
const defaultProps = { | |||
account: {}, | |||
credentials: {}, |
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.
credentials: {}, | |
credentials: { | |
login: '', | |
}, |
NAB: We can set login default value to be empty string.
const [login, setLogin] = useState(() => { | ||
const userLogin = Str.removeSMSDomain(props.credentials.login || ''); | ||
return userLogin; | ||
}); |
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.
const [login, setLogin] = useState(() => { | |
const userLogin = Str.removeSMSDomain(props.credentials.login || ''); | |
return userLogin; | |
}); | |
const [login, setLogin] = useState(() => Str.removeSMSDomain(props.credentials.login)); |
NAB: Can be simplified.
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! updated the code!
Reviewer Checklist
Screenshots/VideosWebCleanShot.2023-10-24.at.12.53.07.mp4Mobile Web - ChromeCleanShot.2023-10-24.at.12.55.27.mp4Mobile Web - SafariCleanShot.2023-10-24.at.12.54.19.mp4DesktopCleanShot.2023-10-24.at.12.59.08.mp4iOSCleanShot.2023-10-24.at.13.08.01.mp4AndroidCleanShot.2023-10-24.at.15.13.23.mp4 |
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, thank you guys!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@bernhardoj please help check if the app is crashed by this PR. Step to reproduce:
|
@DylanDylann you're right. It's a regression from this PR. Thanks for catching it! I'll raise a PR. |
🚀 Deployed to staging by https://github.com/marcochavezf in version: 1.3.91-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.91-8 🚀
|
Details
If we refresh while on the magic code page and then press the Go back button, the email field is empty.
Fixed Issues
$ #29192
PROPOSAL: #29192 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Sign out if you are signed in
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
Android: Native
Screen.Recording.2023-10-24.at.11.07.31.mov
Android: mWeb Chrome
Screen.Recording.2023-10-24.at.11.02.59.mov
iOS: Native
Screen.Recording.2023-10-24.at.11.08.22.mov
iOS: mWeb Safari
Screen.Recording.2023-10-24.at.11.03.45.mov
MacOS: Chrome / Safari
Screen.Recording.2023-10-24.at.11.00.14.mov
MacOS: Desktop
Screen.Recording.2023-10-24.at.11.01.37.mov