https://github.com/mightypanda-x/steem-curator
https://steemcurator.com/
https://steem-curator.firebaseapp.com/
https://busy.org/@mightypanda/steem-curator-mvp-comments-curation
Commit 1 -Fork Join to reduce calls to action
Original code was making one action call for each bot which resulted in multiple updates to the state and hence multiple refresh to the page. With this update, action accepts a list of bots and then make calls in a loop. Using forkJoin and flatMap, all the response are clubbed and returned as one array of objects to the reducer, thus resulting in one update to the state and refresh of front-end.
Commit 2 and Commit 3 -Getting dynamic list of bots
These two commits deal with getting a list of all the available bid bots and then filtering the list to get all the bots that support comment up-voting. This list is then used to get current bids of these bots. Also updated the component code to un-subscribe from all the observables when controller is destroyed.
Commit 4 Getting data for all the bids using steem api and displaying currents votes and pending payout
This is the major commit of this update. It uses the list of all the comment posts that are waiting to be upvoted and then uses steem getContent api to get post information. To make single update to the state, function call was promisified and then combined so all the responses can be updated to the state once. This update to state was then combined with the bids object to return an object with all the bid and post data. This helps in easy curation as you can read the comment, see current votes and current pending payout before deciding to up-vote the content.
Old UI
New UI