{"action":"created","comment":{"url":"https://api.github.com/repos/cvut/fittable/pulls/comments/47505227","id":47505227,"diff_hunk":"@@ -31,190 +39,151 @@ const propTypes = {\n   screenSize: PropTypes.number,\n }\n \n-class Timetable extends React.Component {\n+function calculateEvents (events, timeline) {\n+  return R.map((event) => {\n+    const {position, length} = calculateEventPosition(event, timeline)\n+    return {\n+      ...event,\n+      _position: position,\n+      _length: length,\n+      _appear: eventAppearance(event),\n+    }\n+  }, events)\n+}\n \n-  /**\n-   * Hides the days element by removing its animation property class\n-   */\n-  hide () {\n-    const el = this.refs.days\n+function createHourLabels (timeline, layout) {\n+  console.log(timeline)\n+  return calculateHourLabels(timeline).map((label) => {\n+    console.log(label)\n+    return <HourLabel key={label.id} position={label.position} length={label.length} layout={layout}>\n+      {label.label}\n+    </HourLabel>\n+  })\n+}\n \n-    // Replay CSS animation\n-    el.classList.remove('a-left')\n-    el.classList.remove('a-right')\n-  }\n+function createDays (props, dayCount, events, eventsfn, animationDirection) {","path":"src/components/Timetable.jsx","position":69,"original_position":69,"commit_id":"a7aeaa09fc8672919cf05000b00932e34e0fad32","original_commit_id":"a7aeaa09fc8672919cf05000b00932e34e0fad32","user":{"login":"MMajko","id":3010503,"avatar_url":"https://avatars.githubusercontent.com/u/3010503?v=3","gravatar_id":"","url":"https://api.github.com/users/MMajko","html_url":"https://github.com/MMajko","followers_url":"https://api.github.com/users/MMajko/followers","following_url":"https://api.github.com/users/MMajko/following{/other_user}","gists_url":"https://api.github.com/users/MMajko/gists{/gist_id}","starred_url":"https://api.github.com/users/MMajko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MMajko/subscriptions","organizations_url":"https://api.github.com/users/MMajko/orgs","repos_url":"https://api.github.com/users/MMajko/repos","events_url":"https://api.github.com/users/MMajko/events{/privacy}","received_events_url":"https://api.github.com/users/MMajko/received_events","type":"User","site_admin":false},"body":"Expanding `props` not possible, using too many properties in `createDayEvents`.","created_at":"2015-12-14T14:50:25Z","updated_at":"2015-12-14T14:50:25Z","html_url":"https://github.com/cvut/fittable/pull/190#discussion_r47505227","pull_request_url":"https://api.github.com/repos/cvut/fittable/pulls/190","_links":{"self":{"href":"https://api.github.com/repos/cvut/fittable/pulls/comments/47505227"},"html":{"href":"https://github.com/cvut/fittable/pull/190#discussion_r47505227"},"pull_request":{"href":"https://api.github.com/repos/cvut/fittable/pulls/190"}}},"pull_request":{"url":"https://api.github.com/repos/cvut/fittable/pulls/190","id":52835266,"html_url":"https://github.com/cvut/fittable/pull/190","diff_url":"https://github.com/cvut/fittable/pull/190.diff","patch_url":"https://github.com/cvut/fittable/pull/190.patch","issue_url":"https://api.github.com/repos/cvut/fittable/issues/190","number":190,"state":"open","locked":false,"title":"Extract positioning logic from the Day component","user":{"login":"MMajko","id":3010503,"avatar_url":"https://avatars.githubusercontent.com/u/3010503?v=3","gravatar_id":"","url":"https://api.github.com/users/MMajko","html_url":"https://github.com/MMajko","followers_url":"https://api.github.com/users/MMajko/followers","following_url":"https://api.github.com/users/MMajko/following{/other_user}","gists_url":"https://api.github.com/users/MMajko/gists{/gist_id}","starred_url":"https://api.github.com/users/MMajko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MMajko/subscriptions","organizations_url":"https://api.github.com/users/MMajko/orgs","repos_url":"https://api.github.com/users/MMajko/repos","events_url":"https://api.github.com/users/MMajko/events{/privacy}","received_events_url":"https://api.github.com/users/MMajko/received_events","type":"User","site_admin":false},"body":"Resolves #69 \r\nResolves #112 \r\nResolves #186 ","created_at":"2015-12-07T11:49:48Z","updated_at":"2015-12-14T14:50:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7533f30f82f92be79931ddb0f9dfe5a2b286e22","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cvut/fittable/pulls/190/commits","review_comments_url":"https://api.github.com/repos/cvut/fittable/pulls/190/comments","review_comment_url":"https://api.github.com/repos/cvut/fittable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cvut/fittable/issues/190/comments","statuses_url":"https://api.github.com/repos/cvut/fittable/statuses/a7aeaa09fc8672919cf05000b00932e34e0fad32","head":{"label":"cvut:logic-extraction","ref":"logic-extraction","sha":"a7aeaa09fc8672919cf05000b00932e34e0fad32","user":{"login":"cvut","id":2183308,"avatar_url":"https://avatars.githubusercontent.com/u/2183308?v=3","gravatar_id":"","url":"https://api.github.com/users/cvut","html_url":"https://github.com/cvut","followers_url":"https://api.github.com/users/cvut/followers","following_url":"https://api.github.com/users/cvut/following{/other_user}","gists_url":"https://api.github.com/users/cvut/gists{/gist_id}","starred_url":"https://api.github.com/users/cvut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvut/subscriptions","organizations_url":"https://api.github.com/users/cvut/orgs","repos_url":"https://api.github.com/users/cvut/repos","events_url":"https://api.github.com/users/cvut/events{/privacy}","received_events_url":"https://api.github.com/users/cvut/received_events","type":"Organization","site_admin":false},"repo":{"id":27840184,"name":"fittable","full_name":"cvut/fittable","owner":{"login":"cvut","id":2183308,"avatar_url":"https://avatars.githubusercontent.com/u/2183308?v=3","gravatar_id":"","url":"https://api.github.com/users/cvut","html_url":"https://github.com/cvut","followers_url":"https://api.github.com/users/cvut/followers","following_url":"https://api.github.com/users/cvut/following{/other_user}","gists_url":"https://api.github.com/users/cvut/gists{/gist_id}","starred_url":"https://api.github.com/users/cvut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvut/subscriptions","organizations_url":"https://api.github.com/users/cvut/orgs","repos_url":"https://api.github.com/users/cvut/repos","events_url":"https://api.github.com/users/cvut/events{/privacy}","received_events_url":"https://api.github.com/users/cvut/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cvut/fittable","description":"New timetable application built on top of the Sirius API.","fork":false,"url":"https://api.github.com/repos/cvut/fittable","forks_url":"https://api.github.com/repos/cvut/fittable/forks","keys_url":"https://api.github.com/repos/cvut/fittable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cvut/fittable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cvut/fittable/teams","hooks_url":"https://api.github.com/repos/cvut/fittable/hooks","issue_events_url":"https://api.github.com/repos/cvut/fittable/issues/events{/number}","events_url":"https://api.github.com/repos/cvut/fittable/events","assignees_url":"https://api.github.com/repos/cvut/fittable/assignees{/user}","branches_url":"https://api.github.com/repos/cvut/fittable/branches{/branch}","tags_url":"https://api.github.com/repos/cvut/fittable/tags","blobs_url":"https://api.github.com/repos/cvut/fittable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cvut/fittable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cvut/fittable/git/refs{/sha}","trees_url":"https://api.github.com/repos/cvut/fittable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cvut/fittable/statuses/{sha}","languages_url":"https://api.github.com/repos/cvut/fittable/languages","stargazers_url":"https://api.github.com/repos/cvut/fittable/stargazers","contributors_url":"https://api.github.com/repos/cvut/fittable/contributors","subscribers_url":"https://api.github.com/repos/cvut/fittable/subscribers","subscription_url":"https://api.github.com/repos/cvut/fittable/subscription","commits_url":"https://api.github.com/repos/cvut/fittable/commits{/sha}","git_commits_url":"https://api.github.com/repos/cvut/fittable/git/commits{/sha}","comments_url":"https://api.github.com/repos/cvut/fittable/comments{/number}","issue_comment_url":"https://api.github.com/repos/cvut/fittable/issues/comments{/number}","contents_url":"https://api.github.com/repos/cvut/fittable/contents/{+path}","compare_url":"https://api.github.com/repos/cvut/fittable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cvut/fittable/merges","archive_url":"https://api.github.com/repos/cvut/fittable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cvut/fittable/downloads","issues_url":"https://api.github.com/repos/cvut/fittable/issues{/number}","pulls_url":"https://api.github.com/repos/cvut/fittable/pulls{/number}","milestones_url":"https://api.github.com/repos/cvut/fittable/milestones{/number}","notifications_url":"https://api.github.com/repos/cvut/fittable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cvut/fittable/labels{/name}","releases_url":"https://api.github.com/repos/cvut/fittable/releases{/id}","created_at":"2014-12-10T21:18:09Z","updated_at":"2015-11-16T14:42:56Z","pushed_at":"2015-12-14T13:08:45Z","git_url":"git://github.com/cvut/fittable.git","ssh_url":"git@github.com:cvut/fittable.git","clone_url":"https://github.com/cvut/fittable.git","svn_url":"https://github.com/cvut/fittable","homepage":"https://timetable.fit.cvut.cz/","size":4343,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":57,"forks":0,"open_issues":57,"watchers":13,"default_branch":"master"}},"base":{"label":"cvut:master","ref":"master","sha":"ece9fb29c01aef489b94cdcaa2df8099bc93de4e","user":{"login":"cvut","id":2183308,"avatar_url":"https://avatars.githubusercontent.com/u/2183308?v=3","gravatar_id":"","url":"https://api.github.com/users/cvut","html_url":"https://github.com/cvut","followers_url":"https://api.github.com/users/cvut/followers","following_url":"https://api.github.com/users/cvut/following{/other_user}","gists_url":"https://api.github.com/users/cvut/gists{/gist_id}","starred_url":"https://api.github.com/users/cvut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvut/subscriptions","organizations_url":"https://api.github.com/users/cvut/orgs","repos_url":"https://api.github.com/users/cvut/repos","events_url":"https://api.github.com/users/cvut/events{/privacy}","received_events_url":"https://api.github.com/users/cvut/received_events","type":"Organization","site_admin":false},"repo":{"id":27840184,"name":"fittable","full_name":"cvut/fittable","owner":{"login":"cvut","id":2183308,"avatar_url":"https://avatars.githubusercontent.com/u/2183308?v=3","gravatar_id":"","url":"https://api.github.com/users/cvut","html_url":"https://github.com/cvut","followers_url":"https://api.github.com/users/cvut/followers","following_url":"https://api.github.com/users/cvut/following{/other_user}","gists_url":"https://api.github.com/users/cvut/gists{/gist_id}","starred_url":"https://api.github.com/users/cvut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvut/subscriptions","organizations_url":"https://api.github.com/users/cvut/orgs","repos_url":"https://api.github.com/users/cvut/repos","events_url":"https://api.github.com/users/cvut/events{/privacy}","received_events_url":"https://api.github.com/users/cvut/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cvut/fittable","description":"New timetable application built on top of the Sirius API.","fork":false,"url":"https://api.github.com/repos/cvut/fittable","forks_url":"https://api.github.com/repos/cvut/fittable/forks","keys_url":"https://api.github.com/repos/cvut/fittable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cvut/fittable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cvut/fittable/teams","hooks_url":"https://api.github.com/repos/cvut/fittable/hooks","issue_events_url":"https://api.github.com/repos/cvut/fittable/issues/events{/number}","events_url":"https://api.github.com/repos/cvut/fittable/events","assignees_url":"https://api.github.com/repos/cvut/fittable/assignees{/user}","branches_url":"https://api.github.com/repos/cvut/fittable/branches{/branch}","tags_url":"https://api.github.com/repos/cvut/fittable/tags","blobs_url":"https://api.github.com/repos/cvut/fittable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cvut/fittable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cvut/fittable/git/refs{/sha}","trees_url":"https://api.github.com/repos/cvut/fittable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cvut/fittable/statuses/{sha}","languages_url":"https://api.github.com/repos/cvut/fittable/languages","stargazers_url":"https://api.github.com/repos/cvut/fittable/stargazers","contributors_url":"https://api.github.com/repos/cvut/fittable/contributors","subscribers_url":"https://api.github.com/repos/cvut/fittable/subscribers","subscription_url":"https://api.github.com/repos/cvut/fittable/subscription","commits_url":"https://api.github.com/repos/cvut/fittable/commits{/sha}","git_commits_url":"https://api.github.com/repos/cvut/fittable/git/commits{/sha}","comments_url":"https://api.github.com/repos/cvut/fittable/comments{/number}","issue_comment_url":"https://api.github.com/repos/cvut/fittable/issues/comments{/number}","contents_url":"https://api.github.com/repos/cvut/fittable/contents/{+path}","compare_url":"https://api.github.com/repos/cvut/fittable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cvut/fittable/merges","archive_url":"https://api.github.com/repos/cvut/fittable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cvut/fittable/downloads","issues_url":"https://api.github.com/repos/cvut/fittable/issues{/number}","pulls_url":"https://api.github.com/repos/cvut/fittable/pulls{/number}","milestones_url":"https://api.github.com/repos/cvut/fittable/milestones{/number}","notifications_url":"https://api.github.com/repos/cvut/fittable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cvut/fittable/labels{/name}","releases_url":"https://api.github.com/repos/cvut/fittable/releases{/id}","created_at":"2014-12-10T21:18:09Z","updated_at":"2015-11-16T14:42:56Z","pushed_at":"2015-12-14T13:08:45Z","git_url":"git://github.com/cvut/fittable.git","ssh_url":"git@github.com:cvut/fittable.git","clone_url":"https://github.com/cvut/fittable.git","svn_url":"https://github.com/cvut/fittable","homepage":"https://timetable.fit.cvut.cz/","size":4343,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":57,"forks":0,"open_issues":57,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cvut/fittable/pulls/190"},"html":{"href":"https://github.com/cvut/fittable/pull/190"},"issue":{"href":"https://api.github.com/repos/cvut/fittable/issues/190"},"comments":{"href":"https://api.github.com/repos/cvut/fittable/issues/190/comments"},"review_comments":{"href":"https://api.github.com/repos/cvut/fittable/pulls/190/comments"},"review_comment":{"href":"https://api.github.com/repos/cvut/fittable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cvut/fittable/pulls/190/commits"},"statuses":{"href":"https://api.github.com/repos/cvut/fittable/statuses/a7aeaa09fc8672919cf05000b00932e34e0fad32"}}}}