{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/344","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/344/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/344/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/344/events","html_url":"https://github.com/silverstripe/silverstripe-cms/issues/344","id":12770705,"number":344,"title":"[2012-02-29] Better user feedback on faulty Ajax responses","user":{"login":"silverstripe-issues","id":4030919,"avatar_url":"https://avatars.githubusercontent.com/u/4030919?v=3","gravatar_id":"","url":"https://api.github.com/users/silverstripe-issues","html_url":"https://github.com/silverstripe-issues","followers_url":"https://api.github.com/users/silverstripe-issues/followers","following_url":"https://api.github.com/users/silverstripe-issues/following{/other_user}","gists_url":"https://api.github.com/users/silverstripe-issues/gists{/gist_id}","starred_url":"https://api.github.com/users/silverstripe-issues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverstripe-issues/subscriptions","organizations_url":"https://api.github.com/users/silverstripe-issues/orgs","repos_url":"https://api.github.com/users/silverstripe-issues/repos","events_url":"https://api.github.com/users/silverstripe-issues/events{/privacy}","received_events_url":"https://api.github.com/users/silverstripe-issues/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/silverstripe/silverstripe-cms/labels/change/minor","name":"change/minor","color":"c7def8"},{"url":"https://api.github.com/repos/silverstripe/silverstripe-cms/labels/type/enhancement","name":"type/enhancement","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/silverstripe/silverstripe-cms/milestones/15","html_url":"https://github.com/silverstripe/silverstripe-cms/milestones/3.3.0%20rc1","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/milestones/15/labels","id":1088279,"number":15,"title":"3.3.0 rc1","description":"","creator":{"login":"tractorcow","id":936064,"avatar_url":"https://avatars.githubusercontent.com/u/936064?v=3","gravatar_id":"","url":"https://api.github.com/users/tractorcow","html_url":"https://github.com/tractorcow","followers_url":"https://api.github.com/users/tractorcow/followers","following_url":"https://api.github.com/users/tractorcow/following{/other_user}","gists_url":"https://api.github.com/users/tractorcow/gists{/gist_id}","starred_url":"https://api.github.com/users/tractorcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractorcow/subscriptions","organizations_url":"https://api.github.com/users/tractorcow/orgs","repos_url":"https://api.github.com/users/tractorcow/repos","events_url":"https://api.github.com/users/tractorcow/events{/privacy}","received_events_url":"https://api.github.com/users/tractorcow/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":10,"state":"open","created_at":"2015-04-28T21:36:58Z","updated_at":"2016-01-22T04:03:27Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2013-04-03T20:09:45Z","updated_at":"2016-01-22T04:03:27Z","closed_at":"2016-01-22T04:03:27Z","body":"created by: @chillu (ischommer)\ncreated at: 2012-02-29\noriginal ticket: http://open.silverstripe.org/ticket/6872\n\n---\n\nProvide better visual feedback on application errors, which can occur by loading a new page/panel,\r\nbut also on other user actions, most of them involving Ajax (e.g. reordering tree nodes).\r\n\r\nCurrently we use the jQuery.notice plugin for this (http://code.google.com/p/jquery-notice/wiki/Implementation). It shows up as a grey box (like the growl plugin for OSX). It doesn't indicate an error well, and is a bit \"out of sight\" (top right). Those messages are triggered through the global statusMessage() and errorMessage() methods.\r\n\r\nWe have two \"types\" of alerts, \"good\" and \"bad\". I suggest that we follow\r\nthe Twitter Bootstrap conventions here (http://twitter.github.com/bootstrap/components.html#alerts)\r\nand use \"error\", \"success\" and \"info\" instead, each with their own styling.\r\n\r\nI suggest that we center the message, fade out after 3 secs, give the user an option to close explicitly.\r\nThe fadeout should be disabled if the user hovers over the item, to give him a chance to read the whole text.\r\nThe text is usually a handful of words, but particularly in development mode might\r\nbe much longer (up to an A4 page of text). \r\n\r\nNote: An easy way to simulate a server error is to add \"throw Exception('My exception')'\"\r\nin the first line of the show() method in LeftAndMain.php, and try to open a page from admin/pages."},"comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/comments/173800291","html_url":"https://github.com/silverstripe/silverstripe-cms/issues/344#issuecomment-173800291","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-cms/issues/344","id":173800291,"user":{"login":"tractorcow","id":936064,"avatar_url":"https://avatars.githubusercontent.com/u/936064?v=3","gravatar_id":"","url":"https://api.github.com/users/tractorcow","html_url":"https://github.com/tractorcow","followers_url":"https://api.github.com/users/tractorcow/followers","following_url":"https://api.github.com/users/tractorcow/following{/other_user}","gists_url":"https://api.github.com/users/tractorcow/gists{/gist_id}","starred_url":"https://api.github.com/users/tractorcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractorcow/subscriptions","organizations_url":"https://api.github.com/users/tractorcow/orgs","repos_url":"https://api.github.com/users/tractorcow/repos","events_url":"https://api.github.com/users/tractorcow/events{/privacy}","received_events_url":"https://api.github.com/users/tractorcow/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T04:03:27Z","updated_at":"2016-01-22T04:03:27Z","body":"Fixed with https://github.com/silverstripe/silverstripe-framework/pull/4570"}}