{"action":"created","comment":{"url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/pulls/comments/52404097","id":52404097,"diff_hunk":"@@ -1,70 +1,56 @@\n-<div>\n-  <h3>A credential consumer is requesting the following information:</h3>\n-  <p>\n-    Click each item and select a credential you would like to use\n-    to fulfill the request.\n-  </p>\n-  <div class=\"btn-group\" role=\"group\">\n-    <button ng-repeat=\"(property, choice) in choices\"\n-      type=\"button\" class=\"btn btn-default\"\n-      ng-click=\"showChoice(property)\">\n-      <span ng-if=\"!choice.selected\"\n-        class=\"fa fa-question-circle\"></span>\n-      <span ng-if=\"choice.selected\"\n-        class=\"fa fa-check-circle text-success\"></span>\n-      {{choice.label}}<span ng-if=\"choice.optional\"> (optional)</span>\n-    </button>\n-    <button\n-      type=\"button\" class=\"btn btn-default\"\n-      ng-disabled=\"!composed\"\n-      ng-click=\"done()\">Done</button>\n+<div ng-show=\"page == 'edit'\" class=\"row row-centered edit-header\">\n+  <div class=\"col-xs-2\">\n+    <a class=\"text-center\" ng-click=\"back()\"><span style=\"margin-top: 25px;\" class=\"glyphicon glyphicon-chevron-left\"/>Back</a>\n   </div>\n-  <div ng-repeat=\"(property, choice) in choices track by property\">\n-    <div ng-show=\"choice.show\">\n-      <h4>Select a credential for <strong>{{choice.label}}</strong>:</h4>\n-      <ul class=\"list-unstyled\">\n-        <li class=\"br-selectable well\"\n-          ng-class=\"{'br-selected': choice.selected === option.credential}\"\n-          ng-repeat=\"option in choice.options track by $index\"\n-          ng-click=\"choice.selected = option.credential\">\n-          <!-- TODO: replace with br-credential-thumbnail -->\n-          <div class=\"section\">\n-            <h3 class=\"headline\" style=\"margin-top: 5px\">\n-              {{option.credential.name || 'Credential'}}\n-              <span class=\"btn-group pull-right\">\n-                <button type=\"button\"\n-                  class=\"btn btn-default\"\n-                  ng-click=\"$event.stopPropagation(); showCredential(option)\">\n-                  <i class=\"fa fa-trophy fa-lg\"></i>\n-                </button>\n-              </span>\n-            </h3>\n-          </div>\n-          <br-credential\n-            br-credential=\"option.credential\"\n-            br-show-actions=\"false\"></br-credential>\n-        </li>\n-        <li class=\"well\"\n-          ng-if=\"choice.options.length == 0\">\n-          <strong>No credentials found.</strong>\n-        </li>\n-      </ul>\n+  <div class=\"col-xs-8\">\n+    <h2 class=\"text-center\">Edit Selection</h2>\n+  </div>\n+</div>\n+<div ng-show=\"page == 'front'\" class=\"row text-center front-page\">\n+  <div class=\"row\">\n+    <h4 class=\"\">A site is requesting the following credentials:</h4>\n+  </div>\n+  <div class=\"credential-container\">\n+    <p ng-repeat=\"credential in selectedCredentials\">{{credential.name}} <a class=\"glyphicon glyphicon-info-sign\" tooltip-html-unsafe=\"{{htmlClaimsForCredential(credential)}}\" tooltip-placement=\"right\"></a> <span ng-if=\"fulfillsExcessClaims(credential).length > 0\" style=\"color: #FFBB36;\" class=\"glyphicon glyphicon-alert\" tooltip-html-unsafe=\"{{htmlExcessClaimsForCredential(credential)}}\" tooltip-placement=\"right\"></span></p>\n+  </div>\n+  <div class=\"row\" style=\"margin-bottom: 30px;\">\n+    <a style=\"margin-bottom: 20px;\" ng-click=\"page = 'edit'\">\n+      Edit which credentials you're sending\n+    </a>\n+    <h5 tooltip-html-unsafe=\"{{htmlClaims()}}\" ng-if=\"selectedCredentials.length == 1\">Why does this site need this credential?</h5>","path":"identity-composer.html","position":70,"original_position":70,"commit_id":"b1a065dcc383bf5c5b2b7f7fc6ac03afbb2ac741","original_commit_id":"b1a065dcc383bf5c5b2b7f7fc6ac03afbb2ac741","user":{"login":"dlongley","id":168137,"avatar_url":"https://avatars.githubusercontent.com/u/168137?v=3","gravatar_id":"","url":"https://api.github.com/users/dlongley","html_url":"https://github.com/dlongley","followers_url":"https://api.github.com/users/dlongley/followers","following_url":"https://api.github.com/users/dlongley/following{/other_user}","gists_url":"https://api.github.com/users/dlongley/gists{/gist_id}","starred_url":"https://api.github.com/users/dlongley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlongley/subscriptions","organizations_url":"https://api.github.com/users/dlongley/orgs","repos_url":"https://api.github.com/users/dlongley/repos","events_url":"https://api.github.com/users/dlongley/events{/privacy}","received_events_url":"https://api.github.com/users/dlongley/received_events","type":"User","site_admin":false},"body":"We have popover support via angular-stackables.","created_at":"2016-02-10T01:33:04Z","updated_at":"2016-02-10T01:33:04Z","html_url":"https://github.com/digitalbazaar/bedrock-angular-identity-composer/pull/3#discussion_r52404097","pull_request_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/pulls/comments/52404097"},"html":{"href":"https://github.com/digitalbazaar/bedrock-angular-identity-composer/pull/3#discussion_r52404097"},"pull_request":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/pulls/3","id":54055895,"html_url":"https://github.com/digitalbazaar/bedrock-angular-identity-composer/pull/3","diff_url":"https://github.com/digitalbazaar/bedrock-angular-identity-composer/pull/3.diff","patch_url":"https://github.com/digitalbazaar/bedrock-angular-identity-composer/pull/3.patch","issue_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/issues/3","number":3,"state":"open","locked":false,"title":"Multipage composer","user":{"login":"lamara","id":3131977,"avatar_url":"https://avatars.githubusercontent.com/u/3131977?v=3","gravatar_id":"","url":"https://api.github.com/users/lamara","html_url":"https://github.com/lamara","followers_url":"https://api.github.com/users/lamara/followers","following_url":"https://api.github.com/users/lamara/following{/other_user}","gists_url":"https://api.github.com/users/lamara/gists{/gist_id}","starred_url":"https://api.github.com/users/lamara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamara/subscriptions","organizations_url":"https://api.github.com/users/lamara/orgs","repos_url":"https://api.github.com/users/lamara/repos","events_url":"https://api.github.com/users/lamara/events{/privacy}","received_events_url":"https://api.github.com/users/lamara/received_events","type":"User","site_admin":false},"body":"Needs to be rebased I think, but I'll put this up so you guys can take a look at it sooner rather than later (the code also needs to be cleaned up which I can do ASAP). \r\n\r\nThings look good with the identus flow, and if you don't want to go through setting that up it has a test project (run bedrock/test.js) that highlights a lot of the use cases.\r\n\r\nHave to link this with bedrock-angular-credential.\r\n\r\nThis still isn't perfect (the bootstrap tooltips are especially annoying), but I think it is a good working start that we can make use of. ","created_at":"2015-12-18T01:44:02Z","updated_at":"2016-02-10T01:33:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"04a298369ea39aedd5b98a26ff6e12ee60ee9f14","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/pulls/3/commits","review_comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/pulls/3/comments","review_comment_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/issues/3/comments","statuses_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/statuses/b1a065dcc383bf5c5b2b7f7fc6ac03afbb2ac741","head":{"label":"digitalbazaar:multipage_composer","ref":"multipage_composer","sha":"b1a065dcc383bf5c5b2b7f7fc6ac03afbb2ac741","user":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars.githubusercontent.com/u/167436?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"repo":{"id":36446332,"name":"bedrock-angular-identity-composer","full_name":"digitalbazaar/bedrock-angular-identity-composer","owner":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars.githubusercontent.com/u/167436?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalbazaar/bedrock-angular-identity-composer","description":"An bedrock-based AngularJS directive for composing an Identity from a set of credentials","fork":false,"url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer","forks_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/forks","keys_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/teams","hooks_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/hooks","issue_events_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/issues/events{/number}","events_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/events","assignees_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/assignees{/user}","branches_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/branches{/branch}","tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/tags","blobs_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/languages","stargazers_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/stargazers","contributors_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/contributors","subscribers_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/subscribers","subscription_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/subscription","commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/contents/{+path}","compare_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/merges","archive_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/downloads","issues_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/issues{/number}","pulls_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/labels{/name}","releases_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/releases{/id}","deployments_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/deployments","created_at":"2015-05-28T15:03:15Z","updated_at":"2015-05-28T15:17:07Z","pushed_at":"2016-02-09T22:39:57Z","git_url":"git://github.com/digitalbazaar/bedrock-angular-identity-composer.git","ssh_url":"git@github.com:digitalbazaar/bedrock-angular-identity-composer.git","clone_url":"https://github.com/digitalbazaar/bedrock-angular-identity-composer.git","svn_url":"https://github.com/digitalbazaar/bedrock-angular-identity-composer","homepage":null,"size":79,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"digitalbazaar:master","ref":"master","sha":"2ac7974e1e35aeacc2f61369b2ecfdb8afb32910","user":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars.githubusercontent.com/u/167436?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"repo":{"id":36446332,"name":"bedrock-angular-identity-composer","full_name":"digitalbazaar/bedrock-angular-identity-composer","owner":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars.githubusercontent.com/u/167436?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalbazaar/bedrock-angular-identity-composer","description":"An bedrock-based AngularJS directive for composing an Identity from a set of credentials","fork":false,"url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer","forks_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/forks","keys_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/teams","hooks_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/hooks","issue_events_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/issues/events{/number}","events_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/events","assignees_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/assignees{/user}","branches_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/branches{/branch}","tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/tags","blobs_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/languages","stargazers_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/stargazers","contributors_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/contributors","subscribers_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/subscribers","subscription_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/subscription","commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/contents/{+path}","compare_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/merges","archive_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/downloads","issues_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/issues{/number}","pulls_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/labels{/name}","releases_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/releases{/id}","deployments_url":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/deployments","created_at":"2015-05-28T15:03:15Z","updated_at":"2015-05-28T15:17:07Z","pushed_at":"2016-02-09T22:39:57Z","git_url":"git://github.com/digitalbazaar/bedrock-angular-identity-composer.git","ssh_url":"git@github.com:digitalbazaar/bedrock-angular-identity-composer.git","clone_url":"https://github.com/digitalbazaar/bedrock-angular-identity-composer.git","svn_url":"https://github.com/digitalbazaar/bedrock-angular-identity-composer","homepage":null,"size":79,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/pulls/3"},"html":{"href":"https://github.com/digitalbazaar/bedrock-angular-identity-composer/pull/3"},"issue":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/issues/3"},"comments":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-angular-identity-composer/statuses/b1a065dcc383bf5c5b2b7f7fc6ac03afbb2ac741"}}}}