)]}'
{"horizon/static/angular/widgets/wizard/wizard.service.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"e02038a28de9157c238c05e7727ee9d24ba7d504","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"  function Wizard(steps) {"},{"line_number":5,"context_line":"    this.data \u003d {};"},{"line_number":6,"context_line":"    this.selected \u003d null;"},{"line_number":7,"context_line":"    this.steps \u003d angular.copy(steps);"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"    if(this.steps.length \u003e 0) {"}],"source_content_type":"text/javascript","patch_set":3,"id":"3a961159_a48344c9","line":6,"updated":"2015-01-09 02:33:30.000000000","message":"I think this could be problematic if steps is not an array or has no length. Selected would remain null, and most of the functions below would break. Some of the expressions in the template would also break.","commit_id":"52c95798185e49ac14a6b7659c119f6cd7f39778"},{"author":{"_account_id":12825,"name":"Szymon Wróblewski","email":"szymon.wroblewski@ovhcloud.com","username":"bluex"},"change_message_id":"0ee3343b55ae59749f8ecbbbb85b584e073bdb75","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"  function Wizard(steps) {"},{"line_number":5,"context_line":"    this.data \u003d {};"},{"line_number":6,"context_line":"    this.selected \u003d null;"},{"line_number":7,"context_line":"    this.steps \u003d angular.copy(steps);"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"    if(this.steps.length \u003e 0) {"}],"source_content_type":"text/javascript","patch_set":3,"id":"3a961159_2cdac81d","line":6,"in_reply_to":"3a961159_a48344c9","updated":"2015-01-09 20:45:33.000000000","message":"Ok, changed a few parts to make code more error resistant.","commit_id":"52c95798185e49ac14a6b7659c119f6cd7f39778"}],"horizon/static/angular/widgets/wizard/wizard.tpl.html":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"e02038a28de9157c238c05e7727ee9d24ba7d504","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  \u003cdiv class\u003d\"modal-footer\"\u003e"},{"line_number":40,"context_line":"    \u003cdiv class\u003d\"btn-group\"\u003e"},{"line_number":41,"context_line":"      \u003cbutton ng-click\u003d\"wizard.prev()\""},{"line_number":42,"context_line":"              ng-disabled\u003d\"wizard.isFirst()\""},{"line_number":43,"context_line":"              class\u003d\"btn btn-sm btn-default\"\u003e"},{"line_number":44,"context_line":"        \u003ci class\u003d\"fa fa-chevron-left fa-fw\"\u003e\u003c/i\u003e"},{"line_number":45,"context_line":"        Back"}],"source_content_type":"text/html","patch_set":3,"id":"3a961159_44de2012","line":42,"updated":"2015-01-09 02:33:30.000000000","message":"Wouldn\u0027t it be better to just hide the button?","commit_id":"52c95798185e49ac14a6b7659c119f6cd7f39778"},{"author":{"_account_id":12825,"name":"Szymon Wróblewski","email":"szymon.wroblewski@ovhcloud.com","username":"bluex"},"change_message_id":"0ee3343b55ae59749f8ecbbbb85b584e073bdb75","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  \u003cdiv class\u003d\"modal-footer\"\u003e"},{"line_number":40,"context_line":"    \u003cdiv class\u003d\"btn-group\"\u003e"},{"line_number":41,"context_line":"      \u003cbutton ng-click\u003d\"wizard.prev()\""},{"line_number":42,"context_line":"              ng-disabled\u003d\"wizard.isFirst()\""},{"line_number":43,"context_line":"              class\u003d\"btn btn-sm btn-default\"\u003e"},{"line_number":44,"context_line":"        \u003ci class\u003d\"fa fa-chevron-left fa-fw\"\u003e\u003c/i\u003e"},{"line_number":45,"context_line":"        Back"}],"source_content_type":"text/html","patch_set":3,"id":"3a961159_ccd4e4bd","line":42,"in_reply_to":"3a961159_44de2012","updated":"2015-01-09 20:45:33.000000000","message":"IMO it\u0027s better to show user that back action will be available, but is disabled for the first step. I\u0027ll change that if you insist :)","commit_id":"52c95798185e49ac14a6b7659c119f6cd7f39778"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"e02038a28de9157c238c05e7727ee9d24ba7d504","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        \u003ci class\u003d\"fa fa-chevron-left fa-fw\"\u003e\u003c/i\u003e"},{"line_number":45,"context_line":"        Back"},{"line_number":46,"context_line":"      \u003c/button\u003e"},{"line_number":47,"context_line":"      \u003cbutton ng-click\u003d\"wizard.next()\""},{"line_number":48,"context_line":"              ng-disabled\u003d\"wizard.isLast()\""},{"line_number":49,"context_line":"              class\u003d\"btn btn-sm btn-primary\"\u003e"},{"line_number":50,"context_line":"        Next"}],"source_content_type":"text/html","patch_set":3,"id":"3a961159_843e4889","line":47,"updated":"2015-01-09 02:33:30.000000000","message":"If the current page contains error, we should disable \u003cNext\u003e button as well. However, we should still allow user to go \u003cBack\u003e because they may need to change a previous input before fixing the error.","commit_id":"52c95798185e49ac14a6b7659c119f6cd7f39778"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"eea3a59802a54297192d318207daec64e227c810","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        \u003ci class\u003d\"fa fa-chevron-left fa-fw\"\u003e\u003c/i\u003e"},{"line_number":45,"context_line":"        Back"},{"line_number":46,"context_line":"      \u003c/button\u003e"},{"line_number":47,"context_line":"      \u003cbutton ng-click\u003d\"wizard.next()\""},{"line_number":48,"context_line":"              ng-disabled\u003d\"wizard.isLast()\""},{"line_number":49,"context_line":"              class\u003d\"btn btn-sm btn-primary\"\u003e"},{"line_number":50,"context_line":"        Next"}],"source_content_type":"text/html","patch_set":3,"id":"3a961159_3c437d6d","line":47,"in_reply_to":"3a961159_1e17ebef","updated":"2015-01-13 20:14:45.000000000","message":"After taking a look at your POC, makes more sense to me. So user can jump around but are unable to submit until all errors are resolved. Having the icons really helped.","commit_id":"52c95798185e49ac14a6b7659c119f6cd7f39778"},{"author":{"_account_id":12825,"name":"Szymon Wróblewski","email":"szymon.wroblewski@ovhcloud.com","username":"bluex"},"change_message_id":"0ee3343b55ae59749f8ecbbbb85b584e073bdb75","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        \u003ci class\u003d\"fa fa-chevron-left fa-fw\"\u003e\u003c/i\u003e"},{"line_number":45,"context_line":"        Back"},{"line_number":46,"context_line":"      \u003c/button\u003e"},{"line_number":47,"context_line":"      \u003cbutton ng-click\u003d\"wizard.next()\""},{"line_number":48,"context_line":"              ng-disabled\u003d\"wizard.isLast()\""},{"line_number":49,"context_line":"              class\u003d\"btn btn-sm btn-primary\"\u003e"},{"line_number":50,"context_line":"        Next"}],"source_content_type":"text/html","patch_set":3,"id":"3a961159_cc05c416","line":47,"in_reply_to":"3a961159_843e4889","updated":"2015-01-09 20:45:33.000000000","message":"It was agreed that user should be able to jump into any step, skipping steps with proper defaults, rather than doing it one by one. I don\u0027t think blocking \u003cNext\u003e in this case is necessary. Again can be changed if you insist :)","commit_id":"52c95798185e49ac14a6b7659c119f6cd7f39778"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"d89af903a2d061c98c67cdbd7b09c8bcf0639e93","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        \u003ci class\u003d\"fa fa-chevron-left fa-fw\"\u003e\u003c/i\u003e"},{"line_number":45,"context_line":"        Back"},{"line_number":46,"context_line":"      \u003c/button\u003e"},{"line_number":47,"context_line":"      \u003cbutton ng-click\u003d\"wizard.next()\""},{"line_number":48,"context_line":"              ng-disabled\u003d\"wizard.isLast()\""},{"line_number":49,"context_line":"              class\u003d\"btn btn-sm btn-primary\"\u003e"},{"line_number":50,"context_line":"        Next"}],"source_content_type":"text/html","patch_set":3,"id":"3a961159_1e17ebef","line":47,"in_reply_to":"3a961159_cc05c416","updated":"2015-01-10 00:31:01.000000000","message":"Ah OK, understood. I think allowing users to skip steps is fine as long as the default values in there are valid. If the user modifies a value and there is an error in that step, then we should not let user leave until the error is fix.","commit_id":"52c95798185e49ac14a6b7659c119f6cd7f39778"}]}
