{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/comments/91525616","pull_request_review_id":12034542,"id":91525616,"diff_hunk":"@@ -1,112 +1,222 @@\n-import React, { PropTypes } from 'react';\n+import ReactDom from 'react-dom';\n+import React, { Component, PropTypes } from 'react';\n import { connect } from 'react-redux';\n import { bindActionCreators } from 'redux';\n import Button from 'components/button';\n+import CalypsoI18n from 'i18n-calypso';\n import { translate as __ } from 'lib/mixins/i18n';\n+import LabelHistory from './history';\n import PurchaseLabelDialog from './purchase';\n import RefundDialog from './refund';\n import ReprintDialog from './reprint';\n import TrackingLink from './tracking-link';\n import Spinner from 'components/spinner';\n+import Gridicon from 'components/gridicon';\n+import Tooltip from 'components/tooltip';\n import formatDate from 'lib/utils/format-date';\n import * as ShippingLabelActions from 'shipping-label/state/actions';\n import notices from 'notices';\n import GlobalNotices from 'components/global-notices';\n import getFormErrors from 'shipping-label/state/selectors/errors';\n import canPurchase from 'shipping-label/state/selectors/can-purchase';\n import _ from 'lodash';\n+import { sprintf } from 'sprintf-js';\n \n-let needToFetchLabelsStatus = true;\n+class ShippingLabelRootView extends Component {\n+\tconstructor( props ) {\n+\t\tsuper( props );\n \n-const ShippingLabelRootView = ( props ) => {\n-\tconst renderPurchaseLabelFlow = () => {\n+\t\tthis.renderLabel = this.renderLabel.bind( this );\n+\t\tthis.openTooltip = this.openTooltip.bind( this );\n+\t\tthis.closeTooltip = this.closeTooltip.bind( this );\n+\n+\t\tthis.needToFetchLabelsStatus = true;\n+\n+\t\tthis.state = {\n+\t\t\tshowTooltips: props.shippingLabel.labels.map( () => false ),\n+\t\t};\n+\t}\n+\n+\tcomponentDidMount() {\n+\t\tthis.historyMetaBox = document.getElementById( 'wc-connect-shipping-label-history' );","path":"client/shipping-label/views/index.js","position":45,"original_position":45,"commit_id":"c25d39e4c8c415cd9df7b0d80f9b1317ef6add66","original_commit_id":"c25d39e4c8c415cd9df7b0d80f9b1317ef6add66","user":{"login":"robobot3000","id":800604,"avatar_url":"https://avatars.githubusercontent.com/u/800604?v=3","gravatar_id":"","url":"https://api.github.com/users/robobot3000","html_url":"https://github.com/robobot3000","followers_url":"https://api.github.com/users/robobot3000/followers","following_url":"https://api.github.com/users/robobot3000/following{/other_user}","gists_url":"https://api.github.com/users/robobot3000/gists{/gist_id}","starred_url":"https://api.github.com/users/robobot3000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robobot3000/subscriptions","organizations_url":"https://api.github.com/users/robobot3000/orgs","repos_url":"https://api.github.com/users/robobot3000/repos","events_url":"https://api.github.com/users/robobot3000/events{/privacy}","received_events_url":"https://api.github.com/users/robobot3000/received_events","type":"User","site_admin":false},"body":"The only reason is the design - it shows the history in a separate metabox. I think visually it's cleaner, but unfortunately, this is what needs to be done in order to achieve it in the code.","created_at":"2016-12-08T14:41:03Z","updated_at":"2016-12-08T14:41:03Z","html_url":"https://github.com/Automattic/woocommerce-connect-client/pull/734#discussion_r91525616","pull_request_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/734","_links":{"self":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/comments/91525616"},"html":{"href":"https://github.com/Automattic/woocommerce-connect-client/pull/734#discussion_r91525616"},"pull_request":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/734"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/734","id":95537286,"html_url":"https://github.com/Automattic/woocommerce-connect-client/pull/734","diff_url":"https://github.com/Automattic/woocommerce-connect-client/pull/734.diff","patch_url":"https://github.com/Automattic/woocommerce-connect-client/pull/734.patch","issue_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/734","number":734,"state":"open","locked":false,"title":"Add refined label box","user":{"login":"robobot3000","id":800604,"avatar_url":"https://avatars.githubusercontent.com/u/800604?v=3","gravatar_id":"","url":"https://api.github.com/users/robobot3000","html_url":"https://github.com/robobot3000","followers_url":"https://api.github.com/users/robobot3000/followers","following_url":"https://api.github.com/users/robobot3000/following{/other_user}","gists_url":"https://api.github.com/users/robobot3000/gists{/gist_id}","starred_url":"https://api.github.com/users/robobot3000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robobot3000/subscriptions","organizations_url":"https://api.github.com/users/robobot3000/orgs","repos_url":"https://api.github.com/users/robobot3000/repos","events_url":"https://api.github.com/users/robobot3000/events{/privacy}","received_events_url":"https://api.github.com/users/robobot3000/received_events","type":"User","site_admin":false},"body":"Adds #563 \r\n\r\nPlease test with the latest `master` server checked out.\r\n\r\n* Visual changes\r\n* More info added to the label boxes, including the refund status, label service, package and its contents\r\n* Added a history meta box logging purchases, refunds and reprints\r\n\r\nCC @allendav @kellychoffman @DanReyLop @nabsul @jeffstieler ","created_at":"2016-11-28T17:01:29Z","updated_at":"2016-12-08T14:41:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c08a1405722ec93cce7f4d886681e664f6f7494","assignee":{"login":"robobot3000","id":800604,"avatar_url":"https://avatars.githubusercontent.com/u/800604?v=3","gravatar_id":"","url":"https://api.github.com/users/robobot3000","html_url":"https://github.com/robobot3000","followers_url":"https://api.github.com/users/robobot3000/followers","following_url":"https://api.github.com/users/robobot3000/following{/other_user}","gists_url":"https://api.github.com/users/robobot3000/gists{/gist_id}","starred_url":"https://api.github.com/users/robobot3000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robobot3000/subscriptions","organizations_url":"https://api.github.com/users/robobot3000/orgs","repos_url":"https://api.github.com/users/robobot3000/repos","events_url":"https://api.github.com/users/robobot3000/events{/privacy}","received_events_url":"https://api.github.com/users/robobot3000/received_events","type":"User","site_admin":false},"assignees":[{"login":"robobot3000","id":800604,"avatar_url":"https://avatars.githubusercontent.com/u/800604?v=3","gravatar_id":"","url":"https://api.github.com/users/robobot3000","html_url":"https://github.com/robobot3000","followers_url":"https://api.github.com/users/robobot3000/followers","following_url":"https://api.github.com/users/robobot3000/following{/other_user}","gists_url":"https://api.github.com/users/robobot3000/gists{/gist_id}","starred_url":"https://api.github.com/users/robobot3000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robobot3000/subscriptions","organizations_url":"https://api.github.com/users/robobot3000/orgs","repos_url":"https://api.github.com/users/robobot3000/repos","events_url":"https://api.github.com/users/robobot3000/events{/privacy}","received_events_url":"https://api.github.com/users/robobot3000/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/734/commits","review_comments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/734/comments","review_comment_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/734/comments","statuses_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/statuses/c25d39e4c8c415cd9df7b0d80f9b1317ef6add66","head":{"label":"Automattic:add/563-refined-label-box","ref":"add/563-refined-label-box","sha":"c25d39e4c8c415cd9df7b0d80f9b1317ef6add66","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":50946955,"name":"woocommerce-connect-client","full_name":"Automattic/woocommerce-connect-client","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/woocommerce-connect-client","description":"WooCommerce Connect is a feature plugin, currently in Alpha, that integrates the WooCommerce Connect SaaS into WooCommerce (2.6), Alpha includes real time USPS and Canada Post shipping rates and introduces our React based UI.","fork":false,"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client","forks_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/forks","keys_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/teams","hooks_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/hooks","issue_events_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/events","assignees_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/tags","blobs_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/languages","stargazers_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/stargazers","contributors_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/contributors","subscribers_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/subscribers","subscription_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/subscription","commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/merges","archive_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/downloads","issues_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/deployments","created_at":"2016-02-02T19:44:26Z","updated_at":"2016-11-27T22:33:31Z","pushed_at":"2016-12-07T17:48:29Z","git_url":"git://github.com/Automattic/woocommerce-connect-client.git","ssh_url":"git@github.com:Automattic/woocommerce-connect-client.git","clone_url":"https://github.com/Automattic/woocommerce-connect-client.git","svn_url":"https://github.com/Automattic/woocommerce-connect-client","homepage":"","size":3051,"stargazers_count":34,"watchers_count":34,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":122,"forks":2,"open_issues":122,"watchers":34,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"198902bf7ba3c41fe63f91296857d1b832baa144","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":50946955,"name":"woocommerce-connect-client","full_name":"Automattic/woocommerce-connect-client","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/woocommerce-connect-client","description":"WooCommerce Connect is a feature plugin, currently in Alpha, that integrates the WooCommerce Connect SaaS into WooCommerce (2.6), Alpha includes real time USPS and Canada Post shipping rates and introduces our React based UI.","fork":false,"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client","forks_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/forks","keys_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/teams","hooks_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/hooks","issue_events_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/events","assignees_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/tags","blobs_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/languages","stargazers_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/stargazers","contributors_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/contributors","subscribers_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/subscribers","subscription_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/subscription","commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/merges","archive_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/downloads","issues_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/deployments","created_at":"2016-02-02T19:44:26Z","updated_at":"2016-11-27T22:33:31Z","pushed_at":"2016-12-07T17:48:29Z","git_url":"git://github.com/Automattic/woocommerce-connect-client.git","ssh_url":"git@github.com:Automattic/woocommerce-connect-client.git","clone_url":"https://github.com/Automattic/woocommerce-connect-client.git","svn_url":"https://github.com/Automattic/woocommerce-connect-client","homepage":"","size":3051,"stargazers_count":34,"watchers_count":34,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":122,"forks":2,"open_issues":122,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/734"},"html":{"href":"https://github.com/Automattic/woocommerce-connect-client/pull/734"},"issue":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/734"},"comments":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/734/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/734/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/734/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/statuses/c25d39e4c8c415cd9df7b0d80f9b1317ef6add66"}}}}
{"actor":{"display_login":"robobot3000"}}