Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 382047 - Decide what to do with "clone repository" button the create new content
Summary: Decide what to do with "clone repository" button the create new content
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.5   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.5 RC2   Edit
Assignee: Susan McCourt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-07 15:27 EDT by Susan McCourt CLA
Modified: 2012-07-17 09:27 EDT (History)
4 users (show)

See Also:
Szymon.Brandys: review+
Szymon.Brandys: review? (susan)


Attachments
screenshot (19.67 KB, image/png)
2012-06-07 15:27 EDT, Susan McCourt CLA
no flags Details
screenshot/mockup (48.03 KB, image/png)
2012-06-13 15:38 EDT, Susan McCourt CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Susan McCourt CLA 2012-06-07 15:27:43 EDT
Created attachment 217049 [details]
screenshot

The "clone repository" item in "create new content" is actually a link to the repo page, so it looks different than the other items in this list.

The intention is that this button would actually perform the clone while staying on the navigator page but that would require bug 378755.

If that bug gets implemented in RC2, then we can just update the command and it will look normal.

If we don't get to it, we need to show this link differently, perhaps remove it from the list completely and just have text at the bottom that talks about cloning and has a link.
Comment 1 Susan McCourt CLA 2012-06-13 12:23:18 EDT
Looks like bug 378755 is going to happen.  Still to consider:

- should we move "clone" up in the list?  Seems like it's at least more common than "Upload a Zip" and perhaps more common than "SFTP Import"

- the styling was dealing with the fact that we had mixed buttons and links, and was done when all the buttons were bolded.  Now that the tasks are all buttons, we can return to normal command styling, I think, and then if we want to tweak it further we could...
Comment 2 Susan McCourt CLA 2012-06-13 12:58:49 EDT
Also, we should put it in the "new" menu.  It was not there before because it was a link.  See bug 382193.
Comment 3 Susan McCourt CLA 2012-06-13 15:05:27 EDT
Simon does not want us to put a hard reference to a git module in the navigator.  So we need another answer here.  The thinking is to restyle everything like command buttons, do not differentiate git clone by its look.
Comment 4 Susan McCourt CLA 2012-06-13 15:38:29 EDT
(In reply to comment #3)
> Simon does not want us to put a hard reference to a git module in the
> navigator.  So we need another answer here.  The thinking is to restyle
> everything like command buttons, do not differentiate git clone by its look.

THe problem with this approach is then...does this button open a new page or change the existing one.  Either approach seems surprising.

Why don't we take the approach of removing it from the list and then have a real link.
Comment 5 Susan McCourt CLA 2012-06-13 15:38:52 EDT
Created attachment 217316 [details]
screenshot/mockup
Comment 6 Susan McCourt CLA 2012-06-13 16:01:00 EDT
So as I see it...three choices:

1) make the link look like a button, it opens repo page in same tab.  
Pro: don't make user think about the difference, don't surprise them with a new page since it's a button.
Con: disorienting.  How do I get back to the navigator.

2) make the link look like a button, open repo page in new tab.
Pro: don't make user think about difference
Con:  still disorienting, but they know how to get back to navigator

3) pull the link out of the list and style it as shown in the mockup.  Treat it different because it is.  Explain to the user that they can clone but need to go to another page to do so.  Just use good ol' HTML to do it.
Comment 7 Susan McCourt CLA 2012-06-13 23:55:54 EDT
After various discussions with Simon, Ken, Anton...the consensus is #1.  We decided that some disorientation is going to happen regardless of the solution.  #3 subtly says "you are about to be disoriented" which isn't that helpful.  #2 is very disorienting from a browser tab point of view.  #1 is disorienting but after trying it out, the "how do I get back to navigator" problem is somewhat rectified by the appearance of the "show in navigator" link.  I was worried we were relying on the user to use browser history or the top level link.

Commit 0dc9722adf17dcc7038039c8b49abf983e835268 in the bug 382047 branch implements #1.  It tested it and it works.

But I found a new problem in the workflow.  It works great if you have repositories already.  But in the "new user" workflow, the user has no repositories and in that setup, the command slideout does not open.

So we still need to fix the page so that the slideout opens even when the repo is empty.  I don't think I'll get to this today.  

Marking this bug for review by Szymon (the UI is already OK'ed by everyone else).  If you approve and have a chance to fix teh "empty repo page problem" please release another commit to the branch, send it back to me for review, and I can release if all is well.
Comment 8 Szymon Brandys CLA 2012-06-14 05:18:22 EDT
(In reply to comment #7)
> If you approve and have a chance to fix teh "empty repo page problem"
> please release another commit to the branch, send it back to me for review, and
> I can release if all is well.

Done.
Comment 9 Susan McCourt CLA 2012-06-14 11:33:37 EDT
Thank you!  I would not have figured that one out based on looking at the change.

Pushed both commits.
Tested with "empty" user.  The repo page comes up nice and fast, the slideout is there.

Noticed bug 382604 but agree this is not critical.