-
Notifications
You must be signed in to change notification settings - Fork 3k
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: check visibility as well to show another login message #34791
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-native-2024-01-29_14.11.49.mp4Android: mWeb Chromeandroid-chrome-2024-01-29_14.14.40.mp4iOS: Nativeios-native-2024-01-29_14.19.35.mp4iOS: mWeb Safariios-safari-2024-01-29_14.24.08.mp4MacOS: Chrome / Safaridesktop-chrome-2024-01-29_13.55.25.mp4MacOS: Desktopdesktop-app-2024-01-29_14.00.18.mp4 |
@s-alves10 Could you tweak this to be something more like "...edit the magic link to make the code invalid, e.g. change the last few digits"? I find it a bit unclear otherwise. |
src/pages/signin/SignInPage.js
Outdated
@@ -154,6 +155,8 @@ function SignInPageInner({credentials, account, isInModal, activeClients, prefer | |||
const [hasInitiatedSAMLLogin, setHasInitiatedSAMLLogin] = useState(false); | |||
|
|||
const isClientTheLeader = activeClients && ActiveClientManager.isClientTheLeader(); | |||
// eslint-disable-next-line rulesdir/no-negated-variables | |||
const shouldShowAnotherLogin = Visibility.isVisible() && !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.
A brief comment explaining what this does would be useful I think as the name by itself isn't super clear!
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.
In fact I think we need to tweak the name, as it reads to me as more like "should we show another login form" (which obviously doesn't make sense!), what do you think about something like hasAnotherLoginPageOpen
?
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 shouldShowAnotherLoginPageOpenedMessage
would be nice. What do you think @jjcoffee ?
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.
Name updated and comment added
This comment was marked as resolved.
This comment was marked as resolved.
Updated |
I'm not sure what this means. Can you please test once more? I wasn't able to reproduce what you mentioned. Also the code changes isn't related to LHN at all |
Never mind, I managed to repro the same issue on staging! |
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!
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!
✋ 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/mountiny in version: 1.4.33-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.33-5 🚀
|
Details
Check visibility as well to check if should show another login message
Fixed Issues
$ #34567
PROPOSAL: #34567 (comment)
Tests
Offline tests
This should be tested in online mode
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.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
34567_android_native.mp4
Android: mWeb Chrome
34567_android_chrome.mp4
iOS: Native
34567_ios_native.mp4
iOS: mWeb Safari
34567_ios_safari.mp4
MacOS: Chrome / Safari
34567_mac_chrome.mp4
MacOS: Desktop
34567_mac_desktop.mp4