{"action":"created","comment":{"url":"https://api.github.com/repos/reactioncommerce/reaction/pulls/comments/93165907","pull_request_review_id":13687497,"id":93165907,"diff_hunk":"@@ -40,6 +45,19 @@ Template.CoreNavigationBar.helpers({\n       // }\n     };\n   },\n+  notificationButtonComponent() {\n+    return {\n+      component: NotificationContainer\n+      // icon: \"fa fa-bell\",","path":"imports/plugins/core/ui-navbar/client/components/navbar/navbar.js","position":24,"original_position":24,"commit_id":"4d8151de18e2bfe5207f99aa0a28a071c83f9602","original_commit_id":"4d8151de18e2bfe5207f99aa0a28a071c83f9602","user":{"login":"zenweasel","id":72819,"avatar_url":"https://avatars.githubusercontent.com/u/72819?v=3","gravatar_id":"","url":"https://api.github.com/users/zenweasel","html_url":"https://github.com/zenweasel","followers_url":"https://api.github.com/users/zenweasel/followers","following_url":"https://api.github.com/users/zenweasel/following{/other_user}","gists_url":"https://api.github.com/users/zenweasel/gists{/gist_id}","starred_url":"https://api.github.com/users/zenweasel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenweasel/subscriptions","organizations_url":"https://api.github.com/users/zenweasel/orgs","repos_url":"https://api.github.com/users/zenweasel/repos","events_url":"https://api.github.com/users/zenweasel/events{/privacy}","received_events_url":"https://api.github.com/users/zenweasel/received_events","type":"User","site_admin":false},"body":"Can we remove the commented code then?","created_at":"2016-12-20T03:25:47Z","updated_at":"2016-12-20T03:25:47Z","html_url":"https://github.com/reactioncommerce/reaction/pull/1644#discussion_r93165907","pull_request_url":"https://api.github.com/repos/reactioncommerce/reaction/pulls/1644","_links":{"self":{"href":"https://api.github.com/repos/reactioncommerce/reaction/pulls/comments/93165907"},"html":{"href":"https://github.com/reactioncommerce/reaction/pull/1644#discussion_r93165907"},"pull_request":{"href":"https://api.github.com/repos/reactioncommerce/reaction/pulls/1644"}}},"pull_request":{"url":"https://api.github.com/repos/reactioncommerce/reaction/pulls/1644","id":98531919,"html_url":"https://github.com/reactioncommerce/reaction/pull/1644","diff_url":"https://github.com/reactioncommerce/reaction/pull/1644.diff","patch_url":"https://github.com/reactioncommerce/reaction/pull/1644.patch","issue_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/1644","number":1644,"state":"open","locked":false,"title":"Notifications","user":{"login":"andela-akolawole","id":16742431,"avatar_url":"https://avatars.githubusercontent.com/u/16742431?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-akolawole","html_url":"https://github.com/andela-akolawole","followers_url":"https://api.github.com/users/andela-akolawole/followers","following_url":"https://api.github.com/users/andela-akolawole/following{/other_user}","gists_url":"https://api.github.com/users/andela-akolawole/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-akolawole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-akolawole/subscriptions","organizations_url":"https://api.github.com/users/andela-akolawole/orgs","repos_url":"https://api.github.com/users/andela-akolawole/repos","events_url":"https://api.github.com/users/andela-akolawole/events{/privacy}","received_events_url":"https://api.github.com/users/andela-akolawole/received_events","type":"User","site_admin":false},"body":"**Are you submitting to `development`?**\r\nYes\r\n\r\n**Description**\r\n### Acceptance Criteria\r\nAs an admin, I should see a notification for new orders.As a registered user, I should see notifications for canceled orders and funds transfer.\r\n\r\nAs a user:\r\n- GIVEN, my order is canceled, I should receive a notification for my canceled order in the app and SMS.\r\n- GIVEN, a payment has been made to my wallet, I should receive a notification.\r\n- WHEN I click on the notification in the app, I should be redirected to the order.\r\n- THEN, I should be able to clear the notifications.\r\n\r\n**DEV NOTES**\r\n- Make use of the order workflow concept.\r\n- Make use of an SMS gateway for SMS notifications.\r\nFor sending notifications use this meteor method\r\n```js\r\nconst userId = \"ddzuN2YPvgvx7rJS5\"; // The receiver\r\nconst type = \"orderDelivered\"; // The notification type\r\nconst url = \"/order\"; //The route to follow when a notiifcation is clicked\r\nconst sms = true; // set to false if you do not want to send an sms notification\r\nconst details = \"details about the notiifcation\"; // The details of the notification\r\n\r\nMeteor.call(\"notification/send\", userId, type, url, sms, details);\r\n```\r\n**Note**\r\nThe meteor method argument \"type\" accepts strings like:\r\n\r\nString | Message\r\n---------| -----------\r\norderCancelled | Your order was canceled.\r\nnewOrder | Your order is being processed\r\ntopWallet |Your wallet has been credited\r\nforAdmin | You have a new order\r\norderDelivered | Your order has been delivered\r\norderAccepted | Your order has been accepted\r\norderShipped | Your order has been shipped\r\n\r\n**DESIGN NOTES**\r\nThe notification should be seen at the navbar with a bell icon for identification.Once clicked, a drop down should display a maximum of five notifications with a view all.\r\n\r\n- [x] Only contains code directly related to the issue\r\n- [ ] Has tests.\r\n- [x] Has docs.\r\n- [ ] Passes all tests\r\n- [x] Has been linted and follows the style guide\r\n","created_at":"2016-12-19T09:31:16Z","updated_at":"2016-12-20T03:25:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09a587b277c6f96dc833c3b8db69fa62f98f58d4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/reactioncommerce/reaction/pulls/1644/commits","review_comments_url":"https://api.github.com/repos/reactioncommerce/reaction/pulls/1644/comments","review_comment_url":"https://api.github.com/repos/reactioncommerce/reaction/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/1644/comments","statuses_url":"https://api.github.com/repos/reactioncommerce/reaction/statuses/4d8151de18e2bfe5207f99aa0a28a071c83f9602","head":{"label":"andela-oolutola:notifications","ref":"notifications","sha":"4d8151de18e2bfe5207f99aa0a28a071c83f9602","user":{"login":"andela-oolutola","id":20815290,"avatar_url":"https://avatars.githubusercontent.com/u/20815290?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-oolutola","html_url":"https://github.com/andela-oolutola","followers_url":"https://api.github.com/users/andela-oolutola/followers","following_url":"https://api.github.com/users/andela-oolutola/following{/other_user}","gists_url":"https://api.github.com/users/andela-oolutola/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-oolutola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-oolutola/subscriptions","organizations_url":"https://api.github.com/users/andela-oolutola/orgs","repos_url":"https://api.github.com/users/andela-oolutola/repos","events_url":"https://api.github.com/users/andela-oolutola/events{/privacy}","received_events_url":"https://api.github.com/users/andela-oolutola/received_events","type":"User","site_admin":false},"repo":{"id":75712254,"name":"reaction","full_name":"andela-oolutola/reaction","owner":{"login":"andela-oolutola","id":20815290,"avatar_url":"https://avatars.githubusercontent.com/u/20815290?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-oolutola","html_url":"https://github.com/andela-oolutola","followers_url":"https://api.github.com/users/andela-oolutola/followers","following_url":"https://api.github.com/users/andela-oolutola/following{/other_user}","gists_url":"https://api.github.com/users/andela-oolutola/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-oolutola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-oolutola/subscriptions","organizations_url":"https://api.github.com/users/andela-oolutola/orgs","repos_url":"https://api.github.com/users/andela-oolutola/repos","events_url":"https://api.github.com/users/andela-oolutola/events{/privacy}","received_events_url":"https://api.github.com/users/andela-oolutola/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-oolutola/reaction","description":"Reaction Commerce","fork":true,"url":"https://api.github.com/repos/andela-oolutola/reaction","forks_url":"https://api.github.com/repos/andela-oolutola/reaction/forks","keys_url":"https://api.github.com/repos/andela-oolutola/reaction/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-oolutola/reaction/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-oolutola/reaction/teams","hooks_url":"https://api.github.com/repos/andela-oolutola/reaction/hooks","issue_events_url":"https://api.github.com/repos/andela-oolutola/reaction/issues/events{/number}","events_url":"https://api.github.com/repos/andela-oolutola/reaction/events","assignees_url":"https://api.github.com/repos/andela-oolutola/reaction/assignees{/user}","branches_url":"https://api.github.com/repos/andela-oolutola/reaction/branches{/branch}","tags_url":"https://api.github.com/repos/andela-oolutola/reaction/tags","blobs_url":"https://api.github.com/repos/andela-oolutola/reaction/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-oolutola/reaction/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-oolutola/reaction/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-oolutola/reaction/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-oolutola/reaction/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-oolutola/reaction/languages","stargazers_url":"https://api.github.com/repos/andela-oolutola/reaction/stargazers","contributors_url":"https://api.github.com/repos/andela-oolutola/reaction/contributors","subscribers_url":"https://api.github.com/repos/andela-oolutola/reaction/subscribers","subscription_url":"https://api.github.com/repos/andela-oolutola/reaction/subscription","commits_url":"https://api.github.com/repos/andela-oolutola/reaction/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-oolutola/reaction/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-oolutola/reaction/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-oolutola/reaction/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-oolutola/reaction/contents/{+path}","compare_url":"https://api.github.com/repos/andela-oolutola/reaction/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-oolutola/reaction/merges","archive_url":"https://api.github.com/repos/andela-oolutola/reaction/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-oolutola/reaction/downloads","issues_url":"https://api.github.com/repos/andela-oolutola/reaction/issues{/number}","pulls_url":"https://api.github.com/repos/andela-oolutola/reaction/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-oolutola/reaction/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-oolutola/reaction/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-oolutola/reaction/labels{/name}","releases_url":"https://api.github.com/repos/andela-oolutola/reaction/releases{/id}","deployments_url":"https://api.github.com/repos/andela-oolutola/reaction/deployments","created_at":"2016-12-06T08:46:07Z","updated_at":"2016-12-06T08:46:10Z","pushed_at":"2016-12-19T10:13:07Z","git_url":"git://github.com/andela-oolutola/reaction.git","ssh_url":"git@github.com:andela-oolutola/reaction.git","clone_url":"https://github.com/andela-oolutola/reaction.git","svn_url":"https://github.com/andela-oolutola/reaction","homepage":"https://reactioncommerce.com/","size":31667,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"base":{"label":"reactioncommerce:development","ref":"development","sha":"8f9d842d11a64486fde8eb9e71eacdb3146c2ce1","user":{"login":"reactioncommerce","id":5605462,"avatar_url":"https://avatars.githubusercontent.com/u/5605462?v=3","gravatar_id":"","url":"https://api.github.com/users/reactioncommerce","html_url":"https://github.com/reactioncommerce","followers_url":"https://api.github.com/users/reactioncommerce/followers","following_url":"https://api.github.com/users/reactioncommerce/following{/other_user}","gists_url":"https://api.github.com/users/reactioncommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/reactioncommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactioncommerce/subscriptions","organizations_url":"https://api.github.com/users/reactioncommerce/orgs","repos_url":"https://api.github.com/users/reactioncommerce/repos","events_url":"https://api.github.com/users/reactioncommerce/events{/privacy}","received_events_url":"https://api.github.com/users/reactioncommerce/received_events","type":"Organization","site_admin":false},"repo":{"id":12926963,"name":"reaction","full_name":"reactioncommerce/reaction","owner":{"login":"reactioncommerce","id":5605462,"avatar_url":"https://avatars.githubusercontent.com/u/5605462?v=3","gravatar_id":"","url":"https://api.github.com/users/reactioncommerce","html_url":"https://github.com/reactioncommerce","followers_url":"https://api.github.com/users/reactioncommerce/followers","following_url":"https://api.github.com/users/reactioncommerce/following{/other_user}","gists_url":"https://api.github.com/users/reactioncommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/reactioncommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactioncommerce/subscriptions","organizations_url":"https://api.github.com/users/reactioncommerce/orgs","repos_url":"https://api.github.com/users/reactioncommerce/repos","events_url":"https://api.github.com/users/reactioncommerce/events{/privacy}","received_events_url":"https://api.github.com/users/reactioncommerce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reactioncommerce/reaction","description":"Reaction Commerce","fork":false,"url":"https://api.github.com/repos/reactioncommerce/reaction","forks_url":"https://api.github.com/repos/reactioncommerce/reaction/forks","keys_url":"https://api.github.com/repos/reactioncommerce/reaction/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reactioncommerce/reaction/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reactioncommerce/reaction/teams","hooks_url":"https://api.github.com/repos/reactioncommerce/reaction/hooks","issue_events_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/events{/number}","events_url":"https://api.github.com/repos/reactioncommerce/reaction/events","assignees_url":"https://api.github.com/repos/reactioncommerce/reaction/assignees{/user}","branches_url":"https://api.github.com/repos/reactioncommerce/reaction/branches{/branch}","tags_url":"https://api.github.com/repos/reactioncommerce/reaction/tags","blobs_url":"https://api.github.com/repos/reactioncommerce/reaction/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reactioncommerce/reaction/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reactioncommerce/reaction/git/refs{/sha}","trees_url":"https://api.github.com/repos/reactioncommerce/reaction/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reactioncommerce/reaction/statuses/{sha}","languages_url":"https://api.github.com/repos/reactioncommerce/reaction/languages","stargazers_url":"https://api.github.com/repos/reactioncommerce/reaction/stargazers","contributors_url":"https://api.github.com/repos/reactioncommerce/reaction/contributors","subscribers_url":"https://api.github.com/repos/reactioncommerce/reaction/subscribers","subscription_url":"https://api.github.com/repos/reactioncommerce/reaction/subscription","commits_url":"https://api.github.com/repos/reactioncommerce/reaction/commits{/sha}","git_commits_url":"https://api.github.com/repos/reactioncommerce/reaction/git/commits{/sha}","comments_url":"https://api.github.com/repos/reactioncommerce/reaction/comments{/number}","issue_comment_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/comments{/number}","contents_url":"https://api.github.com/repos/reactioncommerce/reaction/contents/{+path}","compare_url":"https://api.github.com/repos/reactioncommerce/reaction/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reactioncommerce/reaction/merges","archive_url":"https://api.github.com/repos/reactioncommerce/reaction/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reactioncommerce/reaction/downloads","issues_url":"https://api.github.com/repos/reactioncommerce/reaction/issues{/number}","pulls_url":"https://api.github.com/repos/reactioncommerce/reaction/pulls{/number}","milestones_url":"https://api.github.com/repos/reactioncommerce/reaction/milestones{/number}","notifications_url":"https://api.github.com/repos/reactioncommerce/reaction/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reactioncommerce/reaction/labels{/name}","releases_url":"https://api.github.com/repos/reactioncommerce/reaction/releases{/id}","deployments_url":"https://api.github.com/repos/reactioncommerce/reaction/deployments","created_at":"2013-09-18T15:30:36Z","updated_at":"2016-12-19T19:27:19Z","pushed_at":"2016-12-20T02:32:47Z","git_url":"git://github.com/reactioncommerce/reaction.git","ssh_url":"git@github.com:reactioncommerce/reaction.git","clone_url":"https://github.com/reactioncommerce/reaction.git","svn_url":"https://github.com/reactioncommerce/reaction","homepage":"https://reactioncommerce.com/","size":31815,"stargazers_count":3083,"watchers_count":3083,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":660,"mirror_url":null,"open_issues_count":259,"forks":660,"open_issues":259,"watchers":3083,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reactioncommerce/reaction/pulls/1644"},"html":{"href":"https://github.com/reactioncommerce/reaction/pull/1644"},"issue":{"href":"https://api.github.com/repos/reactioncommerce/reaction/issues/1644"},"comments":{"href":"https://api.github.com/repos/reactioncommerce/reaction/issues/1644/comments"},"review_comments":{"href":"https://api.github.com/repos/reactioncommerce/reaction/pulls/1644/comments"},"review_comment":{"href":"https://api.github.com/repos/reactioncommerce/reaction/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reactioncommerce/reaction/pulls/1644/commits"},"statuses":{"href":"https://api.github.com/repos/reactioncommerce/reaction/statuses/4d8151de18e2bfe5207f99aa0a28a071c83f9602"}}}}
{"actor":{"display_login":"zenweasel"}}