{"action":"created","comment":{"url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/pulls/comments/117634630","pull_request_review_id":39358064,"id":117634630,"diff_hunk":"@@ -49,6 +52,111 @@ export class ErrorDialog extends React.Component<ErrorDialogProps, {}> {\n   }\n }\n \n+interface PublishingDialogProps extends React.Props<any> {\n+  handleMetadataChange: (quest: QuestType, key: string, value: any) => void;\n+  open: boolean;\n+  onRequestClose: () => void;\n+  onRequestPublish: (quest: QuestType) => void;\n+  quest: QuestType;\n+}\n+\n+export class PublishingDialog extends React.Component<PublishingDialogProps, {}> {\n+  render() {\n+    const metadata = this.props.quest.metadataRealtime;\n+    if (metadata === undefined) {\n+      return null;\n+    }\n+\n+    return (\n+      <Dialog\n+        title=\"Publish your quest\"\n+        actions={[<FlatButton\n+          label=\"Back\"\n+          onTouchTap={() => this.props.onRequestClose()}\n+        />,<RaisedButton\n+          label=\"Publish\"\n+          secondary={true}\n+          onTouchTap={() => this.props.onRequestPublish(this.props.quest)}\n+        />]}\n+        titleClassName={'dialogTitle dialogGood'}\n+        modal={false}\n+        open={Boolean(this.props.open)}\n+      >\n+        <TextField\n+          value={metadata.get('summary')}","path":"app/components/Dialogs.tsx","position":49,"original_position":49,"commit_id":"1c69d5f255b8296c0c4a55e616a2acc89ece8225","original_commit_id":"1c69d5f255b8296c0c4a55e616a2acc89ece8225","user":{"login":"smartin015","id":607666,"avatar_url":"https://avatars1.githubusercontent.com/u/607666?v=3","gravatar_id":"","url":"https://api.github.com/users/smartin015","html_url":"https://github.com/smartin015","followers_url":"https://api.github.com/users/smartin015/followers","following_url":"https://api.github.com/users/smartin015/following{/other_user}","gists_url":"https://api.github.com/users/smartin015/gists{/gist_id}","starred_url":"https://api.github.com/users/smartin015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartin015/subscriptions","organizations_url":"https://api.github.com/users/smartin015/orgs","repos_url":"https://api.github.com/users/smartin015/repos","events_url":"https://api.github.com/users/smartin015/events{/privacy}","received_events_url":"https://api.github.com/users/smartin015/received_events","type":"User","site_admin":false},"body":"Min and max values based on Joi validation fields here?","created_at":"2017-05-21T14:42:16Z","updated_at":"2017-05-21T14:42:16Z","html_url":"https://github.com/ExpeditionRPG/expedition-quest-creator/pull/268#discussion_r117634630","pull_request_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/pulls/268","_links":{"self":{"href":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/pulls/comments/117634630"},"html":{"href":"https://github.com/ExpeditionRPG/expedition-quest-creator/pull/268#discussion_r117634630"},"pull_request":{"href":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/pulls/268"}}},"pull_request":{"url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/pulls/268","id":120709042,"html_url":"https://github.com/ExpeditionRPG/expedition-quest-creator/pull/268","diff_url":"https://github.com/ExpeditionRPG/expedition-quest-creator/pull/268.diff","patch_url":"https://github.com/ExpeditionRPG/expedition-quest-creator/pull/268.patch","issue_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/issues/268","number":268,"state":"open","locked":false,"title":"Publish / metadata form","user":{"login":"toddmedema","id":775657,"avatar_url":"https://avatars1.githubusercontent.com/u/775657?v=3","gravatar_id":"","url":"https://api.github.com/users/toddmedema","html_url":"https://github.com/toddmedema","followers_url":"https://api.github.com/users/toddmedema/followers","following_url":"https://api.github.com/users/toddmedema/following{/other_user}","gists_url":"https://api.github.com/users/toddmedema/gists{/gist_id}","starred_url":"https://api.github.com/users/toddmedema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toddmedema/subscriptions","organizations_url":"https://api.github.com/users/toddmedema/orgs","repos_url":"https://api.github.com/users/toddmedema/repos","events_url":"https://api.github.com/users/toddmedema/events{/privacy}","received_events_url":"https://api.github.com/users/toddmedema/received_events","type":"User","site_admin":false},"body":"Overview:\r\n- Removed attributes from XML, except title\r\n- On load, if not defined, XML attributes are imported to GoogleDoc.metadata\r\n- From there, the code pulls all metadata info from GoogleDoc.metadata\r\n- added a parser error instructing users to delete attribute lines (see screenshot)\r\n- validation of attributes is now in the UI / form, instead of the XML parser\r\n- as a temporary compatibility measure, on publish, the metadata is inserted back into the XML. Once we've coded a version of the app that no longer relies on XML metadata, and we're 100% sure all users are on the new app, we can remove this stopgap code\r\n\r\nAdditional features (especially selecting genre, mood and content rating) will be rolled out separately given the large scope of this change.\r\n\r\n<img width=\"768\" alt=\"screen shot 2017-05-15 at 6 24 36 pm\" src=\"https://cloud.githubusercontent.com/assets/775657/26082070/dfcf57d6-399b-11e7-9f61-34c734f90234.png\">\r\n<img width=\"1234\" alt=\"screen shot 2017-05-15 at 6 30 48 pm\" src=\"https://cloud.githubusercontent.com/assets/775657/26082198/b43a7410-399c-11e7-9ab7-ddcdc69caf80.png\">\r\n","created_at":"2017-05-15T22:32:07Z","updated_at":"2017-05-21T14:42:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e4eefa4f56a778c227ef3d525d50b13d5fcba33a","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/pulls/268/commits","review_comments_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/pulls/268/comments","review_comment_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/issues/268/comments","statuses_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/statuses/1c69d5f255b8296c0c4a55e616a2acc89ece8225","head":{"label":"ExpeditionRPG:form","ref":"form","sha":"1c69d5f255b8296c0c4a55e616a2acc89ece8225","user":{"login":"ExpeditionRPG","id":26279990,"avatar_url":"https://avatars3.githubusercontent.com/u/26279990?v=3","gravatar_id":"","url":"https://api.github.com/users/ExpeditionRPG","html_url":"https://github.com/ExpeditionRPG","followers_url":"https://api.github.com/users/ExpeditionRPG/followers","following_url":"https://api.github.com/users/ExpeditionRPG/following{/other_user}","gists_url":"https://api.github.com/users/ExpeditionRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/ExpeditionRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExpeditionRPG/subscriptions","organizations_url":"https://api.github.com/users/ExpeditionRPG/orgs","repos_url":"https://api.github.com/users/ExpeditionRPG/repos","events_url":"https://api.github.com/users/ExpeditionRPG/events{/privacy}","received_events_url":"https://api.github.com/users/ExpeditionRPG/received_events","type":"Organization","site_admin":false},"repo":{"id":66146816,"name":"expedition-quest-creator","full_name":"ExpeditionRPG/expedition-quest-creator","owner":{"login":"ExpeditionRPG","id":26279990,"avatar_url":"https://avatars3.githubusercontent.com/u/26279990?v=3","gravatar_id":"","url":"https://api.github.com/users/ExpeditionRPG","html_url":"https://github.com/ExpeditionRPG","followers_url":"https://api.github.com/users/ExpeditionRPG/followers","following_url":"https://api.github.com/users/ExpeditionRPG/following{/other_user}","gists_url":"https://api.github.com/users/ExpeditionRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/ExpeditionRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExpeditionRPG/subscriptions","organizations_url":"https://api.github.com/users/ExpeditionRPG/orgs","repos_url":"https://api.github.com/users/ExpeditionRPG/repos","events_url":"https://api.github.com/users/ExpeditionRPG/events{/privacy}","received_events_url":"https://api.github.com/users/ExpeditionRPG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ExpeditionRPG/expedition-quest-creator","description":"The Quest Creator tool for Expedition: The Roleplaying Card Game","fork":false,"url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator","forks_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/forks","keys_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/teams","hooks_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/hooks","issue_events_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/issues/events{/number}","events_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/events","assignees_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/assignees{/user}","branches_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/branches{/branch}","tags_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/tags","blobs_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/git/refs{/sha}","trees_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/statuses/{sha}","languages_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/languages","stargazers_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/stargazers","contributors_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/contributors","subscribers_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/subscribers","subscription_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/subscription","commits_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/commits{/sha}","git_commits_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/git/commits{/sha}","comments_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/comments{/number}","issue_comment_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/issues/comments{/number}","contents_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/contents/{+path}","compare_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/merges","archive_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/downloads","issues_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/issues{/number}","pulls_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/pulls{/number}","milestones_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/milestones{/number}","notifications_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/labels{/name}","releases_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/releases{/id}","deployments_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/deployments","created_at":"2016-08-20T12:57:14Z","updated_at":"2017-03-08T15:45:10Z","pushed_at":"2017-05-21T14:04:10Z","git_url":"git://github.com/ExpeditionRPG/expedition-quest-creator.git","ssh_url":"git@github.com:ExpeditionRPG/expedition-quest-creator.git","clone_url":"https://github.com/ExpeditionRPG/expedition-quest-creator.git","svn_url":"https://github.com/ExpeditionRPG/expedition-quest-creator","homepage":"http://quests.expeditiongame.com","size":17179,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":29,"forks":1,"open_issues":29,"watchers":2,"default_branch":"master"}},"base":{"label":"ExpeditionRPG:master","ref":"master","sha":"1176ad59c5dfea5de2a51e07207b1a78129a653f","user":{"login":"ExpeditionRPG","id":26279990,"avatar_url":"https://avatars3.githubusercontent.com/u/26279990?v=3","gravatar_id":"","url":"https://api.github.com/users/ExpeditionRPG","html_url":"https://github.com/ExpeditionRPG","followers_url":"https://api.github.com/users/ExpeditionRPG/followers","following_url":"https://api.github.com/users/ExpeditionRPG/following{/other_user}","gists_url":"https://api.github.com/users/ExpeditionRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/ExpeditionRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExpeditionRPG/subscriptions","organizations_url":"https://api.github.com/users/ExpeditionRPG/orgs","repos_url":"https://api.github.com/users/ExpeditionRPG/repos","events_url":"https://api.github.com/users/ExpeditionRPG/events{/privacy}","received_events_url":"https://api.github.com/users/ExpeditionRPG/received_events","type":"Organization","site_admin":false},"repo":{"id":66146816,"name":"expedition-quest-creator","full_name":"ExpeditionRPG/expedition-quest-creator","owner":{"login":"ExpeditionRPG","id":26279990,"avatar_url":"https://avatars3.githubusercontent.com/u/26279990?v=3","gravatar_id":"","url":"https://api.github.com/users/ExpeditionRPG","html_url":"https://github.com/ExpeditionRPG","followers_url":"https://api.github.com/users/ExpeditionRPG/followers","following_url":"https://api.github.com/users/ExpeditionRPG/following{/other_user}","gists_url":"https://api.github.com/users/ExpeditionRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/ExpeditionRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExpeditionRPG/subscriptions","organizations_url":"https://api.github.com/users/ExpeditionRPG/orgs","repos_url":"https://api.github.com/users/ExpeditionRPG/repos","events_url":"https://api.github.com/users/ExpeditionRPG/events{/privacy}","received_events_url":"https://api.github.com/users/ExpeditionRPG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ExpeditionRPG/expedition-quest-creator","description":"The Quest Creator tool for Expedition: The Roleplaying Card Game","fork":false,"url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator","forks_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/forks","keys_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/teams","hooks_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/hooks","issue_events_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/issues/events{/number}","events_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/events","assignees_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/assignees{/user}","branches_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/branches{/branch}","tags_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/tags","blobs_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/git/refs{/sha}","trees_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/statuses/{sha}","languages_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/languages","stargazers_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/stargazers","contributors_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/contributors","subscribers_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/subscribers","subscription_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/subscription","commits_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/commits{/sha}","git_commits_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/git/commits{/sha}","comments_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/comments{/number}","issue_comment_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/issues/comments{/number}","contents_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/contents/{+path}","compare_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/merges","archive_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/downloads","issues_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/issues{/number}","pulls_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/pulls{/number}","milestones_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/milestones{/number}","notifications_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/labels{/name}","releases_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/releases{/id}","deployments_url":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/deployments","created_at":"2016-08-20T12:57:14Z","updated_at":"2017-03-08T15:45:10Z","pushed_at":"2017-05-21T14:04:10Z","git_url":"git://github.com/ExpeditionRPG/expedition-quest-creator.git","ssh_url":"git@github.com:ExpeditionRPG/expedition-quest-creator.git","clone_url":"https://github.com/ExpeditionRPG/expedition-quest-creator.git","svn_url":"https://github.com/ExpeditionRPG/expedition-quest-creator","homepage":"http://quests.expeditiongame.com","size":17179,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":29,"forks":1,"open_issues":29,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/pulls/268"},"html":{"href":"https://github.com/ExpeditionRPG/expedition-quest-creator/pull/268"},"issue":{"href":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/issues/268"},"comments":{"href":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/issues/268/comments"},"review_comments":{"href":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/pulls/268/comments"},"review_comment":{"href":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/pulls/268/commits"},"statuses":{"href":"https://api.github.com/repos/ExpeditionRPG/expedition-quest-creator/statuses/1c69d5f255b8296c0c4a55e616a2acc89ece8225"}}}}
{"actor":{"display_login":"smartin015"}}