{"action":"closed","issue":{"url":"https://api.github.com/repos/toggl/mobileapp/issues/1543","repository_url":"https://api.github.com/repos/toggl/mobileapp","labels_url":"https://api.github.com/repos/toggl/mobileapp/issues/1543/labels{/name}","comments_url":"https://api.github.com/repos/toggl/mobileapp/issues/1543/comments","events_url":"https://api.github.com/repos/toggl/mobileapp/issues/1543/events","html_url":"https://github.com/toggl/mobileapp/issues/1543","id":298215085,"number":1543,"title":"Edit view: Ask confirmation when discarding changes","user":{"login":"pe0ny","id":5064445,"avatar_url":"https://avatars0.githubusercontent.com/u/5064445?v=4","gravatar_id":"","url":"https://api.github.com/users/pe0ny","html_url":"https://github.com/pe0ny","followers_url":"https://api.github.com/users/pe0ny/followers","following_url":"https://api.github.com/users/pe0ny/following{/other_user}","gists_url":"https://api.github.com/users/pe0ny/gists{/gist_id}","starred_url":"https://api.github.com/users/pe0ny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pe0ny/subscriptions","organizations_url":"https://api.github.com/users/pe0ny/orgs","repos_url":"https://api.github.com/users/pe0ny/repos","events_url":"https://api.github.com/users/pe0ny/events{/privacy}","received_events_url":"https://api.github.com/users/pe0ny/received_events","type":"User","site_admin":false},"labels":[{"id":772341325,"url":"https://api.github.com/repos/toggl/mobileapp/labels/android","name":"android","color":"A4C639","default":false},{"id":686986061,"url":"https://api.github.com/repos/toggl/mobileapp/labels/pending-review","name":"pending-review","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":{"login":"simonrozsival","id":374616,"avatar_url":"https://avatars0.githubusercontent.com/u/374616?v=4","gravatar_id":"","url":"https://api.github.com/users/simonrozsival","html_url":"https://github.com/simonrozsival","followers_url":"https://api.github.com/users/simonrozsival/followers","following_url":"https://api.github.com/users/simonrozsival/following{/other_user}","gists_url":"https://api.github.com/users/simonrozsival/gists{/gist_id}","starred_url":"https://api.github.com/users/simonrozsival/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonrozsival/subscriptions","organizations_url":"https://api.github.com/users/simonrozsival/orgs","repos_url":"https://api.github.com/users/simonrozsival/repos","events_url":"https://api.github.com/users/simonrozsival/events{/privacy}","received_events_url":"https://api.github.com/users/simonrozsival/received_events","type":"User","site_admin":false},"assignees":[{"login":"simonrozsival","id":374616,"avatar_url":"https://avatars0.githubusercontent.com/u/374616?v=4","gravatar_id":"","url":"https://api.github.com/users/simonrozsival","html_url":"https://github.com/simonrozsival","followers_url":"https://api.github.com/users/simonrozsival/followers","following_url":"https://api.github.com/users/simonrozsival/following{/other_user}","gists_url":"https://api.github.com/users/simonrozsival/gists{/gist_id}","starred_url":"https://api.github.com/users/simonrozsival/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonrozsival/subscriptions","organizations_url":"https://api.github.com/users/simonrozsival/orgs","repos_url":"https://api.github.com/users/simonrozsival/repos","events_url":"https://api.github.com/users/simonrozsival/events{/privacy}","received_events_url":"https://api.github.com/users/simonrozsival/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/toggl/mobileapp/milestones/35","html_url":"https://github.com/toggl/mobileapp/milestone/35","labels_url":"https://api.github.com/repos/toggl/mobileapp/milestones/35/labels","id":3116149,"number":35,"title":"2018-W12","description":"☀️ ui updates, onboarding 🤖 edit view changes","creator":{"login":"amulware","id":3987892,"avatar_url":"https://avatars2.githubusercontent.com/u/3987892?v=4","gravatar_id":"","url":"https://api.github.com/users/amulware","html_url":"https://github.com/amulware","followers_url":"https://api.github.com/users/amulware/followers","following_url":"https://api.github.com/users/amulware/following{/other_user}","gists_url":"https://api.github.com/users/amulware/gists{/gist_id}","starred_url":"https://api.github.com/users/amulware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amulware/subscriptions","organizations_url":"https://api.github.com/users/amulware/orgs","repos_url":"https://api.github.com/users/amulware/repos","events_url":"https://api.github.com/users/amulware/events{/privacy}","received_events_url":"https://api.github.com/users/amulware/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":9,"state":"open","created_at":"2018-02-14T11:54:46Z","updated_at":"2018-03-21T11:22:19Z","due_on":"2018-03-23T07:00:00Z","closed_at":null},"comments":2,"created_at":"2018-02-19T09:52:50Z","updated_at":"2018-03-21T11:22:19Z","closed_at":"2018-03-21T11:22:19Z","author_association":"COLLABORATOR","body":"- [x] Ask confirmation: \"Discard\" or \"Keep Editing\" when a user taps 'X' in the edit view.\r\n- [x] Ask confirmation only when a user has changed anything. Use the same logic we use in iOS #1042 \r\n- [x] Don't ask anything if a user hasn't made any changes.\r\n- [x] Changes to consider:\r\n- Description\r\n- Project/task\r\n- Tags\r\n- Start/end time/date\r\n- Duration\r\n- Billable flag\r\n- [x] When a user changes the field (eg description) and then changes it back, then the app shouldn't ask this confirmation, and consider this as no changes were made.\r\n\r\n## Design\r\n### Edit view: confirmation\r\n![edit cancel edit](https://user-images.githubusercontent.com/5064445/36371522-0eb7bd8a-156b-11e8-8822-30997c481a5c.png)\r\n\r\nZeplin: https://zpl.io/VDDzzR3"}}
{"actor":{"display_login":"simonrozsival"}}