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

UX of link account (Step 1) #5006

Merged
merged 13 commits into from
Oct 28, 2018
Merged

Conversation

coolaj86
Copy link
Contributor

@coolaj86 coolaj86 commented Oct 3, 2018

I'm working towards a solution for #3837

There are multiple issues that need to be addressed, but this pull request only attempts to address one complete unit of work which I consider to be of the highest immediate value and the lowest cost.

  • Current: Show either sign up or sign in - a great first step
    • Show the most appropriate as selected tab and allow other to be selected
  • When Creating Account via OAuth
    • "Register New Account" as tab name
    • display "Register" as "Add Email and Password (for Account Recovery)"
    • submit with "Complete Account"
  • When Linking Account via OAuth
    • "Link to Existing Account" as tab name
    • display "Sign In" as "Sign In to Authorize Linked Account"
    • submit with "Link Account"

New Account

screen shot 2018-10-04 at 11 37 54 pm

Link Account

screen shot 2018-10-04 at 11 38 02 pm

Walkthrough

screencap

If you'd like to test it out

My pull request is against master, but I run it as backport to v1.5.2 (includes #5006, #5029, #5033):

git clone https://github.com/coolaj86/gitea.git gitea.coolaj86 -b v1.5.1-coolaj86
pushd gitea.coolaj86
TAGS="bindata sqlite" make generate all

I would not recommend replacing your existing gitea, but rather creating a symlink so that you can easily switch back if you don't like it. For example, if you keep gitea in /opt/gitea/bin:

rsync -av ./gitea /opt/gitea/bin/gitea-v1.5.1-coolaj86
pushd /opt/gitea/bin
mv gitea gitea-v1.5.1
ln -s gitea-v1.5.1-coolaj86 gitea

I've run a couple of manual tests so far, so I feel comfortable with someone else trying it out. I won't be pushing any additional changes to that branch (such as the upcoming changes to address the empty checkboxes in the issue) until I've tested them in production for myself.

@codecov-io
Copy link

codecov-io commented Oct 3, 2018

Codecov Report

Merging #5006 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #5006      +/-   ##
=========================================
- Coverage   37.51%   37.5%   -0.01%     
=========================================
  Files         309     309              
  Lines       45800   45820      +20     
=========================================
+ Hits        17180   17183       +3     
- Misses      26158   26176      +18     
+ Partials     2462    2461       -1
Impacted Files Coverage Δ
routers/user/auth.go 13.34% <0%> (-0.28%) ⬇️
modules/process/manager.go 81.15% <0%> (+4.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2ee2a3...a2ceaf2. Read the comment docs.

@bkcsoft bkcsoft added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 3, 2018
routers/user/auth.go Outdated Show resolved Hide resolved
routers/user/auth.go Outdated Show resolved Hide resolved
@lafriks lafriks added type/enhancement An improvement of existing functionality topic/ui Change the appearance of the Gitea UI labels Oct 3, 2018
@coolaj86 coolaj86 changed the title [discuss] UX of link account UX of link account (Step 1) Oct 5, 2018
@coolaj86
Copy link
Contributor Author

coolaj86 commented Oct 5, 2018

Progress. Here's a screencap and video of the requested changes:

Copy link
Member

@daviian daviian left a comment

Choose a reason for hiding this comment

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

Can you add screenshots of changed UI?

routers/user/auth.go Outdated Show resolved Hide resolved
routers/user/auth.go Outdated Show resolved Hide resolved
routers/user/auth.go Outdated Show resolved Hide resolved
options/locale/locale_en-US.ini Outdated Show resolved Hide resolved
@coolaj86
Copy link
Contributor Author

coolaj86 commented Oct 5, 2018

@daviian Does the screenshot and screencap that I already added not suffice? What else would you like to see?

Note: my personal branding in screenshot is not part of the change, it's my instance of gitea: https://git.coolaj86.com/ The change is isolated to the center of the screen as described in the PR.

@coolaj86
Copy link
Contributor Author

coolaj86 commented Oct 5, 2018

Higher res screenshots:

screen shot 2018-10-04 at 11 37 54 pm

screen shot 2018-10-04 at 11 38 02 pm

@daviian
Copy link
Member

daviian commented Oct 5, 2018

@daviian Does the screenshot and screencap that I already added not suffice? What else would you like to see?

You've posted the screencap while I was doing the review, that's why I crossed out my request afterwards. Of course it would've been sufficient.

@coolaj86
Copy link
Contributor Author

coolaj86 commented Oct 6, 2018

Note: We do want to ignore the error because the error is "user does not exist".

@coolaj86
Copy link
Contributor Author

coolaj86 commented Oct 6, 2018

@daviian @lafriks This is ready for your re-review. I've made the changes you suggested, except as noted where they had unintended consequences.

Also, I'll be happy to rebase and force push to this branch once reviewed so that it shows up as a single commit.

routers/user/auth.go Outdated Show resolved Hide resolved
routers/user/auth.go Outdated Show resolved Hide resolved
@bkcsoft bkcsoft added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Oct 10, 2018
@bkcsoft bkcsoft added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 10, 2018
@coolaj86
Copy link
Contributor Author

@lafriks Will you click that the requested change has been resolved? I've clicked in on my end, and it looks like that's the only hold up.

@lunny lunny added this to the 1.7.0 milestone Oct 11, 2018
@lafriks
Copy link
Member

lafriks commented Oct 14, 2018

@coolaj86 I will check when we can start merging for 1.7

@techknowlogick techknowlogick merged commit b845119 into go-gitea:master Oct 28, 2018
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants