jenkins-x / vscode-jx-tools

Jenkins X extension for Visual Studio Code
22 stars 9 forks source link

add a UI wizard to import projects #3

Open jstrachan opened 6 years ago

mkramb commented 6 years ago

Do we have any thoughts about how the UX for this should look like? Should this just start a new session (custom command) in the integrated terminal? From what I see vscode only supports few built-in UI API widgets (like sidebar, custom command)?

jstrachan commented 6 years ago

I think this could be quite tricky; as we've lots of possible inputs when using jx create spring|quickstart; even jx import prompts you for various input like the git provider/organisation and repo names etc.

The jx CLI is using the survey library to ask for information from the CLI; to really do this properly we'll need to create a web UI in HTML probably. We could maybe look at using some jx CLI steps that can return JSON for things like the available git servers; for one server the available organisations/users; then for git server + organisation/user validate if a git repo name is valid etc so that we can provide a UI.

That kinda stuff might be simpler in the CloudBees app for Kubernetes UI - we could just render that web page inside VS Code maybe?

There's probably more quick wins we can do elsewhere maybe... ;)

jstrachan commented 6 years ago

have updated this issue to be an import wizard as folks could use the start.spring.initalizr directly - ditto other kinds of wizards - we just need a way to import projects into Jenkins X.

There's still the issue of the UI for importing stuff for things like picking git provider, organisation, repo name and stuff mind you - but its simpler at least

jenkins-x-bot commented 5 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close. Provide feedback via https://jenkins-x.io/community. /lifecycle stale