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

use a list of sites to chose from rather than entering the name manually #335

Merged
merged 2 commits into from
Jun 18, 2019

Conversation

jschatz1
Copy link
Contributor

@jschatz1 jschatz1 commented Jun 18, 2019

- Summary
netlify link makes you manually enter the name of your site, which may result in human error and a tedious process. I wanted to give users a list of sites so there's no human error involved.

- Test plan
Screen Shot 2019-06-18 at 1 56 06 PM

Screen Shot 2019-06-18 at 1 58 47 PM

Screen Shot 2019-06-18 at 1 59 38 PM

- Description for the changelog
Better DX for linking sites in netlify link

- A picture of a cute animal (not mandatory but encouraged)

image

@jschatz1 jschatz1 requested review from sdras and swyxio June 18, 2019 18:01
@@ -132,25 +123,19 @@ Run ${chalk.cyanBright('`git remote -v`')} to see a list of your git remotes.`)
}

if (sites.length === 0) {
context.error(`No sites found named ${siteName}`)
context.error(`You don't have any sites. Use netlify 'sites:create' to create a site.`)
Copy link
Member

Choose a reason for hiding this comment

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

At some point we could even consider letting the user pick a prompt to create a new site directly here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a great idea.

@biilmann
Copy link
Member

LGTM - have we tested on an account with lots of sites?

@jschatz1
Copy link
Contributor Author

@biilmann should be good with many sites: tada

@jschatz1 jschatz1 merged commit 6cd5e75 into master Jun 18, 2019
@jschatz1 jschatz1 deleted the better-link-site-messaging branch June 18, 2019 21:11
@verythorough
Copy link
Contributor

I don't think I'd count ~15 sites as "many". Some people have hundreds!

@swyxio
Copy link
Contributor

swyxio commented Jun 19, 2019

best to use autocomplete/filter to handle many sites

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

Successfully merging this pull request may close these issues.

4 participants