{"action":"closed","number":90,"pull_request":{"url":"https://api.github.com/repos/18F/federalist/pulls/90","id":39335211,"html_url":"https://github.com/18F/federalist/pull/90","diff_url":"https://github.com/18F/federalist/pull/90.diff","patch_url":"https://github.com/18F/federalist/pull/90.patch","issue_url":"https://api.github.com/repos/18F/federalist/issues/90","number":90,"state":"closed","locked":false,"title":"[Ready for review] Pull/new editor","user":{"login":"jeremiak","id":780941,"avatar_url":"https://avatars.githubusercontent.com/u/780941?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremiak","html_url":"https://github.com/jeremiak","followers_url":"https://api.github.com/users/jeremiak/followers","following_url":"https://api.github.com/users/jeremiak/following{/other_user}","gists_url":"https://api.github.com/users/jeremiak/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremiak/subscriptions","organizations_url":"https://api.github.com/users/jeremiak/orgs","repos_url":"https://api.github.com/users/jeremiak/repos","events_url":"https://api.github.com/users/jeremiak/events{/privacy}","received_events_url":"https://api.github.com/users/jeremiak/received_events","type":"User","site_admin":false},"body":"This is the majority of the first implementation of the editor for #83 and this PR has the following user facing features:\r\n\r\n0. The ability to edit pages from within Federalist through a GitHub URL. The editor is based on a library called [Sir Trevor](https://github.com/madebymany/sir-trevor-js)\r\n\r\nTechnically, this PR has the following features:\r\n\r\n0. A main view to manage switching out the content views\r\n0. A few new separate views to make things a bit more modular. For example, the unauthenticated view is now pulled into its own view\r\n0. A whole new model to represent how we move content in and out of the Sir Trevor blocks\r\n\r\nA few last things before this is ready for testing, but I'd love to get feedback on the editor itself from @GailSwanson to see what we need to get in there.\r\n\r\nLast things:\r\n- [x] A bug where the authenticated view always loads unless authd variable is forcibly set to true\r\n- [x] Heading block types (right now all h* are one block type)\r\n- [x] Finish up the way a list block renders itself\r\n- [ ] ~~Implement image blocks~~ (Not worth holding up this PR since it requires server components)\r\n- [x] Implement code blocks","created_at":"2015-07-07T04:58:18Z","updated_at":"2015-07-17T20:31:35Z","closed_at":"2015-07-17T20:31:35Z","merged_at":"2015-07-17T20:31:35Z","merge_commit_sha":"2b5737104a3f9c4b345fd73dd10d45e9f7c6de6f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/18F/federalist/pulls/90/commits","review_comments_url":"https://api.github.com/repos/18F/federalist/pulls/90/comments","review_comment_url":"https://api.github.com/repos/18F/federalist/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/federalist/issues/90/comments","statuses_url":"https://api.github.com/repos/18F/federalist/statuses/e923eb3045873615ecf5b8e18df1de78db4be754","head":{"label":"18F:pull/new-editor","ref":"pull/new-editor","sha":"e923eb3045873615ecf5b8e18df1de78db4be754","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":36463352,"name":"federalist","full_name":"18F/federalist","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/federalist","description":"Federalist is a unified interface for publishing static government websites.","fork":false,"url":"https://api.github.com/repos/18F/federalist","forks_url":"https://api.github.com/repos/18F/federalist/forks","keys_url":"https://api.github.com/repos/18F/federalist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/federalist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/federalist/teams","hooks_url":"https://api.github.com/repos/18F/federalist/hooks","issue_events_url":"https://api.github.com/repos/18F/federalist/issues/events{/number}","events_url":"https://api.github.com/repos/18F/federalist/events","assignees_url":"https://api.github.com/repos/18F/federalist/assignees{/user}","branches_url":"https://api.github.com/repos/18F/federalist/branches{/branch}","tags_url":"https://api.github.com/repos/18F/federalist/tags","blobs_url":"https://api.github.com/repos/18F/federalist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/federalist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/federalist/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/federalist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/federalist/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/federalist/languages","stargazers_url":"https://api.github.com/repos/18F/federalist/stargazers","contributors_url":"https://api.github.com/repos/18F/federalist/contributors","subscribers_url":"https://api.github.com/repos/18F/federalist/subscribers","subscription_url":"https://api.github.com/repos/18F/federalist/subscription","commits_url":"https://api.github.com/repos/18F/federalist/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/federalist/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/federalist/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/federalist/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/federalist/contents/{+path}","compare_url":"https://api.github.com/repos/18F/federalist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/federalist/merges","archive_url":"https://api.github.com/repos/18F/federalist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/federalist/downloads","issues_url":"https://api.github.com/repos/18F/federalist/issues{/number}","pulls_url":"https://api.github.com/repos/18F/federalist/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/federalist/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/federalist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/federalist/labels{/name}","releases_url":"https://api.github.com/repos/18F/federalist/releases{/id}","created_at":"2015-05-28T20:09:37Z","updated_at":"2015-07-17T15:58:40Z","pushed_at":"2015-07-17T20:31:35Z","git_url":"git://github.com/18F/federalist.git","ssh_url":"git@github.com:18F/federalist.git","clone_url":"https://github.com/18F/federalist.git","svn_url":"https://github.com/18F/federalist","homepage":"","size":1019,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":12,"forks":3,"open_issues":12,"watchers":22,"default_branch":"master"}},"base":{"label":"18F:master","ref":"master","sha":"86c62f1ed0e53601ae83f5484834a7961c80adc4","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":36463352,"name":"federalist","full_name":"18F/federalist","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/federalist","description":"Federalist is a unified interface for publishing static government websites.","fork":false,"url":"https://api.github.com/repos/18F/federalist","forks_url":"https://api.github.com/repos/18F/federalist/forks","keys_url":"https://api.github.com/repos/18F/federalist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/federalist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/federalist/teams","hooks_url":"https://api.github.com/repos/18F/federalist/hooks","issue_events_url":"https://api.github.com/repos/18F/federalist/issues/events{/number}","events_url":"https://api.github.com/repos/18F/federalist/events","assignees_url":"https://api.github.com/repos/18F/federalist/assignees{/user}","branches_url":"https://api.github.com/repos/18F/federalist/branches{/branch}","tags_url":"https://api.github.com/repos/18F/federalist/tags","blobs_url":"https://api.github.com/repos/18F/federalist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/federalist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/federalist/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/federalist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/federalist/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/federalist/languages","stargazers_url":"https://api.github.com/repos/18F/federalist/stargazers","contributors_url":"https://api.github.com/repos/18F/federalist/contributors","subscribers_url":"https://api.github.com/repos/18F/federalist/subscribers","subscription_url":"https://api.github.com/repos/18F/federalist/subscription","commits_url":"https://api.github.com/repos/18F/federalist/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/federalist/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/federalist/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/federalist/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/federalist/contents/{+path}","compare_url":"https://api.github.com/repos/18F/federalist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/federalist/merges","archive_url":"https://api.github.com/repos/18F/federalist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/federalist/downloads","issues_url":"https://api.github.com/repos/18F/federalist/issues{/number}","pulls_url":"https://api.github.com/repos/18F/federalist/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/federalist/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/federalist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/federalist/labels{/name}","releases_url":"https://api.github.com/repos/18F/federalist/releases{/id}","created_at":"2015-05-28T20:09:37Z","updated_at":"2015-07-17T15:58:40Z","pushed_at":"2015-07-17T20:31:35Z","git_url":"git://github.com/18F/federalist.git","ssh_url":"git@github.com:18F/federalist.git","clone_url":"https://github.com/18F/federalist.git","svn_url":"https://github.com/18F/federalist","homepage":"","size":1019,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":12,"forks":3,"open_issues":12,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/federalist/pulls/90"},"html":{"href":"https://github.com/18F/federalist/pull/90"},"issue":{"href":"https://api.github.com/repos/18F/federalist/issues/90"},"comments":{"href":"https://api.github.com/repos/18F/federalist/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/federalist/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/federalist/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/federalist/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/18F/federalist/statuses/e923eb3045873615ecf5b8e18df1de78db4be754"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"dhcole","id":170641,"avatar_url":"https://avatars.githubusercontent.com/u/170641?v=3","gravatar_id":"","url":"https://api.github.com/users/dhcole","html_url":"https://github.com/dhcole","followers_url":"https://api.github.com/users/dhcole/followers","following_url":"https://api.github.com/users/dhcole/following{/other_user}","gists_url":"https://api.github.com/users/dhcole/gists{/gist_id}","starred_url":"https://api.github.com/users/dhcole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhcole/subscriptions","organizations_url":"https://api.github.com/users/dhcole/orgs","repos_url":"https://api.github.com/users/dhcole/repos","events_url":"https://api.github.com/users/dhcole/events{/privacy}","received_events_url":"https://api.github.com/users/dhcole/received_events","type":"User","site_admin":false},"comments":5,"review_comments":0,"commits":28,"additions":987,"deletions":122,"changed_files":22}}