{"action":"created","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/5586","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/5586/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/5586/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/5586/events","html_url":"https://github.com/WordPress/gutenberg/issues/5586","id":304725826,"number":5586,"title":"Restore sidebar state when resizing a window","user":{"login":"jasmussen","id":1204802,"avatar_url":"https://avatars3.githubusercontent.com/u/1204802?v=4","gravatar_id":"","url":"https://api.github.com/users/jasmussen","html_url":"https://github.com/jasmussen","followers_url":"https://api.github.com/users/jasmussen/followers","following_url":"https://api.github.com/users/jasmussen/following{/other_user}","gists_url":"https://api.github.com/users/jasmussen/gists{/gist_id}","starred_url":"https://api.github.com/users/jasmussen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasmussen/subscriptions","organizations_url":"https://api.github.com/users/jasmussen/orgs","repos_url":"https://api.github.com/users/jasmussen/repos","events_url":"https://api.github.com/users/jasmussen/events{/privacy}","received_events_url":"https://api.github.com/users/jasmussen/received_events","type":"User","site_admin":false},"labels":[{"id":546164034,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/Design","name":"Design","color":"0e8a16","default":false},{"id":531680823,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/[Type]%20Bug","name":"[Type] Bug","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":{"login":"jorgefilipecosta","id":11271197,"avatar_url":"https://avatars1.githubusercontent.com/u/11271197?v=4","gravatar_id":"","url":"https://api.github.com/users/jorgefilipecosta","html_url":"https://github.com/jorgefilipecosta","followers_url":"https://api.github.com/users/jorgefilipecosta/followers","following_url":"https://api.github.com/users/jorgefilipecosta/following{/other_user}","gists_url":"https://api.github.com/users/jorgefilipecosta/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgefilipecosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgefilipecosta/subscriptions","organizations_url":"https://api.github.com/users/jorgefilipecosta/orgs","repos_url":"https://api.github.com/users/jorgefilipecosta/repos","events_url":"https://api.github.com/users/jorgefilipecosta/events{/privacy}","received_events_url":"https://api.github.com/users/jorgefilipecosta/received_events","type":"User","site_admin":false},"assignees":[{"login":"jorgefilipecosta","id":11271197,"avatar_url":"https://avatars1.githubusercontent.com/u/11271197?v=4","gravatar_id":"","url":"https://api.github.com/users/jorgefilipecosta","html_url":"https://github.com/jorgefilipecosta","followers_url":"https://api.github.com/users/jorgefilipecosta/followers","following_url":"https://api.github.com/users/jorgefilipecosta/following{/other_user}","gists_url":"https://api.github.com/users/jorgefilipecosta/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgefilipecosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgefilipecosta/subscriptions","organizations_url":"https://api.github.com/users/jorgefilipecosta/orgs","repos_url":"https://api.github.com/users/jorgefilipecosta/repos","events_url":"https://api.github.com/users/jorgefilipecosta/events{/privacy}","received_events_url":"https://api.github.com/users/jorgefilipecosta/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-03-13T11:27:43Z","updated_at":"2018-03-13T12:10:44Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"This appears to be a regression per the merge of the in-progress sidebar API. \r\n\r\nIf you have the sidebar toggled, then resize the window to be small, the sidebar is _untoggled_. This is in contrast to the previous behavior, where the sidebar _state_ was not untoggled, the editor just entred into a mobile state, where the sidebar is a modal. \r\n\r\nThe problem is, that the sidebar should be enabled by default on a vanilla out-of-the-box WordPress install. This is key in order for users to learn that if you dismiss the sidebar by pressing the X in the top right corner of the sidebar, you can _see_ that the cog icon is untoggled in the editor bar. This teaches users how to get the sidebar back (and we can show a pointer as well). If a user simply resizes the viewport and it disappears, this connection is less likely to happen. \r\n\r\n![restore sidebar state on resize](https://user-images.githubusercontent.com/1204802/37339076-c7edc632-26b9-11e8-8b3e-b4a98756801f.gif)\r\n\r\nIdeally the sidebar would be restored when you return to the desktop breakpoint, unless you explicitly toggle it off. "},"comment":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments/372644116","html_url":"https://github.com/WordPress/gutenberg/issues/5586#issuecomment-372644116","issue_url":"https://api.github.com/repos/WordPress/gutenberg/issues/5586","id":372644116,"user":{"login":"jasmussen","id":1204802,"avatar_url":"https://avatars3.githubusercontent.com/u/1204802?v=4","gravatar_id":"","url":"https://api.github.com/users/jasmussen","html_url":"https://github.com/jasmussen","followers_url":"https://api.github.com/users/jasmussen/followers","following_url":"https://api.github.com/users/jasmussen/following{/other_user}","gists_url":"https://api.github.com/users/jasmussen/gists{/gist_id}","starred_url":"https://api.github.com/users/jasmussen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasmussen/subscriptions","organizations_url":"https://api.github.com/users/jasmussen/orgs","repos_url":"https://api.github.com/users/jasmussen/repos","events_url":"https://api.github.com/users/jasmussen/events{/privacy}","received_events_url":"https://api.github.com/users/jasmussen/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T12:10:44Z","updated_at":"2018-03-13T12:10:44Z","author_association":"CONTRIBUTOR","body":"> At the time of that refactoring, it was better not to add this logic right away as it would make the PR huge.\r\n\r\nIt's totally okay to make tradeoffs like that when shipping new features, just wanted to make sure this was tracked so it doesn't fall between the cracks.\r\n\r\n> I can try to submit a PR that follows the logic discussed. Of course, if another person is interested in working on this feel free to comment.\r\n\r\nNot super urgent, but definitely something the final version should have. "}}
{"actor":{"display_login":"jasmussen"}}