{"action":"created","issue":{"url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues/88","repository_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange","labels_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues/88/comments","events_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues/88/events","html_url":"https://github.com/ClaytonPassmore/ProjectOrange/pull/88","id":213871988,"number":88,"title":"Create deck + sync data structure","user":{"login":"lonebutterfish","id":6018963,"avatar_url":"https://avatars3.githubusercontent.com/u/6018963?v=3","gravatar_id":"","url":"https://api.github.com/users/lonebutterfish","html_url":"https://github.com/lonebutterfish","followers_url":"https://api.github.com/users/lonebutterfish/followers","following_url":"https://api.github.com/users/lonebutterfish/following{/other_user}","gists_url":"https://api.github.com/users/lonebutterfish/gists{/gist_id}","starred_url":"https://api.github.com/users/lonebutterfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonebutterfish/subscriptions","organizations_url":"https://api.github.com/users/lonebutterfish/orgs","repos_url":"https://api.github.com/users/lonebutterfish/repos","events_url":"https://api.github.com/users/lonebutterfish/events{/privacy}","received_events_url":"https://api.github.com/users/lonebutterfish/received_events","type":"User","site_admin":false},"labels":[{"id":547448813,"url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/labels/Client","name":"Client","color":"d4c5f9","default":false},{"id":550982002,"url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/labels/Do%20Not%20Merge","name":"Do Not Merge","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-03-13T19:26:26Z","updated_at":"2017-03-13T21:05:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/pulls/88","html_url":"https://github.com/ClaytonPassmore/ProjectOrange/pull/88","diff_url":"https://github.com/ClaytonPassmore/ProjectOrange/pull/88.diff","patch_url":"https://github.com/ClaytonPassmore/ProjectOrange/pull/88.patch"},"body":"# WIP\r\n\r\nAdded a new object to library store. `localChanges` This object stores an array of objects of changes to a deck. I think it will be easiest to show how it works through these state changes:\r\n![image](https://cloud.githubusercontent.com/assets/6018963/23871568/5a5e99a2-0801-11e7-8078-6a4baca8b4e3.png)\r\n\r\n\r\nNote that when a deck is created, not all the metadata is available because it is created by the server. After the sync for a deck happens the metadata will be updated. Not sure if not having this metadata will be a problem for any other features.\r\n\r\nSplit `LibraryHome.js` Into 2 different files, `LibraryHome.ios.js` and `LibraryHome.android.js`\r\n\r\nAlso added support for `DECK_DELETED` and `DECK_EDITED` actions\r\n\r\n## New packages:\r\n- `react-native-device-info` - get device info (needed for some api calls)\r\n- `react-native-prompt-android` - prompt for android that can enter text. Only needed for android because ios has `AlertIOS`. The only way I could find how to change the color of the buttons was to set styling in `styles.xml` in the android project\r\n- `uuid` - needed to create a temp uuid for locally created decks(will pronably be needed for cards aswell). Once the deck is synced with server, the server uuid will be used instead\r\n\r\n\r\n## Remaining:\r\n- For some reason the store persisting isn't working anymore... I have no idea how i broke it\r\n- Still need a mechanism for sync. Right now the data structures are all in place, we just need somewhere that will handle when the sync will happen\r\n- Need to check if new deck name is empty, and tell user it isnt allowed\r\n- test ios\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6018963/23871259/01d9dcb6-0800-11e7-93cb-4dfec8234aab.png)"},"comment":{"url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues/comments/286243433","html_url":"https://github.com/ClaytonPassmore/ProjectOrange/pull/88#issuecomment-286243433","issue_url":"https://api.github.com/repos/ClaytonPassmore/ProjectOrange/issues/88","id":286243433,"user":{"login":"ClaytonPassmore","id":6856391,"avatar_url":"https://avatars2.githubusercontent.com/u/6856391?v=3","gravatar_id":"","url":"https://api.github.com/users/ClaytonPassmore","html_url":"https://github.com/ClaytonPassmore","followers_url":"https://api.github.com/users/ClaytonPassmore/followers","following_url":"https://api.github.com/users/ClaytonPassmore/following{/other_user}","gists_url":"https://api.github.com/users/ClaytonPassmore/gists{/gist_id}","starred_url":"https://api.github.com/users/ClaytonPassmore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClaytonPassmore/subscriptions","organizations_url":"https://api.github.com/users/ClaytonPassmore/orgs","repos_url":"https://api.github.com/users/ClaytonPassmore/repos","events_url":"https://api.github.com/users/ClaytonPassmore/events{/privacy}","received_events_url":"https://api.github.com/users/ClaytonPassmore/received_events","type":"User","site_admin":false},"created_at":"2017-03-13T21:05:16Z","updated_at":"2017-03-13T21:05:16Z","body":"@lonebutterfish ah ok sorry, I misunderstood :stuck_out_tongue_closed_eyes: "}}
{"actor":{"display_login":"ClaytonPassmore"}}