{"action":"created","comment":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/comments/142377865","pull_request_review_id":66728780,"id":142377865,"diff_hunk":"@@ -0,0 +1,141 @@\n+/**\n+ * Copyright 2017 The AMP HTML Authors. All Rights Reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS-IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+import {dev} from '../../../src/log';\n+import {scale, setStyles} from '../../../src/style';\n+import {scopedQuerySelector} from '../../../src/dom';\n+import {Services} from '../../../src/services';\n+\n+\n+/**\n+ * Progress bar for <amp-story>.\n+ */\n+export class ProgressBar {","path":"extensions/amp-story/0.1/progress-bar.js","position":25,"original_position":25,"commit_id":"2681928835c1c25ccb2a90d464215908dbfb02ac","original_commit_id":"2681928835c1c25ccb2a90d464215908dbfb02ac","user":{"login":"newmuis","id":1651960,"avatar_url":"https://avatars3.githubusercontent.com/u/1651960?v=4","gravatar_id":"","url":"https://api.github.com/users/newmuis","html_url":"https://github.com/newmuis","followers_url":"https://api.github.com/users/newmuis/followers","following_url":"https://api.github.com/users/newmuis/following{/other_user}","gists_url":"https://api.github.com/users/newmuis/gists{/gist_id}","starred_url":"https://api.github.com/users/newmuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newmuis/subscriptions","organizations_url":"https://api.github.com/users/newmuis/orgs","repos_url":"https://api.github.com/users/newmuis/repos","events_url":"https://api.github.com/users/newmuis/events{/privacy}","received_events_url":"https://api.github.com/users/newmuis/received_events","type":"User","site_admin":false},"body":"This is a segmented progress bar, like:\r\n\r\n![image](https://user-images.githubusercontent.com/1651960/31123435-ebb7e816-a80d-11e7-9773-80df5b2c429b.png)\r\n\r\nAnother way to think of this is as a \"progress bar of progress bars.\"  The innermost one could be implemented as the [`<progress>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) element, but those are difficult to animate with CSS cross-browser, so it may just be worth doing the work to make the `<li>`/`<div>`-based approach work.","created_at":"2017-10-03T11:41:34Z","updated_at":"2017-10-03T11:41:35Z","html_url":"https://github.com/ampproject/amphtml/pull/11527#discussion_r142377865","pull_request_url":"https://api.github.com/repos/ampproject/amphtml/pulls/11527","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/comments/142377865"},"html":{"href":"https://github.com/ampproject/amphtml/pull/11527#discussion_r142377865"},"pull_request":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/11527"}},"in_reply_to_id":142282835},"pull_request":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/11527","id":144250671,"html_url":"https://github.com/ampproject/amphtml/pull/11527","diff_url":"https://github.com/ampproject/amphtml/pull/11527.diff","patch_url":"https://github.com/ampproject/amphtml/pull/11527.patch","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/11527","number":11527,"state":"open","locked":false,"title":"Implement system layer components for amp-story","user":{"login":"alanorozco","id":254946,"avatar_url":"https://avatars2.githubusercontent.com/u/254946?v=4","gravatar_id":"","url":"https://api.github.com/users/alanorozco","html_url":"https://github.com/alanorozco","followers_url":"https://api.github.com/users/alanorozco/followers","following_url":"https://api.github.com/users/alanorozco/following{/other_user}","gists_url":"https://api.github.com/users/alanorozco/gists{/gist_id}","starred_url":"https://api.github.com/users/alanorozco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanorozco/subscriptions","organizations_url":"https://api.github.com/users/alanorozco/orgs","repos_url":"https://api.github.com/users/alanorozco/repos","events_url":"https://api.github.com/users/alanorozco/events{/privacy}","received_events_url":"https://api.github.com/users/alanorozco/received_events","type":"User","site_admin":false},"body":"From https://github.com/newmuis/amphtml-story/pull/21, https://github.com/newmuis/amphtml-story/pull/26, https://github.com/newmuis/amphtml-story/pull/188\r\n\r\n/cc @newmuis ","created_at":"2017-10-02T18:26:34Z","updated_at":"2017-10-03T11:41:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f1505e5f2f02bad4c9e9e8afe6c7455ef0137ef","assignee":null,"assignees":[],"requested_reviewers":[{"login":"dvoytenko","id":726049,"avatar_url":"https://avatars0.githubusercontent.com/u/726049?v=4","gravatar_id":"","url":"https://api.github.com/users/dvoytenko","html_url":"https://github.com/dvoytenko","followers_url":"https://api.github.com/users/dvoytenko/followers","following_url":"https://api.github.com/users/dvoytenko/following{/other_user}","gists_url":"https://api.github.com/users/dvoytenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dvoytenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvoytenko/subscriptions","organizations_url":"https://api.github.com/users/dvoytenko/orgs","repos_url":"https://api.github.com/users/dvoytenko/repos","events_url":"https://api.github.com/users/dvoytenko/events{/privacy}","received_events_url":"https://api.github.com/users/dvoytenko/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ampproject/amphtml/milestones/20","html_url":"https://github.com/ampproject/amphtml/milestone/20","labels_url":"https://api.github.com/repos/ampproject/amphtml/milestones/20/labels","id":1884542,"number":20,"title":"Pending Triage","description":"These issues need to get put into another milestone. They should be assigned to the person who can best decide the appropriate milestone. Optionally, the issue can then be assigned to the most likely implementer.","creator":{"login":"rudygalfi","id":3888212,"avatar_url":"https://avatars3.githubusercontent.com/u/3888212?v=4","gravatar_id":"","url":"https://api.github.com/users/rudygalfi","html_url":"https://github.com/rudygalfi","followers_url":"https://api.github.com/users/rudygalfi/followers","following_url":"https://api.github.com/users/rudygalfi/following{/other_user}","gists_url":"https://api.github.com/users/rudygalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/rudygalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudygalfi/subscriptions","organizations_url":"https://api.github.com/users/rudygalfi/orgs","repos_url":"https://api.github.com/users/rudygalfi/repos","events_url":"https://api.github.com/users/rudygalfi/events{/privacy}","received_events_url":"https://api.github.com/users/rudygalfi/received_events","type":"User","site_admin":false},"open_issues":253,"closed_issues":310,"state":"open","created_at":"2016-07-14T23:13:22Z","updated_at":"2017-10-02T23:36:34Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/ampproject/amphtml/pulls/11527/commits","review_comments_url":"https://api.github.com/repos/ampproject/amphtml/pulls/11527/comments","review_comment_url":"https://api.github.com/repos/ampproject/amphtml/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/11527/comments","statuses_url":"https://api.github.com/repos/ampproject/amphtml/statuses/2681928835c1c25ccb2a90d464215908dbfb02ac","head":{"label":"alanorozco:story-system-layer","ref":"story-system-layer","sha":"2681928835c1c25ccb2a90d464215908dbfb02ac","user":{"login":"alanorozco","id":254946,"avatar_url":"https://avatars2.githubusercontent.com/u/254946?v=4","gravatar_id":"","url":"https://api.github.com/users/alanorozco","html_url":"https://github.com/alanorozco","followers_url":"https://api.github.com/users/alanorozco/followers","following_url":"https://api.github.com/users/alanorozco/following{/other_user}","gists_url":"https://api.github.com/users/alanorozco/gists{/gist_id}","starred_url":"https://api.github.com/users/alanorozco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanorozco/subscriptions","organizations_url":"https://api.github.com/users/alanorozco/orgs","repos_url":"https://api.github.com/users/alanorozco/repos","events_url":"https://api.github.com/users/alanorozco/events{/privacy}","received_events_url":"https://api.github.com/users/alanorozco/received_events","type":"User","site_admin":false},"repo":{"id":81253386,"name":"amphtml","full_name":"alanorozco/amphtml","owner":{"login":"alanorozco","id":254946,"avatar_url":"https://avatars2.githubusercontent.com/u/254946?v=4","gravatar_id":"","url":"https://api.github.com/users/alanorozco","html_url":"https://github.com/alanorozco","followers_url":"https://api.github.com/users/alanorozco/followers","following_url":"https://api.github.com/users/alanorozco/following{/other_user}","gists_url":"https://api.github.com/users/alanorozco/gists{/gist_id}","starred_url":"https://api.github.com/users/alanorozco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanorozco/subscriptions","organizations_url":"https://api.github.com/users/alanorozco/orgs","repos_url":"https://api.github.com/users/alanorozco/repos","events_url":"https://api.github.com/users/alanorozco/events{/privacy}","received_events_url":"https://api.github.com/users/alanorozco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alanorozco/amphtml","description":"AMP HTML source code, samples, and documentation.  See below for more info.","fork":true,"url":"https://api.github.com/repos/alanorozco/amphtml","forks_url":"https://api.github.com/repos/alanorozco/amphtml/forks","keys_url":"https://api.github.com/repos/alanorozco/amphtml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alanorozco/amphtml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alanorozco/amphtml/teams","hooks_url":"https://api.github.com/repos/alanorozco/amphtml/hooks","issue_events_url":"https://api.github.com/repos/alanorozco/amphtml/issues/events{/number}","events_url":"https://api.github.com/repos/alanorozco/amphtml/events","assignees_url":"https://api.github.com/repos/alanorozco/amphtml/assignees{/user}","branches_url":"https://api.github.com/repos/alanorozco/amphtml/branches{/branch}","tags_url":"https://api.github.com/repos/alanorozco/amphtml/tags","blobs_url":"https://api.github.com/repos/alanorozco/amphtml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alanorozco/amphtml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alanorozco/amphtml/git/refs{/sha}","trees_url":"https://api.github.com/repos/alanorozco/amphtml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alanorozco/amphtml/statuses/{sha}","languages_url":"https://api.github.com/repos/alanorozco/amphtml/languages","stargazers_url":"https://api.github.com/repos/alanorozco/amphtml/stargazers","contributors_url":"https://api.github.com/repos/alanorozco/amphtml/contributors","subscribers_url":"https://api.github.com/repos/alanorozco/amphtml/subscribers","subscription_url":"https://api.github.com/repos/alanorozco/amphtml/subscription","commits_url":"https://api.github.com/repos/alanorozco/amphtml/commits{/sha}","git_commits_url":"https://api.github.com/repos/alanorozco/amphtml/git/commits{/sha}","comments_url":"https://api.github.com/repos/alanorozco/amphtml/comments{/number}","issue_comment_url":"https://api.github.com/repos/alanorozco/amphtml/issues/comments{/number}","contents_url":"https://api.github.com/repos/alanorozco/amphtml/contents/{+path}","compare_url":"https://api.github.com/repos/alanorozco/amphtml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alanorozco/amphtml/merges","archive_url":"https://api.github.com/repos/alanorozco/amphtml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alanorozco/amphtml/downloads","issues_url":"https://api.github.com/repos/alanorozco/amphtml/issues{/number}","pulls_url":"https://api.github.com/repos/alanorozco/amphtml/pulls{/number}","milestones_url":"https://api.github.com/repos/alanorozco/amphtml/milestones{/number}","notifications_url":"https://api.github.com/repos/alanorozco/amphtml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alanorozco/amphtml/labels{/name}","releases_url":"https://api.github.com/repos/alanorozco/amphtml/releases{/id}","deployments_url":"https://api.github.com/repos/alanorozco/amphtml/deployments","created_at":"2017-02-07T20:56:38Z","updated_at":"2017-02-07T20:56:45Z","pushed_at":"2017-10-02T22:42:06Z","git_url":"git://github.com/alanorozco/amphtml.git","ssh_url":"git@github.com:alanorozco/amphtml.git","clone_url":"https://github.com/alanorozco/amphtml.git","svn_url":"https://github.com/alanorozco/amphtml","homepage":"https://ampproject.org","size":260576,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ampproject:master","ref":"master","sha":"777fb269f2533060115fb01eae515c3efeedc3c2","user":{"login":"ampproject","id":14114390,"avatar_url":"https://avatars3.githubusercontent.com/u/14114390?v=4","gravatar_id":"","url":"https://api.github.com/users/ampproject","html_url":"https://github.com/ampproject","followers_url":"https://api.github.com/users/ampproject/followers","following_url":"https://api.github.com/users/ampproject/following{/other_user}","gists_url":"https://api.github.com/users/ampproject/gists{/gist_id}","starred_url":"https://api.github.com/users/ampproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampproject/subscriptions","organizations_url":"https://api.github.com/users/ampproject/orgs","repos_url":"https://api.github.com/users/ampproject/repos","events_url":"https://api.github.com/users/ampproject/events{/privacy}","received_events_url":"https://api.github.com/users/ampproject/received_events","type":"Organization","site_admin":false},"repo":{"id":41766002,"name":"amphtml","full_name":"ampproject/amphtml","owner":{"login":"ampproject","id":14114390,"avatar_url":"https://avatars3.githubusercontent.com/u/14114390?v=4","gravatar_id":"","url":"https://api.github.com/users/ampproject","html_url":"https://github.com/ampproject","followers_url":"https://api.github.com/users/ampproject/followers","following_url":"https://api.github.com/users/ampproject/following{/other_user}","gists_url":"https://api.github.com/users/ampproject/gists{/gist_id}","starred_url":"https://api.github.com/users/ampproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampproject/subscriptions","organizations_url":"https://api.github.com/users/ampproject/orgs","repos_url":"https://api.github.com/users/ampproject/repos","events_url":"https://api.github.com/users/ampproject/events{/privacy}","received_events_url":"https://api.github.com/users/ampproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ampproject/amphtml","description":"AMP HTML source code, samples, and documentation.  See below for more info.","fork":false,"url":"https://api.github.com/repos/ampproject/amphtml","forks_url":"https://api.github.com/repos/ampproject/amphtml/forks","keys_url":"https://api.github.com/repos/ampproject/amphtml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ampproject/amphtml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ampproject/amphtml/teams","hooks_url":"https://api.github.com/repos/ampproject/amphtml/hooks","issue_events_url":"https://api.github.com/repos/ampproject/amphtml/issues/events{/number}","events_url":"https://api.github.com/repos/ampproject/amphtml/events","assignees_url":"https://api.github.com/repos/ampproject/amphtml/assignees{/user}","branches_url":"https://api.github.com/repos/ampproject/amphtml/branches{/branch}","tags_url":"https://api.github.com/repos/ampproject/amphtml/tags","blobs_url":"https://api.github.com/repos/ampproject/amphtml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ampproject/amphtml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ampproject/amphtml/git/refs{/sha}","trees_url":"https://api.github.com/repos/ampproject/amphtml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ampproject/amphtml/statuses/{sha}","languages_url":"https://api.github.com/repos/ampproject/amphtml/languages","stargazers_url":"https://api.github.com/repos/ampproject/amphtml/stargazers","contributors_url":"https://api.github.com/repos/ampproject/amphtml/contributors","subscribers_url":"https://api.github.com/repos/ampproject/amphtml/subscribers","subscription_url":"https://api.github.com/repos/ampproject/amphtml/subscription","commits_url":"https://api.github.com/repos/ampproject/amphtml/commits{/sha}","git_commits_url":"https://api.github.com/repos/ampproject/amphtml/git/commits{/sha}","comments_url":"https://api.github.com/repos/ampproject/amphtml/comments{/number}","issue_comment_url":"https://api.github.com/repos/ampproject/amphtml/issues/comments{/number}","contents_url":"https://api.github.com/repos/ampproject/amphtml/contents/{+path}","compare_url":"https://api.github.com/repos/ampproject/amphtml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ampproject/amphtml/merges","archive_url":"https://api.github.com/repos/ampproject/amphtml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ampproject/amphtml/downloads","issues_url":"https://api.github.com/repos/ampproject/amphtml/issues{/number}","pulls_url":"https://api.github.com/repos/ampproject/amphtml/pulls{/number}","milestones_url":"https://api.github.com/repos/ampproject/amphtml/milestones{/number}","notifications_url":"https://api.github.com/repos/ampproject/amphtml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ampproject/amphtml/labels{/name}","releases_url":"https://api.github.com/repos/ampproject/amphtml/releases{/id}","deployments_url":"https://api.github.com/repos/ampproject/amphtml/deployments","created_at":"2015-09-01T22:10:53Z","updated_at":"2017-10-02T19:22:08Z","pushed_at":"2017-10-03T11:14:39Z","git_url":"git://github.com/ampproject/amphtml.git","ssh_url":"git@github.com:ampproject/amphtml.git","clone_url":"https://github.com/ampproject/amphtml.git","svn_url":"https://github.com/ampproject/amphtml","homepage":"https://www.ampproject.org","size":289576,"stargazers_count":10504,"watchers_count":10504,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1953,"mirror_url":null,"open_issues_count":989,"forks":1953,"open_issues":989,"watchers":10504,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/11527"},"html":{"href":"https://github.com/ampproject/amphtml/pull/11527"},"issue":{"href":"https://api.github.com/repos/ampproject/amphtml/issues/11527"},"comments":{"href":"https://api.github.com/repos/ampproject/amphtml/issues/11527/comments"},"review_comments":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/11527/comments"},"review_comment":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/11527/commits"},"statuses":{"href":"https://api.github.com/repos/ampproject/amphtml/statuses/2681928835c1c25ccb2a90d464215908dbfb02ac"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"newmuis"}}