Skip to content
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

OAuth user interface design on login screen #2866

Closed
jywarren opened this issue Jun 20, 2018 · 64 comments
Closed

OAuth user interface design on login screen #2866

jywarren opened this issue Jun 20, 2018 · 64 comments
Assignees
Labels
design issue requires more design work and discussion (i.e. mockups and sketches) enhancement explains that the issue is to improve upon one of our existing features gci-candidate more-detail-please issue lacks proper description and perhaps needs code links or the location of the problem summer-of-code

Comments

@jywarren
Copy link
Member

@SidharthBansal - i wanted to share how Oauth looks on some other sites, so once we confirm it's perfectly working, we have a good workflow for login. See this example:

screen shot 2018-06-20 at 9 42 43 am

Note a couple things. First, since OAuth is easier, it's presented first. Then, I wonder if we can have the remainder of the non-OAuth screen be hidden until you interact with the first input... so as to keep things simple. Once you click or type in it, then the rest is shown. That way also it's clear that you can ignore it if you're using OAuth.

What do you think?

@jywarren jywarren added enhancement explains that the issue is to improve upon one of our existing features design issue requires more design work and discussion (i.e. mockups and sketches) summer-of-code more-detail-please issue lacks proper description and perhaps needs code links or the location of the problem labels Jun 20, 2018
@SidharthBansal

This comment has been minimized.

@jywarren

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@SidharthBansal SidharthBansal added this to the OAUTH LOGIN milestone Jun 20, 2018
@jywarren

This comment has been minimized.

@jywarren

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@SidharthBansal
Copy link
Member

We can ask students to give designs for login modal in gci. Then we can break this into code segments.
This issue has instance count of 10

@digitaldina
Copy link
Collaborator

@SidharthBansal Hi! I'm looking into this as I am doing gci. For that task, do we design a similar login screen or actually create on? Thanks!

@SidharthBansal
Copy link
Member

SidharthBansal commented Nov 29, 2018 via email

@digitaldina
Copy link
Collaborator

Oh ok, thanks for clarifying

@jywarren
Copy link
Member Author

We can start with sharing designs - esp. for the login dropdown on any https://publiclab.org page, and/or specifically in a modal for when you want to log in from a prompt lower down on a page. Say, if you are not logged in but want to log in from a Log in button at the bottom of the comments on a page like this:

https://publiclab.org/notes/warren/10-23-2018/call-for-outreachy-2018-19-proposals

Thanks, we'd love your help!

@digitaldina
Copy link
Collaborator

@jywarren I'm new to web dev, so bare with me, as this one seems like a challenge, but one I want to take on. I'm just wondering, how would I integrate this (what files/pages would need to be changed?) I've only every done this on a blank site, and doing it on something pre-existing is new to me.

@digitaldina
Copy link
Collaborator

digitaldina commented Nov 30, 2018

@jywarren also, If I understood your comment above correctly, you mean that we just change the way this looks? In design and by hiding everything so that the user has to un-hide if they're not using OAuth?
screenshot from 2018-11-29 21-17-00

@SidharthBansal
Copy link
Member

SidharthBansal commented Nov 30, 2018 via email

@jonxuxu jonxuxu mentioned this issue Dec 5, 2018
4 tasks
@jonxuxu
Copy link
Member

jonxuxu commented Dec 5, 2018

@jywarren could I get an extension? I have 15 hours left.

@jywarren
Copy link
Member Author

jywarren commented Dec 5, 2018 via email

@jonxuxu
Copy link
Member

jonxuxu commented Dec 6, 2018

Thanks for the extension :)

This is what I currently see:
image
^ So no icons display whatsoever

Also I'm having issues when I try to include the following in my modal:
<%= render partial: 'user_sessions/new' %>

@jywarren
Copy link
Member Author

jywarren commented Dec 6, 2018 via email

@SidharthBansal
Copy link
Member

for people running things
locally where the OAuth versions aren't available, we could have it show by
default in cases where that's the only way to log in?

Oauth works well on the localhost, just you need to configure the keys.

@oorjitchowdhary
Copy link
Member

Even I wasn't able to see the social icons on running localhost when I was doing my PR #4116
@SidharthBansal How can I configure the keys?

@SidharthBansal
Copy link
Member

SidharthBansal commented Dec 6, 2018

@JonathanXu1 we can delete Rails.env == production... line from all the places for social link icons.
This will avoid the further confusions happening.

@SidharthBansal
Copy link
Member

SidharthBansal commented Dec 6, 2018

#4148 created. I hope now we can create the modal easily.

@jonxuxu
Copy link
Member

jonxuxu commented Dec 6, 2018

Hi, I've gotten the icons to appear and moved the login within a modal. The email login is also toggle-able with the email button.

ezgif com-gif-maker

@SidharthBansal
Copy link
Member

I think it will be better to show the text instead of icon. Icon seems confusing to me.

Well done!!!
Can you tell the PR number?

@jonxuxu
Copy link
Member

jonxuxu commented Dec 6, 2018

It's #4133 . I believe @jywarren requested for an icon, so I changed my original button to that.

@SidharthBansal
Copy link
Member

SidharthBansal commented Dec 6, 2018

I think you misspelled the pr number. OK. Changes look awesome to me.

@jywarren
Copy link
Member Author

jywarren commented Dec 6, 2018 via email

@SidharthBansal
Copy link
Member

Yeah, we can write email below the icon and have OR between them.
Great idea Jeff.

@jonxuxu
Copy link
Member

jonxuxu commented Dec 6, 2018

How's this?
image

@SidharthBansal
Copy link
Member

Place OR between social media icons and Login with email

@jywarren
Copy link
Member Author

jywarren commented Dec 6, 2018 via email

@SidharthBansal
Copy link
Member

@JonathanXu1 please continue the conversation in the PR, instead of issue.

@jonxuxu
Copy link
Member

jonxuxu commented Dec 6, 2018

Alright, I'll post new screenshots there.

@jonxuxu
Copy link
Member

jonxuxu commented Dec 7, 2018

Here it is: :)
image
I've submitted the task on codein

@jywarren
Copy link
Member Author

jywarren commented Dec 7, 2018 via email

@SidharthBansal
Copy link
Member

SidharthBansal commented Dec 7, 2018 via email

@jonxuxu
Copy link
Member

jonxuxu commented Dec 7, 2018

I believe the slight off-center horizontally is because of the styling of the internal login partial. There's an offset and some padding I believe. I'll look into it.

@SidharthBansal
Copy link
Member

SidharthBansal commented Dec 7, 2018 via email

@SidharthBansal
Copy link
Member

Moved to #4173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design issue requires more design work and discussion (i.e. mockups and sketches) enhancement explains that the issue is to improve upon one of our existing features gci-candidate more-detail-please issue lacks proper description and perhaps needs code links or the location of the problem summer-of-code
Projects
None yet
Development

No branches or pull requests

5 participants