{"action":"created","comment":{"url":"https://api.github.com/repos/homes-england/monitor-frontend/pulls/comments/219068083","pull_request_review_id":157148991,"id":219068083,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTA2ODA4Mw==","diff_hunk":"@@ -28,46 +28,86 @@ export default class GetToken extends React.Component {\n \n   renderMessageSent = () => {\n     return (\n-      <div data-test=\"sent_message\">\n-        <h3>We&#39;ve sent an email to {this.state.email}</h3>\n+      <div data-test=\"sent_message\" className=\"col-md-offset-2 col-md-8\">\n+        <h3 className=\"text-center\">We&#39;ve sent an email to {this.state.email}</h3>\n+        <p className=\"text-center\">\n+          This link <b>will expire in 10 minutes</b>, after which you will need to generate a new one.\n+        </p>\n+\n+        <h4 className=\"text-center\">\n+          <b>Please check your email</b>\n+        </h4>\n+\n         <p>\n           Didn&#39;t receive an email? Check your spam and make sure you entered\n-          your email correctly.\n+          your email correctly. \n+          If you are not pre-authorised, \n+          please contact <a href=\"mailto:homes.england@notifications.service.gov.uk\"> homes.england@notifications.service.gov.uk</a>\n         </p>\n       </div>\n     );\n   };\n \n-  render() {\n-    if (this.state.message_sent) {\n-      return this.renderMessageSent();\n-    } else {\n+  landingMessage = () => {\n       return (\n-        <div className=\"col-md-offset-4 col-md-4\">\n-          <h4>\n-            You do not have permission to view this page, please enter your\n-            email:\n-          </h4>\n-          <form onSubmit={this.sendRequest}>\n-            <div className=\"form-group\">\n-              <input\n-                data-test=\"email_input\"\n-                type=\"text\"\n-                className=\"form-control\"\n-                placeholder=\"email@example.com\"\n-                onChange={this.emailChange}\n-              />\n+        <div className=\"col-md-offset-2 col-md-8\">\n+\n+          <div id=\"message\">\n+            <h3>\n+            Please enter your email to access this project\n+            </h3>\n+\n+            <p>\n+              <i>\n+                Use your email that is associated with this project.\n+                If you are not pre-authorised, \n+                please contact <a href=\"mailto:homes.england@notifications.service.gov.uk\"> homes.england@notifications.service.gov.uk</a>\n+              </i>\n+            </p>\n+\n+            <div id='submitForm'>\n+              <form onSubmit={this.sendRequest}>\n+                <div className=\"form-group\">\n+                  <input\n+                    data-test=\"email_input\"\n+                    type=\"text\"\n+                    className=\"form-control\"\n+                    placeholder=\"email@example.com\"\n+                    onChange={this.emailChange}\n+                  />\n+                </div>\n+                <button\n+                  data-test=\"submit_button\"\n+                  type=\"submit\"\n+                  className=\"btn btn-primary\"\n+                >\n+                  Request Access\n+                </button>\n+              </form>\n             </div>\n-            <button\n-              data-test=\"submit_button\"\n-              type=\"submit\"\n-              className=\"btn btn-primary\"\n-            >\n-              Request Access\n-            </button>\n-          </form>\n+            <div>\n+              <p>\n+                We&#39;ll send an email from <b> homes.england@notifications.service.gov.uk </b>.","path":"src/Components/GetToken/index.js","position":92,"original_position":92,"commit_id":"99493507cf1ffe0b4fe2f212b19daa827cbe0e38","original_commit_id":"99493507cf1ffe0b4fe2f212b19daa827cbe0e38","user":{"login":"danielburnley","id":976254,"node_id":"MDQ6VXNlcjk3NjI1NA==","avatar_url":"https://avatars1.githubusercontent.com/u/976254?v=4","gravatar_id":"","url":"https://api.github.com/users/danielburnley","html_url":"https://github.com/danielburnley","followers_url":"https://api.github.com/users/danielburnley/followers","following_url":"https://api.github.com/users/danielburnley/following{/other_user}","gists_url":"https://api.github.com/users/danielburnley/gists{/gist_id}","starred_url":"https://api.github.com/users/danielburnley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielburnley/subscriptions","organizations_url":"https://api.github.com/users/danielburnley/orgs","repos_url":"https://api.github.com/users/danielburnley/repos","events_url":"https://api.github.com/users/danielburnley/events{/privacy}","received_events_url":"https://api.github.com/users/danielburnley/received_events","type":"User","site_admin":false},"body":"Same as above - not sure whether or not it's worthwhile putting the email address in, maybe it is here though :thinking: not sure","created_at":"2018-09-20T08:01:03Z","updated_at":"2018-09-20T08:01:03Z","html_url":"https://github.com/homes-england/monitor-frontend/pull/52#discussion_r219068083","pull_request_url":"https://api.github.com/repos/homes-england/monitor-frontend/pulls/52","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/homes-england/monitor-frontend/pulls/comments/219068083"},"html":{"href":"https://github.com/homes-england/monitor-frontend/pull/52#discussion_r219068083"},"pull_request":{"href":"https://api.github.com/repos/homes-england/monitor-frontend/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/homes-england/monitor-frontend/pulls/52","id":215983404,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1OTgzNDA0","html_url":"https://github.com/homes-england/monitor-frontend/pull/52","diff_url":"https://github.com/homes-england/monitor-frontend/pull/52.diff","patch_url":"https://github.com/homes-england/monitor-frontend/pull/52.patch","issue_url":"https://api.github.com/repos/homes-england/monitor-frontend/issues/52","number":52,"state":"open","locked":false,"title":"Mr project messaging [WIP] [INPUT NEEDED]","user":{"login":"mrosel","id":1315867,"node_id":"MDQ6VXNlcjEzMTU4Njc=","avatar_url":"https://avatars1.githubusercontent.com/u/1315867?v=4","gravatar_id":"","url":"https://api.github.com/users/mrosel","html_url":"https://github.com/mrosel","followers_url":"https://api.github.com/users/mrosel/followers","following_url":"https://api.github.com/users/mrosel/following{/other_user}","gists_url":"https://api.github.com/users/mrosel/gists{/gist_id}","starred_url":"https://api.github.com/users/mrosel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrosel/subscriptions","organizations_url":"https://api.github.com/users/mrosel/orgs","repos_url":"https://api.github.com/users/mrosel/repos","events_url":"https://api.github.com/users/mrosel/events{/privacy}","received_events_url":"https://api.github.com/users/mrosel/received_events","type":"User","site_admin":false},"body":"Adding some extra messaging and clarification around the sign in process.\r\n\r\n\r\n![screenshot from 2018-09-17 14-33-04](https://user-images.githubusercontent.com/1315867/45626150-a3b91580-ba86-11e8-91eb-3f443f7f0e35.png)\r\n\r\n![screenshot from 2018-09-17 14-31-39](https://user-images.githubusercontent.com/1315867/45626070-6c4a6900-ba86-11e8-9181-cd6e81fe5104.png)\r\n","created_at":"2018-09-17T13:33:44Z","updated_at":"2018-09-20T08:01:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7441f5dd52c744ed280f70177025ae742f402201","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":996075997,"node_id":"MDU6TGFiZWw5OTYwNzU5OTc=","url":"https://api.github.com/repos/homes-england/monitor-frontend/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":996076000,"node_id":"MDU6TGFiZWw5OTYwNzYwMDA=","url":"https://api.github.com/repos/homes-england/monitor-frontend/labels/help%20wanted","name":"help wanted","color":"008672","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/homes-england/monitor-frontend/pulls/52/commits","review_comments_url":"https://api.github.com/repos/homes-england/monitor-frontend/pulls/52/comments","review_comment_url":"https://api.github.com/repos/homes-england/monitor-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/homes-england/monitor-frontend/issues/52/comments","statuses_url":"https://api.github.com/repos/homes-england/monitor-frontend/statuses/99493507cf1ffe0b4fe2f212b19daa827cbe0e38","head":{"label":"homes-england:mr_project_messaging","ref":"mr_project_messaging","sha":"99493507cf1ffe0b4fe2f212b19daa827cbe0e38","user":{"login":"homes-england","id":38912533,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4OTEyNTMz","avatar_url":"https://avatars0.githubusercontent.com/u/38912533?v=4","gravatar_id":"","url":"https://api.github.com/users/homes-england","html_url":"https://github.com/homes-england","followers_url":"https://api.github.com/users/homes-england/followers","following_url":"https://api.github.com/users/homes-england/following{/other_user}","gists_url":"https://api.github.com/users/homes-england/gists{/gist_id}","starred_url":"https://api.github.com/users/homes-england/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homes-england/subscriptions","organizations_url":"https://api.github.com/users/homes-england/orgs","repos_url":"https://api.github.com/users/homes-england/repos","events_url":"https://api.github.com/users/homes-england/events{/privacy}","received_events_url":"https://api.github.com/users/homes-england/received_events","type":"Organization","site_admin":false},"repo":{"id":141248815,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEyNDg4MTU=","name":"monitor-frontend","full_name":"homes-england/monitor-frontend","private":false,"owner":{"login":"homes-england","id":38912533,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4OTEyNTMz","avatar_url":"https://avatars0.githubusercontent.com/u/38912533?v=4","gravatar_id":"","url":"https://api.github.com/users/homes-england","html_url":"https://github.com/homes-england","followers_url":"https://api.github.com/users/homes-england/followers","following_url":"https://api.github.com/users/homes-england/following{/other_user}","gists_url":"https://api.github.com/users/homes-england/gists{/gist_id}","starred_url":"https://api.github.com/users/homes-england/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homes-england/subscriptions","organizations_url":"https://api.github.com/users/homes-england/orgs","repos_url":"https://api.github.com/users/homes-england/repos","events_url":"https://api.github.com/users/homes-england/events{/privacy}","received_events_url":"https://api.github.com/users/homes-england/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/homes-england/monitor-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/homes-england/monitor-frontend","forks_url":"https://api.github.com/repos/homes-england/monitor-frontend/forks","keys_url":"https://api.github.com/repos/homes-england/monitor-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/homes-england/monitor-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/homes-england/monitor-frontend/teams","hooks_url":"https://api.github.com/repos/homes-england/monitor-frontend/hooks","issue_events_url":"https://api.github.com/repos/homes-england/monitor-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/homes-england/monitor-frontend/events","assignees_url":"https://api.github.com/repos/homes-england/monitor-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/homes-england/monitor-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/homes-england/monitor-frontend/tags","blobs_url":"https://api.github.com/repos/homes-england/monitor-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/homes-england/monitor-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/homes-england/monitor-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/homes-england/monitor-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/homes-england/monitor-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/homes-england/monitor-frontend/languages","stargazers_url":"https://api.github.com/repos/homes-england/monitor-frontend/stargazers","contributors_url":"https://api.github.com/repos/homes-england/monitor-frontend/contributors","subscribers_url":"https://api.github.com/repos/homes-england/monitor-frontend/subscribers","subscription_url":"https://api.github.com/repos/homes-england/monitor-frontend/subscription","commits_url":"https://api.github.com/repos/homes-england/monitor-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/homes-england/monitor-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/homes-england/monitor-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/homes-england/monitor-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/homes-england/monitor-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/homes-england/monitor-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/homes-england/monitor-frontend/merges","archive_url":"https://api.github.com/repos/homes-england/monitor-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/homes-england/monitor-frontend/downloads","issues_url":"https://api.github.com/repos/homes-england/monitor-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/homes-england/monitor-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/homes-england/monitor-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/homes-england/monitor-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/homes-england/monitor-frontend/labels{/name}","releases_url":"https://api.github.com/repos/homes-england/monitor-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/homes-england/monitor-frontend/deployments","created_at":"2018-07-17T07:26:14Z","updated_at":"2018-09-18T10:43:17Z","pushed_at":"2018-09-19T16:30:16Z","git_url":"git://github.com/homes-england/monitor-frontend.git","ssh_url":"git@github.com:homes-england/monitor-frontend.git","clone_url":"https://github.com/homes-england/monitor-frontend.git","svn_url":"https://github.com/homes-england/monitor-frontend","homepage":null,"size":518,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"homes-england:master","ref":"master","sha":"db02175a562c2185323d91b06fda3ab083086722","user":{"login":"homes-england","id":38912533,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4OTEyNTMz","avatar_url":"https://avatars0.githubusercontent.com/u/38912533?v=4","gravatar_id":"","url":"https://api.github.com/users/homes-england","html_url":"https://github.com/homes-england","followers_url":"https://api.github.com/users/homes-england/followers","following_url":"https://api.github.com/users/homes-england/following{/other_user}","gists_url":"https://api.github.com/users/homes-england/gists{/gist_id}","starred_url":"https://api.github.com/users/homes-england/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homes-england/subscriptions","organizations_url":"https://api.github.com/users/homes-england/orgs","repos_url":"https://api.github.com/users/homes-england/repos","events_url":"https://api.github.com/users/homes-england/events{/privacy}","received_events_url":"https://api.github.com/users/homes-england/received_events","type":"Organization","site_admin":false},"repo":{"id":141248815,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEyNDg4MTU=","name":"monitor-frontend","full_name":"homes-england/monitor-frontend","private":false,"owner":{"login":"homes-england","id":38912533,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4OTEyNTMz","avatar_url":"https://avatars0.githubusercontent.com/u/38912533?v=4","gravatar_id":"","url":"https://api.github.com/users/homes-england","html_url":"https://github.com/homes-england","followers_url":"https://api.github.com/users/homes-england/followers","following_url":"https://api.github.com/users/homes-england/following{/other_user}","gists_url":"https://api.github.com/users/homes-england/gists{/gist_id}","starred_url":"https://api.github.com/users/homes-england/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homes-england/subscriptions","organizations_url":"https://api.github.com/users/homes-england/orgs","repos_url":"https://api.github.com/users/homes-england/repos","events_url":"https://api.github.com/users/homes-england/events{/privacy}","received_events_url":"https://api.github.com/users/homes-england/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/homes-england/monitor-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/homes-england/monitor-frontend","forks_url":"https://api.github.com/repos/homes-england/monitor-frontend/forks","keys_url":"https://api.github.com/repos/homes-england/monitor-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/homes-england/monitor-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/homes-england/monitor-frontend/teams","hooks_url":"https://api.github.com/repos/homes-england/monitor-frontend/hooks","issue_events_url":"https://api.github.com/repos/homes-england/monitor-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/homes-england/monitor-frontend/events","assignees_url":"https://api.github.com/repos/homes-england/monitor-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/homes-england/monitor-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/homes-england/monitor-frontend/tags","blobs_url":"https://api.github.com/repos/homes-england/monitor-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/homes-england/monitor-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/homes-england/monitor-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/homes-england/monitor-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/homes-england/monitor-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/homes-england/monitor-frontend/languages","stargazers_url":"https://api.github.com/repos/homes-england/monitor-frontend/stargazers","contributors_url":"https://api.github.com/repos/homes-england/monitor-frontend/contributors","subscribers_url":"https://api.github.com/repos/homes-england/monitor-frontend/subscribers","subscription_url":"https://api.github.com/repos/homes-england/monitor-frontend/subscription","commits_url":"https://api.github.com/repos/homes-england/monitor-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/homes-england/monitor-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/homes-england/monitor-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/homes-england/monitor-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/homes-england/monitor-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/homes-england/monitor-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/homes-england/monitor-frontend/merges","archive_url":"https://api.github.com/repos/homes-england/monitor-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/homes-england/monitor-frontend/downloads","issues_url":"https://api.github.com/repos/homes-england/monitor-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/homes-england/monitor-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/homes-england/monitor-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/homes-england/monitor-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/homes-england/monitor-frontend/labels{/name}","releases_url":"https://api.github.com/repos/homes-england/monitor-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/homes-england/monitor-frontend/deployments","created_at":"2018-07-17T07:26:14Z","updated_at":"2018-09-18T10:43:17Z","pushed_at":"2018-09-19T16:30:16Z","git_url":"git://github.com/homes-england/monitor-frontend.git","ssh_url":"git@github.com:homes-england/monitor-frontend.git","clone_url":"https://github.com/homes-england/monitor-frontend.git","svn_url":"https://github.com/homes-england/monitor-frontend","homepage":null,"size":518,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/homes-england/monitor-frontend/pulls/52"},"html":{"href":"https://github.com/homes-england/monitor-frontend/pull/52"},"issue":{"href":"https://api.github.com/repos/homes-england/monitor-frontend/issues/52"},"comments":{"href":"https://api.github.com/repos/homes-england/monitor-frontend/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/homes-england/monitor-frontend/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/homes-england/monitor-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/homes-england/monitor-frontend/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/homes-england/monitor-frontend/statuses/99493507cf1ffe0b4fe2f212b19daa827cbe0e38"}},"author_association":"NONE"}}
{"actor":{"display_login":"danielburnley"}}