{"action":"created","comment":{"url":"https://api.github.com/repos/freeCodeCamp/learn/pulls/comments/187473241","pull_request_review_id":119263594,"id":187473241,"diff_hunk":"@@ -0,0 +1,92 @@\n+/* global graphql */\n+import React, { Fragment } from 'react';\n+import PropTypes from 'prop-types';\n+import Link from 'gatsby-link';\n+import Helmet from 'react-helmet';\n+import { Button, ListGroup, ListGroupItem } from 'react-bootstrap';\n+\n+import FullWidthRow from '../../components/util/FullWidthRow';\n+import ButtonSpacer from '../../components/util/ButtonSpacer';\n+import { MarkdownRemark, AllChallengeNode } from '../../redux/propTypes';\n+\n+import './intro.css';\n+\n+const propTypes = {\n+  data: PropTypes.shape({\n+    markdownRemark: MarkdownRemark,\n+    allChallengeNode: AllChallengeNode\n+  })\n+};\n+\n+function renderMenuItems({ edges }) {\n+  return edges.map(({ node }) => node).map(({ title, fields: { slug } }) => (\n+    <Link to={slug}>\n+      <ListGroupItem>{title}</ListGroupItem>\n+    </Link>\n+  ));\n+}\n+\n+function SuperBlockIntroductionPage(\n+  { data: { markdownRemark, allChallengeNode } }\n+) {\n+  const { html, frontmatter: { superBlock } } = markdownRemark;\n+  const firstLesson = allChallengeNode.edges[0].node;\n+  const firstLessonPath = firstLesson.fields.slug;\n+  return (\n+    <Fragment>\n+      <Helmet>\n+        <title>{superBlock} | freeCodeCamp</title>\n+      </Helmet>\n+      <FullWidthRow>\n+        <div\n+          className='intro-layout'\n+          dangerouslySetInnerHTML={{ __html: html }}\n+        />\n+      </FullWidthRow>\n+      <FullWidthRow>\n+        <Link to={firstLessonPath}>\n+          <Button block={true} bsSize='lg' bsStyle='primary'>\n+            Go to the first lesson\n+          </Button>\n+        </Link>\n+        <ButtonSpacer />\n+        <hr />\n+      </FullWidthRow>\n+      <FullWidthRow>\n+        <h2 className='intro-toc-title'>Upcoming Lessons</h2>\n+        <ListGroup className='intro-toc'>\n+          {renderMenuItems(allChallengeNode)}\n+        </ListGroup>\n+      </FullWidthRow>\n+    </Fragment>\n+  );\n+}\n+\n+SuperBlockIntroductionPage.displayName = 'SuperBlockIntroductionPage';\n+SuperBlockIntroductionPage.propTypes = propTypes;\n+\n+export default SuperBlockIntroductionPage;\n+\n+export const query = graphql`\n+  query SuperBlockIntroPageBySlug($slug: String!, $superBlock: String!) {\n+    markdownRemark(fields: { slug: { eq: $slug } }) {\n+      frontmatter {\n+        superBlock\n+      }\n+      html\n+    }\n+    allChallengeNode(","path":"src/templates/Introduction/SuperBlockIntro.js","position":78,"original_position":78,"commit_id":"7b43d6d2776bf9dca501d5bc078cc850904850c4","original_commit_id":"7b43d6d2776bf9dca501d5bc078cc850904850c4","user":{"login":"tchaffee","id":148813,"avatar_url":"https://avatars2.githubusercontent.com/u/148813?v=4","gravatar_id":"","url":"https://api.github.com/users/tchaffee","html_url":"https://github.com/tchaffee","followers_url":"https://api.github.com/users/tchaffee/followers","following_url":"https://api.github.com/users/tchaffee/following{/other_user}","gists_url":"https://api.github.com/users/tchaffee/gists{/gist_id}","starred_url":"https://api.github.com/users/tchaffee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchaffee/subscriptions","organizations_url":"https://api.github.com/users/tchaffee/orgs","repos_url":"https://api.github.com/users/tchaffee/repos","events_url":"https://api.github.com/users/tchaffee/events{/privacy}","received_events_url":"https://api.github.com/users/tchaffee/received_events","type":"User","site_admin":false},"body":"I'm pretty sketchy on the graphql we need. I am not at all familiar with what's available. Is there a guide somewhere? More specificially, do we need the allChallengeNode for the super block intro? ","created_at":"2018-05-10T22:03:59Z","updated_at":"2018-05-10T22:03:59Z","html_url":"https://github.com/freeCodeCamp/learn/pull/37#discussion_r187473241","pull_request_url":"https://api.github.com/repos/freeCodeCamp/learn/pulls/37","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/freeCodeCamp/learn/pulls/comments/187473241"},"html":{"href":"https://github.com/freeCodeCamp/learn/pull/37#discussion_r187473241"},"pull_request":{"href":"https://api.github.com/repos/freeCodeCamp/learn/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/freeCodeCamp/learn/pulls/37","id":186720855,"html_url":"https://github.com/freeCodeCamp/learn/pull/37","diff_url":"https://github.com/freeCodeCamp/learn/pull/37.diff","patch_url":"https://github.com/freeCodeCamp/learn/pull/37.patch","issue_url":"https://api.github.com/repos/freeCodeCamp/learn/issues/37","number":37,"state":"open","locked":false,"title":"WIP: added index.md files","user":{"login":"tchaffee","id":148813,"avatar_url":"https://avatars2.githubusercontent.com/u/148813?v=4","gravatar_id":"","url":"https://api.github.com/users/tchaffee","html_url":"https://github.com/tchaffee","followers_url":"https://api.github.com/users/tchaffee/followers","following_url":"https://api.github.com/users/tchaffee/following{/other_user}","gists_url":"https://api.github.com/users/tchaffee/gists{/gist_id}","starred_url":"https://api.github.com/users/tchaffee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchaffee/subscriptions","organizations_url":"https://api.github.com/users/tchaffee/orgs","repos_url":"https://api.github.com/users/tchaffee/repos","events_url":"https://api.github.com/users/tchaffee/events{/privacy}","received_events_url":"https://api.github.com/users/tchaffee/received_events","type":"User","site_admin":false},"body":"Please do not merge this. It is work in progress.\r\n\r\n@Bouncey If I understood the first requirement correct for issue #30 then this should complete that requirement.","created_at":"2018-05-08T18:40:56Z","updated_at":"2018-05-10T22:03:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db481bb95f26352d58a28502d2dfac982c9ed069","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/freeCodeCamp/learn/pulls/37/commits","review_comments_url":"https://api.github.com/repos/freeCodeCamp/learn/pulls/37/comments","review_comment_url":"https://api.github.com/repos/freeCodeCamp/learn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/freeCodeCamp/learn/issues/37/comments","statuses_url":"https://api.github.com/repos/freeCodeCamp/learn/statuses/7b43d6d2776bf9dca501d5bc078cc850904850c4","head":{"label":"tchaffee:fix/stub-superblock-index-pages","ref":"fix/stub-superblock-index-pages","sha":"7b43d6d2776bf9dca501d5bc078cc850904850c4","user":{"login":"tchaffee","id":148813,"avatar_url":"https://avatars2.githubusercontent.com/u/148813?v=4","gravatar_id":"","url":"https://api.github.com/users/tchaffee","html_url":"https://github.com/tchaffee","followers_url":"https://api.github.com/users/tchaffee/followers","following_url":"https://api.github.com/users/tchaffee/following{/other_user}","gists_url":"https://api.github.com/users/tchaffee/gists{/gist_id}","starred_url":"https://api.github.com/users/tchaffee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchaffee/subscriptions","organizations_url":"https://api.github.com/users/tchaffee/orgs","repos_url":"https://api.github.com/users/tchaffee/repos","events_url":"https://api.github.com/users/tchaffee/events{/privacy}","received_events_url":"https://api.github.com/users/tchaffee/received_events","type":"User","site_admin":false},"repo":{"id":131737173,"name":"learn","full_name":"tchaffee/learn","owner":{"login":"tchaffee","id":148813,"avatar_url":"https://avatars2.githubusercontent.com/u/148813?v=4","gravatar_id":"","url":"https://api.github.com/users/tchaffee","html_url":"https://github.com/tchaffee","followers_url":"https://api.github.com/users/tchaffee/followers","following_url":"https://api.github.com/users/tchaffee/following{/other_user}","gists_url":"https://api.github.com/users/tchaffee/gists{/gist_id}","starred_url":"https://api.github.com/users/tchaffee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchaffee/subscriptions","organizations_url":"https://api.github.com/users/tchaffee/orgs","repos_url":"https://api.github.com/users/tchaffee/repos","events_url":"https://api.github.com/users/tchaffee/events{/privacy}","received_events_url":"https://api.github.com/users/tchaffee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tchaffee/learn","description":null,"fork":true,"url":"https://api.github.com/repos/tchaffee/learn","forks_url":"https://api.github.com/repos/tchaffee/learn/forks","keys_url":"https://api.github.com/repos/tchaffee/learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tchaffee/learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tchaffee/learn/teams","hooks_url":"https://api.github.com/repos/tchaffee/learn/hooks","issue_events_url":"https://api.github.com/repos/tchaffee/learn/issues/events{/number}","events_url":"https://api.github.com/repos/tchaffee/learn/events","assignees_url":"https://api.github.com/repos/tchaffee/learn/assignees{/user}","branches_url":"https://api.github.com/repos/tchaffee/learn/branches{/branch}","tags_url":"https://api.github.com/repos/tchaffee/learn/tags","blobs_url":"https://api.github.com/repos/tchaffee/learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tchaffee/learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tchaffee/learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/tchaffee/learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tchaffee/learn/statuses/{sha}","languages_url":"https://api.github.com/repos/tchaffee/learn/languages","stargazers_url":"https://api.github.com/repos/tchaffee/learn/stargazers","contributors_url":"https://api.github.com/repos/tchaffee/learn/contributors","subscribers_url":"https://api.github.com/repos/tchaffee/learn/subscribers","subscription_url":"https://api.github.com/repos/tchaffee/learn/subscription","commits_url":"https://api.github.com/repos/tchaffee/learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/tchaffee/learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/tchaffee/learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/tchaffee/learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/tchaffee/learn/contents/{+path}","compare_url":"https://api.github.com/repos/tchaffee/learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tchaffee/learn/merges","archive_url":"https://api.github.com/repos/tchaffee/learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tchaffee/learn/downloads","issues_url":"https://api.github.com/repos/tchaffee/learn/issues{/number}","pulls_url":"https://api.github.com/repos/tchaffee/learn/pulls{/number}","milestones_url":"https://api.github.com/repos/tchaffee/learn/milestones{/number}","notifications_url":"https://api.github.com/repos/tchaffee/learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tchaffee/learn/labels{/name}","releases_url":"https://api.github.com/repos/tchaffee/learn/releases{/id}","deployments_url":"https://api.github.com/repos/tchaffee/learn/deployments","created_at":"2018-05-01T16:39:51Z","updated_at":"2018-05-01T16:39:53Z","pushed_at":"2018-05-10T22:02:12Z","git_url":"git://github.com/tchaffee/learn.git","ssh_url":"git@github.com:tchaffee/learn.git","clone_url":"https://github.com/tchaffee/learn.git","svn_url":"https://github.com/tchaffee/learn","homepage":null,"size":2969,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"freeCodeCamp:master","ref":"master","sha":"2af856fe94bd648d08e931bbe34c96291ec46332","user":{"login":"freeCodeCamp","id":9892522,"avatar_url":"https://avatars0.githubusercontent.com/u/9892522?v=4","gravatar_id":"","url":"https://api.github.com/users/freeCodeCamp","html_url":"https://github.com/freeCodeCamp","followers_url":"https://api.github.com/users/freeCodeCamp/followers","following_url":"https://api.github.com/users/freeCodeCamp/following{/other_user}","gists_url":"https://api.github.com/users/freeCodeCamp/gists{/gist_id}","starred_url":"https://api.github.com/users/freeCodeCamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeCodeCamp/subscriptions","organizations_url":"https://api.github.com/users/freeCodeCamp/orgs","repos_url":"https://api.github.com/users/freeCodeCamp/repos","events_url":"https://api.github.com/users/freeCodeCamp/events{/privacy}","received_events_url":"https://api.github.com/users/freeCodeCamp/received_events","type":"Organization","site_admin":false},"repo":{"id":128400174,"name":"learn","full_name":"freeCodeCamp/learn","owner":{"login":"freeCodeCamp","id":9892522,"avatar_url":"https://avatars0.githubusercontent.com/u/9892522?v=4","gravatar_id":"","url":"https://api.github.com/users/freeCodeCamp","html_url":"https://github.com/freeCodeCamp","followers_url":"https://api.github.com/users/freeCodeCamp/followers","following_url":"https://api.github.com/users/freeCodeCamp/following{/other_user}","gists_url":"https://api.github.com/users/freeCodeCamp/gists{/gist_id}","starred_url":"https://api.github.com/users/freeCodeCamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeCodeCamp/subscriptions","organizations_url":"https://api.github.com/users/freeCodeCamp/orgs","repos_url":"https://api.github.com/users/freeCodeCamp/repos","events_url":"https://api.github.com/users/freeCodeCamp/events{/privacy}","received_events_url":"https://api.github.com/users/freeCodeCamp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/freeCodeCamp/learn","description":null,"fork":false,"url":"https://api.github.com/repos/freeCodeCamp/learn","forks_url":"https://api.github.com/repos/freeCodeCamp/learn/forks","keys_url":"https://api.github.com/repos/freeCodeCamp/learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freeCodeCamp/learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freeCodeCamp/learn/teams","hooks_url":"https://api.github.com/repos/freeCodeCamp/learn/hooks","issue_events_url":"https://api.github.com/repos/freeCodeCamp/learn/issues/events{/number}","events_url":"https://api.github.com/repos/freeCodeCamp/learn/events","assignees_url":"https://api.github.com/repos/freeCodeCamp/learn/assignees{/user}","branches_url":"https://api.github.com/repos/freeCodeCamp/learn/branches{/branch}","tags_url":"https://api.github.com/repos/freeCodeCamp/learn/tags","blobs_url":"https://api.github.com/repos/freeCodeCamp/learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freeCodeCamp/learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freeCodeCamp/learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/freeCodeCamp/learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freeCodeCamp/learn/statuses/{sha}","languages_url":"https://api.github.com/repos/freeCodeCamp/learn/languages","stargazers_url":"https://api.github.com/repos/freeCodeCamp/learn/stargazers","contributors_url":"https://api.github.com/repos/freeCodeCamp/learn/contributors","subscribers_url":"https://api.github.com/repos/freeCodeCamp/learn/subscribers","subscription_url":"https://api.github.com/repos/freeCodeCamp/learn/subscription","commits_url":"https://api.github.com/repos/freeCodeCamp/learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/freeCodeCamp/learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/freeCodeCamp/learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/freeCodeCamp/learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/freeCodeCamp/learn/contents/{+path}","compare_url":"https://api.github.com/repos/freeCodeCamp/learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freeCodeCamp/learn/merges","archive_url":"https://api.github.com/repos/freeCodeCamp/learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freeCodeCamp/learn/downloads","issues_url":"https://api.github.com/repos/freeCodeCamp/learn/issues{/number}","pulls_url":"https://api.github.com/repos/freeCodeCamp/learn/pulls{/number}","milestones_url":"https://api.github.com/repos/freeCodeCamp/learn/milestones{/number}","notifications_url":"https://api.github.com/repos/freeCodeCamp/learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freeCodeCamp/learn/labels{/name}","releases_url":"https://api.github.com/repos/freeCodeCamp/learn/releases{/id}","deployments_url":"https://api.github.com/repos/freeCodeCamp/learn/deployments","created_at":"2018-04-06T13:44:23Z","updated_at":"2018-05-09T13:21:40Z","pushed_at":"2018-05-10T22:02:13Z","git_url":"git://github.com/freeCodeCamp/learn.git","ssh_url":"git@github.com:freeCodeCamp/learn.git","clone_url":"https://github.com/freeCodeCamp/learn.git","svn_url":"https://github.com/freeCodeCamp/learn","homepage":null,"size":2975,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":10,"open_issues":9,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/freeCodeCamp/learn/pulls/37"},"html":{"href":"https://github.com/freeCodeCamp/learn/pull/37"},"issue":{"href":"https://api.github.com/repos/freeCodeCamp/learn/issues/37"},"comments":{"href":"https://api.github.com/repos/freeCodeCamp/learn/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/freeCodeCamp/learn/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/freeCodeCamp/learn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/freeCodeCamp/learn/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/freeCodeCamp/learn/statuses/7b43d6d2776bf9dca501d5bc078cc850904850c4"}},"author_association":"NONE"}}
{"actor":{"display_login":"tchaffee"}}