-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix blank screen when signing in with Expensifail account #8322
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
Conversation
|
|
Are we handling the failing account creation? What jsonCode does it send? |
|
Ready for review! |
| {props.translate('common.goBack')} | ||
| {'.'} | ||
| const ChangeExpensifyLoginLink = (props) => { | ||
| const login = lodashGet(props.credentials, 'login', ''); |
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.
question: Is this change still necessary? If the login is not in credentials and we are here then this is a bug.
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.
I think it's better to have a fallback for credentials.login to prevent crashing the app. In this case, the user would still be redirected to the username step and we would display an error message.
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.
counterpoint: If the app must crash we have an error boundary for it to hit. It's better to do that than to show content that requires a prop. It might even be better to let the error boundary get hit as it alerts us of a problem by logging (instead of a confusing situation like rendering empty strings instead of required content).
thought: maybe the error boundary should also do ENSURE_BUGBOT so we can know about and fix stuff right away when it crashes instead of showing broken pages with required variables that we have gave defaults because we were afraid of crashes.
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.
Fair point. I reverted these changes.
|
Hmm that's the message that we've been displaying in NewDot this whole time, but I think that the message in OldDot is different. Not sure which one is the correct one TBH, so I kept the current one. |
|
Updated! |
Fix blank screen when signing in with Expensifail account (cherry picked from commit 986b648)
…8322 🍒 Cherry pick PR #8322 to staging 🍒
|
🚀 Cherry-picked to staging by @marcaaron in version: 1.1.46-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |

Details
ResendValidationForm.createAccountFixed Issues
$ #8320
Tests
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly 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)PR Reviewer Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followed/** comment above it */displayNamepropertythisproperly 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)QA Steps
Same as testing steps.
Screenshots
Web
web.mov
Mobile Web
mweb.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov