{"action":"created","comment":{"url":"https://api.github.com/repos/assembl/assembl/pulls/comments/111920866","pull_request_review_id":33195048,"id":111920866,"diff_hunk":"@@ -1,53 +1,125 @@\n import React from 'react';\n import { connect } from 'react-redux';\n-import { isDateExpired } from '../utils/globalFunctions';\n-import Survey from '../components/debate/survey';\n-import Thread from '../components/debate/thread';\n-import TwoColumns from '../components/debate/twoColumns';\n-import TokenVote from '../components/debate/tokenVote';\n+import { graphql } from 'react-apollo';\n+import gql from 'graphql-tag';\n+import { Translate } from 'react-redux-i18n';\n+import Loader from '../components/common/loader';\n+import Themes from '../components/debate/common/themes';\n+import Timeline from '../components/debate/navigation/timeline';\n+import Thumbnails from '../components/debate/navigation/thumbnails';\n \n class Debate extends React.Component {\n-  getCurrentStepIdentifier() {\n-    const currentDate = new Date();\n-    const { debateData } = this.props.debate;\n-    let identifier = null;\n-    if (debateData.timeline){\n-      debateData.timeline.map((phase) => {\n-        const startDate = new Date(phase.start);\n-        const endDate = new Date(phase.end);\n-        if (isDateExpired(currentDate, startDate) && isDateExpired(endDate, currentDate)) {\n-          identifier = phase.identifier;\n-        }\n-        return identifier;\n-      });\n-    }\n-    return identifier || 'Thread';\n+  constructor(props) {\n+    super(props);\n+    this.state = {\n+      isThumbnailsHidden: true\n+    };\n+    this.showThumbnails = this.showThumbnails.bind(this);\n+    this.hideThumbnails = this.hideThumbnails.bind(this);\n+    this.displayThumbnails = this.displayThumbnails.bind(this);\n+  }\n+  showThumbnails() {\n+    this.setState({ isThumbnailsHidden: false });\n+  }\n+  hideThumbnails() {\n+    setTimeout(() => {\n+      this.setState({ isThumbnailsHidden: true });\n+    }, 400);\n+  }\n+  displayThumbnails() {\n+    const { isThumbnailsHidden } = this.state;\n+    if (!isThumbnailsHidden) this.setState({ isThumbnailsHidden: true });\n+    if (isThumbnailsHidden) this.setState({ isThumbnailsHidden: false });","path":"assembl/static2/js/app/pages/debate.jsx","position":52,"original_position":52,"commit_id":"28d12ce742687a43ded9369162a141985fbe6fba","original_commit_id":"28d12ce742687a43ded9369162a141985fbe6fba","user":{"login":"vincentfretin","id":112249,"avatar_url":"https://avatars2.githubusercontent.com/u/112249?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentfretin","html_url":"https://github.com/vincentfretin","followers_url":"https://api.github.com/users/vincentfretin/followers","following_url":"https://api.github.com/users/vincentfretin/following{/other_user}","gists_url":"https://api.github.com/users/vincentfretin/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentfretin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentfretin/subscriptions","organizations_url":"https://api.github.com/users/vincentfretin/orgs","repos_url":"https://api.github.com/users/vincentfretin/repos","events_url":"https://api.github.com/users/vincentfretin/events{/privacy}","received_events_url":"https://api.github.com/users/vincentfretin/received_events","type":"User","site_admin":false},"body":"simpler syntax:\r\n```\r\nthis.setState({ isThumbnailsHidden: !this.state.isThumbnailsHidden });\r\n```","created_at":"2017-04-18T10:29:54Z","updated_at":"2017-04-18T10:29:54Z","html_url":"https://github.com/assembl/assembl/pull/90#discussion_r111920866","pull_request_url":"https://api.github.com/repos/assembl/assembl/pulls/90","_links":{"self":{"href":"https://api.github.com/repos/assembl/assembl/pulls/comments/111920866"},"html":{"href":"https://github.com/assembl/assembl/pull/90#discussion_r111920866"},"pull_request":{"href":"https://api.github.com/repos/assembl/assembl/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/assembl/assembl/pulls/90","id":115718977,"html_url":"https://github.com/assembl/assembl/pull/90","diff_url":"https://github.com/assembl/assembl/pull/90.diff","patch_url":"https://github.com/assembl/assembl/pull/90.patch","issue_url":"https://api.github.com/repos/assembl/assembl/issues/90","number":90,"state":"open","locked":false,"title":"Phase 1: Front-Office","user":{"login":"paolina92","id":17748791,"avatar_url":"https://avatars1.githubusercontent.com/u/17748791?v=3","gravatar_id":"","url":"https://api.github.com/users/paolina92","html_url":"https://github.com/paolina92","followers_url":"https://api.github.com/users/paolina92/followers","following_url":"https://api.github.com/users/paolina92/following{/other_user}","gists_url":"https://api.github.com/users/paolina92/gists{/gist_id}","starred_url":"https://api.github.com/users/paolina92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paolina92/subscriptions","organizations_url":"https://api.github.com/users/paolina92/orgs","repos_url":"https://api.github.com/users/paolina92/repos","events_url":"https://api.github.com/users/paolina92/events{/privacy}","received_events_url":"https://api.github.com/users/paolina92/received_events","type":"User","site_admin":false},"body":"Cette pull request concerne  la partie utilisateur.\nL’administration de la phase 1 fera l’objet d’une autre feature.","created_at":"2017-04-13T09:40:40Z","updated_at":"2017-04-18T10:29:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5e8f4fc194859f295de04cacc84e4e66844e508","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/assembl/assembl/pulls/90/commits","review_comments_url":"https://api.github.com/repos/assembl/assembl/pulls/90/comments","review_comment_url":"https://api.github.com/repos/assembl/assembl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/assembl/assembl/issues/90/comments","statuses_url":"https://api.github.com/repos/assembl/assembl/statuses/28d12ce742687a43ded9369162a141985fbe6fba","head":{"label":"assembl:phase1_ui2","ref":"phase1_ui2","sha":"28d12ce742687a43ded9369162a141985fbe6fba","user":{"login":"assembl","id":20449542,"avatar_url":"https://avatars0.githubusercontent.com/u/20449542?v=3","gravatar_id":"","url":"https://api.github.com/users/assembl","html_url":"https://github.com/assembl","followers_url":"https://api.github.com/users/assembl/followers","following_url":"https://api.github.com/users/assembl/following{/other_user}","gists_url":"https://api.github.com/users/assembl/gists{/gist_id}","starred_url":"https://api.github.com/users/assembl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assembl/subscriptions","organizations_url":"https://api.github.com/users/assembl/orgs","repos_url":"https://api.github.com/users/assembl/repos","events_url":"https://api.github.com/users/assembl/events{/privacy}","received_events_url":"https://api.github.com/users/assembl/received_events","type":"Organization","site_admin":false},"repo":{"id":18962634,"name":"assembl","full_name":"assembl/assembl","owner":{"login":"assembl","id":20449542,"avatar_url":"https://avatars0.githubusercontent.com/u/20449542?v=3","gravatar_id":"","url":"https://api.github.com/users/assembl","html_url":"https://github.com/assembl","followers_url":"https://api.github.com/users/assembl/followers","following_url":"https://api.github.com/users/assembl/following{/other_user}","gists_url":"https://api.github.com/users/assembl/gists{/gist_id}","starred_url":"https://api.github.com/users/assembl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assembl/subscriptions","organizations_url":"https://api.github.com/users/assembl/orgs","repos_url":"https://api.github.com/users/assembl/repos","events_url":"https://api.github.com/users/assembl/events{/privacy}","received_events_url":"https://api.github.com/users/assembl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/assembl/assembl","description":"Assembl is an online debate and synthesis platform","fork":false,"url":"https://api.github.com/repos/assembl/assembl","forks_url":"https://api.github.com/repos/assembl/assembl/forks","keys_url":"https://api.github.com/repos/assembl/assembl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/assembl/assembl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/assembl/assembl/teams","hooks_url":"https://api.github.com/repos/assembl/assembl/hooks","issue_events_url":"https://api.github.com/repos/assembl/assembl/issues/events{/number}","events_url":"https://api.github.com/repos/assembl/assembl/events","assignees_url":"https://api.github.com/repos/assembl/assembl/assignees{/user}","branches_url":"https://api.github.com/repos/assembl/assembl/branches{/branch}","tags_url":"https://api.github.com/repos/assembl/assembl/tags","blobs_url":"https://api.github.com/repos/assembl/assembl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/assembl/assembl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/assembl/assembl/git/refs{/sha}","trees_url":"https://api.github.com/repos/assembl/assembl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/assembl/assembl/statuses/{sha}","languages_url":"https://api.github.com/repos/assembl/assembl/languages","stargazers_url":"https://api.github.com/repos/assembl/assembl/stargazers","contributors_url":"https://api.github.com/repos/assembl/assembl/contributors","subscribers_url":"https://api.github.com/repos/assembl/assembl/subscribers","subscription_url":"https://api.github.com/repos/assembl/assembl/subscription","commits_url":"https://api.github.com/repos/assembl/assembl/commits{/sha}","git_commits_url":"https://api.github.com/repos/assembl/assembl/git/commits{/sha}","comments_url":"https://api.github.com/repos/assembl/assembl/comments{/number}","issue_comment_url":"https://api.github.com/repos/assembl/assembl/issues/comments{/number}","contents_url":"https://api.github.com/repos/assembl/assembl/contents/{+path}","compare_url":"https://api.github.com/repos/assembl/assembl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/assembl/assembl/merges","archive_url":"https://api.github.com/repos/assembl/assembl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/assembl/assembl/downloads","issues_url":"https://api.github.com/repos/assembl/assembl/issues{/number}","pulls_url":"https://api.github.com/repos/assembl/assembl/pulls{/number}","milestones_url":"https://api.github.com/repos/assembl/assembl/milestones{/number}","notifications_url":"https://api.github.com/repos/assembl/assembl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/assembl/assembl/labels{/name}","releases_url":"https://api.github.com/repos/assembl/assembl/releases{/id}","deployments_url":"https://api.github.com/repos/assembl/assembl/deployments","created_at":"2014-04-20T10:52:11Z","updated_at":"2017-04-14T00:36:26Z","pushed_at":"2017-04-18T10:06:08Z","git_url":"git://github.com/assembl/assembl.git","ssh_url":"git@github.com:assembl/assembl.git","clone_url":"https://github.com/assembl/assembl.git","svn_url":"https://github.com/assembl/assembl","homepage":"http://assembl.org","size":59582,"stargazers_count":66,"watchers_count":66,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":18,"forks":22,"open_issues":18,"watchers":66,"default_branch":"develop"}},"base":{"label":"assembl:develop","ref":"develop","sha":"4064d5d35ef3d40b435138b13f367529aabe3649","user":{"login":"assembl","id":20449542,"avatar_url":"https://avatars0.githubusercontent.com/u/20449542?v=3","gravatar_id":"","url":"https://api.github.com/users/assembl","html_url":"https://github.com/assembl","followers_url":"https://api.github.com/users/assembl/followers","following_url":"https://api.github.com/users/assembl/following{/other_user}","gists_url":"https://api.github.com/users/assembl/gists{/gist_id}","starred_url":"https://api.github.com/users/assembl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assembl/subscriptions","organizations_url":"https://api.github.com/users/assembl/orgs","repos_url":"https://api.github.com/users/assembl/repos","events_url":"https://api.github.com/users/assembl/events{/privacy}","received_events_url":"https://api.github.com/users/assembl/received_events","type":"Organization","site_admin":false},"repo":{"id":18962634,"name":"assembl","full_name":"assembl/assembl","owner":{"login":"assembl","id":20449542,"avatar_url":"https://avatars0.githubusercontent.com/u/20449542?v=3","gravatar_id":"","url":"https://api.github.com/users/assembl","html_url":"https://github.com/assembl","followers_url":"https://api.github.com/users/assembl/followers","following_url":"https://api.github.com/users/assembl/following{/other_user}","gists_url":"https://api.github.com/users/assembl/gists{/gist_id}","starred_url":"https://api.github.com/users/assembl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assembl/subscriptions","organizations_url":"https://api.github.com/users/assembl/orgs","repos_url":"https://api.github.com/users/assembl/repos","events_url":"https://api.github.com/users/assembl/events{/privacy}","received_events_url":"https://api.github.com/users/assembl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/assembl/assembl","description":"Assembl is an online debate and synthesis platform","fork":false,"url":"https://api.github.com/repos/assembl/assembl","forks_url":"https://api.github.com/repos/assembl/assembl/forks","keys_url":"https://api.github.com/repos/assembl/assembl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/assembl/assembl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/assembl/assembl/teams","hooks_url":"https://api.github.com/repos/assembl/assembl/hooks","issue_events_url":"https://api.github.com/repos/assembl/assembl/issues/events{/number}","events_url":"https://api.github.com/repos/assembl/assembl/events","assignees_url":"https://api.github.com/repos/assembl/assembl/assignees{/user}","branches_url":"https://api.github.com/repos/assembl/assembl/branches{/branch}","tags_url":"https://api.github.com/repos/assembl/assembl/tags","blobs_url":"https://api.github.com/repos/assembl/assembl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/assembl/assembl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/assembl/assembl/git/refs{/sha}","trees_url":"https://api.github.com/repos/assembl/assembl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/assembl/assembl/statuses/{sha}","languages_url":"https://api.github.com/repos/assembl/assembl/languages","stargazers_url":"https://api.github.com/repos/assembl/assembl/stargazers","contributors_url":"https://api.github.com/repos/assembl/assembl/contributors","subscribers_url":"https://api.github.com/repos/assembl/assembl/subscribers","subscription_url":"https://api.github.com/repos/assembl/assembl/subscription","commits_url":"https://api.github.com/repos/assembl/assembl/commits{/sha}","git_commits_url":"https://api.github.com/repos/assembl/assembl/git/commits{/sha}","comments_url":"https://api.github.com/repos/assembl/assembl/comments{/number}","issue_comment_url":"https://api.github.com/repos/assembl/assembl/issues/comments{/number}","contents_url":"https://api.github.com/repos/assembl/assembl/contents/{+path}","compare_url":"https://api.github.com/repos/assembl/assembl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/assembl/assembl/merges","archive_url":"https://api.github.com/repos/assembl/assembl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/assembl/assembl/downloads","issues_url":"https://api.github.com/repos/assembl/assembl/issues{/number}","pulls_url":"https://api.github.com/repos/assembl/assembl/pulls{/number}","milestones_url":"https://api.github.com/repos/assembl/assembl/milestones{/number}","notifications_url":"https://api.github.com/repos/assembl/assembl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/assembl/assembl/labels{/name}","releases_url":"https://api.github.com/repos/assembl/assembl/releases{/id}","deployments_url":"https://api.github.com/repos/assembl/assembl/deployments","created_at":"2014-04-20T10:52:11Z","updated_at":"2017-04-14T00:36:26Z","pushed_at":"2017-04-18T10:06:08Z","git_url":"git://github.com/assembl/assembl.git","ssh_url":"git@github.com:assembl/assembl.git","clone_url":"https://github.com/assembl/assembl.git","svn_url":"https://github.com/assembl/assembl","homepage":"http://assembl.org","size":59582,"stargazers_count":66,"watchers_count":66,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":18,"forks":22,"open_issues":18,"watchers":66,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/assembl/assembl/pulls/90"},"html":{"href":"https://github.com/assembl/assembl/pull/90"},"issue":{"href":"https://api.github.com/repos/assembl/assembl/issues/90"},"comments":{"href":"https://api.github.com/repos/assembl/assembl/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/assembl/assembl/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/assembl/assembl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/assembl/assembl/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/assembl/assembl/statuses/28d12ce742687a43ded9369162a141985fbe6fba"}}}}
{"actor":{"display_login":"vincentfretin"}}