{"action":"created","issue":{"url":"https://api.github.com/repos/ExpeditionRPG/expedition-app/issues/236","repository_url":"https://api.github.com/repos/ExpeditionRPG/expedition-app","labels_url":"https://api.github.com/repos/ExpeditionRPG/expedition-app/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/ExpeditionRPG/expedition-app/issues/236/comments","events_url":"https://api.github.com/repos/ExpeditionRPG/expedition-app/issues/236/events","html_url":"https://github.com/ExpeditionRPG/expedition-app/issues/236","id":211570684,"number":236,"title":"Page out _history store to local storage","user":{"login":"smartin015","id":607666,"avatar_url":"https://avatars2.githubusercontent.com/u/607666?v=4","gravatar_id":"","url":"https://api.github.com/users/smartin015","html_url":"https://github.com/smartin015","followers_url":"https://api.github.com/users/smartin015/followers","following_url":"https://api.github.com/users/smartin015/following{/other_user}","gists_url":"https://api.github.com/users/smartin015/gists{/gist_id}","starred_url":"https://api.github.com/users/smartin015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartin015/subscriptions","organizations_url":"https://api.github.com/users/smartin015/orgs","repos_url":"https://api.github.com/users/smartin015/repos","events_url":"https://api.github.com/users/smartin015/events{/privacy}","received_events_url":"https://api.github.com/users/smartin015/received_events","type":"User","site_admin":false},"labels":[{"id":599413049,"url":"https://api.github.com/repos/ExpeditionRPG/expedition-app/labels/high%20effort","name":"high effort","color":"fbca04","default":false},{"id":417683541,"url":"https://api.github.com/repos/ExpeditionRPG/expedition-app/labels/high%20impact","name":"high impact","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-03-03T01:34:45Z","updated_at":"2017-09-17T17:23:20Z","closed_at":"2017-09-17T17:23:20Z","author_association":"COLLABORATOR","body":"From user feedback: \r\n\r\n\"The app doesn't seem to be optimized for the latest iOS. As it gets progressively slower as we playedwith, greater and greater time delay between presses\"\r\n\r\nHistory.tsx file:\r\n\r\nPreferred solution is stringifying to local storage, with the caveat that we should monitor performance / see if reading from + writing to local storage (including stringifying / parsing) causes lag (could always do in batches / cache + do in the background)\r\n- also see if local storage behaves different between iOS / Android / Web\r\n- what's the data limit? how big is each history object? if we need to compress further, could collapse combat histories after you're out of combat (generally: collapse card template phases when you move to the next template)\r\n  - perhaps define as a `collapseHistory` function on each card template, that allows it to clean up history when it's done - default to returning an empty array, but templates can override\r\n- when you resume the app, if there is a state, ask if they'd like to resume or start a new game\r\n\r\n\r\n\r\n\r\n\r\nOld idea:\r\nlimit state to last (20-50). Would have to re-do how we handle end of quest / return to menu.... UNLESS, when trimming the state, we purposefully preserved pre-quest state as the first entry?"},"comment":{"url":"https://api.github.com/repos/ExpeditionRPG/expedition-app/issues/comments/330063878","html_url":"https://github.com/ExpeditionRPG/expedition-app/issues/236#issuecomment-330063878","issue_url":"https://api.github.com/repos/ExpeditionRPG/expedition-app/issues/236","id":330063878,"user":{"login":"toddmedema","id":775657,"avatar_url":"https://avatars2.githubusercontent.com/u/775657?v=4","gravatar_id":"","url":"https://api.github.com/users/toddmedema","html_url":"https://github.com/toddmedema","followers_url":"https://api.github.com/users/toddmedema/followers","following_url":"https://api.github.com/users/toddmedema/following{/other_user}","gists_url":"https://api.github.com/users/toddmedema/gists{/gist_id}","starred_url":"https://api.github.com/users/toddmedema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toddmedema/subscriptions","organizations_url":"https://api.github.com/users/toddmedema/orgs","repos_url":"https://api.github.com/users/toddmedema/repos","events_url":"https://api.github.com/users/toddmedema/events{/privacy}","received_events_url":"https://api.github.com/users/toddmedema/received_events","type":"User","site_admin":false},"created_at":"2017-09-17T17:23:20Z","updated_at":"2017-09-17T17:23:20Z","author_association":"COLLABORATOR","body":"Backlogging: large, and will be much easier once we figure out similar technologies for remote play + offiline"}}
{"actor":{"display_login":"toddmedema"}}