{"action":"created","issue":{"url":"https://api.github.com/repos/stkent/amplify/issues/136","repository_url":"https://api.github.com/repos/stkent/amplify","labels_url":"https://api.github.com/repos/stkent/amplify/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/stkent/amplify/issues/136/comments","events_url":"https://api.github.com/repos/stkent/amplify/issues/136/events","html_url":"https://github.com/stkent/amplify/pull/136","id":144414512,"number":136,"title":"Prompt view state restoration","user":{"login":"stkent","id":6463980,"avatar_url":"https://avatars.githubusercontent.com/u/6463980?v=3","gravatar_id":"","url":"https://api.github.com/users/stkent","html_url":"https://github.com/stkent","followers_url":"https://api.github.com/users/stkent/followers","following_url":"https://api.github.com/users/stkent/following{/other_user}","gists_url":"https://api.github.com/users/stkent/gists{/gist_id}","starred_url":"https://api.github.com/users/stkent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stkent/subscriptions","organizations_url":"https://api.github.com/users/stkent/orgs","repos_url":"https://api.github.com/users/stkent/repos","events_url":"https://api.github.com/users/stkent/events{/privacy}","received_events_url":"https://api.github.com/users/stkent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-03-29T23:07:34Z","updated_at":"2016-03-30T19:16:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stkent/amplify/pulls/136","html_url":"https://github.com/stkent/amplify/pull/136","diff_url":"https://github.com/stkent/amplify/pull/136.diff","patch_url":"https://github.com/stkent/amplify/pull/136.patch"},"body":"#### Issue Link\r\n<!-- (Required) Link to GitHub issue/JIRA card/Trello card -->\r\n\r\nCloses #131.\r\n\r\n#### Goals\r\n<!-- (Required) Summarize the goals of this PR -->\r\n\r\nPreserve prompt state through device configuration changes.\r\n\r\n#### Implementation Notes\r\n<!-- (Optional) Highlight any new utility code -->\r\n<!-- (Optional) Highlight tricky decisions and explain your choices  -->\r\n\r\nThis change involved fairly significant refactoring of code related to prompt view state management and flow handling. The `BasePromptView` class handles most of the coordination of state, which means user-provided implementations of the `IPromptView` interface will need to duplicate some of the code contained in this class if they wish to similarly handle configuration changes gracefully. However, I anticipate that the two `BasePromptView` subclasses (`DefaultLayoutPromptView` and `CustomLayoutPromptView`) will be sufficient for the vast majority of use-cases, so this isn't a deal-breaker.\r\n\r\nSome API changes are also included - please refer to the updated CHANGELOG and README for details."},"comment":{"url":"https://api.github.com/repos/stkent/amplify/issues/comments/203591126","html_url":"https://github.com/stkent/amplify/pull/136#issuecomment-203591126","issue_url":"https://api.github.com/repos/stkent/amplify/issues/136","id":203591126,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T19:16:23Z","updated_at":"2016-03-30T19:16:23Z","body":"\n[![Coverage Status](https://coveralls.io/builds/5603685/badge)](https://coveralls.io/builds/5603685)\n\nCoverage decreased (-2.5%) to 14.178% when pulling **146ce39c46261e50d66ba0c59c9518f5b95bf9ee on prompt-view-state-restoration** into **b694ba5b127b81c7f69a65fd97d37d885972f7d1 on master**.\n"}}