{"action":"created","comment":{"url":"https://api.github.com/repos/chronoscio/frontend/pulls/comments/211413089","pull_request_review_id":147829511,"id":211413089,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTQxMzA4OQ==","diff_hunk":"@@ -0,0 +1,51 @@\n+import * as React from 'react';\n+import { Icon, List, ListProps } from 'semantic-ui-react';\n+import { compose } from 'recompose';\n+\n+import mockData from '../../mockData';\n+import Routes from '../../../routes';\n+import withCurrentDate, {\n+  WithCurrentDateProps\n+} from '../../decorators/withCurrentDate';\n+import withEditMode, { WithEditModeProps } from '../../decorators/withEditMode';\n+\n+const Territories: React.SFC<\n+  ListProps & WithCurrentDateProps & WithEditModeProps\n+> = ({ currentDate, isEditMode }) => (\n+  <List selection={true}>\n+    {mockData.map(({ endDate: endDateFromData, id, startDate }) => {\n+      // If no endDate is specified, we consider it today\n+      const endDate = endDateFromData ? endDateFromData : new Date();\n+\n+      // Convert `startDate` to yyyy/mm/dd format\n+      const url = startDate","path":"packages/app/components/Nation/Territories/Territories.tsx","position":21,"original_position":21,"commit_id":"5058bc1c585bf8100d69d576ed4eff03d6fc6d53","original_commit_id":"5058bc1c585bf8100d69d576ed4eff03d6fc6d53","user":{"login":"whirish","id":6278600,"node_id":"MDQ6VXNlcjYyNzg2MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/6278600?v=4","gravatar_id":"","url":"https://api.github.com/users/whirish","html_url":"https://github.com/whirish","followers_url":"https://api.github.com/users/whirish/followers","following_url":"https://api.github.com/users/whirish/following{/other_user}","gists_url":"https://api.github.com/users/whirish/gists{/gist_id}","starred_url":"https://api.github.com/users/whirish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whirish/subscriptions","organizations_url":"https://api.github.com/users/whirish/orgs","repos_url":"https://api.github.com/users/whirish/repos","events_url":"https://api.github.com/users/whirish/events{/privacy}","received_events_url":"https://api.github.com/users/whirish/received_events","type":"User","site_admin":false},"body":"I've noticed that when clicking the territory evolution date cards (with the strange exception of the earliest card), the date is changed to one year before the start date. Should one year be added to this value?","created_at":"2018-08-20T21:27:58Z","updated_at":"2018-08-20T21:27:58Z","html_url":"https://github.com/chronoscio/frontend/pull/10#discussion_r211413089","pull_request_url":"https://api.github.com/repos/chronoscio/frontend/pulls/10","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/chronoscio/frontend/pulls/comments/211413089"},"html":{"href":"https://github.com/chronoscio/frontend/pull/10#discussion_r211413089"},"pull_request":{"href":"https://api.github.com/repos/chronoscio/frontend/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/chronoscio/frontend/pulls/10","id":209380868,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5MzgwODY4","html_url":"https://github.com/chronoscio/frontend/pull/10","diff_url":"https://github.com/chronoscio/frontend/pull/10.diff","patch_url":"https://github.com/chronoscio/frontend/pull/10.patch","issue_url":"https://api.github.com/repos/chronoscio/frontend/issues/10","number":10,"state":"open","locked":false,"title":"Add basic UI components","user":{"login":"amaurymartiny","id":1293565,"node_id":"MDQ6VXNlcjEyOTM1NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/1293565?v=4","gravatar_id":"","url":"https://api.github.com/users/amaurymartiny","html_url":"https://github.com/amaurymartiny","followers_url":"https://api.github.com/users/amaurymartiny/followers","following_url":"https://api.github.com/users/amaurymartiny/following{/other_user}","gists_url":"https://api.github.com/users/amaurymartiny/gists{/gist_id}","starred_url":"https://api.github.com/users/amaurymartiny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaurymartiny/subscriptions","organizations_url":"https://api.github.com/users/amaurymartiny/orgs","repos_url":"https://api.github.com/users/amaurymartiny/repos","events_url":"https://api.github.com/users/amaurymartiny/events{/privacy}","received_events_url":"https://api.github.com/users/amaurymartiny/received_events","type":"User","site_admin":false},"body":"Add some basic UI in this PR. Note: nothing is connected to the backend yet, there is a temporary `mockData.ts` file which holds some fake territories of one nation, which evolves over time.\r\n\r\n- Add a left pane which will hold nation information\r\n- Add a slider on the bottom to travel through time\r\n- Add the list of territories of this nation (from mock data)\r\n- Show these territories on the map, only show the territory that is current to the current date\r\n- Add a possibility to edit the current territory (only if you're connected). The \"Save\" button doesn't do anything yet.\r\n- If you change date while editing, the editing mode is turned off.\r\n\r\nEdit: sorry about the git avatars not being there, i got a new computer, but forgot to do `git config`...","created_at":"2018-08-19T21:31:33Z","updated_at":"2018-08-20T21:27:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16a224bb25159a4e0d54bdbc59b84d610bf3ea18","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":997541858,"node_id":"MDU6TGFiZWw5OTc1NDE4NTg=","url":"https://api.github.com/repos/chronoscio/frontend/labels/status/waits%20for%20review","name":"status/waits for review","color":"bfe5bf","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/chronoscio/frontend/pulls/10/commits","review_comments_url":"https://api.github.com/repos/chronoscio/frontend/pulls/10/comments","review_comment_url":"https://api.github.com/repos/chronoscio/frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chronoscio/frontend/issues/10/comments","statuses_url":"https://api.github.com/repos/chronoscio/frontend/statuses/5058bc1c585bf8100d69d576ed4eff03d6fc6d53","head":{"label":"chronoscio:am-nation","ref":"am-nation","sha":"5058bc1c585bf8100d69d576ed4eff03d6fc6d53","user":{"login":"chronoscio","id":36326682,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MzI2Njgy","avatar_url":"https://avatars2.githubusercontent.com/u/36326682?v=4","gravatar_id":"","url":"https://api.github.com/users/chronoscio","html_url":"https://github.com/chronoscio","followers_url":"https://api.github.com/users/chronoscio/followers","following_url":"https://api.github.com/users/chronoscio/following{/other_user}","gists_url":"https://api.github.com/users/chronoscio/gists{/gist_id}","starred_url":"https://api.github.com/users/chronoscio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chronoscio/subscriptions","organizations_url":"https://api.github.com/users/chronoscio/orgs","repos_url":"https://api.github.com/users/chronoscio/repos","events_url":"https://api.github.com/users/chronoscio/events{/privacy}","received_events_url":"https://api.github.com/users/chronoscio/received_events","type":"Organization","site_admin":false},"repo":{"id":140766845,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA3NjY4NDU=","name":"frontend","full_name":"chronoscio/frontend","owner":{"login":"chronoscio","id":36326682,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MzI2Njgy","avatar_url":"https://avatars2.githubusercontent.com/u/36326682?v=4","gravatar_id":"","url":"https://api.github.com/users/chronoscio","html_url":"https://github.com/chronoscio","followers_url":"https://api.github.com/users/chronoscio/followers","following_url":"https://api.github.com/users/chronoscio/following{/other_user}","gists_url":"https://api.github.com/users/chronoscio/gists{/gist_id}","starred_url":"https://api.github.com/users/chronoscio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chronoscio/subscriptions","organizations_url":"https://api.github.com/users/chronoscio/orgs","repos_url":"https://api.github.com/users/chronoscio/repos","events_url":"https://api.github.com/users/chronoscio/events{/privacy}","received_events_url":"https://api.github.com/users/chronoscio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chronoscio/frontend","description":null,"fork":false,"url":"https://api.github.com/repos/chronoscio/frontend","forks_url":"https://api.github.com/repos/chronoscio/frontend/forks","keys_url":"https://api.github.com/repos/chronoscio/frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chronoscio/frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chronoscio/frontend/teams","hooks_url":"https://api.github.com/repos/chronoscio/frontend/hooks","issue_events_url":"https://api.github.com/repos/chronoscio/frontend/issues/events{/number}","events_url":"https://api.github.com/repos/chronoscio/frontend/events","assignees_url":"https://api.github.com/repos/chronoscio/frontend/assignees{/user}","branches_url":"https://api.github.com/repos/chronoscio/frontend/branches{/branch}","tags_url":"https://api.github.com/repos/chronoscio/frontend/tags","blobs_url":"https://api.github.com/repos/chronoscio/frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chronoscio/frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chronoscio/frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/chronoscio/frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chronoscio/frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/chronoscio/frontend/languages","stargazers_url":"https://api.github.com/repos/chronoscio/frontend/stargazers","contributors_url":"https://api.github.com/repos/chronoscio/frontend/contributors","subscribers_url":"https://api.github.com/repos/chronoscio/frontend/subscribers","subscription_url":"https://api.github.com/repos/chronoscio/frontend/subscription","commits_url":"https://api.github.com/repos/chronoscio/frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/chronoscio/frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/chronoscio/frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/chronoscio/frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/chronoscio/frontend/contents/{+path}","compare_url":"https://api.github.com/repos/chronoscio/frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chronoscio/frontend/merges","archive_url":"https://api.github.com/repos/chronoscio/frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chronoscio/frontend/downloads","issues_url":"https://api.github.com/repos/chronoscio/frontend/issues{/number}","pulls_url":"https://api.github.com/repos/chronoscio/frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/chronoscio/frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/chronoscio/frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chronoscio/frontend/labels{/name}","releases_url":"https://api.github.com/repos/chronoscio/frontend/releases{/id}","deployments_url":"https://api.github.com/repos/chronoscio/frontend/deployments","created_at":"2018-07-12T21:33:45Z","updated_at":"2018-08-16T06:38:01Z","pushed_at":"2018-08-20T09:39:41Z","git_url":"git://github.com/chronoscio/frontend.git","ssh_url":"git@github.com:chronoscio/frontend.git","clone_url":"https://github.com/chronoscio/frontend.git","svn_url":"https://github.com/chronoscio/frontend","homepage":null,"size":407,"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":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":3,"watchers":2,"default_branch":"master"}},"base":{"label":"chronoscio:master","ref":"master","sha":"33dfabd0a18076341db998e65e08130e4485925b","user":{"login":"chronoscio","id":36326682,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MzI2Njgy","avatar_url":"https://avatars2.githubusercontent.com/u/36326682?v=4","gravatar_id":"","url":"https://api.github.com/users/chronoscio","html_url":"https://github.com/chronoscio","followers_url":"https://api.github.com/users/chronoscio/followers","following_url":"https://api.github.com/users/chronoscio/following{/other_user}","gists_url":"https://api.github.com/users/chronoscio/gists{/gist_id}","starred_url":"https://api.github.com/users/chronoscio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chronoscio/subscriptions","organizations_url":"https://api.github.com/users/chronoscio/orgs","repos_url":"https://api.github.com/users/chronoscio/repos","events_url":"https://api.github.com/users/chronoscio/events{/privacy}","received_events_url":"https://api.github.com/users/chronoscio/received_events","type":"Organization","site_admin":false},"repo":{"id":140766845,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA3NjY4NDU=","name":"frontend","full_name":"chronoscio/frontend","owner":{"login":"chronoscio","id":36326682,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MzI2Njgy","avatar_url":"https://avatars2.githubusercontent.com/u/36326682?v=4","gravatar_id":"","url":"https://api.github.com/users/chronoscio","html_url":"https://github.com/chronoscio","followers_url":"https://api.github.com/users/chronoscio/followers","following_url":"https://api.github.com/users/chronoscio/following{/other_user}","gists_url":"https://api.github.com/users/chronoscio/gists{/gist_id}","starred_url":"https://api.github.com/users/chronoscio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chronoscio/subscriptions","organizations_url":"https://api.github.com/users/chronoscio/orgs","repos_url":"https://api.github.com/users/chronoscio/repos","events_url":"https://api.github.com/users/chronoscio/events{/privacy}","received_events_url":"https://api.github.com/users/chronoscio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chronoscio/frontend","description":null,"fork":false,"url":"https://api.github.com/repos/chronoscio/frontend","forks_url":"https://api.github.com/repos/chronoscio/frontend/forks","keys_url":"https://api.github.com/repos/chronoscio/frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chronoscio/frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chronoscio/frontend/teams","hooks_url":"https://api.github.com/repos/chronoscio/frontend/hooks","issue_events_url":"https://api.github.com/repos/chronoscio/frontend/issues/events{/number}","events_url":"https://api.github.com/repos/chronoscio/frontend/events","assignees_url":"https://api.github.com/repos/chronoscio/frontend/assignees{/user}","branches_url":"https://api.github.com/repos/chronoscio/frontend/branches{/branch}","tags_url":"https://api.github.com/repos/chronoscio/frontend/tags","blobs_url":"https://api.github.com/repos/chronoscio/frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chronoscio/frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chronoscio/frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/chronoscio/frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chronoscio/frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/chronoscio/frontend/languages","stargazers_url":"https://api.github.com/repos/chronoscio/frontend/stargazers","contributors_url":"https://api.github.com/repos/chronoscio/frontend/contributors","subscribers_url":"https://api.github.com/repos/chronoscio/frontend/subscribers","subscription_url":"https://api.github.com/repos/chronoscio/frontend/subscription","commits_url":"https://api.github.com/repos/chronoscio/frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/chronoscio/frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/chronoscio/frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/chronoscio/frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/chronoscio/frontend/contents/{+path}","compare_url":"https://api.github.com/repos/chronoscio/frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chronoscio/frontend/merges","archive_url":"https://api.github.com/repos/chronoscio/frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chronoscio/frontend/downloads","issues_url":"https://api.github.com/repos/chronoscio/frontend/issues{/number}","pulls_url":"https://api.github.com/repos/chronoscio/frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/chronoscio/frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/chronoscio/frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chronoscio/frontend/labels{/name}","releases_url":"https://api.github.com/repos/chronoscio/frontend/releases{/id}","deployments_url":"https://api.github.com/repos/chronoscio/frontend/deployments","created_at":"2018-07-12T21:33:45Z","updated_at":"2018-08-16T06:38:01Z","pushed_at":"2018-08-20T09:39:41Z","git_url":"git://github.com/chronoscio/frontend.git","ssh_url":"git@github.com:chronoscio/frontend.git","clone_url":"https://github.com/chronoscio/frontend.git","svn_url":"https://github.com/chronoscio/frontend","homepage":null,"size":407,"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":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chronoscio/frontend/pulls/10"},"html":{"href":"https://github.com/chronoscio/frontend/pull/10"},"issue":{"href":"https://api.github.com/repos/chronoscio/frontend/issues/10"},"comments":{"href":"https://api.github.com/repos/chronoscio/frontend/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/chronoscio/frontend/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/chronoscio/frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chronoscio/frontend/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/chronoscio/frontend/statuses/5058bc1c585bf8100d69d576ed4eff03d6fc6d53"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"whirish"}}