-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Show notification instead of login page when user has another tab open - #26161 #27385
Show notification instead of login page when user has another tab open - #26161 #27385
Conversation
@robertKozik 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] |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
Sorry for the delay. Could you fill the PR author checklist? I see a lot unticked boxes |
@robertKozik Done. |
I'm still seeing that you didn't test the PR on High traffic account, also as the side note, if some checkboxes are not applicable for your PR (fe. mobile videos/screenshots) please tick them as well as it's stated on the last checkbox |
@Selyatin eslint is failing. screen attached with errors. |
@robertKozik I've fixed the errors. |
Sorry missed that. Will review today |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromeandroid.-.ios.-.web.movMobile Web - Safariandroid.-.ios.-.web.movDesktopdesktop.moviOSandroid.-.ios.-native.movAndroidandroid.-.ios.-native.mov |
As I stated above, please refill remaining videos - if nothing changed, please just go through login flow to see there is no regressions |
All videos have been added @robertKozik. |
Also we are missing test steps, please update them to cover login flow, and opening another instance on web. Once done, again please tick all the checkboxes from the PR Author checklist ( I see not ticked the ones about the tests on platforms) |
@robertKozik Done. |
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
We did not find an internal engineer to review this PR, trying to assign a random engineer to #26161 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
Lint is not happy, @Selyatin 🙏 |
@cristipaval Should be fine now, had to run prettier. |
✋ 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/cristipaval in version: 1.3.80-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.80-3 🚀
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 1.3.81-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.83-11 🚀
|
2 similar comments
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.83-11 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.83-11 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.83-11 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.84-10 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.84-10 🚀
|
@@ -93,6 +98,8 @@ function SignInPage({credentials, account, isInModal}) { | |||
App.setLocale(Localize.getDevicePreferredLocale()); | |||
}, []); | |||
|
|||
const isClientTheLeader = activeClients && ActiveClientManager.isClientTheLeader(); |
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.
Coming from #29170.
This is a good start, but there is a second step in this page where we also need to check for the client leader (validate code form). : )
}, | ||
); | ||
|
||
let welcomeHeader = ''; | ||
let welcomeText = ''; | ||
const headerText = translate('login.hero.header'); | ||
if (shouldShowLoginForm) { | ||
|
||
if (!isClientTheLeader) { |
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.
Coming from #34567, we haven't considered here that we should also check if the tab is actually visible before switching display of the "another login page is open" message.
@robertKozik
Details
Fixed Issues
$ #26161
PROPOSAL: #26161 (comment)
Tests
Another Login Page is Open.
text is shown in the first window/tab.Offline tests
No specific offline tests are required.
QA Steps
Another Login Page is Open.
text is shown in the first window/tab.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
2023-09-13.19-47-29.mp4
Mobile Web - Chrome
2023-10-05.14-54-36.mp4
Mobile Web - Safari
2023-10-05.15-00-12.mp4
Desktop
2023-10-05.15-12-44.mp4
iOS
2023-10-05.16-02-33.mp4
Android
2023-10-05.16-47-19.mp4