Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Fixes #392 : Re-designs the login page #412

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Fixes #392 : Re-designs the login page #412

wants to merge 6 commits into from

Conversation

saketkumar
Copy link
Collaborator

@saketkumar saketkumar commented Feb 20, 2017

Summary of changes

This PR fixes https://github.com/zulip/zulip-android/issues/392 :

https://drive.google.com/file/d/0Bx-iZdT4RNS9NnFTd1BzYlZLVFk/view

Please make sure these boxes are checked before submitting your pull request - thanks! Guide

  • Code is formatted.

  • Run the lint tests with ./gradlew lintDebug and make sure BUILD is SUCCESSFUL

  • If new feature is implemeted then it is compatible with Night theme too.

  • Commit messages are well-written.

@saketkumar
Copy link
Collaborator Author

@kunall17 @Sam1301 This PR is not yet complete. I have to add for small screen too. Done this so that you guys can review . :)

@timabbott
Copy link
Sponsor Member

I feel like the Google auth button is too far down in the screen; maybe we should put it above the username/password form?

@saketkumar
Copy link
Collaborator Author

@timabbott By mistake , i added the video link of old login flow. I have updated it now. Is the Google auth button still looks far down?

@timabbott
Copy link
Sponsor Member

Maybe we should move the Google login button above the hrule? I'm not sure having horizontal lines between auth methods makes sense, but a horizontal line between auth and "setup a server" does. I could also see moving "register" below that line, so the top area is "login" and below it is "other options".

@saketkumar
Copy link
Collaborator Author

@timabbott Cool. Will do the changes. :)

@Sam1301
Copy link
Member

Sam1301 commented Feb 24, 2017

Nice, just noticed the last commit... 0fcd510 has already been merged.

@saketkumar
Copy link
Collaborator Author

@Sam1301 weird, I updated to master branch but still it was showing in the lint issue, so i fixed that.

@Sam1301
Copy link
Member

Sam1301 commented Feb 24, 2017

maybe try again.. I can see your branch not up-to-date with master https://github.com/saketkumar95/zulip-android/commits/patch-21-login

@saketkumar
Copy link
Collaborator Author

@Sam1301 okay, trying again. Thanks for the info. :)

@saketkumar saketkumar changed the title Fixes #392 : Re-designs the login page [WIP] Fixes #392 : Re-designs the login page Feb 25, 2017
@saketkumar saketkumar changed the title [WIP] Fixes #392 : Re-designs the login page Fixes #392 : Re-designs the login page Mar 3, 2017
@saketkumar
Copy link
Collaborator Author

@kunall17 @Sam1301 Done with this and can be reviewed now. :)
I added login-large for large screen and login-xlarge for xlarge screen.

@kunall17
Copy link
Collaborator

kunall17 commented Mar 6, 2017

Can you post some screenshots for the changes in the large screens?

android:orientation="vertical"
android:padding="16dp"
android:visibility="gone">

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra newlines in this file

android:textAppearance="@style/Base.TextAppearance.AppCompat.Medium"
android:textColor="#fff"
android:textSize="25sp" />

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above

Copy link
Member

@Sam1301 Sam1301 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saketkumar95 Nice work! 👍
Could you also post screenshots for different screen densities?

private void forgotPassword() {

Uri uri;
if (serverIn == null || serverIn.getText().toString().isEmpty() || serverIn.getText().toString().equals("")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TextUtils.isEmpty() can be used

@@ -16,7 +18,7 @@
public static void transition(Context activityContext) {
// avoid invalid class cast exception
if (activityContext instanceof Activity) {
((Activity) activityContext).overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
((Activity) activityContext).overridePendingTransition(R.anim.slide_in_right, android.R.anim.fade_out);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" >
<shape android:shape="rectangle" >
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if its not much work, it wold be awesome to have a ripple effect on long press

android:gravity="center_horizontal"
android:orientation="vertical"
android:weightSum="1">

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra newlines; please also check other xml files for the same

@@ -14,4 +14,26 @@
<style name="links.gone" parent="links">
<item name="android:visibility">gone</item>
</style>

<style name="linksLarge">
<item name="android:layout_width">wrap_content</item>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could abstract out common properties into a parent style and inherit from it instead

@Sam1301
Copy link
Member

Sam1301 commented Mar 27, 2017

@saketkumar95 also can you resolve the merge conflicts?

@Sam1301
Copy link
Member

Sam1301 commented Apr 19, 2017

@saketkumar95 this pr is really good and almost ready to merged. If the above comments could be addressed, this can be merged soon 👍.

@saketkumar
Copy link
Collaborator Author

@Sam1301 Will do this today for sure. :)

@zulipbot
Copy link
Member

zulipbot commented May 4, 2017

@saketkumar95, your pull request has developed a merge conflict! Please review the most recent commit (f791888) for conflicting changes and resolve your pull request's merge conflicts.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the login flow pretty
5 participants