{"action":"created","issue":{"url":"https://api.github.com/repos/zathras-crypto/mastercore/issues/25","labels_url":"https://api.github.com/repos/zathras-crypto/mastercore/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/zathras-crypto/mastercore/issues/25/comments","events_url":"https://api.github.com/repos/zathras-crypto/mastercore/issues/25/events","html_url":"https://github.com/zathras-crypto/mastercore/issues/25","id":57732158,"number":25,"title":"UI: Respond to state change signal in all tabs","user":{"login":"dexX7","id":5836089,"avatar_url":"https://avatars.githubusercontent.com/u/5836089?v=3","gravatar_id":"","url":"https://api.github.com/users/dexX7","html_url":"https://github.com/dexX7","followers_url":"https://api.github.com/users/dexX7/followers","following_url":"https://api.github.com/users/dexX7/following{/other_user}","gists_url":"https://api.github.com/users/dexX7/gists{/gist_id}","starred_url":"https://api.github.com/users/dexX7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dexX7/subscriptions","organizations_url":"https://api.github.com/users/dexX7/orgs","repos_url":"https://api.github.com/users/dexX7/repos","events_url":"https://api.github.com/users/dexX7/events{/privacy}","received_events_url":"https://api.github.com/users/dexX7/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zathras-crypto/mastercore/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-15T14:36:10Z","updated_at":"2015-02-16T03:03:45Z","closed_at":null,"body":"- [x] 18) Respond to state change signal in \"Overview\" tab\r\n- [ ] 19) Respond to state change signal in \"Balances\" tab\r\n- [ ] 20) Respond to state change signal in \"Send\" tab\r\n- [ ] 21) Respond to state change signal in \"Transactions\" tab\r\n- [x] 22) ~~Respond to state change signal in \"Toolbox\" tab~~ edit: it pulls, so no auto-update required.\r\n\r\nAs mentioned via email:\r\n\r\nI tested every tab and instant feedback is given everywhere, if the own client is the active party, wether it's balances or something else and this seems to be very solid.\r\n\r\nTesting with two clients was a bit more tricky, but the behavior is as follows:\r\n\r\nSimple Send:\r\n\r\n1. A sends some MSC to B\r\n2. B receives the Bitcoin transaction, but, while unconfirmed, has no information about the MSC part, nor a balance update or alike\r\n3. After a block is mined, all balances update and the transaction shows up in the Omni history\r\n\r\nSend to Owners:\r\n\r\n1. A sends to MSC owners\r\n2. B gets no feedback of any kind\r\n3. After a block is mined the overview tab updates, while the others need a manual refresh, e.g. by selecting a currency explicitly to force an update, which is not possible for the transaction history\r\n\r\nThis can create a very strange impression, when considering the situation **without** signals:\r\n\r\n- Block 105: A sends MSC to B, B sees a Bitcoin transaction, but no MSC\r\n- Block 106: The MSC shows up for B, A sends MSC to MSC owners\r\n- Block 107: B sees no update in the tx history, even though a block was mined\r\n- Block 108: B still sees no update in the tx history, until A sends some MSC to B - the STO transaction pops up, triggered by the incoming BTC, but the MSC send remains invisible at this point\r\n- Block 110: Finally B sees the STO transaction as well as the Simple Send"},"comment":{"url":"https://api.github.com/repos/zathras-crypto/mastercore/issues/comments/74454349","html_url":"https://github.com/zathras-crypto/mastercore/issues/25#issuecomment-74454349","issue_url":"https://api.github.com/repos/zathras-crypto/mastercore/issues/25","id":74454349,"user":{"login":"dexX7","id":5836089,"avatar_url":"https://avatars.githubusercontent.com/u/5836089?v=3","gravatar_id":"","url":"https://api.github.com/users/dexX7","html_url":"https://github.com/dexX7","followers_url":"https://api.github.com/users/dexX7/followers","following_url":"https://api.github.com/users/dexX7/following{/other_user}","gists_url":"https://api.github.com/users/dexX7/gists{/gist_id}","starred_url":"https://api.github.com/users/dexX7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dexX7/subscriptions","organizations_url":"https://api.github.com/users/dexX7/orgs","repos_url":"https://api.github.com/users/dexX7/repos","events_url":"https://api.github.com/users/dexX7/events{/privacy}","received_events_url":"https://api.github.com/users/dexX7/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T03:03:45Z","updated_at":"2015-02-16T03:03:45Z","body":"Yes, I ended up to subscribe to both models, to continue to handle outgoing, unconfrimed transactions as well. PR incoming in a few minutes."}}