-
Notifications
You must be signed in to change notification settings - Fork 369
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
Conversation
@@ -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.`) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
LGTM - have we tested on an account with lots of sites? |
@biilmann should be good with many sites: |
I don't think I'd count ~15 sites as "many". Some people have hundreds! |
best to use autocomplete/filter to handle many sites |
- 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
- Description for the changelog
Better DX for linking sites in
netlify link
- A picture of a cute animal (not mandatory but encouraged)