{"action":"created","comment":{"url":"https://api.github.com/repos/topbox-rci/rci-components/pulls/comments/212075482","pull_request_review_id":148630876,"id":212075482,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjA3NTQ4Mg==","diff_hunk":"@@ -0,0 +1,52 @@\n+import React, { PureComponent } from 'react';\n+import { Preloader } from '../';\n+import ResultsGrid from './resultsGrid';\n+import styles from './workFlow.scss';\n+\n+export default class UniversalSearch extends PureComponent {\n+    componentDidMount() {\n+        // temporary kick off of results.\n+        // later this should be controlled by the filter section of the app.\n+        const { onQueriesChange } = this.props;\n+\n+        onQueriesChange();\n+    }\n+\n+    getContent() {\n+        const {\n+            tableData = {},\n+            cellStyles\n+        } = this.props;\n+\n+        const { results, columnNames = [], links } = tableData;\n+        const gridProps = {\n+            results,\n+            titles: columnNames,\n+            links,\n+            cellStyles\n+        };\n+\n+        const hasResults = Boolean(results);\n+\n+        switch (true) {\n+        case hasResults:\n+            return (\n+              <ResultsGrid {...gridProps} />\n+            );\n+        default:\n+            return (\n+              <div className={styles['work-flow__pending-animation']}>\n+                <Preloader styleVariations={['no-position']} />\n+              </div>\n+            );\n+        }\n+    }\n+\n+    render() {\n+        return (\n+          <div className={styles['work-flow']}>\n+            { this.getContent() }","path":"components/workFlow/workFlow.js","position":48,"original_position":48,"commit_id":"f39897098c756fc6ffdf19ca1c4b293817f8d940","original_commit_id":"f39897098c756fc6ffdf19ca1c4b293817f8d940","user":{"login":"troyblank","id":996725,"node_id":"MDQ6VXNlcjk5NjcyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/996725?v=4","gravatar_id":"","url":"https://api.github.com/users/troyblank","html_url":"https://github.com/troyblank","followers_url":"https://api.github.com/users/troyblank/followers","following_url":"https://api.github.com/users/troyblank/following{/other_user}","gists_url":"https://api.github.com/users/troyblank/gists{/gist_id}","starred_url":"https://api.github.com/users/troyblank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troyblank/subscriptions","organizations_url":"https://api.github.com/users/troyblank/orgs","repos_url":"https://api.github.com/users/troyblank/repos","events_url":"https://api.github.com/users/troyblank/events{/privacy}","received_events_url":"https://api.github.com/users/troyblank/received_events","type":"User","site_admin":false},"body":"It will have more things, such as no results. I generally hate coding for the future but this matches universal search and is def going to have no results so that is why the switch. Otherwise I agree switch is too much.","created_at":"2018-08-22T19:15:20Z","updated_at":"2018-08-22T19:15:20Z","html_url":"https://github.com/topbox-rci/rci-components/pull/704#discussion_r212075482","pull_request_url":"https://api.github.com/repos/topbox-rci/rci-components/pulls/704","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/topbox-rci/rci-components/pulls/comments/212075482"},"html":{"href":"https://github.com/topbox-rci/rci-components/pull/704#discussion_r212075482"},"pull_request":{"href":"https://api.github.com/repos/topbox-rci/rci-components/pulls/704"}},"in_reply_to_id":212075067},"pull_request":{"url":"https://api.github.com/repos/topbox-rci/rci-components/pulls/704","id":210183291,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwMTgzMjkx","html_url":"https://github.com/topbox-rci/rci-components/pull/704","diff_url":"https://github.com/topbox-rci/rci-components/pull/704.diff","patch_url":"https://github.com/topbox-rci/rci-components/pull/704.patch","issue_url":"https://api.github.com/repos/topbox-rci/rci-components/issues/704","number":704,"state":"open","locked":false,"title":"TFW-1786 - added base workflow demo","user":{"login":"troyblank","id":996725,"node_id":"MDQ6VXNlcjk5NjcyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/996725?v=4","gravatar_id":"","url":"https://api.github.com/users/troyblank","html_url":"https://github.com/troyblank","followers_url":"https://api.github.com/users/troyblank/followers","following_url":"https://api.github.com/users/troyblank/following{/other_user}","gists_url":"https://api.github.com/users/troyblank/gists{/gist_id}","starred_url":"https://api.github.com/users/troyblank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troyblank/subscriptions","organizations_url":"https://api.github.com/users/troyblank/orgs","repos_url":"https://api.github.com/users/troyblank/repos","events_url":"https://api.github.com/users/troyblank/events{/privacy}","received_events_url":"https://api.github.com/users/troyblank/received_events","type":"User","site_admin":false},"body":"This adds a workflow demo to components. It's very basic just shows default results with no filtering, or filter bar. This is to eventually get the results labels to show, nothing fancy.\r\n\r\nI did notice it has a lot of similarities to UniversalSearch but the results display on the table is definitely going to change so I am hesitant to make any re-usable code between the two at this point.","created_at":"2018-08-22T15:56:29Z","updated_at":"2018-08-22T19:15:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"63261331da5d43affad180356add3b599d18a3ce","assignee":null,"assignees":[],"requested_reviewers":[{"login":"tVeratti","id":6993836,"node_id":"MDQ6VXNlcjY5OTM4MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/6993836?v=4","gravatar_id":"","url":"https://api.github.com/users/tVeratti","html_url":"https://github.com/tVeratti","followers_url":"https://api.github.com/users/tVeratti/followers","following_url":"https://api.github.com/users/tVeratti/following{/other_user}","gists_url":"https://api.github.com/users/tVeratti/gists{/gist_id}","starred_url":"https://api.github.com/users/tVeratti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tVeratti/subscriptions","organizations_url":"https://api.github.com/users/tVeratti/orgs","repos_url":"https://api.github.com/users/tVeratti/repos","events_url":"https://api.github.com/users/tVeratti/events{/privacy}","received_events_url":"https://api.github.com/users/tVeratti/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/topbox-rci/rci-components/pulls/704/commits","review_comments_url":"https://api.github.com/repos/topbox-rci/rci-components/pulls/704/comments","review_comment_url":"https://api.github.com/repos/topbox-rci/rci-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/topbox-rci/rci-components/issues/704/comments","statuses_url":"https://api.github.com/repos/topbox-rci/rci-components/statuses/f39897098c756fc6ffdf19ca1c4b293817f8d940","head":{"label":"topbox-rci:TFW-1786","ref":"TFW-1786","sha":"f39897098c756fc6ffdf19ca1c4b293817f8d940","user":{"login":"topbox-rci","id":12717371,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzE3Mzcx","avatar_url":"https://avatars0.githubusercontent.com/u/12717371?v=4","gravatar_id":"","url":"https://api.github.com/users/topbox-rci","html_url":"https://github.com/topbox-rci","followers_url":"https://api.github.com/users/topbox-rci/followers","following_url":"https://api.github.com/users/topbox-rci/following{/other_user}","gists_url":"https://api.github.com/users/topbox-rci/gists{/gist_id}","starred_url":"https://api.github.com/users/topbox-rci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topbox-rci/subscriptions","organizations_url":"https://api.github.com/users/topbox-rci/orgs","repos_url":"https://api.github.com/users/topbox-rci/repos","events_url":"https://api.github.com/users/topbox-rci/events{/privacy}","received_events_url":"https://api.github.com/users/topbox-rci/received_events","type":"Organization","site_admin":false},"repo":{"id":76394133,"node_id":"MDEwOlJlcG9zaXRvcnk3NjM5NDEzMw==","name":"rci-components","full_name":"topbox-rci/rci-components","owner":{"login":"topbox-rci","id":12717371,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzE3Mzcx","avatar_url":"https://avatars0.githubusercontent.com/u/12717371?v=4","gravatar_id":"","url":"https://api.github.com/users/topbox-rci","html_url":"https://github.com/topbox-rci","followers_url":"https://api.github.com/users/topbox-rci/followers","following_url":"https://api.github.com/users/topbox-rci/following{/other_user}","gists_url":"https://api.github.com/users/topbox-rci/gists{/gist_id}","starred_url":"https://api.github.com/users/topbox-rci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topbox-rci/subscriptions","organizations_url":"https://api.github.com/users/topbox-rci/orgs","repos_url":"https://api.github.com/users/topbox-rci/repos","events_url":"https://api.github.com/users/topbox-rci/events{/privacy}","received_events_url":"https://api.github.com/users/topbox-rci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/topbox-rci/rci-components","description":"React components for the RCI project","fork":false,"url":"https://api.github.com/repos/topbox-rci/rci-components","forks_url":"https://api.github.com/repos/topbox-rci/rci-components/forks","keys_url":"https://api.github.com/repos/topbox-rci/rci-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/topbox-rci/rci-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/topbox-rci/rci-components/teams","hooks_url":"https://api.github.com/repos/topbox-rci/rci-components/hooks","issue_events_url":"https://api.github.com/repos/topbox-rci/rci-components/issues/events{/number}","events_url":"https://api.github.com/repos/topbox-rci/rci-components/events","assignees_url":"https://api.github.com/repos/topbox-rci/rci-components/assignees{/user}","branches_url":"https://api.github.com/repos/topbox-rci/rci-components/branches{/branch}","tags_url":"https://api.github.com/repos/topbox-rci/rci-components/tags","blobs_url":"https://api.github.com/repos/topbox-rci/rci-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/topbox-rci/rci-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/topbox-rci/rci-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/topbox-rci/rci-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/topbox-rci/rci-components/statuses/{sha}","languages_url":"https://api.github.com/repos/topbox-rci/rci-components/languages","stargazers_url":"https://api.github.com/repos/topbox-rci/rci-components/stargazers","contributors_url":"https://api.github.com/repos/topbox-rci/rci-components/contributors","subscribers_url":"https://api.github.com/repos/topbox-rci/rci-components/subscribers","subscription_url":"https://api.github.com/repos/topbox-rci/rci-components/subscription","commits_url":"https://api.github.com/repos/topbox-rci/rci-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/topbox-rci/rci-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/topbox-rci/rci-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/topbox-rci/rci-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/topbox-rci/rci-components/contents/{+path}","compare_url":"https://api.github.com/repos/topbox-rci/rci-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/topbox-rci/rci-components/merges","archive_url":"https://api.github.com/repos/topbox-rci/rci-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/topbox-rci/rci-components/downloads","issues_url":"https://api.github.com/repos/topbox-rci/rci-components/issues{/number}","pulls_url":"https://api.github.com/repos/topbox-rci/rci-components/pulls{/number}","milestones_url":"https://api.github.com/repos/topbox-rci/rci-components/milestones{/number}","notifications_url":"https://api.github.com/repos/topbox-rci/rci-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/topbox-rci/rci-components/labels{/name}","releases_url":"https://api.github.com/repos/topbox-rci/rci-components/releases{/id}","deployments_url":"https://api.github.com/repos/topbox-rci/rci-components/deployments","created_at":"2016-12-13T20:05:28Z","updated_at":"2018-08-20T20:07:15Z","pushed_at":"2018-08-22T15:56:30Z","git_url":"git://github.com/topbox-rci/rci-components.git","ssh_url":"git@github.com:topbox-rci/rci-components.git","clone_url":"https://github.com/topbox-rci/rci-components.git","svn_url":"https://github.com/topbox-rci/rci-components","homepage":null,"size":2595,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","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":null,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"topbox-rci:develop","ref":"develop","sha":"f50d665ccd4eeb81f2ab231f3dea38fafa69bd34","user":{"login":"topbox-rci","id":12717371,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzE3Mzcx","avatar_url":"https://avatars0.githubusercontent.com/u/12717371?v=4","gravatar_id":"","url":"https://api.github.com/users/topbox-rci","html_url":"https://github.com/topbox-rci","followers_url":"https://api.github.com/users/topbox-rci/followers","following_url":"https://api.github.com/users/topbox-rci/following{/other_user}","gists_url":"https://api.github.com/users/topbox-rci/gists{/gist_id}","starred_url":"https://api.github.com/users/topbox-rci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topbox-rci/subscriptions","organizations_url":"https://api.github.com/users/topbox-rci/orgs","repos_url":"https://api.github.com/users/topbox-rci/repos","events_url":"https://api.github.com/users/topbox-rci/events{/privacy}","received_events_url":"https://api.github.com/users/topbox-rci/received_events","type":"Organization","site_admin":false},"repo":{"id":76394133,"node_id":"MDEwOlJlcG9zaXRvcnk3NjM5NDEzMw==","name":"rci-components","full_name":"topbox-rci/rci-components","owner":{"login":"topbox-rci","id":12717371,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzE3Mzcx","avatar_url":"https://avatars0.githubusercontent.com/u/12717371?v=4","gravatar_id":"","url":"https://api.github.com/users/topbox-rci","html_url":"https://github.com/topbox-rci","followers_url":"https://api.github.com/users/topbox-rci/followers","following_url":"https://api.github.com/users/topbox-rci/following{/other_user}","gists_url":"https://api.github.com/users/topbox-rci/gists{/gist_id}","starred_url":"https://api.github.com/users/topbox-rci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topbox-rci/subscriptions","organizations_url":"https://api.github.com/users/topbox-rci/orgs","repos_url":"https://api.github.com/users/topbox-rci/repos","events_url":"https://api.github.com/users/topbox-rci/events{/privacy}","received_events_url":"https://api.github.com/users/topbox-rci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/topbox-rci/rci-components","description":"React components for the RCI project","fork":false,"url":"https://api.github.com/repos/topbox-rci/rci-components","forks_url":"https://api.github.com/repos/topbox-rci/rci-components/forks","keys_url":"https://api.github.com/repos/topbox-rci/rci-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/topbox-rci/rci-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/topbox-rci/rci-components/teams","hooks_url":"https://api.github.com/repos/topbox-rci/rci-components/hooks","issue_events_url":"https://api.github.com/repos/topbox-rci/rci-components/issues/events{/number}","events_url":"https://api.github.com/repos/topbox-rci/rci-components/events","assignees_url":"https://api.github.com/repos/topbox-rci/rci-components/assignees{/user}","branches_url":"https://api.github.com/repos/topbox-rci/rci-components/branches{/branch}","tags_url":"https://api.github.com/repos/topbox-rci/rci-components/tags","blobs_url":"https://api.github.com/repos/topbox-rci/rci-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/topbox-rci/rci-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/topbox-rci/rci-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/topbox-rci/rci-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/topbox-rci/rci-components/statuses/{sha}","languages_url":"https://api.github.com/repos/topbox-rci/rci-components/languages","stargazers_url":"https://api.github.com/repos/topbox-rci/rci-components/stargazers","contributors_url":"https://api.github.com/repos/topbox-rci/rci-components/contributors","subscribers_url":"https://api.github.com/repos/topbox-rci/rci-components/subscribers","subscription_url":"https://api.github.com/repos/topbox-rci/rci-components/subscription","commits_url":"https://api.github.com/repos/topbox-rci/rci-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/topbox-rci/rci-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/topbox-rci/rci-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/topbox-rci/rci-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/topbox-rci/rci-components/contents/{+path}","compare_url":"https://api.github.com/repos/topbox-rci/rci-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/topbox-rci/rci-components/merges","archive_url":"https://api.github.com/repos/topbox-rci/rci-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/topbox-rci/rci-components/downloads","issues_url":"https://api.github.com/repos/topbox-rci/rci-components/issues{/number}","pulls_url":"https://api.github.com/repos/topbox-rci/rci-components/pulls{/number}","milestones_url":"https://api.github.com/repos/topbox-rci/rci-components/milestones{/number}","notifications_url":"https://api.github.com/repos/topbox-rci/rci-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/topbox-rci/rci-components/labels{/name}","releases_url":"https://api.github.com/repos/topbox-rci/rci-components/releases{/id}","deployments_url":"https://api.github.com/repos/topbox-rci/rci-components/deployments","created_at":"2016-12-13T20:05:28Z","updated_at":"2018-08-20T20:07:15Z","pushed_at":"2018-08-22T15:56:30Z","git_url":"git://github.com/topbox-rci/rci-components.git","ssh_url":"git@github.com:topbox-rci/rci-components.git","clone_url":"https://github.com/topbox-rci/rci-components.git","svn_url":"https://github.com/topbox-rci/rci-components","homepage":null,"size":2595,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","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":null,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/topbox-rci/rci-components/pulls/704"},"html":{"href":"https://github.com/topbox-rci/rci-components/pull/704"},"issue":{"href":"https://api.github.com/repos/topbox-rci/rci-components/issues/704"},"comments":{"href":"https://api.github.com/repos/topbox-rci/rci-components/issues/704/comments"},"review_comments":{"href":"https://api.github.com/repos/topbox-rci/rci-components/pulls/704/comments"},"review_comment":{"href":"https://api.github.com/repos/topbox-rci/rci-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/topbox-rci/rci-components/pulls/704/commits"},"statuses":{"href":"https://api.github.com/repos/topbox-rci/rci-components/statuses/f39897098c756fc6ffdf19ca1c4b293817f8d940"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"troyblank"}}