-
Notifications
You must be signed in to change notification settings - Fork 1.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
Unified Login & Sign-Up: login with site address from the Prologue screen #11780
Unified Login & Sign-Up: login with site address from the Prologue screen #11780
Conversation
Generated by 🚫 dangerJS |
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
You can test the changes on this Pull Request by downloading the APK here. |
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 for the changes, it looks good and works well 👍 Consider my suggestion about naming of the buttons. I think the current state is a bit confusing
inflater.inflate(R.layout.login_prologue_bottom_buttons_container_unified, bottomButtonsCard); | ||
} | ||
|
||
MaterialButton primaryButton = view.findViewById(R.id.login_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.
What do you think about changing the IDs of these two buttons to something more generic? I understand primary
and secondary
doesn't really work here since the order is switched between the two designs but maybe something about the order? first_button
and second_button
? It might make it a little more readable for the future.
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.
Good point! Since these IDs had not been updated since the creation of that screen, I thought it might have some not-so-obvious reason for that and decided not to touch them. Upon closer inspection, I couldn't find any good reason not to change them, so I'll just go with your suggestion 🙂
Thanks for reviewing this! 🙇♂️
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.
maybe something about the order?
first_button
andsecond_button
?
Oh, I just realized that this could make things look weird on the landscape layout, since the order kind of changes there as well (the top button becomes the right button and the bottom button becomes the left one), meaning we would have the first_button
on the right and the second_button
on the left. This might still be a better alternative though. Let me know what you think.
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.
After talking to @mattmiklic about this, we reached the conclusion that it's fine to have the natural order of the buttons on landscape for the new layouts, instead of having them reversed. So I'm renaming the buttons to what you've sugggested and updating the landscape layout for the new layouts, but I'm keeping the old ones as they were. That means we will still have one layout where the second_button
is coming first, but that will be solved sooner than later, when we get rid of the feature flag and stop maintaining the old flow.
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.
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.
Looks good to me!
Fixes #11736
To test
Instructions
UNIFIED_LOGIN_AVAILABLE
flag is set totrue
.Scenarios
Site Address From Prologue
Email Screen Without Site Option
Landscape Orientation
Share Intent Flow
Notes
UNIFIED_LOGIN_AVAILABLE
flag set tofalse
, everything should behave as before.login_prologue_bottom_buttons_container_default
andlogin_prologue_bottom_buttons_container_unified
layouts.PR submission checklist:
RELEASE-NOTES.txt
if necessary.