{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/pulls/comments/174695877","pull_request_review_id":104090983,"id":174695877,"diff_hunk":"@@ -0,0 +1,60 @@\n+// Copyright (c) Microsoft. All rights reserved.\n+\n+import React, { Component } from 'react';\n+import PropTypes from 'prop-types';\n+\n+import {\n+  Btn,\n+  SectionHeader,\n+  SectionDesc\n+} from 'components/shared';\n+import { svgs, joinClasses } from 'utilities';\n+\n+import './styles/flyoutSection.css';\n+\n+export class FlyoutSection extends Component {\n+  constructor(props) {\n+    super(props);\n+    this.state = {\n+      showContent: true\n+    };\n+\n+    this.toggleContent = this.toggleContent.bind(this);\n+  }\n+\n+  toggleContent() {\n+    this.setState({ showContent: !this.state.showContent });\n+  }\n+\n+  render() {","path":"src/components/shared/flyout/flyoutSection.js","position":29,"original_position":29,"commit_id":"3b113397ede5f2f142dfaa9a13f4f6ead9bf543f","original_commit_id":"3b113397ede5f2f142dfaa9a13f4f6ead9bf543f","user":{"login":"spryor","id":1734193,"avatar_url":"https://avatars1.githubusercontent.com/u/1734193?v=4","gravatar_id":"","url":"https://api.github.com/users/spryor","html_url":"https://github.com/spryor","followers_url":"https://api.github.com/users/spryor/followers","following_url":"https://api.github.com/users/spryor/following{/other_user}","gists_url":"https://api.github.com/users/spryor/gists{/gist_id}","starred_url":"https://api.github.com/users/spryor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spryor/subscriptions","organizations_url":"https://api.github.com/users/spryor/orgs","repos_url":"https://api.github.com/users/spryor/repos","events_url":"https://api.github.com/users/spryor/events{/privacy}","received_events_url":"https://api.github.com/users/spryor/received_events","type":"User","site_admin":false},"body":"It would be better to implement a provider pattern here so the local accordion state is captured in the component context. Then we can keep the nice declarative approach of making sections.","created_at":"2018-03-15T07:33:08Z","updated_at":"2018-03-15T07:33:19Z","html_url":"https://github.com/Azure/pcs-remote-monitoring-webui/pull/883#discussion_r174695877","pull_request_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/pulls/883","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/pulls/comments/174695877"},"html":{"href":"https://github.com/Azure/pcs-remote-monitoring-webui/pull/883#discussion_r174695877"},"pull_request":{"href":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/pulls/883"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/pulls/883","id":173593577,"html_url":"https://github.com/Azure/pcs-remote-monitoring-webui/pull/883","diff_url":"https://github.com/Azure/pcs-remote-monitoring-webui/pull/883.diff","patch_url":"https://github.com/Azure/pcs-remote-monitoring-webui/pull/883.patch","issue_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/issues/883","number":883,"state":"open","locked":false,"title":"Initial device details","user":{"login":"mechaffin","id":16829221,"avatar_url":"https://avatars3.githubusercontent.com/u/16829221?v=4","gravatar_id":"","url":"https://api.github.com/users/mechaffin","html_url":"https://github.com/mechaffin","followers_url":"https://api.github.com/users/mechaffin/followers","following_url":"https://api.github.com/users/mechaffin/following{/other_user}","gists_url":"https://api.github.com/users/mechaffin/gists{/gist_id}","starred_url":"https://api.github.com/users/mechaffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mechaffin/subscriptions","organizations_url":"https://api.github.com/users/mechaffin/orgs","repos_url":"https://api.github.com/users/mechaffin/repos","events_url":"https://api.github.com/users/mechaffin/events{/privacy}","received_events_url":"https://api.github.com/users/mechaffin/received_events","type":"User","site_admin":false},"body":"# Type of change? <!-- [x] all the boxes that apply -->\r\n\r\n- [ ] Bug fix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [ ] Breaking change (breaks backward compatibility)\r\n\r\n# Description, Context, Motivation <!-- Please help us reviewing your PR -->\r\nDisplays inline in the device panel for now. Will be moved when flyout is ready.\r\nShows tags, methods, and properties.\r\n\r\n_Note: This does not reshape properties to a more simplified structure to allow for the upcoming property display work that Molly will be doing._\r\n...\r\n\r\n**Checklist:**\r\n\r\n- [x] All tests passed\r\n- [x] The code follows the code style and conventions of this project\r\n- [ ] The change requires a change to the documentation\r\n- [ ] I have updated the documentation accordingly\r\n","created_at":"2018-03-07T22:35:50Z","updated_at":"2018-03-15T07:33:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4bf238dfc15c618f96af9e59ea9d2b46b170896","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/pulls/883/commits","review_comments_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/pulls/883/comments","review_comment_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/issues/883/comments","statuses_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/statuses/3b113397ede5f2f142dfaa9a13f4f6ead9bf543f","head":{"label":"Azure:initial-device-details","ref":"initial-device-details","sha":"3b113397ede5f2f142dfaa9a13f4f6ead9bf543f","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":89969457,"name":"pcs-remote-monitoring-webui","full_name":"Azure/pcs-remote-monitoring-webui","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/pcs-remote-monitoring-webui","description":"Azure IoT PCS Remote Monitoring Web UI","fork":false,"url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui","forks_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/forks","keys_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/teams","hooks_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/hooks","issue_events_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/events","assignees_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/tags","blobs_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/languages","stargazers_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/stargazers","contributors_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/contributors","subscribers_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/subscribers","subscription_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/subscription","commits_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/merges","archive_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/downloads","issues_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/labels{/name}","releases_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/deployments","created_at":"2017-05-01T22:47:49Z","updated_at":"2018-03-14T22:51:14Z","pushed_at":"2018-03-14T23:28:08Z","git_url":"git://github.com/Azure/pcs-remote-monitoring-webui.git","ssh_url":"git@github.com:Azure/pcs-remote-monitoring-webui.git","clone_url":"https://github.com/Azure/pcs-remote-monitoring-webui.git","svn_url":"https://github.com/Azure/pcs-remote-monitoring-webui","homepage":null,"size":2367,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":123,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":16,"open_issues":123,"watchers":20,"default_branch":"master"}},"base":{"label":"Azure:archMigration","ref":"archMigration","sha":"127c0aab3cb6fa9a7412a420ac3cc98cb4507f01","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":89969457,"name":"pcs-remote-monitoring-webui","full_name":"Azure/pcs-remote-monitoring-webui","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/pcs-remote-monitoring-webui","description":"Azure IoT PCS Remote Monitoring Web UI","fork":false,"url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui","forks_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/forks","keys_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/teams","hooks_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/hooks","issue_events_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/events","assignees_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/tags","blobs_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/languages","stargazers_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/stargazers","contributors_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/contributors","subscribers_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/subscribers","subscription_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/subscription","commits_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/merges","archive_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/downloads","issues_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/labels{/name}","releases_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/deployments","created_at":"2017-05-01T22:47:49Z","updated_at":"2018-03-14T22:51:14Z","pushed_at":"2018-03-14T23:28:08Z","git_url":"git://github.com/Azure/pcs-remote-monitoring-webui.git","ssh_url":"git@github.com:Azure/pcs-remote-monitoring-webui.git","clone_url":"https://github.com/Azure/pcs-remote-monitoring-webui.git","svn_url":"https://github.com/Azure/pcs-remote-monitoring-webui","homepage":null,"size":2367,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":123,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":16,"open_issues":123,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/pulls/883"},"html":{"href":"https://github.com/Azure/pcs-remote-monitoring-webui/pull/883"},"issue":{"href":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/issues/883"},"comments":{"href":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/issues/883/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/pulls/883/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/pulls/883/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/pcs-remote-monitoring-webui/statuses/3b113397ede5f2f142dfaa9a13f4f6ead9bf543f"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"spryor"}}