-
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 console error when validating/unlinking secondary account #23469
Conversation
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 seems fine, though I'm unsure the scenarios when these would not be set in the code below
Thinking about this some more, can you maybe help explain the reproduction steps for this warning / what conditions cause |
It is not set in I think in some case like this where we don't want to display welcomeText, we'll need to set it as empty string. Instead we can initialize it as empty string, as it is required prop in SigninPageLayout component |
@0xmiroslav 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] |
@roryabraham do you please mind merging it 🙏 |
I think it is better to add welcomeText = isSmallScreenWidth ? translate('welcomeText.welcomeBack') : ''; and const shouldShowWelcomeText = shouldShowLoginForm || shouldShowValidateCodeForm || isUnvalidatedSecondaryLogin; for consistency. Screen.Recording.2023-07-28.at.12.12.13.PM.movWhile this is a small issue it is worth fixing since it is being discussed now. Alternative is to hide |
It seems intentional to show different welcome message between small device (hero.header) and large device (welcomeBack). App/src/pages/signin/SignInPage.js Line 129 in 975146f
Screen.Recording.2023-07-28.at.9.28.10.AM.mov |
Indeed the header is different for large and small screens but the header in large screens is shown as text in smaller screens for all pages except this page. |
I also think it's a bit weird and don't see the reason why they are inconsistent between devices. Btw out of scope for this PR. |
Reviewer Checklist
Screenshots/VideosMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
Shall I raise it as another bug and propose the solution then if it is out of the scope for this PR? |
Maybe you can post in slack and get some feedback |
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!
@jasperhuangg 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] |
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 @MonilBhavsar !
✋ 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/roryabraham in version: 1.3.48-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.48-5 🚀
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.49-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.49-3 🚀
|
cc @roryabraham
Details
We missed initializing during the migration and in turn makes required props undefined and displays an error
#19498 (comment)
Fixed Issues
$ #22923
PROPOSAL:
Tests
Offline tests
None
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
Mobile Web - Chrome
N/A
Mobile Web - Safari
N/ADesktop
iOS
N/A
Android
N/A