{"action":"created","issue":{"url":"https://api.github.com/repos/fabric8io/fabric8/issues/5478","labels_url":"https://api.github.com/repos/fabric8io/fabric8/issues/5478/labels{/name}","comments_url":"https://api.github.com/repos/fabric8io/fabric8/issues/5478/comments","events_url":"https://api.github.com/repos/fabric8io/fabric8/issues/5478/events","html_url":"https://github.com/fabric8io/fabric8/issues/5478","id":122708960,"number":5478,"title":"camel commands (like add component, add endpoint) should use a DTO for the Component name","user":{"login":"jstrachan","id":30140,"avatar_url":"https://avatars.githubusercontent.com/u/30140?v=3","gravatar_id":"","url":"https://api.github.com/users/jstrachan","html_url":"https://github.com/jstrachan","followers_url":"https://api.github.com/users/jstrachan/followers","following_url":"https://api.github.com/users/jstrachan/following{/other_user}","gists_url":"https://api.github.com/users/jstrachan/gists{/gist_id}","starred_url":"https://api.github.com/users/jstrachan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstrachan/subscriptions","organizations_url":"https://api.github.com/users/jstrachan/orgs","repos_url":"https://api.github.com/users/jstrachan/repos","events_url":"https://api.github.com/users/jstrachan/events{/privacy}","received_events_url":"https://api.github.com/users/jstrachan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"davsclaus","id":477100,"avatar_url":"https://avatars.githubusercontent.com/u/477100?v=3","gravatar_id":"","url":"https://api.github.com/users/davsclaus","html_url":"https://github.com/davsclaus","followers_url":"https://api.github.com/users/davsclaus/followers","following_url":"https://api.github.com/users/davsclaus/following{/other_user}","gists_url":"https://api.github.com/users/davsclaus/gists{/gist_id}","starred_url":"https://api.github.com/users/davsclaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davsclaus/subscriptions","organizations_url":"https://api.github.com/users/davsclaus/orgs","repos_url":"https://api.github.com/users/davsclaus/repos","events_url":"https://api.github.com/users/davsclaus/events{/privacy}","received_events_url":"https://api.github.com/users/davsclaus/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-12-17T10:42:41Z","updated_at":"2015-12-17T15:23:58Z","closed_at":null,"body":"then we can return as much metadata as we can about a component (name, description, category, description, icon etc) then we can show a table or grid or something a little nicer to choose between\r\n\r\nIf you want to crib code we do this now for Pipeline choosing:\r\n\r\n* PipelineDTO: https://github.com/jstrachan/fabric8/blob/41ed8c09438eb3f45a2bdc17b7b58ab77b4b8b96/forge/addons/devops/src/main/java/io/fabric8/forge/devops/dto/PipelineDTO.java#L25-L25\r\n* selecting it in the forge command: https://github.com/jstrachan/fabric8/blob/982004020d2e95c61004db5bf7573514738ba5cd/forge/addons/devops/src/main/java/io/fabric8/forge/devops/DevOpsEditStep.java#L87-L87\r\n* then you need to add a converter from String name -> DTO (for when we send/validate input): https://github.com/jstrachan/fabric8/blob/982004020d2e95c61004db5bf7573514738ba5cd/forge/addons/devops/src/main/java/io/fabric8/forge/devops/DevOpsEditStep.java#L132\r\n"},"comment":{"url":"https://api.github.com/repos/fabric8io/fabric8/issues/comments/165482499","html_url":"https://github.com/fabric8io/fabric8/issues/5478#issuecomment-165482499","issue_url":"https://api.github.com/repos/fabric8io/fabric8/issues/5478","id":165482499,"user":{"login":"jstrachan","id":30140,"avatar_url":"https://avatars.githubusercontent.com/u/30140?v=3","gravatar_id":"","url":"https://api.github.com/users/jstrachan","html_url":"https://github.com/jstrachan","followers_url":"https://api.github.com/users/jstrachan/followers","following_url":"https://api.github.com/users/jstrachan/following{/other_user}","gists_url":"https://api.github.com/users/jstrachan/gists{/gist_id}","starred_url":"https://api.github.com/users/jstrachan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstrachan/subscriptions","organizations_url":"https://api.github.com/users/jstrachan/orgs","repos_url":"https://api.github.com/users/jstrachan/repos","events_url":"https://api.github.com/users/jstrachan/events{/privacy}","received_events_url":"https://api.github.com/users/jstrachan/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T15:23:58Z","updated_at":"2015-12-17T15:23:58Z","body":"@davsclaus LOL :)\r\n\r\ngiven the large number of components these days I don't think its unreasonable to make users pick a catagory first; they can always go back and change it via the wizard interface etc. Plus showing 200 components in a pick list isn't great anyway - so forcing a category selection sounds good to me. \r\n\r\nThe 2 fields on one form doesn't work too great on the web UI either btw; so having 2 pages might be easier"}}