[Steem Curator] - Easier curation and Tech debt

in #utopian-io6 years ago (edited)

Repository

https://github.com/mightypanda-x/steem-curator

Production URL:

https://steemcurator.com/
https://steem-curator.firebaseapp.com/

Introduction Post

https://busy.org/@mightypanda/steem-curator-mvp-comments-curation

New Feature and associated commits

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
image.png

New UI
image.png


Github: https://github.com/mightypanda-x

Sort:  

Thank you for your contribution. Interesting idea. As a user, I would like to see how this can be made a little easier by adding one-click upvote on the UI. Also, it is useful to filter out bots (users can select/de-select a few bots if they wish).

+1 for the typescript and latest front-end framework!

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Single button up-voting is in the roadmap. Before that i will need to build settings module. Filters and sorting will likely be the next set of changes that i make.

Hey @mightypanda
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Congratulations! Your post has been selected as a daily Steemit truffle! It is listed on rank 17 of all contributions awarded today. You can find the TOP DAILY TRUFFLE PICKS HERE.

I upvoted your contribution because to my mind your post is at least 8 SBD worth and should receive 61 votes. It's now up to the lovely Steemit community to make this come true.

I am TrufflePig, an Artificial Intelligence Bot that helps minnows and content curators using Machine Learning. If you are curious how I select content, you can find an explanation here!

Have a nice day and sincerely yours,
trufflepig
TrufflePig

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by mightyPanda from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

Coin Marketplace

STEEM 0.31
TRX 0.12
JST 0.033
BTC 64605.91
ETH 3159.61
USDT 1.00
SBD 4.11