{"action":"opened","number":56,"pull_request":{"url":"https://api.github.com/repos/alphagov/notifications-admin/pulls/56","id":55613853,"html_url":"https://github.com/alphagov/notifications-admin/pull/56","diff_url":"https://github.com/alphagov/notifications-admin/pull/56.diff","patch_url":"https://github.com/alphagov/notifications-admin/pull/56.patch","issue_url":"https://api.github.com/repos/alphagov/notifications-admin/issues/56","number":56,"state":"open","locked":false,"title":"Add styleguide","user":{"login":"quis","id":355079,"avatar_url":"https://avatars.githubusercontent.com/u/355079?v=3","gravatar_id":"","url":"https://api.github.com/users/quis","html_url":"https://github.com/quis","followers_url":"https://api.github.com/users/quis/followers","following_url":"https://api.github.com/users/quis/following{/other_user}","gists_url":"https://api.github.com/users/quis/gists{/gist_id}","starred_url":"https://api.github.com/users/quis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quis/subscriptions","organizations_url":"https://api.github.com/users/quis/orgs","repos_url":"https://api.github.com/users/quis/repos","events_url":"https://api.github.com/users/quis/events{/privacy}","received_events_url":"https://api.github.com/users/quis/received_events","type":"User","site_admin":false},"body":"_This is a precursor to the ‘make better textbox macro’ story_\r\n\r\n![screencapture-localhost-6012-_styleguide-1452512388958](https://cloud.githubusercontent.com/assets/355079/12232631/0fc89964-b858-11e5-9f44-37c9315f078a.png)\r\n\r\nThere are now quite a few frontend components in the app.\r\n\r\nIt’s a good idea so:\r\n- developers know what patterns are available and how they are used\r\n- regressions can be caught, eg \r\n  - when working on one variation of a pattern you can check that your changes don’t break other variations of it\r\n  - when changing the arguments to a pattern you can check that this doesn’t change the expected arguments already in use\r\n\r\nThis commit adds a single page (`/_styleguide`) which has examples of all the patterns.\r\n\r\n## Replace `message_status` component with `banner`\r\n\r\nMessage status was almost identical to banner, visually and semantically. This consolidates the two into one component.\r\n\r\nThis means adding an extra parameter which controls whether or not the banner has a tick (with and without a tick are the only two variations currently).","created_at":"2016-01-11T11:58:08Z","updated_at":"2016-01-11T11:58:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/notifications-admin/pulls/56/commits","review_comments_url":"https://api.github.com/repos/alphagov/notifications-admin/pulls/56/comments","review_comment_url":"https://api.github.com/repos/alphagov/notifications-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/notifications-admin/issues/56/comments","statuses_url":"https://api.github.com/repos/alphagov/notifications-admin/statuses/b4578af7dbfa20a019997346bf207eaf9d5b823f","head":{"label":"alphagov:add-styleguide","ref":"add-styleguide","sha":"b4578af7dbfa20a019997346bf207eaf9d5b823f","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":46421986,"name":"notifications-admin","full_name":"alphagov/notifications-admin","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/notifications-admin","description":"Frontend application for notify admin","fork":false,"url":"https://api.github.com/repos/alphagov/notifications-admin","forks_url":"https://api.github.com/repos/alphagov/notifications-admin/forks","keys_url":"https://api.github.com/repos/alphagov/notifications-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/notifications-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/notifications-admin/teams","hooks_url":"https://api.github.com/repos/alphagov/notifications-admin/hooks","issue_events_url":"https://api.github.com/repos/alphagov/notifications-admin/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/notifications-admin/events","assignees_url":"https://api.github.com/repos/alphagov/notifications-admin/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/notifications-admin/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/notifications-admin/tags","blobs_url":"https://api.github.com/repos/alphagov/notifications-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/notifications-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/notifications-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/notifications-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/notifications-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/notifications-admin/languages","stargazers_url":"https://api.github.com/repos/alphagov/notifications-admin/stargazers","contributors_url":"https://api.github.com/repos/alphagov/notifications-admin/contributors","subscribers_url":"https://api.github.com/repos/alphagov/notifications-admin/subscribers","subscription_url":"https://api.github.com/repos/alphagov/notifications-admin/subscription","commits_url":"https://api.github.com/repos/alphagov/notifications-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/notifications-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/notifications-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/notifications-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/notifications-admin/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/notifications-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/notifications-admin/merges","archive_url":"https://api.github.com/repos/alphagov/notifications-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/notifications-admin/downloads","issues_url":"https://api.github.com/repos/alphagov/notifications-admin/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/notifications-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/notifications-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/notifications-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/notifications-admin/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/notifications-admin/releases{/id}","created_at":"2015-11-18T13:55:17Z","updated_at":"2016-01-11T10:11:25Z","pushed_at":"2016-01-11T11:56:23Z","git_url":"git://github.com/alphagov/notifications-admin.git","ssh_url":"git@github.com:alphagov/notifications-admin.git","clone_url":"https://github.com/alphagov/notifications-admin.git","svn_url":"https://github.com/alphagov/notifications-admin","homepage":null,"size":905,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"567ac123e330bf4957207aded3673e8d984a79d4","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":46421986,"name":"notifications-admin","full_name":"alphagov/notifications-admin","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/notifications-admin","description":"Frontend application for notify admin","fork":false,"url":"https://api.github.com/repos/alphagov/notifications-admin","forks_url":"https://api.github.com/repos/alphagov/notifications-admin/forks","keys_url":"https://api.github.com/repos/alphagov/notifications-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/notifications-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/notifications-admin/teams","hooks_url":"https://api.github.com/repos/alphagov/notifications-admin/hooks","issue_events_url":"https://api.github.com/repos/alphagov/notifications-admin/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/notifications-admin/events","assignees_url":"https://api.github.com/repos/alphagov/notifications-admin/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/notifications-admin/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/notifications-admin/tags","blobs_url":"https://api.github.com/repos/alphagov/notifications-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/notifications-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/notifications-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/notifications-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/notifications-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/notifications-admin/languages","stargazers_url":"https://api.github.com/repos/alphagov/notifications-admin/stargazers","contributors_url":"https://api.github.com/repos/alphagov/notifications-admin/contributors","subscribers_url":"https://api.github.com/repos/alphagov/notifications-admin/subscribers","subscription_url":"https://api.github.com/repos/alphagov/notifications-admin/subscription","commits_url":"https://api.github.com/repos/alphagov/notifications-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/notifications-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/notifications-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/notifications-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/notifications-admin/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/notifications-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/notifications-admin/merges","archive_url":"https://api.github.com/repos/alphagov/notifications-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/notifications-admin/downloads","issues_url":"https://api.github.com/repos/alphagov/notifications-admin/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/notifications-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/notifications-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/notifications-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/notifications-admin/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/notifications-admin/releases{/id}","created_at":"2015-11-18T13:55:17Z","updated_at":"2016-01-11T10:11:25Z","pushed_at":"2016-01-11T11:56:23Z","git_url":"git://github.com/alphagov/notifications-admin.git","ssh_url":"git@github.com:alphagov/notifications-admin.git","clone_url":"https://github.com/alphagov/notifications-admin.git","svn_url":"https://github.com/alphagov/notifications-admin","homepage":null,"size":905,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/notifications-admin/pulls/56"},"html":{"href":"https://github.com/alphagov/notifications-admin/pull/56"},"issue":{"href":"https://api.github.com/repos/alphagov/notifications-admin/issues/56"},"comments":{"href":"https://api.github.com/repos/alphagov/notifications-admin/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/notifications-admin/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/notifications-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/notifications-admin/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/notifications-admin/statuses/b4578af7dbfa20a019997346bf207eaf9d5b823f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":192,"deletions":37,"changed_files":10}}