You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We'll also need to decide if we pre-cache the list of repos a user can clone, or just pull it down as needed. And if we wanna do searching locally vs. with API.
... or pick a third option. I think we ought to consider not offering the kind of browse experience that we do today and instead try to optimize the experience for cloning arbitrary repositories. Right now we support that through drag-and-drop on Windows as well as the clone in desktop button on both platforms. We could offer up a simpler clone experience which lets you put in any URL as well as supporting shorthand cloning for github repositories (ie desktop/desktop expands to `https://github.com/desktop/desktop).
I'm not sure what you mean by "searching locally" here. Could you elaborate a bit?
I think he means that Mac currently caches all repositories from all organizations locally and refreshes them periodically whereas we on Windows loads them on demand. We could conceivably leverage the repository search API instead.
Reacted by Brendan Forster
Reacted by Troy Campbell, Adam Leuer and papercuptech
I think we ought to consider not offering the kind of browse experience that we do today and instead try to optimize the experience for cloning arbitrary repositories.
This feels a bit antithetical to our refocusing on GitHub, vs. being a general git client. @pmn, I'd be curious to hear your thoughts.
There are a couple of parts to this -- one is whether GitHub Desktop should be a GitHub client over a general git client; and the other is whether it makes sense to optimize for cloning arbitrary repositories.
Since the focus of GitHub Desktop is changing to make it as easy and straightforward as possible to get their code onto GitHub.com or GitHub Enterprise, I don't think we need to prioritize making it as easy as possible to clone from any git URL, but if there's a way to get that for free it might be interesting. This idea from @niik was particularly interesting:
Browsing through repositories to find the one to clone can be frustrating when you're in an organization with a lot of repositories (like GitHub). Desktop on Windows does a pretty good job of lessening the pain here; but I would have much preferred to be able to select with [owner]/[repo] over dealing with a dropdown. Right now I copy and paste the clone url even when using Desktop because it's a faster interaction for me.
Supporting both of those things well plus allowing for "Open in Desktop" on the web makes it feel like we might be able to get away with using a dropdown.
Does (2) mean repository searching via the API, or is it entirely a shortcut for (1)?
Hmm. This raises a question about whether or not it's possible to make it a shortcut for (1), since a user may want to clone from GitHub.com or GitHub Enterprise. If there's a way to know which thing they're trying to clone from, it probably works fine as a shortcut. Otherwise, there may have to be some other method of discerning which repo is meant by the shortcut entered.
Hiding the enterprise tab is negative in that it could be annoying for muscle memory for those that have enterprise on a work machine, but not at home. And it could create confusion like: "Where's the Enterprise tab?!".
It gives a good sales pitch area too.
Based on the above, but with no Enterprise account:
Clone a Repository
GitHub | GitHub Enterprise | URL
-----------------
You do not have a GitHub Enterprise account authenticated!
If you have a GitHub Enterprise account, then you can add it in the Settings to gain access to your repositories.
--------
( clickable, closes this modal and opens the settings ^ )
Otherwise, to learn more about GitHub Enterprise and to start your free trial today visit:
https://enterprise.github.com/home
----------------------------------
[Cancel] [Clone (grey/unclickable)]
I'm curious if it makes sense to not render the Cancel / Clone buttons here unless we're signed in. Is it possible to conditionally render the action buttons?
Just disable the Clone button (grey/inactive) if there's no repo selected, and it might already work like that. It basically automatically fixes this too, because you can never select a repo in this case.
I'm curious if it makes sense to not render the Cancel / Clone buttons here unless we're signed in. Is it possible to conditionally render the action buttons?
Yup! Again this matches the existing Publish dialog nicely.
Activity
joshaber commentedon Jun 20, 2016
We'll also need to decide if we pre-cache the list of repos a user can clone, or just pull it down as needed. And if we wanna do searching locally vs. with API.
[-]Clone GitHub repository[/-][+]List GitHub repositories[/+][-]List GitHub repositories[/-][+]List & clone GitHub repositories[/+]shiftkey commentedon Jun 27, 2016
I'm not sure what you mean by "searching locally" here. Could you elaborate a bit?
niik commentedon Jun 27, 2016
... or pick a third option. I think we ought to consider not offering the kind of browse experience that we do today and instead try to optimize the experience for cloning arbitrary repositories. Right now we support that through drag-and-drop on Windows as well as the clone in desktop button on both platforms. We could offer up a simpler clone experience which lets you put in any URL as well as supporting shorthand cloning for github repositories (ie
desktop/desktopexpands to `https://github.com/desktop/desktop).I think he means that Mac currently caches all repositories from all organizations locally and refreshes them periodically whereas we on Windows loads them on demand. We could conceivably leverage the repository search API instead.
joshaber commentedon Jul 6, 2016
This will need some design for how we show the Clone popover/menu/whatever.
joshaber commentedon Aug 16, 2016
This feels a bit antithetical to our refocusing on GitHub, vs. being a general git client. @pmn, I'd be curious to hear your thoughts.
pmn commentedon Aug 23, 2016
There are a couple of parts to this -- one is whether GitHub Desktop should be a GitHub client over a general git client; and the other is whether it makes sense to optimize for cloning arbitrary repositories.
Since the focus of GitHub Desktop is changing to make it as easy and straightforward as possible to get their code onto GitHub.com or GitHub Enterprise, I don't think we need to prioritize making it as easy as possible to clone from any git URL, but if there's a way to get that for free it might be interesting. This idea from @niik was particularly interesting:
Browsing through repositories to find the one to clone can be frustrating when you're in an organization with a lot of repositories (like GitHub). Desktop on Windows does a pretty good job of lessening the pain here; but I would have much preferred to be able to select with [owner]/[repo] over dealing with a dropdown. Right now I copy and paste the clone url even when using Desktop because it's a faster interaction for me.
Supporting both of those things well plus allowing for "Open in Desktop" on the web makes it feel like we might be able to get away with using a dropdown.
joshaber commentedon Aug 23, 2016
Thanks @pmn!
Trying to distill this into a list:
owner/repo-namein an input field.Does (2) mean repository searching via the API, or is it entirely a shortcut for (1)?
pmn commentedon Aug 23, 2016
Hmm. This raises a question about whether or not it's possible to make it a shortcut for (1), since a user may want to clone from GitHub.com or GitHub Enterprise. If there's a way to know which thing they're trying to clone from, it probably works fine as a shortcut. Otherwise, there may have to be some other method of discerning which repo is meant by the shortcut entered.
joshaber commentedon Aug 23, 2016
Yeah good point. Most users aren't using Enterprise (we no longer track this, sadly). But for people who aren't it'd be a problem.
42 remaining items
rlabrecque commentedon Sep 6, 2017
Hiding the enterprise tab is negative in that it could be annoying for muscle memory for those that have enterprise on a work machine, but not at home. And it could create confusion like: "Where's the Enterprise tab?!".
It gives a good sales pitch area too.
Based on the above, but with no Enterprise account:
donokuda commentedon Sep 6, 2017
👍 and just for reference, we could use the same prompt in the publish repo tab.
joshaber commentedon Sep 6, 2017
💯💥
donokuda commentedon Sep 6, 2017
Fastest turnaround evar! 😄
I'm curious if it makes sense to not render the Cancel / Clone buttons here unless we're signed in. Is it possible to conditionally render the action buttons?
rlabrecque commentedon Sep 6, 2017
Just disable the Clone button (grey/inactive) if there's no repo selected, and it might already work like that. It basically automatically fixes this too, because you can never select a repo in this case.
joshaber commentedon Sep 6, 2017
Yup! Again this matches the existing Publish dialog nicely.
desktop#57 add basic resolve for search by asset code and anchor name
desktop#57 wire up anchor name matches to the new anchor view
desktop#57 finish search by asset code:
Merge pull request desktop#57 from keyboard2005/fix/patch-electron-in…