{"action":"created","comment":{"url":"https://api.github.com/repos/kittoframework/kitto/pulls/comments/94343102","pull_request_review_id":14869467,"id":94343102,"diff_hunk":"@@ -1,15 +1,21 @@\n import React from 'react';\n import Widget from '../../assets/javascripts/widget';\n+import {updatedAt} from '../../assets/javascripts/helpers';\n \n import './text.scss';\n \n Widget.mount(class Text extends Widget {\n+  status() {\n+    if (!this.state.status) { return \"\"; }    \n+    return`status-${this.state.status}`;","path":"installer/templates/new/widgets/text/text.js","position":10,"original_position":10,"commit_id":"2b2cd223ee1ab42db171b9c148aa900ba2dc967c","original_commit_id":"2b2cd223ee1ab42db171b9c148aa900ba2dc967c","user":{"login":"Zorbash","id":645514,"avatar_url":"https://avatars.githubusercontent.com/u/645514?v=3","gravatar_id":"","url":"https://api.github.com/users/Zorbash","html_url":"https://github.com/Zorbash","followers_url":"https://api.github.com/users/Zorbash/followers","following_url":"https://api.github.com/users/Zorbash/following{/other_user}","gists_url":"https://api.github.com/users/Zorbash/gists{/gist_id}","starred_url":"https://api.github.com/users/Zorbash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zorbash/subscriptions","organizations_url":"https://api.github.com/users/Zorbash/orgs","repos_url":"https://api.github.com/users/Zorbash/repos","events_url":"https://api.github.com/users/Zorbash/events{/privacy}","received_events_url":"https://api.github.com/users/Zorbash/received_events","type":"User","site_admin":false},"body":"I suggest adding a newline above the return statement.","created_at":"2017-01-02T20:04:39Z","updated_at":"2017-01-02T20:04:39Z","html_url":"https://github.com/kittoframework/kitto/pull/82#discussion_r94343102","pull_request_url":"https://api.github.com/repos/kittoframework/kitto/pulls/82","_links":{"self":{"href":"https://api.github.com/repos/kittoframework/kitto/pulls/comments/94343102"},"html":{"href":"https://github.com/kittoframework/kitto/pull/82#discussion_r94343102"},"pull_request":{"href":"https://api.github.com/repos/kittoframework/kitto/pulls/82"}}},"pull_request":{"url":"https://api.github.com/repos/kittoframework/kitto/pulls/82","id":99872018,"html_url":"https://github.com/kittoframework/kitto/pull/82","diff_url":"https://github.com/kittoframework/kitto/pull/82.diff","patch_url":"https://github.com/kittoframework/kitto/pull/82.patch","issue_url":"https://api.github.com/repos/kittoframework/kitto/issues/82","number":82,"state":"open","locked":false,"title":"text widget changes (related to #80)","user":{"login":"mackenza","id":2412637,"avatar_url":"https://avatars.githubusercontent.com/u/2412637?v=3","gravatar_id":"","url":"https://api.github.com/users/mackenza","html_url":"https://github.com/mackenza","followers_url":"https://api.github.com/users/mackenza/followers","following_url":"https://api.github.com/users/mackenza/following{/other_user}","gists_url":"https://api.github.com/users/mackenza/gists{/gist_id}","starred_url":"https://api.github.com/users/mackenza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackenza/subscriptions","organizations_url":"https://api.github.com/users/mackenza/orgs","repos_url":"https://api.github.com/users/mackenza/repos","events_url":"https://api.github.com/users/mackenza/events{/privacy}","received_events_url":"https://api.github.com/users/mackenza/received_events","type":"User","site_admin":false},"body":"this is a cleaner PR than #80 \r\n\r\nThe biggest change from that PR other than cleaning up based on comments was that the application.scss already had a facility for data-driven status changes and I got rid of my custom style concept in favour of using the already built-in capability.\r\n\r\nSo now in the job you can pass:\r\n```\r\n...\r\nwidgetStatus: \"status-warning\" // or \"status-danger\"\r\n```\r\nand the widget will flash red or yellow.\r\n@Zorbash - I notice this application.scss defines warning as red and danger as yellow. I feel like that's not intentional and they should be reversed. Do you want a PR for that?","created_at":"2017-01-02T15:16:35Z","updated_at":"2017-01-02T20:04:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77059d4032c38e8b02da780e285ef0b3db9fb756","assignee":{"login":"Zorbash","id":645514,"avatar_url":"https://avatars.githubusercontent.com/u/645514?v=3","gravatar_id":"","url":"https://api.github.com/users/Zorbash","html_url":"https://github.com/Zorbash","followers_url":"https://api.github.com/users/Zorbash/followers","following_url":"https://api.github.com/users/Zorbash/following{/other_user}","gists_url":"https://api.github.com/users/Zorbash/gists{/gist_id}","starred_url":"https://api.github.com/users/Zorbash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zorbash/subscriptions","organizations_url":"https://api.github.com/users/Zorbash/orgs","repos_url":"https://api.github.com/users/Zorbash/repos","events_url":"https://api.github.com/users/Zorbash/events{/privacy}","received_events_url":"https://api.github.com/users/Zorbash/received_events","type":"User","site_admin":false},"assignees":[{"login":"Zorbash","id":645514,"avatar_url":"https://avatars.githubusercontent.com/u/645514?v=3","gravatar_id":"","url":"https://api.github.com/users/Zorbash","html_url":"https://github.com/Zorbash","followers_url":"https://api.github.com/users/Zorbash/followers","following_url":"https://api.github.com/users/Zorbash/following{/other_user}","gists_url":"https://api.github.com/users/Zorbash/gists{/gist_id}","starred_url":"https://api.github.com/users/Zorbash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zorbash/subscriptions","organizations_url":"https://api.github.com/users/Zorbash/orgs","repos_url":"https://api.github.com/users/Zorbash/repos","events_url":"https://api.github.com/users/Zorbash/events{/privacy}","received_events_url":"https://api.github.com/users/Zorbash/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kittoframework/kitto/pulls/82/commits","review_comments_url":"https://api.github.com/repos/kittoframework/kitto/pulls/82/comments","review_comment_url":"https://api.github.com/repos/kittoframework/kitto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kittoframework/kitto/issues/82/comments","statuses_url":"https://api.github.com/repos/kittoframework/kitto/statuses/2b2cd223ee1ab42db171b9c148aa900ba2dc967c","head":{"label":"mackenza:text-widget-pr","ref":"text-widget-pr","sha":"2b2cd223ee1ab42db171b9c148aa900ba2dc967c","user":{"login":"mackenza","id":2412637,"avatar_url":"https://avatars.githubusercontent.com/u/2412637?v=3","gravatar_id":"","url":"https://api.github.com/users/mackenza","html_url":"https://github.com/mackenza","followers_url":"https://api.github.com/users/mackenza/followers","following_url":"https://api.github.com/users/mackenza/following{/other_user}","gists_url":"https://api.github.com/users/mackenza/gists{/gist_id}","starred_url":"https://api.github.com/users/mackenza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackenza/subscriptions","organizations_url":"https://api.github.com/users/mackenza/orgs","repos_url":"https://api.github.com/users/mackenza/repos","events_url":"https://api.github.com/users/mackenza/events{/privacy}","received_events_url":"https://api.github.com/users/mackenza/received_events","type":"User","site_admin":false},"repo":{"id":76146123,"name":"kitto","full_name":"mackenza/kitto","owner":{"login":"mackenza","id":2412637,"avatar_url":"https://avatars.githubusercontent.com/u/2412637?v=3","gravatar_id":"","url":"https://api.github.com/users/mackenza","html_url":"https://github.com/mackenza","followers_url":"https://api.github.com/users/mackenza/followers","following_url":"https://api.github.com/users/mackenza/following{/other_user}","gists_url":"https://api.github.com/users/mackenza/gists{/gist_id}","starred_url":"https://api.github.com/users/mackenza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackenza/subscriptions","organizations_url":"https://api.github.com/users/mackenza/orgs","repos_url":"https://api.github.com/users/mackenza/repos","events_url":"https://api.github.com/users/mackenza/events{/privacy}","received_events_url":"https://api.github.com/users/mackenza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mackenza/kitto","description":"Kitto is a framework for interactive dashboards written in Elixir","fork":true,"url":"https://api.github.com/repos/mackenza/kitto","forks_url":"https://api.github.com/repos/mackenza/kitto/forks","keys_url":"https://api.github.com/repos/mackenza/kitto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mackenza/kitto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mackenza/kitto/teams","hooks_url":"https://api.github.com/repos/mackenza/kitto/hooks","issue_events_url":"https://api.github.com/repos/mackenza/kitto/issues/events{/number}","events_url":"https://api.github.com/repos/mackenza/kitto/events","assignees_url":"https://api.github.com/repos/mackenza/kitto/assignees{/user}","branches_url":"https://api.github.com/repos/mackenza/kitto/branches{/branch}","tags_url":"https://api.github.com/repos/mackenza/kitto/tags","blobs_url":"https://api.github.com/repos/mackenza/kitto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mackenza/kitto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mackenza/kitto/git/refs{/sha}","trees_url":"https://api.github.com/repos/mackenza/kitto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mackenza/kitto/statuses/{sha}","languages_url":"https://api.github.com/repos/mackenza/kitto/languages","stargazers_url":"https://api.github.com/repos/mackenza/kitto/stargazers","contributors_url":"https://api.github.com/repos/mackenza/kitto/contributors","subscribers_url":"https://api.github.com/repos/mackenza/kitto/subscribers","subscription_url":"https://api.github.com/repos/mackenza/kitto/subscription","commits_url":"https://api.github.com/repos/mackenza/kitto/commits{/sha}","git_commits_url":"https://api.github.com/repos/mackenza/kitto/git/commits{/sha}","comments_url":"https://api.github.com/repos/mackenza/kitto/comments{/number}","issue_comment_url":"https://api.github.com/repos/mackenza/kitto/issues/comments{/number}","contents_url":"https://api.github.com/repos/mackenza/kitto/contents/{+path}","compare_url":"https://api.github.com/repos/mackenza/kitto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mackenza/kitto/merges","archive_url":"https://api.github.com/repos/mackenza/kitto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mackenza/kitto/downloads","issues_url":"https://api.github.com/repos/mackenza/kitto/issues{/number}","pulls_url":"https://api.github.com/repos/mackenza/kitto/pulls{/number}","milestones_url":"https://api.github.com/repos/mackenza/kitto/milestones{/number}","notifications_url":"https://api.github.com/repos/mackenza/kitto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mackenza/kitto/labels{/name}","releases_url":"https://api.github.com/repos/mackenza/kitto/releases{/id}","deployments_url":"https://api.github.com/repos/mackenza/kitto/deployments","created_at":"2016-12-11T00:45:09Z","updated_at":"2016-12-11T00:45:10Z","pushed_at":"2017-01-02T19:39:11Z","git_url":"git://github.com/mackenza/kitto.git","ssh_url":"git@github.com:mackenza/kitto.git","clone_url":"https://github.com/mackenza/kitto.git","svn_url":"https://github.com/mackenza/kitto","homepage":"http://kitto.io/dashboards/sample","size":275,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kittoframework:master","ref":"master","sha":"ad560015d71a904d57ced912e54b333f1e743e95","user":{"login":"kittoframework","id":19275268,"avatar_url":"https://avatars.githubusercontent.com/u/19275268?v=3","gravatar_id":"","url":"https://api.github.com/users/kittoframework","html_url":"https://github.com/kittoframework","followers_url":"https://api.github.com/users/kittoframework/followers","following_url":"https://api.github.com/users/kittoframework/following{/other_user}","gists_url":"https://api.github.com/users/kittoframework/gists{/gist_id}","starred_url":"https://api.github.com/users/kittoframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kittoframework/subscriptions","organizations_url":"https://api.github.com/users/kittoframework/orgs","repos_url":"https://api.github.com/users/kittoframework/repos","events_url":"https://api.github.com/users/kittoframework/events{/privacy}","received_events_url":"https://api.github.com/users/kittoframework/received_events","type":"Organization","site_admin":false},"repo":{"id":58556997,"name":"kitto","full_name":"kittoframework/kitto","owner":{"login":"kittoframework","id":19275268,"avatar_url":"https://avatars.githubusercontent.com/u/19275268?v=3","gravatar_id":"","url":"https://api.github.com/users/kittoframework","html_url":"https://github.com/kittoframework","followers_url":"https://api.github.com/users/kittoframework/followers","following_url":"https://api.github.com/users/kittoframework/following{/other_user}","gists_url":"https://api.github.com/users/kittoframework/gists{/gist_id}","starred_url":"https://api.github.com/users/kittoframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kittoframework/subscriptions","organizations_url":"https://api.github.com/users/kittoframework/orgs","repos_url":"https://api.github.com/users/kittoframework/repos","events_url":"https://api.github.com/users/kittoframework/events{/privacy}","received_events_url":"https://api.github.com/users/kittoframework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kittoframework/kitto","description":"Kitto is a framework for interactive dashboards written in Elixir","fork":false,"url":"https://api.github.com/repos/kittoframework/kitto","forks_url":"https://api.github.com/repos/kittoframework/kitto/forks","keys_url":"https://api.github.com/repos/kittoframework/kitto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kittoframework/kitto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kittoframework/kitto/teams","hooks_url":"https://api.github.com/repos/kittoframework/kitto/hooks","issue_events_url":"https://api.github.com/repos/kittoframework/kitto/issues/events{/number}","events_url":"https://api.github.com/repos/kittoframework/kitto/events","assignees_url":"https://api.github.com/repos/kittoframework/kitto/assignees{/user}","branches_url":"https://api.github.com/repos/kittoframework/kitto/branches{/branch}","tags_url":"https://api.github.com/repos/kittoframework/kitto/tags","blobs_url":"https://api.github.com/repos/kittoframework/kitto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kittoframework/kitto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kittoframework/kitto/git/refs{/sha}","trees_url":"https://api.github.com/repos/kittoframework/kitto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kittoframework/kitto/statuses/{sha}","languages_url":"https://api.github.com/repos/kittoframework/kitto/languages","stargazers_url":"https://api.github.com/repos/kittoframework/kitto/stargazers","contributors_url":"https://api.github.com/repos/kittoframework/kitto/contributors","subscribers_url":"https://api.github.com/repos/kittoframework/kitto/subscribers","subscription_url":"https://api.github.com/repos/kittoframework/kitto/subscription","commits_url":"https://api.github.com/repos/kittoframework/kitto/commits{/sha}","git_commits_url":"https://api.github.com/repos/kittoframework/kitto/git/commits{/sha}","comments_url":"https://api.github.com/repos/kittoframework/kitto/comments{/number}","issue_comment_url":"https://api.github.com/repos/kittoframework/kitto/issues/comments{/number}","contents_url":"https://api.github.com/repos/kittoframework/kitto/contents/{+path}","compare_url":"https://api.github.com/repos/kittoframework/kitto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kittoframework/kitto/merges","archive_url":"https://api.github.com/repos/kittoframework/kitto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kittoframework/kitto/downloads","issues_url":"https://api.github.com/repos/kittoframework/kitto/issues{/number}","pulls_url":"https://api.github.com/repos/kittoframework/kitto/pulls{/number}","milestones_url":"https://api.github.com/repos/kittoframework/kitto/milestones{/number}","notifications_url":"https://api.github.com/repos/kittoframework/kitto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kittoframework/kitto/labels{/name}","releases_url":"https://api.github.com/repos/kittoframework/kitto/releases{/id}","deployments_url":"https://api.github.com/repos/kittoframework/kitto/deployments","created_at":"2016-05-11T15:27:31Z","updated_at":"2017-01-02T07:06:36Z","pushed_at":"2017-01-02T19:39:12Z","git_url":"git://github.com/kittoframework/kitto.git","ssh_url":"git@github.com:kittoframework/kitto.git","clone_url":"https://github.com/kittoframework/kitto.git","svn_url":"https://github.com/kittoframework/kitto","homepage":"http://kitto.io/dashboards/sample","size":266,"stargazers_count":413,"watchers_count":413,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":14,"forks":15,"open_issues":14,"watchers":413,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kittoframework/kitto/pulls/82"},"html":{"href":"https://github.com/kittoframework/kitto/pull/82"},"issue":{"href":"https://api.github.com/repos/kittoframework/kitto/issues/82"},"comments":{"href":"https://api.github.com/repos/kittoframework/kitto/issues/82/comments"},"review_comments":{"href":"https://api.github.com/repos/kittoframework/kitto/pulls/82/comments"},"review_comment":{"href":"https://api.github.com/repos/kittoframework/kitto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kittoframework/kitto/pulls/82/commits"},"statuses":{"href":"https://api.github.com/repos/kittoframework/kitto/statuses/2b2cd223ee1ab42db171b9c148aa900ba2dc967c"}}}}
{"actor":{"display_login":"Zorbash"}}