{"action":"created","comment":{"url":"https://api.github.com/repos/slamdata/slamdata/pulls/comments/63598275","id":63598275,"diff_hunk":"@@ -27,30 +27,39 @@ import SlamData.Workspace.Card.CardId (CardId)\n import SlamData.Workspace.Card.Model as Card\n \n type Deck =\n-  { name :: Maybe String\n-  , cards :: Array Card.Model\n-  , dependencies :: M.Map CardId CardId\n+  { name ∷ Maybe String\n+  , cards ∷ Array Card.Model\n+  , dependencies ∷ M.Map CardId CardId\n+  , activeIndex ∷ Int","path":"src/SlamData/Workspace/Deck/Model.purs","position":10,"original_position":10,"commit_id":"5329688ecaa86340caa3ba6c6771261320e4e4e0","original_commit_id":"5329688ecaa86340caa3ba6c6771261320e4e4e0","user":{"login":"cryogenian","id":10245930,"avatar_url":"https://avatars.githubusercontent.com/u/10245930?v=3","gravatar_id":"","url":"https://api.github.com/users/cryogenian","html_url":"https://github.com/cryogenian","followers_url":"https://api.github.com/users/cryogenian/followers","following_url":"https://api.github.com/users/cryogenian/following{/other_user}","gists_url":"https://api.github.com/users/cryogenian/gists{/gist_id}","starred_url":"https://api.github.com/users/cryogenian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryogenian/subscriptions","organizations_url":"https://api.github.com/users/cryogenian/orgs","repos_url":"https://api.github.com/users/cryogenian/repos","events_url":"https://api.github.com/users/cryogenian/events{/privacy}","received_events_url":"https://api.github.com/users/cryogenian/received_events","type":"User","site_admin":false},"body":"When we have an error in deck and set active card to be last it's possible to see blocked card on load. OTOH, it's forbidden to go rightward from error card. This behavior inconsistent. That's why `activeIndex` is added. ","created_at":"2016-05-17T20:33:27Z","updated_at":"2016-05-17T20:33:27Z","html_url":"https://github.com/slamdata/slamdata/pull/754#discussion_r63598275","pull_request_url":"https://api.github.com/repos/slamdata/slamdata/pulls/754","_links":{"self":{"href":"https://api.github.com/repos/slamdata/slamdata/pulls/comments/63598275"},"html":{"href":"https://github.com/slamdata/slamdata/pull/754#discussion_r63598275"},"pull_request":{"href":"https://api.github.com/repos/slamdata/slamdata/pulls/754"}}},"pull_request":{"url":"https://api.github.com/repos/slamdata/slamdata/pulls/754","id":70421565,"html_url":"https://github.com/slamdata/slamdata/pull/754","diff_url":"https://github.com/slamdata/slamdata/pull/754.diff","patch_url":"https://github.com/slamdata/slamdata/pull/754.patch","issue_url":"https://api.github.com/repos/slamdata/slamdata/issues/754","number":754,"state":"open","locked":false,"title":"deck indicator","user":{"login":"cryogenian","id":10245930,"avatar_url":"https://avatars.githubusercontent.com/u/10245930?v=3","gravatar_id":"","url":"https://api.github.com/users/cryogenian","html_url":"https://github.com/cryogenian","followers_url":"https://api.github.com/users/cryogenian/followers","following_url":"https://api.github.com/users/cryogenian/following{/other_user}","gists_url":"https://api.github.com/users/cryogenian/gists{/gist_id}","starred_url":"https://api.github.com/users/cryogenian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryogenian/subscriptions","organizations_url":"https://api.github.com/users/cryogenian/orgs","repos_url":"https://api.github.com/users/cryogenian/repos","events_url":"https://api.github.com/users/cryogenian/events{/privacy}","received_events_url":"https://api.github.com/users/cryogenian/received_events","type":"User","site_admin":false},"body":"<img width=\"198\" alt=\"2016-05-17 23 05 13\" src=\"https://cloud.githubusercontent.com/assets/10245930/15337344/ebffaece-1c83-11e6-87e2-c0255d7b250e.png\">\r\n<img width=\"200\" alt=\"2016-05-17 23 05 19\" src=\"https://cloud.githubusercontent.com/assets/10245930/15337347/ec01e5fe-1c83-11e6-8b20-60c84c571534.png\">\r\n<img width=\"173\" alt=\"2016-05-17 23 05 31\" src=\"https://cloud.githubusercontent.com/assets/10245930/15337345/ec000fd6-1c83-11e6-8494-fa8288fa5bb1.png\">\r\n<img width=\"165\" alt=\"2016-05-17 23 05 34\" src=\"https://cloud.githubusercontent.com/assets/10245930/15337346/ec00509a-1c83-11e6-94ac-0d3facafd4a3.png\">\r\n\r\n\r\nSolves https://slamdata.atlassian.net/browse/SD-1593 and https://slamdata.atlassian.net/browse/SD-1594 \r\n\r\n+ Deck indicator\r\n+ Saving/loading `activeIndex` to prevent loading on blocked cards. \r\n\r\n@natefaubion please, review","created_at":"2016-05-17T20:09:34Z","updated_at":"2016-05-17T20:33:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"natefaubion","id":144058,"avatar_url":"https://avatars.githubusercontent.com/u/144058?v=3","gravatar_id":"","url":"https://api.github.com/users/natefaubion","html_url":"https://github.com/natefaubion","followers_url":"https://api.github.com/users/natefaubion/followers","following_url":"https://api.github.com/users/natefaubion/following{/other_user}","gists_url":"https://api.github.com/users/natefaubion/gists{/gist_id}","starred_url":"https://api.github.com/users/natefaubion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natefaubion/subscriptions","organizations_url":"https://api.github.com/users/natefaubion/orgs","repos_url":"https://api.github.com/users/natefaubion/repos","events_url":"https://api.github.com/users/natefaubion/events{/privacy}","received_events_url":"https://api.github.com/users/natefaubion/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/slamdata/slamdata/pulls/754/commits","review_comments_url":"https://api.github.com/repos/slamdata/slamdata/pulls/754/comments","review_comment_url":"https://api.github.com/repos/slamdata/slamdata/pulls/comments{/number}","comments_url":"https://api.github.com/repos/slamdata/slamdata/issues/754/comments","statuses_url":"https://api.github.com/repos/slamdata/slamdata/statuses/5329688ecaa86340caa3ba6c6771261320e4e4e0","head":{"label":"cryogenian:deck-indicator","ref":"deck-indicator","sha":"5329688ecaa86340caa3ba6c6771261320e4e4e0","user":{"login":"cryogenian","id":10245930,"avatar_url":"https://avatars.githubusercontent.com/u/10245930?v=3","gravatar_id":"","url":"https://api.github.com/users/cryogenian","html_url":"https://github.com/cryogenian","followers_url":"https://api.github.com/users/cryogenian/followers","following_url":"https://api.github.com/users/cryogenian/following{/other_user}","gists_url":"https://api.github.com/users/cryogenian/gists{/gist_id}","starred_url":"https://api.github.com/users/cryogenian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryogenian/subscriptions","organizations_url":"https://api.github.com/users/cryogenian/orgs","repos_url":"https://api.github.com/users/cryogenian/repos","events_url":"https://api.github.com/users/cryogenian/events{/privacy}","received_events_url":"https://api.github.com/users/cryogenian/received_events","type":"User","site_admin":false},"repo":{"id":30622455,"name":"slamdata","full_name":"cryogenian/slamdata","owner":{"login":"cryogenian","id":10245930,"avatar_url":"https://avatars.githubusercontent.com/u/10245930?v=3","gravatar_id":"","url":"https://api.github.com/users/cryogenian","html_url":"https://github.com/cryogenian","followers_url":"https://api.github.com/users/cryogenian/followers","following_url":"https://api.github.com/users/cryogenian/following{/other_user}","gists_url":"https://api.github.com/users/cryogenian/gists{/gist_id}","starred_url":"https://api.github.com/users/cryogenian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryogenian/subscriptions","organizations_url":"https://api.github.com/users/cryogenian/orgs","repos_url":"https://api.github.com/users/cryogenian/repos","events_url":"https://api.github.com/users/cryogenian/events{/privacy}","received_events_url":"https://api.github.com/users/cryogenian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cryogenian/slamdata","description":"The web-based front-end for SlamData.","fork":true,"url":"https://api.github.com/repos/cryogenian/slamdata","forks_url":"https://api.github.com/repos/cryogenian/slamdata/forks","keys_url":"https://api.github.com/repos/cryogenian/slamdata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cryogenian/slamdata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cryogenian/slamdata/teams","hooks_url":"https://api.github.com/repos/cryogenian/slamdata/hooks","issue_events_url":"https://api.github.com/repos/cryogenian/slamdata/issues/events{/number}","events_url":"https://api.github.com/repos/cryogenian/slamdata/events","assignees_url":"https://api.github.com/repos/cryogenian/slamdata/assignees{/user}","branches_url":"https://api.github.com/repos/cryogenian/slamdata/branches{/branch}","tags_url":"https://api.github.com/repos/cryogenian/slamdata/tags","blobs_url":"https://api.github.com/repos/cryogenian/slamdata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cryogenian/slamdata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cryogenian/slamdata/git/refs{/sha}","trees_url":"https://api.github.com/repos/cryogenian/slamdata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cryogenian/slamdata/statuses/{sha}","languages_url":"https://api.github.com/repos/cryogenian/slamdata/languages","stargazers_url":"https://api.github.com/repos/cryogenian/slamdata/stargazers","contributors_url":"https://api.github.com/repos/cryogenian/slamdata/contributors","subscribers_url":"https://api.github.com/repos/cryogenian/slamdata/subscribers","subscription_url":"https://api.github.com/repos/cryogenian/slamdata/subscription","commits_url":"https://api.github.com/repos/cryogenian/slamdata/commits{/sha}","git_commits_url":"https://api.github.com/repos/cryogenian/slamdata/git/commits{/sha}","comments_url":"https://api.github.com/repos/cryogenian/slamdata/comments{/number}","issue_comment_url":"https://api.github.com/repos/cryogenian/slamdata/issues/comments{/number}","contents_url":"https://api.github.com/repos/cryogenian/slamdata/contents/{+path}","compare_url":"https://api.github.com/repos/cryogenian/slamdata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cryogenian/slamdata/merges","archive_url":"https://api.github.com/repos/cryogenian/slamdata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cryogenian/slamdata/downloads","issues_url":"https://api.github.com/repos/cryogenian/slamdata/issues{/number}","pulls_url":"https://api.github.com/repos/cryogenian/slamdata/pulls{/number}","milestones_url":"https://api.github.com/repos/cryogenian/slamdata/milestones{/number}","notifications_url":"https://api.github.com/repos/cryogenian/slamdata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cryogenian/slamdata/labels{/name}","releases_url":"https://api.github.com/repos/cryogenian/slamdata/releases{/id}","deployments_url":"https://api.github.com/repos/cryogenian/slamdata/deployments","created_at":"2015-02-11T00:36:12Z","updated_at":"2015-07-22T14:28:43Z","pushed_at":"2016-05-17T20:03:25Z","git_url":"git://github.com/cryogenian/slamdata.git","ssh_url":"git@github.com:cryogenian/slamdata.git","clone_url":"https://github.com/cryogenian/slamdata.git","svn_url":"https://github.com/cryogenian/slamdata","homepage":null,"size":334888,"stargazers_count":0,"watchers_count":0,"language":"PureScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"slamdata:master","ref":"master","sha":"d122b376505e417576250d6403842b649b3f5cbe","user":{"login":"slamdata","id":5385602,"avatar_url":"https://avatars.githubusercontent.com/u/5385602?v=3","gravatar_id":"","url":"https://api.github.com/users/slamdata","html_url":"https://github.com/slamdata","followers_url":"https://api.github.com/users/slamdata/followers","following_url":"https://api.github.com/users/slamdata/following{/other_user}","gists_url":"https://api.github.com/users/slamdata/gists{/gist_id}","starred_url":"https://api.github.com/users/slamdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slamdata/subscriptions","organizations_url":"https://api.github.com/users/slamdata/orgs","repos_url":"https://api.github.com/users/slamdata/repos","events_url":"https://api.github.com/users/slamdata/events{/privacy}","received_events_url":"https://api.github.com/users/slamdata/received_events","type":"Organization","site_admin":false},"repo":{"id":30566154,"name":"slamdata","full_name":"slamdata/slamdata","owner":{"login":"slamdata","id":5385602,"avatar_url":"https://avatars.githubusercontent.com/u/5385602?v=3","gravatar_id":"","url":"https://api.github.com/users/slamdata","html_url":"https://github.com/slamdata","followers_url":"https://api.github.com/users/slamdata/followers","following_url":"https://api.github.com/users/slamdata/following{/other_user}","gists_url":"https://api.github.com/users/slamdata/gists{/gist_id}","starred_url":"https://api.github.com/users/slamdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slamdata/subscriptions","organizations_url":"https://api.github.com/users/slamdata/orgs","repos_url":"https://api.github.com/users/slamdata/repos","events_url":"https://api.github.com/users/slamdata/events{/privacy}","received_events_url":"https://api.github.com/users/slamdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/slamdata/slamdata","description":"The web-based front-end for SlamData.","fork":false,"url":"https://api.github.com/repos/slamdata/slamdata","forks_url":"https://api.github.com/repos/slamdata/slamdata/forks","keys_url":"https://api.github.com/repos/slamdata/slamdata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slamdata/slamdata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slamdata/slamdata/teams","hooks_url":"https://api.github.com/repos/slamdata/slamdata/hooks","issue_events_url":"https://api.github.com/repos/slamdata/slamdata/issues/events{/number}","events_url":"https://api.github.com/repos/slamdata/slamdata/events","assignees_url":"https://api.github.com/repos/slamdata/slamdata/assignees{/user}","branches_url":"https://api.github.com/repos/slamdata/slamdata/branches{/branch}","tags_url":"https://api.github.com/repos/slamdata/slamdata/tags","blobs_url":"https://api.github.com/repos/slamdata/slamdata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slamdata/slamdata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slamdata/slamdata/git/refs{/sha}","trees_url":"https://api.github.com/repos/slamdata/slamdata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slamdata/slamdata/statuses/{sha}","languages_url":"https://api.github.com/repos/slamdata/slamdata/languages","stargazers_url":"https://api.github.com/repos/slamdata/slamdata/stargazers","contributors_url":"https://api.github.com/repos/slamdata/slamdata/contributors","subscribers_url":"https://api.github.com/repos/slamdata/slamdata/subscribers","subscription_url":"https://api.github.com/repos/slamdata/slamdata/subscription","commits_url":"https://api.github.com/repos/slamdata/slamdata/commits{/sha}","git_commits_url":"https://api.github.com/repos/slamdata/slamdata/git/commits{/sha}","comments_url":"https://api.github.com/repos/slamdata/slamdata/comments{/number}","issue_comment_url":"https://api.github.com/repos/slamdata/slamdata/issues/comments{/number}","contents_url":"https://api.github.com/repos/slamdata/slamdata/contents/{+path}","compare_url":"https://api.github.com/repos/slamdata/slamdata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slamdata/slamdata/merges","archive_url":"https://api.github.com/repos/slamdata/slamdata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slamdata/slamdata/downloads","issues_url":"https://api.github.com/repos/slamdata/slamdata/issues{/number}","pulls_url":"https://api.github.com/repos/slamdata/slamdata/pulls{/number}","milestones_url":"https://api.github.com/repos/slamdata/slamdata/milestones{/number}","notifications_url":"https://api.github.com/repos/slamdata/slamdata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slamdata/slamdata/labels{/name}","releases_url":"https://api.github.com/repos/slamdata/slamdata/releases{/id}","deployments_url":"https://api.github.com/repos/slamdata/slamdata/deployments","created_at":"2015-02-10T00:14:37Z","updated_at":"2016-05-15T06:04:38Z","pushed_at":"2016-05-17T20:09:35Z","git_url":"git://github.com/slamdata/slamdata.git","ssh_url":"git@github.com:slamdata/slamdata.git","clone_url":"https://github.com/slamdata/slamdata.git","svn_url":"https://github.com/slamdata/slamdata","homepage":null,"size":345690,"stargazers_count":125,"watchers_count":125,"language":"PureScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":26,"forks":30,"open_issues":26,"watchers":125,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/slamdata/slamdata/pulls/754"},"html":{"href":"https://github.com/slamdata/slamdata/pull/754"},"issue":{"href":"https://api.github.com/repos/slamdata/slamdata/issues/754"},"comments":{"href":"https://api.github.com/repos/slamdata/slamdata/issues/754/comments"},"review_comments":{"href":"https://api.github.com/repos/slamdata/slamdata/pulls/754/comments"},"review_comment":{"href":"https://api.github.com/repos/slamdata/slamdata/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/slamdata/slamdata/pulls/754/commits"},"statuses":{"href":"https://api.github.com/repos/slamdata/slamdata/statuses/5329688ecaa86340caa3ba6c6771261320e4e4e0"}}}}