{"action":"created","comment":{"url":"https://api.github.com/repos/pg-irc/pathways-frontend/pulls/comments/195269139","pull_request_review_id":128603443,"id":195269139,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTI2OTEzOQ==","diff_hunk":"@@ -1,15 +1,120 @@\n+// tslint:disable:no-class no-this no-expression-statement readonly-keyword\n import React from 'react';\n-import { Content, Text, Container } from 'native-base';\n+import { Content, Button, Text, Container, ListItem, Icon, Grid, Col, Row, View } from 'native-base';\n import { ConnectedSavedTasks } from '../tasks/connected_saved_tasks';\n import { ConnectedSuggestedTasks } from '../tasks/connected_suggested_tasks';\n+import { Trans } from '@lingui/react';\n+import { applicationStyles } from '../../application/styles';\n+import { myPlanStyles } from './styles';\n+import Collapsible from 'react-native-collapsible';\n+import { I18nManager } from 'react-native';\n \n-export const Component: React.StatelessComponent = (): JSX.Element => (\n-    <Container>\n-        <Content>\n-            <Text>Saved Tasks</Text>\n-            <ConnectedSavedTasks />\n-            <Text>Suggested Tasks</Text>\n-            <ConnectedSuggestedTasks />\n-        </Content>\n-    </Container>\n-);\n+interface Props {\n+}\n+\n+interface State {\n+    savedTasksCollapsed: boolean;\n+    suggestedTasksCollapsed: boolean;\n+}\n+\n+export class Component extends React.Component<Props, State> {\n+    constructor(props: Props) {\n+        super(props);\n+        this.state = {\n+            savedTasksCollapsed: false,\n+            suggestedTasksCollapsed: true,\n+        };\n+    }\n+\n+    render(): JSX.Element {\n+        return (\n+            <Container>\n+                <Content padder>\n+                    <Text style={applicationStyles.pageTitle}><Trans>My Plan</Trans></Text>\n+                    <ListItem\n+                        noBorder button\n+                        onPress={(): void => this.toggleSavedTasksCollapsed()}>\n+                        <Grid>\n+                            <Row style={myPlanStyles.listItemLabel}>\n+                                <Col size={85}>\n+                                    <Row style={myPlanStyles.listItemLabel}>\n+                                        <Text style={applicationStyles.bold}><Trans>TASKS I PLAN TO DO</Trans></Text>\n+                                        <Icon\n+                                            style={myPlanStyles.icon}\n+                                            name={this.getIconNameForCollapsible(this.state.savedTasksCollapsed)}\n+                                        />\n+                                    </Row>\n+                                </Col>\n+                                <Col size={15}>\n+                                    <Button dark transparent>\n+                                        <Icon name='more' />\n+                                    </Button>\n+                                </Col>\n+                            </Row>\n+                        </Grid>\n+                    </ListItem>\n+                    <Collapsible collapsed={this.state.savedTasksCollapsed}>\n+                        <ConnectedSavedTasks />\n+                    </Collapsible>\n+                    <View style={myPlanStyles.divider} />\n+                    <ListItem\n+                        style={myPlanStyles.suggestedTasksListItem} noBorder button noIndent\n+                        onPress={(): void => this.toggleSuggestedTasksCollapsed()}>\n+                        <Grid>\n+                            <Row>\n+                                <Col size={85} >\n+                                    <Row style={myPlanStyles.listItemLabel}>\n+                                        <Text style={applicationStyles.bold}><Trans>RECOMMENDED FOR ME</Trans></Text>\n+                                        <Icon\n+                                            style={myPlanStyles.icon}\n+                                            name='star-circle'\n+                                            type='MaterialCommunityIcons'/>\n+                                        <Icon\n+                                            style={myPlanStyles.icon}\n+                                            name={this.getIconNameForCollapsible(this.state.suggestedTasksCollapsed)}\n+                                        />\n+                                    </Row>\n+                                </Col>\n+                                <Col size={15}>\n+                                    <Button dark transparent>\n+                                        <Icon name='more' />\n+                                    </Button>\n+                                </Col>\n+                            </Row>\n+                            <Row>\n+                                <Col size={85}>\n+                                    <Row>\n+                                        <Text style={myPlanStyles.recommendedText}>Important for all newcomers to BC:</Text>\n+                                    </Row>\n+                                </Col>\n+                                <Col size={15}>\n+                                    <Button dark transparent>\n+                                        <Icon style={myPlanStyles.infoIcon} name='information-outline' type='MaterialCommunityIcons'/>\n+                                    </Button>\n+                                </Col>\n+                            </Row>\n+                        </Grid>\n+                    </ListItem>\n+                    <Collapsible collapsed={this.state.suggestedTasksCollapsed}>\n+                        <ConnectedSuggestedTasks />\n+                    </Collapsible>\n+                </Content>\n+            </Container>\n+        );\n+    }","path":"src/components/my_plan/my_plan.tsx","position":null,"original_position":115,"commit_id":"b4c18353734f1aa51b401e65bdd007b99a6b7e17","original_commit_id":"a02a5cf54a4f5175434b993699017a44ddd86ea4","user":{"login":"bensinjin","id":3228323,"node_id":"MDQ6VXNlcjMyMjgzMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/3228323?v=4","gravatar_id":"","url":"https://api.github.com/users/bensinjin","html_url":"https://github.com/bensinjin","followers_url":"https://api.github.com/users/bensinjin/followers","following_url":"https://api.github.com/users/bensinjin/following{/other_user}","gists_url":"https://api.github.com/users/bensinjin/gists{/gist_id}","starred_url":"https://api.github.com/users/bensinjin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bensinjin/subscriptions","organizations_url":"https://api.github.com/users/bensinjin/orgs","repos_url":"https://api.github.com/users/bensinjin/repos","events_url":"https://api.github.com/users/bensinjin/events{/privacy}","received_events_url":"https://api.github.com/users/bensinjin/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2018-06-13T23:51:23Z","updated_at":"2018-06-13T23:51:23Z","html_url":"https://github.com/pg-irc/pathways-frontend/pull/117#discussion_r195269139","pull_request_url":"https://api.github.com/repos/pg-irc/pathways-frontend/pulls/117","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pg-irc/pathways-frontend/pulls/comments/195269139"},"html":{"href":"https://github.com/pg-irc/pathways-frontend/pull/117#discussion_r195269139"},"pull_request":{"href":"https://api.github.com/repos/pg-irc/pathways-frontend/pulls/117"}},"in_reply_to_id":195159704},"pull_request":{"url":"https://api.github.com/repos/pg-irc/pathways-frontend/pulls/117","id":194138420,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0MTM4NDIw","html_url":"https://github.com/pg-irc/pathways-frontend/pull/117","diff_url":"https://github.com/pg-irc/pathways-frontend/pull/117.diff","patch_url":"https://github.com/pg-irc/pathways-frontend/pull/117.patch","issue_url":"https://api.github.com/repos/pg-irc/pathways-frontend/issues/117","number":117,"state":"open","locked":false,"title":"Feature/issue 82 style task lists","user":{"login":"bensinjin","id":3228323,"node_id":"MDQ6VXNlcjMyMjgzMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/3228323?v=4","gravatar_id":"","url":"https://api.github.com/users/bensinjin","html_url":"https://github.com/bensinjin","followers_url":"https://api.github.com/users/bensinjin/followers","following_url":"https://api.github.com/users/bensinjin/following{/other_user}","gists_url":"https://api.github.com/users/bensinjin/gists{/gist_id}","starred_url":"https://api.github.com/users/bensinjin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bensinjin/subscriptions","organizations_url":"https://api.github.com/users/bensinjin/orgs","repos_url":"https://api.github.com/users/bensinjin/repos","events_url":"https://api.github.com/users/bensinjin/events{/privacy}","received_events_url":"https://api.github.com/users/bensinjin/received_events","type":"User","site_admin":false},"body":"This issue was created off the #44 branch and will require PR #116 to be merged prior. \r\n\r\nThese issues have been done together as they share the same component and it's easier to work on them / review them together.\r\n\r\nNote (why Travis fails): NativeBase was updated in this branch to allow us access to some newer features. Unfortunately the newest release (which we want) has a typo in it and requires this PR: https://github.com/GeekyAnts/NativeBase/pull/1990 to be merged to allow us to run tests. \r\n\r\nI've opted to fork native-base for the time being see comment below.","created_at":"2018-06-12T00:37:10Z","updated_at":"2018-06-13T23:51:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c04e9c31c6f3f8f9789a9b6987329e95b7e79d6b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pg-irc/pathways-frontend/pulls/117/commits","review_comments_url":"https://api.github.com/repos/pg-irc/pathways-frontend/pulls/117/comments","review_comment_url":"https://api.github.com/repos/pg-irc/pathways-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pg-irc/pathways-frontend/issues/117/comments","statuses_url":"https://api.github.com/repos/pg-irc/pathways-frontend/statuses/b4c18353734f1aa51b401e65bdd007b99a6b7e17","head":{"label":"pg-irc:feature/Issue_82_83_style_task_lists","ref":"feature/Issue_82_83_style_task_lists","sha":"b4c18353734f1aa51b401e65bdd007b99a6b7e17","user":{"login":"pg-irc","id":30124065,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMTI0MDY1","avatar_url":"https://avatars3.githubusercontent.com/u/30124065?v=4","gravatar_id":"","url":"https://api.github.com/users/pg-irc","html_url":"https://github.com/pg-irc","followers_url":"https://api.github.com/users/pg-irc/followers","following_url":"https://api.github.com/users/pg-irc/following{/other_user}","gists_url":"https://api.github.com/users/pg-irc/gists{/gist_id}","starred_url":"https://api.github.com/users/pg-irc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pg-irc/subscriptions","organizations_url":"https://api.github.com/users/pg-irc/orgs","repos_url":"https://api.github.com/users/pg-irc/repos","events_url":"https://api.github.com/users/pg-irc/events{/privacy}","received_events_url":"https://api.github.com/users/pg-irc/received_events","type":"Organization","site_admin":false},"repo":{"id":99282566,"node_id":"MDEwOlJlcG9zaXRvcnk5OTI4MjU2Ng==","name":"pathways-frontend","full_name":"pg-irc/pathways-frontend","owner":{"login":"pg-irc","id":30124065,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMTI0MDY1","avatar_url":"https://avatars3.githubusercontent.com/u/30124065?v=4","gravatar_id":"","url":"https://api.github.com/users/pg-irc","html_url":"https://github.com/pg-irc","followers_url":"https://api.github.com/users/pg-irc/followers","following_url":"https://api.github.com/users/pg-irc/following{/other_user}","gists_url":"https://api.github.com/users/pg-irc/gists{/gist_id}","starred_url":"https://api.github.com/users/pg-irc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pg-irc/subscriptions","organizations_url":"https://api.github.com/users/pg-irc/orgs","repos_url":"https://api.github.com/users/pg-irc/repos","events_url":"https://api.github.com/users/pg-irc/events{/privacy}","received_events_url":"https://api.github.com/users/pg-irc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pg-irc/pathways-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/pg-irc/pathways-frontend","forks_url":"https://api.github.com/repos/pg-irc/pathways-frontend/forks","keys_url":"https://api.github.com/repos/pg-irc/pathways-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pg-irc/pathways-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pg-irc/pathways-frontend/teams","hooks_url":"https://api.github.com/repos/pg-irc/pathways-frontend/hooks","issue_events_url":"https://api.github.com/repos/pg-irc/pathways-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/pg-irc/pathways-frontend/events","assignees_url":"https://api.github.com/repos/pg-irc/pathways-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/pg-irc/pathways-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/pg-irc/pathways-frontend/tags","blobs_url":"https://api.github.com/repos/pg-irc/pathways-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pg-irc/pathways-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pg-irc/pathways-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/pg-irc/pathways-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pg-irc/pathways-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/pg-irc/pathways-frontend/languages","stargazers_url":"https://api.github.com/repos/pg-irc/pathways-frontend/stargazers","contributors_url":"https://api.github.com/repos/pg-irc/pathways-frontend/contributors","subscribers_url":"https://api.github.com/repos/pg-irc/pathways-frontend/subscribers","subscription_url":"https://api.github.com/repos/pg-irc/pathways-frontend/subscription","commits_url":"https://api.github.com/repos/pg-irc/pathways-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/pg-irc/pathways-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/pg-irc/pathways-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/pg-irc/pathways-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/pg-irc/pathways-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/pg-irc/pathways-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pg-irc/pathways-frontend/merges","archive_url":"https://api.github.com/repos/pg-irc/pathways-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pg-irc/pathways-frontend/downloads","issues_url":"https://api.github.com/repos/pg-irc/pathways-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/pg-irc/pathways-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/pg-irc/pathways-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/pg-irc/pathways-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pg-irc/pathways-frontend/labels{/name}","releases_url":"https://api.github.com/repos/pg-irc/pathways-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/pg-irc/pathways-frontend/deployments","created_at":"2017-08-03T23:15:59Z","updated_at":"2018-06-13T18:12:24Z","pushed_at":"2018-06-13T23:47:24Z","git_url":"git://github.com/pg-irc/pathways-frontend.git","ssh_url":"git@github.com:pg-irc/pathways-frontend.git","clone_url":"https://github.com/pg-irc/pathways-frontend.git","svn_url":"https://github.com/pg-irc/pathways-frontend","homepage":null,"size":1217,"stargazers_count":5,"watchers_count":5,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":51,"license":null,"forks":2,"open_issues":51,"watchers":5,"default_branch":"master"}},"base":{"label":"pg-irc:master","ref":"master","sha":"2dd5726c50d2ff6ad1fa7176c515c1212daad241","user":{"login":"pg-irc","id":30124065,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMTI0MDY1","avatar_url":"https://avatars3.githubusercontent.com/u/30124065?v=4","gravatar_id":"","url":"https://api.github.com/users/pg-irc","html_url":"https://github.com/pg-irc","followers_url":"https://api.github.com/users/pg-irc/followers","following_url":"https://api.github.com/users/pg-irc/following{/other_user}","gists_url":"https://api.github.com/users/pg-irc/gists{/gist_id}","starred_url":"https://api.github.com/users/pg-irc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pg-irc/subscriptions","organizations_url":"https://api.github.com/users/pg-irc/orgs","repos_url":"https://api.github.com/users/pg-irc/repos","events_url":"https://api.github.com/users/pg-irc/events{/privacy}","received_events_url":"https://api.github.com/users/pg-irc/received_events","type":"Organization","site_admin":false},"repo":{"id":99282566,"node_id":"MDEwOlJlcG9zaXRvcnk5OTI4MjU2Ng==","name":"pathways-frontend","full_name":"pg-irc/pathways-frontend","owner":{"login":"pg-irc","id":30124065,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMTI0MDY1","avatar_url":"https://avatars3.githubusercontent.com/u/30124065?v=4","gravatar_id":"","url":"https://api.github.com/users/pg-irc","html_url":"https://github.com/pg-irc","followers_url":"https://api.github.com/users/pg-irc/followers","following_url":"https://api.github.com/users/pg-irc/following{/other_user}","gists_url":"https://api.github.com/users/pg-irc/gists{/gist_id}","starred_url":"https://api.github.com/users/pg-irc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pg-irc/subscriptions","organizations_url":"https://api.github.com/users/pg-irc/orgs","repos_url":"https://api.github.com/users/pg-irc/repos","events_url":"https://api.github.com/users/pg-irc/events{/privacy}","received_events_url":"https://api.github.com/users/pg-irc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pg-irc/pathways-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/pg-irc/pathways-frontend","forks_url":"https://api.github.com/repos/pg-irc/pathways-frontend/forks","keys_url":"https://api.github.com/repos/pg-irc/pathways-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pg-irc/pathways-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pg-irc/pathways-frontend/teams","hooks_url":"https://api.github.com/repos/pg-irc/pathways-frontend/hooks","issue_events_url":"https://api.github.com/repos/pg-irc/pathways-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/pg-irc/pathways-frontend/events","assignees_url":"https://api.github.com/repos/pg-irc/pathways-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/pg-irc/pathways-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/pg-irc/pathways-frontend/tags","blobs_url":"https://api.github.com/repos/pg-irc/pathways-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pg-irc/pathways-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pg-irc/pathways-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/pg-irc/pathways-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pg-irc/pathways-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/pg-irc/pathways-frontend/languages","stargazers_url":"https://api.github.com/repos/pg-irc/pathways-frontend/stargazers","contributors_url":"https://api.github.com/repos/pg-irc/pathways-frontend/contributors","subscribers_url":"https://api.github.com/repos/pg-irc/pathways-frontend/subscribers","subscription_url":"https://api.github.com/repos/pg-irc/pathways-frontend/subscription","commits_url":"https://api.github.com/repos/pg-irc/pathways-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/pg-irc/pathways-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/pg-irc/pathways-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/pg-irc/pathways-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/pg-irc/pathways-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/pg-irc/pathways-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pg-irc/pathways-frontend/merges","archive_url":"https://api.github.com/repos/pg-irc/pathways-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pg-irc/pathways-frontend/downloads","issues_url":"https://api.github.com/repos/pg-irc/pathways-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/pg-irc/pathways-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/pg-irc/pathways-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/pg-irc/pathways-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pg-irc/pathways-frontend/labels{/name}","releases_url":"https://api.github.com/repos/pg-irc/pathways-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/pg-irc/pathways-frontend/deployments","created_at":"2017-08-03T23:15:59Z","updated_at":"2018-06-13T18:12:24Z","pushed_at":"2018-06-13T23:47:24Z","git_url":"git://github.com/pg-irc/pathways-frontend.git","ssh_url":"git@github.com:pg-irc/pathways-frontend.git","clone_url":"https://github.com/pg-irc/pathways-frontend.git","svn_url":"https://github.com/pg-irc/pathways-frontend","homepage":null,"size":1217,"stargazers_count":5,"watchers_count":5,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":51,"license":null,"forks":2,"open_issues":51,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pg-irc/pathways-frontend/pulls/117"},"html":{"href":"https://github.com/pg-irc/pathways-frontend/pull/117"},"issue":{"href":"https://api.github.com/repos/pg-irc/pathways-frontend/issues/117"},"comments":{"href":"https://api.github.com/repos/pg-irc/pathways-frontend/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/pg-irc/pathways-frontend/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/pg-irc/pathways-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pg-irc/pathways-frontend/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/pg-irc/pathways-frontend/statuses/b4c18353734f1aa51b401e65bdd007b99a6b7e17"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bensinjin"}}