-
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 blank screen when signing in with Expensifail account #8322
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
.createAccount
Fixed Issues
$ #8320
Tests
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
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)PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
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)QA Steps
Same as testing steps.
Screenshots
Web
web.mov
Mobile Web
mweb.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov