{"action":"created","issue":{"url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/639","labels_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/639/labels{/name}","comments_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/639/comments","events_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/639/events","html_url":"https://github.com/backdrop/backdrop-issues/issues/639","id":55086330,"number":639,"title":"[UX] Display a notification badge in the admin bar when there are warnings/errors.","user":{"login":"klonos","id":2423362,"avatar_url":"https://avatars.githubusercontent.com/u/2423362?v=3","gravatar_id":"","url":"https://api.github.com/users/klonos","html_url":"https://github.com/klonos","followers_url":"https://api.github.com/users/klonos/followers","following_url":"https://api.github.com/users/klonos/following{/other_user}","gists_url":"https://api.github.com/users/klonos/gists{/gist_id}","starred_url":"https://api.github.com/users/klonos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klonos/subscriptions","organizations_url":"https://api.github.com/users/klonos/orgs","repos_url":"https://api.github.com/users/klonos/repos","events_url":"https://api.github.com/users/klonos/events{/privacy}","received_events_url":"https://api.github.com/users/klonos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/backdrop/backdrop-issues/labels/pr%20-%20needs%20review","name":"pr - needs review","color":"FFFFDD"},{"url":"https://api.github.com/repos/backdrop/backdrop-issues/labels/status%20-%20has%20pull%20request","name":"status - has pull request","color":"d4c5f9"},{"url":"https://api.github.com/repos/backdrop/backdrop-issues/labels/type%20-%20feature%20request","name":"type - feature request","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/backdrop/backdrop-issues/milestones/12","html_url":"https://github.com/backdrop/backdrop-issues/milestones/1.3.0","labels_url":"https://api.github.com/repos/backdrop/backdrop-issues/milestones/12/labels","id":1101067,"number":12,"title":"1.3.0","description":"New features for the 1.3.x branch","creator":{"login":"jenlampton","id":397895,"avatar_url":"https://avatars.githubusercontent.com/u/397895?v=3","gravatar_id":"","url":"https://api.github.com/users/jenlampton","html_url":"https://github.com/jenlampton","followers_url":"https://api.github.com/users/jenlampton/followers","following_url":"https://api.github.com/users/jenlampton/following{/other_user}","gists_url":"https://api.github.com/users/jenlampton/gists{/gist_id}","starred_url":"https://api.github.com/users/jenlampton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenlampton/subscriptions","organizations_url":"https://api.github.com/users/jenlampton/orgs","repos_url":"https://api.github.com/users/jenlampton/repos","events_url":"https://api.github.com/users/jenlampton/events{/privacy}","received_events_url":"https://api.github.com/users/jenlampton/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":36,"state":"open","created_at":"2015-05-07T22:03:06Z","updated_at":"2016-01-13T23:43:27Z","due_on":"2016-01-15T07:00:00Z","closed_at":null},"comments":26,"created_at":"2015-01-21T22:22:45Z","updated_at":"2016-01-13T23:58:09Z","closed_at":null,"body":"I really hate it to visit the site status report only to find that there are errors/warning that were sitting there for some time waiting for action (db updates for one).\r\n\r\nSo, how about we have some discrete badges showing up over the top-right corner of the \"Reports\" top-level menu? They could be as discrete as a simple red/orange dot (depending on the highest severity of the errors/warnings) similarly to the way that git hub does it:\r\n\r\n![github_notifications_badge](https://cloud.githubusercontent.com/assets/2423362/5846363/20575f16-a217-11e4-8327-e30c4445580b.png)\r\n\r\nSome popup note would be nice too:\r\n\r\n![github_notifications_popup](https://cloud.githubusercontent.com/assets/2423362/5846385/5246b3dc-a217-11e4-9cc6-065df0f49034.png)\r\n\r\nIf there is only one error/warning, then the popup message could be populated with a specific text like \"Database updates: Out of date\" or \"HTTP request status: Fails\" or \"Cron maintenance tasks: Last run [long time] ago\". If there are multiple errors/warnings, then something generic like \"You have unresolved issues with your site\"."},"comment":{"url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/comments/171476220","html_url":"https://github.com/backdrop/backdrop-issues/issues/639#issuecomment-171476220","issue_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/639","id":171476220,"user":{"login":"quicksketch","id":100206,"avatar_url":"https://avatars.githubusercontent.com/u/100206?v=3","gravatar_id":"","url":"https://api.github.com/users/quicksketch","html_url":"https://github.com/quicksketch","followers_url":"https://api.github.com/users/quicksketch/followers","following_url":"https://api.github.com/users/quicksketch/following{/other_user}","gists_url":"https://api.github.com/users/quicksketch/gists{/gist_id}","starred_url":"https://api.github.com/users/quicksketch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quicksketch/subscriptions","organizations_url":"https://api.github.com/users/quicksketch/orgs","repos_url":"https://api.github.com/users/quicksketch/repos","events_url":"https://api.github.com/users/quicksketch/events{/privacy}","received_events_url":"https://api.github.com/users/quicksketch/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T23:58:09Z","updated_at":"2016-01-13T23:58:09Z","body":"Some notes on the current @jenlampton PR:\r\n\r\nThe background color: `#EE3D23` is a color that only exists within our Seven theme. I don't think `admin_bar.css` should adopt that color as it's part of the admin theme color scheme.\r\n\r\nThe CSS goes wonky when in the collapsed mode:\r\n\r\n![selection_039](https://cloud.githubusercontent.com/assets/100206/12311693/cb53920e-ba0d-11e5-9daa-963065d63413.png)\r\n\r\nIt would be preferable to include a label when in the menu mode like this as well. Something like \"Site status\". This label would be hidden when displaying across the top on desktop.\r\n\r\nTo test this I made the files directory read-only on my machine. The error notification did not show up immediately but it did after a cache clear. I think that is okay, we can't be checking for errors constantly. However, then I visited the status report by clicking on the notification. Then I fixed the problem by making the files directory writable again. After reloading the page, the site status report had no errors, but the Admin Bar still had a notification in it. The notification should go away immediately just like the status report fixing immediately. Let's clear the admin bar cache automatically when visiting the status report so that the indicator is updated immediately on this page."}}