{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/55380948","id":55380948,"diff_hunk":"@@ -107,6 +107,28 @@ oppia.config(['$provide', function($provide) {\n   }]);\n }]);\n \n+oppia.config(['toastrConfig', function(toastrConfig) {","path":"core/templates/dev/head/app.js","position":13,"original_position":13,"commit_id":"4de8c7cc76443d299f504f5007d7735a817f09e6","original_commit_id":"4de8c7cc76443d299f504f5007d7735a817f09e6","user":{"login":"hitesh96db","id":6831827,"avatar_url":"https://avatars.githubusercontent.com/u/6831827?v=3","gravatar_id":"","url":"https://api.github.com/users/hitesh96db","html_url":"https://github.com/hitesh96db","followers_url":"https://api.github.com/users/hitesh96db/followers","following_url":"https://api.github.com/users/hitesh96db/following{/other_user}","gists_url":"https://api.github.com/users/hitesh96db/gists{/gist_id}","starred_url":"https://api.github.com/users/hitesh96db/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hitesh96db/subscriptions","organizations_url":"https://api.github.com/users/hitesh96db/orgs","repos_url":"https://api.github.com/users/hitesh96db/repos","events_url":"https://api.github.com/users/hitesh96db/events{/privacy}","received_events_url":"https://api.github.com/users/hitesh96db/received_events","type":"User","site_admin":false},"body":"This config is common for all the toasts, so this might be an issue if we use the same kind of toasts for `infoMessages` and `warnings`(unless we plan to display both of them in the same place, then top-right would be an apt place to do so)","created_at":"2016-03-08T16:06:22Z","updated_at":"2016-03-08T16:06:22Z","html_url":"https://github.com/oppia/oppia/pull/1581#discussion_r55380948","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/1581","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/55380948"},"html":{"href":"https://github.com/oppia/oppia/pull/1581#discussion_r55380948"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1581"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/1581","id":62091338,"html_url":"https://github.com/oppia/oppia/pull/1581","diff_url":"https://github.com/oppia/oppia/pull/1581.diff","patch_url":"https://github.com/oppia/oppia/pull/1581.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/1581","number":1581,"state":"open","locked":false,"title":"[#1531] Introduce alertsService to display Warnings and FYI-Messages","user":{"login":"hitesh96db","id":6831827,"avatar_url":"https://avatars.githubusercontent.com/u/6831827?v=3","gravatar_id":"","url":"https://api.github.com/users/hitesh96db","html_url":"https://github.com/hitesh96db","followers_url":"https://api.github.com/users/hitesh96db/followers","following_url":"https://api.github.com/users/hitesh96db/following{/other_user}","gists_url":"https://api.github.com/users/hitesh96db/gists{/gist_id}","starred_url":"https://api.github.com/users/hitesh96db/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hitesh96db/subscriptions","organizations_url":"https://api.github.com/users/hitesh96db/orgs","repos_url":"https://api.github.com/users/hitesh96db/repos","events_url":"https://api.github.com/users/hitesh96db/events{/privacy}","received_events_url":"https://api.github.com/users/hitesh96db/received_events","type":"User","site_admin":false},"body":"(This PR is not ready for code review but is opened to carry out discussions)\r\n\r\nI've only added the `infoMessages` part in `alertsService`(didn't introduce any changes for the warning messages).\r\nThere are currently two places where FYI-Messages are displayed - \r\n* Once you publish an exploration.\r\n* When you create a new thread in the Feedback tab.\r\n\r\nI've made use of [Angular Toastr](http://foxandxss.github.io/angular-toastr/), this one worked the best. I tried the [Angular Material Toast](https://material.angularjs.org/latest/demo/toast) as well but didn't work too well(when the toast is displayed, the browser scroll bar appears for a second or so, which gives a glitch-like effect).\r\n\r\n@seanlip -- comments on the design and approach ?","created_at":"2016-03-08T15:57:28Z","updated_at":"2016-03-08T16:06:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a140b632809d818d1ab325f12d76ac92e829e530","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/1581/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/1581/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/1581/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/4de8c7cc76443d299f504f5007d7735a817f09e6","head":{"label":"hitesh96db:popup-messages","ref":"popup-messages","sha":"4de8c7cc76443d299f504f5007d7735a817f09e6","user":{"login":"hitesh96db","id":6831827,"avatar_url":"https://avatars.githubusercontent.com/u/6831827?v=3","gravatar_id":"","url":"https://api.github.com/users/hitesh96db","html_url":"https://github.com/hitesh96db","followers_url":"https://api.github.com/users/hitesh96db/followers","following_url":"https://api.github.com/users/hitesh96db/following{/other_user}","gists_url":"https://api.github.com/users/hitesh96db/gists{/gist_id}","starred_url":"https://api.github.com/users/hitesh96db/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hitesh96db/subscriptions","organizations_url":"https://api.github.com/users/hitesh96db/orgs","repos_url":"https://api.github.com/users/hitesh96db/repos","events_url":"https://api.github.com/users/hitesh96db/events{/privacy}","received_events_url":"https://api.github.com/users/hitesh96db/received_events","type":"User","site_admin":false},"repo":{"id":52956123,"name":"oppia","full_name":"hitesh96db/oppia","owner":{"login":"hitesh96db","id":6831827,"avatar_url":"https://avatars.githubusercontent.com/u/6831827?v=3","gravatar_id":"","url":"https://api.github.com/users/hitesh96db","html_url":"https://github.com/hitesh96db","followers_url":"https://api.github.com/users/hitesh96db/followers","following_url":"https://api.github.com/users/hitesh96db/following{/other_user}","gists_url":"https://api.github.com/users/hitesh96db/gists{/gist_id}","starred_url":"https://api.github.com/users/hitesh96db/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hitesh96db/subscriptions","organizations_url":"https://api.github.com/users/hitesh96db/orgs","repos_url":"https://api.github.com/users/hitesh96db/repos","events_url":"https://api.github.com/users/hitesh96db/events{/privacy}","received_events_url":"https://api.github.com/users/hitesh96db/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hitesh96db/oppia","description":"Tool for collaboratively building intelligent tutors.","fork":true,"url":"https://api.github.com/repos/hitesh96db/oppia","forks_url":"https://api.github.com/repos/hitesh96db/oppia/forks","keys_url":"https://api.github.com/repos/hitesh96db/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hitesh96db/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hitesh96db/oppia/teams","hooks_url":"https://api.github.com/repos/hitesh96db/oppia/hooks","issue_events_url":"https://api.github.com/repos/hitesh96db/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/hitesh96db/oppia/events","assignees_url":"https://api.github.com/repos/hitesh96db/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/hitesh96db/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/hitesh96db/oppia/tags","blobs_url":"https://api.github.com/repos/hitesh96db/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hitesh96db/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hitesh96db/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/hitesh96db/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hitesh96db/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/hitesh96db/oppia/languages","stargazers_url":"https://api.github.com/repos/hitesh96db/oppia/stargazers","contributors_url":"https://api.github.com/repos/hitesh96db/oppia/contributors","subscribers_url":"https://api.github.com/repos/hitesh96db/oppia/subscribers","subscription_url":"https://api.github.com/repos/hitesh96db/oppia/subscription","commits_url":"https://api.github.com/repos/hitesh96db/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/hitesh96db/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/hitesh96db/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/hitesh96db/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/hitesh96db/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/hitesh96db/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hitesh96db/oppia/merges","archive_url":"https://api.github.com/repos/hitesh96db/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hitesh96db/oppia/downloads","issues_url":"https://api.github.com/repos/hitesh96db/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/hitesh96db/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/hitesh96db/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/hitesh96db/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hitesh96db/oppia/labels{/name}","releases_url":"https://api.github.com/repos/hitesh96db/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/hitesh96db/oppia/deployments","created_at":"2016-03-02T10:59:31Z","updated_at":"2016-03-02T10:59:35Z","pushed_at":"2016-03-08T15:40:38Z","git_url":"git://github.com/hitesh96db/oppia.git","ssh_url":"git@github.com:hitesh96db/oppia.git","clone_url":"https://github.com/hitesh96db/oppia.git","svn_url":"https://github.com/hitesh96db/oppia","homepage":"https://www.oppia.org","size":41795,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"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":"develop"}},"base":{"label":"oppia:develop","ref":"develop","sha":"f7974d70d1f0c0f94d961f726176744f3db881c1","user":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"repo":{"id":40687563,"name":"oppia","full_name":"oppia/oppia","owner":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oppia/oppia","description":"Tool for collaboratively building intelligent tutors.","fork":false,"url":"https://api.github.com/repos/oppia/oppia","forks_url":"https://api.github.com/repos/oppia/oppia/forks","keys_url":"https://api.github.com/repos/oppia/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oppia/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oppia/oppia/teams","hooks_url":"https://api.github.com/repos/oppia/oppia/hooks","issue_events_url":"https://api.github.com/repos/oppia/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/oppia/oppia/events","assignees_url":"https://api.github.com/repos/oppia/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/oppia/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/oppia/oppia/tags","blobs_url":"https://api.github.com/repos/oppia/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oppia/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oppia/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/oppia/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/oppia/oppia/languages","stargazers_url":"https://api.github.com/repos/oppia/oppia/stargazers","contributors_url":"https://api.github.com/repos/oppia/oppia/contributors","subscribers_url":"https://api.github.com/repos/oppia/oppia/subscribers","subscription_url":"https://api.github.com/repos/oppia/oppia/subscription","commits_url":"https://api.github.com/repos/oppia/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/oppia/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/oppia/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/oppia/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/oppia/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/oppia/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oppia/oppia/merges","archive_url":"https://api.github.com/repos/oppia/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oppia/oppia/downloads","issues_url":"https://api.github.com/repos/oppia/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/oppia/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/oppia/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/oppia/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oppia/oppia/labels{/name}","releases_url":"https://api.github.com/repos/oppia/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/oppia/oppia/deployments","created_at":"2015-08-14T00:16:14Z","updated_at":"2016-03-07T22:09:20Z","pushed_at":"2016-03-08T16:02:56Z","git_url":"git://github.com/oppia/oppia.git","ssh_url":"git@github.com:oppia/oppia.git","clone_url":"https://github.com/oppia/oppia.git","svn_url":"https://github.com/oppia/oppia","homepage":"https://www.oppia.org","size":73627,"stargazers_count":94,"watchers_count":94,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":150,"mirror_url":null,"open_issues_count":289,"forks":150,"open_issues":289,"watchers":94,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1581"},"html":{"href":"https://github.com/oppia/oppia/pull/1581"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/1581"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/1581/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1581/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1581/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/4de8c7cc76443d299f504f5007d7735a817f09e6"}}}}