{"action":"created","comment":{"url":"https://api.github.com/repos/OfficeDev/script-lab/pulls/comments/127275331","pull_request_review_id":49843983,"id":127275331,"diff_hunk":"@@ -15,29 +15,27 @@ let { config } = PLAYGROUND;\n     chooseHost.textContent = strings.HtmlPageStrings.chooseYourHost;\n     chooseHost.style.visibility = 'visible';\n \n-    let ribbons = document.getElementsByClassName('ribbon');\n-    for (let i = 0; i < ribbons.length; i++) {\n-        let ribbon = ribbons[i] as HTMLElement;\n-        switch (environment.current.config.name) {\n-            case config['insiders'].name:\n-                ribbon.textContent = 'Beta';\n-                ribbon.style.background = 'red';\n-                break;\n-            case config['edge'].name:\n-                ribbon.textContent = 'Alpha';\n-                ribbon.style.background = 'blue';\n-                break;\n-            case config['local'].name:\n-                ribbon.textContent = config['local'].editorUrl;\n-                ribbon.style.background = 'green';\n-                break;\n-            default:\n-                break;\n-        }\n-\n-        if (environment.current.config.name !== config['production'].name) {\n-            ribbon.style.visibility = 'visible';\n-        }\n+    let ribbon = document.getElementById('ribbon');\n+    switch (environment.current.config.name) {\n+        // Utilize Office pallet colors for ribbons\n+        case config['insiders'].name:","path":"src/client/public/index.script.ts","position":30,"original_position":30,"commit_id":"8bc2390a0275e6920795ef410c55fb0527057e70","original_commit_id":"2d87c5eed80d46c57f2341b146bfbf94bfec0c29","user":{"login":"Zlatkovsky","id":2230453,"avatar_url":"https://avatars1.githubusercontent.com/u/2230453?v=3","gravatar_id":"","url":"https://api.github.com/users/Zlatkovsky","html_url":"https://github.com/Zlatkovsky","followers_url":"https://api.github.com/users/Zlatkovsky/followers","following_url":"https://api.github.com/users/Zlatkovsky/following{/other_user}","gists_url":"https://api.github.com/users/Zlatkovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/Zlatkovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zlatkovsky/subscriptions","organizations_url":"https://api.github.com/users/Zlatkovsky/orgs","repos_url":"https://api.github.com/users/Zlatkovsky/repos","events_url":"https://api.github.com/users/Zlatkovsky/events{/privacy}","received_events_url":"https://api.github.com/users/Zlatkovsky/received_events","type":"User","site_admin":false},"body":"you can do `(config as any).insiders.name`","created_at":"2017-07-13T17:09:29Z","updated_at":"2017-07-13T17:09:29Z","html_url":"https://github.com/OfficeDev/script-lab/pull/499#discussion_r127275331","pull_request_url":"https://api.github.com/repos/OfficeDev/script-lab/pulls/499","_links":{"self":{"href":"https://api.github.com/repos/OfficeDev/script-lab/pulls/comments/127275331"},"html":{"href":"https://github.com/OfficeDev/script-lab/pull/499#discussion_r127275331"},"pull_request":{"href":"https://api.github.com/repos/OfficeDev/script-lab/pulls/499"}}},"pull_request":{"url":"https://api.github.com/repos/OfficeDev/script-lab/pulls/499","id":130262645,"html_url":"https://github.com/OfficeDev/script-lab/pull/499","diff_url":"https://github.com/OfficeDev/script-lab/pull/499.diff","patch_url":"https://github.com/OfficeDev/script-lab/pull/499.patch","issue_url":"https://api.github.com/repos/OfficeDev/script-lab/issues/499","number":499,"state":"open","locked":false,"title":"Address insiders bug bash issues","user":{"login":"cshashwat","id":14340560,"avatar_url":"https://avatars3.githubusercontent.com/u/14340560?v=3","gravatar_id":"","url":"https://api.github.com/users/cshashwat","html_url":"https://github.com/cshashwat","followers_url":"https://api.github.com/users/cshashwat/followers","following_url":"https://api.github.com/users/cshashwat/following{/other_user}","gists_url":"https://api.github.com/users/cshashwat/gists{/gist_id}","starred_url":"https://api.github.com/users/cshashwat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cshashwat/subscriptions","organizations_url":"https://api.github.com/users/cshashwat/orgs","repos_url":"https://api.github.com/users/cshashwat/repos","events_url":"https://api.github.com/users/cshashwat/events{/privacy}","received_events_url":"https://api.github.com/users/cshashwat/received_events","type":"User","site_admin":false},"body":"<!--- Provide a general summary of your changes in the Title above -->\r\n\r\n## Description\r\n<!--- Describe your changes in detail -->\r\n\r\nThis pull request addresses outstanding issues found in the recent insiders push:\r\n\r\n- Ribbon colors have been modified to use the Office UI pallet color scheme\r\n- Ribbon now only appears on right side\r\n- Dropdown for environment switching now uses default styling, same as language switcher\r\n- Previously unlocalized strings have been localized\r\n- String casing has been changed to sentence case\r\n- Sharing logic has been changed: if a user shares a gist for the first time, he/she will not be prompted with a confirmation dialog. However, afterwards, they will be, to get their confirmation that they want to create a brand new snippet. Strings have been updated accordingly. Strings have also been updated for the 'Update' action; the dialog box is now slightly different versus sharing a gist.\r\n\r\n## Related Issue\r\n<!--- This project only accepts pull requests related to open issues -->\r\n<!--- If suggesting a new feature or change, please discuss it in an issue first -->\r\n<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->\r\n<!--- Please link to the issue here: -->\r\n\r\nhttps://github.com/OfficeDev/script-lab/issues/497\r\nhttps://github.com/OfficeDev/script-lab/issues/495\r\nhttps://github.com/OfficeDev/script-lab/issues/494\r\nhttps://github.com/OfficeDev/script-lab/issues/492\r\nhttps://github.com/OfficeDev/script-lab/issues/491\r\nhttps://github.com/OfficeDev/script-lab/issues/489\r\n\r\n## Motivation and Context\r\n<!--- Why is this change required? What problem does it solve? -->\r\n\r\n## How Has This Been Tested?\r\n<!--- Please describe in detail how you tested your changes. -->\r\n<!--- Include details of your testing environment, and the tests you ran to -->\r\n<!--- see how your change affects other areas of the code, etc. -->\r\n\r\n## Screenshots (if appropriate):\r\n\r\n## Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [ ] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [ ] My code follows the code style of this project.\r\n- [ ] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n- [ ] I have read the **CONTRIBUTING** document.\r\n- [ ] I have added tests to cover my changes.\r\n- [ ] All new and existing tests passed.\r\n","created_at":"2017-07-13T00:10:54Z","updated_at":"2017-07-13T17:09:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d06a2ed777afdf28b2902805ea0685ede4214f17","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/OfficeDev/script-lab/pulls/499/commits","review_comments_url":"https://api.github.com/repos/OfficeDev/script-lab/pulls/499/comments","review_comment_url":"https://api.github.com/repos/OfficeDev/script-lab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OfficeDev/script-lab/issues/499/comments","statuses_url":"https://api.github.com/repos/OfficeDev/script-lab/statuses/8bc2390a0275e6920795ef410c55fb0527057e70","head":{"label":"cshashwat:v1.1-patch","ref":"v1.1-patch","sha":"8bc2390a0275e6920795ef410c55fb0527057e70","user":{"login":"cshashwat","id":14340560,"avatar_url":"https://avatars3.githubusercontent.com/u/14340560?v=3","gravatar_id":"","url":"https://api.github.com/users/cshashwat","html_url":"https://github.com/cshashwat","followers_url":"https://api.github.com/users/cshashwat/followers","following_url":"https://api.github.com/users/cshashwat/following{/other_user}","gists_url":"https://api.github.com/users/cshashwat/gists{/gist_id}","starred_url":"https://api.github.com/users/cshashwat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cshashwat/subscriptions","organizations_url":"https://api.github.com/users/cshashwat/orgs","repos_url":"https://api.github.com/users/cshashwat/repos","events_url":"https://api.github.com/users/cshashwat/events{/privacy}","received_events_url":"https://api.github.com/users/cshashwat/received_events","type":"User","site_admin":false},"repo":{"id":94265713,"name":"script-lab","full_name":"cshashwat/script-lab","owner":{"login":"cshashwat","id":14340560,"avatar_url":"https://avatars3.githubusercontent.com/u/14340560?v=3","gravatar_id":"","url":"https://api.github.com/users/cshashwat","html_url":"https://github.com/cshashwat","followers_url":"https://api.github.com/users/cshashwat/followers","following_url":"https://api.github.com/users/cshashwat/following{/other_user}","gists_url":"https://api.github.com/users/cshashwat/gists{/gist_id}","starred_url":"https://api.github.com/users/cshashwat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cshashwat/subscriptions","organizations_url":"https://api.github.com/users/cshashwat/orgs","repos_url":"https://api.github.com/users/cshashwat/repos","events_url":"https://api.github.com/users/cshashwat/events{/privacy}","received_events_url":"https://api.github.com/users/cshashwat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cshashwat/script-lab","description":"Create, run and share your code directly from Office","fork":true,"url":"https://api.github.com/repos/cshashwat/script-lab","forks_url":"https://api.github.com/repos/cshashwat/script-lab/forks","keys_url":"https://api.github.com/repos/cshashwat/script-lab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cshashwat/script-lab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cshashwat/script-lab/teams","hooks_url":"https://api.github.com/repos/cshashwat/script-lab/hooks","issue_events_url":"https://api.github.com/repos/cshashwat/script-lab/issues/events{/number}","events_url":"https://api.github.com/repos/cshashwat/script-lab/events","assignees_url":"https://api.github.com/repos/cshashwat/script-lab/assignees{/user}","branches_url":"https://api.github.com/repos/cshashwat/script-lab/branches{/branch}","tags_url":"https://api.github.com/repos/cshashwat/script-lab/tags","blobs_url":"https://api.github.com/repos/cshashwat/script-lab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cshashwat/script-lab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cshashwat/script-lab/git/refs{/sha}","trees_url":"https://api.github.com/repos/cshashwat/script-lab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cshashwat/script-lab/statuses/{sha}","languages_url":"https://api.github.com/repos/cshashwat/script-lab/languages","stargazers_url":"https://api.github.com/repos/cshashwat/script-lab/stargazers","contributors_url":"https://api.github.com/repos/cshashwat/script-lab/contributors","subscribers_url":"https://api.github.com/repos/cshashwat/script-lab/subscribers","subscription_url":"https://api.github.com/repos/cshashwat/script-lab/subscription","commits_url":"https://api.github.com/repos/cshashwat/script-lab/commits{/sha}","git_commits_url":"https://api.github.com/repos/cshashwat/script-lab/git/commits{/sha}","comments_url":"https://api.github.com/repos/cshashwat/script-lab/comments{/number}","issue_comment_url":"https://api.github.com/repos/cshashwat/script-lab/issues/comments{/number}","contents_url":"https://api.github.com/repos/cshashwat/script-lab/contents/{+path}","compare_url":"https://api.github.com/repos/cshashwat/script-lab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cshashwat/script-lab/merges","archive_url":"https://api.github.com/repos/cshashwat/script-lab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cshashwat/script-lab/downloads","issues_url":"https://api.github.com/repos/cshashwat/script-lab/issues{/number}","pulls_url":"https://api.github.com/repos/cshashwat/script-lab/pulls{/number}","milestones_url":"https://api.github.com/repos/cshashwat/script-lab/milestones{/number}","notifications_url":"https://api.github.com/repos/cshashwat/script-lab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cshashwat/script-lab/labels{/name}","releases_url":"https://api.github.com/repos/cshashwat/script-lab/releases{/id}","deployments_url":"https://api.github.com/repos/cshashwat/script-lab/deployments","created_at":"2017-06-13T23:00:15Z","updated_at":"2017-06-13T23:00:17Z","pushed_at":"2017-07-13T16:58:48Z","git_url":"git://github.com/cshashwat/script-lab.git","ssh_url":"git@github.com:cshashwat/script-lab.git","clone_url":"https://github.com/cshashwat/script-lab.git","svn_url":"https://github.com/cshashwat/script-lab","homepage":"https://script-lab.azureedge.net/","size":38737,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"OfficeDev:master","ref":"master","sha":"68d467d853d859bbb54f54fe928c0e30eac838db","user":{"login":"OfficeDev","id":6789362,"avatar_url":"https://avatars1.githubusercontent.com/u/6789362?v=3","gravatar_id":"","url":"https://api.github.com/users/OfficeDev","html_url":"https://github.com/OfficeDev","followers_url":"https://api.github.com/users/OfficeDev/followers","following_url":"https://api.github.com/users/OfficeDev/following{/other_user}","gists_url":"https://api.github.com/users/OfficeDev/gists{/gist_id}","starred_url":"https://api.github.com/users/OfficeDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OfficeDev/subscriptions","organizations_url":"https://api.github.com/users/OfficeDev/orgs","repos_url":"https://api.github.com/users/OfficeDev/repos","events_url":"https://api.github.com/users/OfficeDev/events{/privacy}","received_events_url":"https://api.github.com/users/OfficeDev/received_events","type":"Organization","site_admin":false},"repo":{"id":75435497,"name":"script-lab","full_name":"OfficeDev/script-lab","owner":{"login":"OfficeDev","id":6789362,"avatar_url":"https://avatars1.githubusercontent.com/u/6789362?v=3","gravatar_id":"","url":"https://api.github.com/users/OfficeDev","html_url":"https://github.com/OfficeDev","followers_url":"https://api.github.com/users/OfficeDev/followers","following_url":"https://api.github.com/users/OfficeDev/following{/other_user}","gists_url":"https://api.github.com/users/OfficeDev/gists{/gist_id}","starred_url":"https://api.github.com/users/OfficeDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OfficeDev/subscriptions","organizations_url":"https://api.github.com/users/OfficeDev/orgs","repos_url":"https://api.github.com/users/OfficeDev/repos","events_url":"https://api.github.com/users/OfficeDev/events{/privacy}","received_events_url":"https://api.github.com/users/OfficeDev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OfficeDev/script-lab","description":"Create, run and share your code directly from Office","fork":false,"url":"https://api.github.com/repos/OfficeDev/script-lab","forks_url":"https://api.github.com/repos/OfficeDev/script-lab/forks","keys_url":"https://api.github.com/repos/OfficeDev/script-lab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OfficeDev/script-lab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OfficeDev/script-lab/teams","hooks_url":"https://api.github.com/repos/OfficeDev/script-lab/hooks","issue_events_url":"https://api.github.com/repos/OfficeDev/script-lab/issues/events{/number}","events_url":"https://api.github.com/repos/OfficeDev/script-lab/events","assignees_url":"https://api.github.com/repos/OfficeDev/script-lab/assignees{/user}","branches_url":"https://api.github.com/repos/OfficeDev/script-lab/branches{/branch}","tags_url":"https://api.github.com/repos/OfficeDev/script-lab/tags","blobs_url":"https://api.github.com/repos/OfficeDev/script-lab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OfficeDev/script-lab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OfficeDev/script-lab/git/refs{/sha}","trees_url":"https://api.github.com/repos/OfficeDev/script-lab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OfficeDev/script-lab/statuses/{sha}","languages_url":"https://api.github.com/repos/OfficeDev/script-lab/languages","stargazers_url":"https://api.github.com/repos/OfficeDev/script-lab/stargazers","contributors_url":"https://api.github.com/repos/OfficeDev/script-lab/contributors","subscribers_url":"https://api.github.com/repos/OfficeDev/script-lab/subscribers","subscription_url":"https://api.github.com/repos/OfficeDev/script-lab/subscription","commits_url":"https://api.github.com/repos/OfficeDev/script-lab/commits{/sha}","git_commits_url":"https://api.github.com/repos/OfficeDev/script-lab/git/commits{/sha}","comments_url":"https://api.github.com/repos/OfficeDev/script-lab/comments{/number}","issue_comment_url":"https://api.github.com/repos/OfficeDev/script-lab/issues/comments{/number}","contents_url":"https://api.github.com/repos/OfficeDev/script-lab/contents/{+path}","compare_url":"https://api.github.com/repos/OfficeDev/script-lab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OfficeDev/script-lab/merges","archive_url":"https://api.github.com/repos/OfficeDev/script-lab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OfficeDev/script-lab/downloads","issues_url":"https://api.github.com/repos/OfficeDev/script-lab/issues{/number}","pulls_url":"https://api.github.com/repos/OfficeDev/script-lab/pulls{/number}","milestones_url":"https://api.github.com/repos/OfficeDev/script-lab/milestones{/number}","notifications_url":"https://api.github.com/repos/OfficeDev/script-lab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OfficeDev/script-lab/labels{/name}","releases_url":"https://api.github.com/repos/OfficeDev/script-lab/releases{/id}","deployments_url":"https://api.github.com/repos/OfficeDev/script-lab/deployments","created_at":"2016-12-02T22:22:06Z","updated_at":"2017-07-12T07:12:21Z","pushed_at":"2017-07-13T16:58:50Z","git_url":"git://github.com/OfficeDev/script-lab.git","ssh_url":"git@github.com:OfficeDev/script-lab.git","clone_url":"https://github.com/OfficeDev/script-lab.git","svn_url":"https://github.com/OfficeDev/script-lab","homepage":"https://script-lab.azureedge.net/","size":39067,"stargazers_count":51,"watchers_count":51,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":197,"forks":18,"open_issues":197,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OfficeDev/script-lab/pulls/499"},"html":{"href":"https://github.com/OfficeDev/script-lab/pull/499"},"issue":{"href":"https://api.github.com/repos/OfficeDev/script-lab/issues/499"},"comments":{"href":"https://api.github.com/repos/OfficeDev/script-lab/issues/499/comments"},"review_comments":{"href":"https://api.github.com/repos/OfficeDev/script-lab/pulls/499/comments"},"review_comment":{"href":"https://api.github.com/repos/OfficeDev/script-lab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OfficeDev/script-lab/pulls/499/commits"},"statuses":{"href":"https://api.github.com/repos/OfficeDev/script-lab/statuses/8bc2390a0275e6920795ef410c55fb0527057e70"}}}}
{"actor":{"display_login":"Zlatkovsky"}}