Repository:
https://github.com/mightypanda-x/steem-curator
https://busy.org/@mightypanda/steem-curator-mvp-comments-curation
https://busy.org/@mightypanda/steem-curator-easies-curation-and-tech-debt
https://busy.org/@mightypanda/steem-curator-sorting-feature-and-utopian-posts
https://busy.org/@mightypanda/steem-curator---user-preference-settings
Utopian moderator comments provide for excellent curation opportunities but it can be tedious to go through each one of those and find out the ones with low payout and past 15 min. This new feature tries to solve for that problem by providing essential information like number of votes, total payout, age of comment and if the user has already voted on the comment.
Pull Request: https://github.com/mightypanda-x/steem-curator/commit/c841c0ed959bf8fae2ac19a90d4b0f61b1fdb63a
src/app/utopian-comments/utopian-comments.component.ts
Dispatches action to retrieve moderator comments. Attaches a subscriber to the comments observable and updates material table data source with the updated state value. Once we have received a list of the comments, we iterate over each comment and dispatch an event to get more information about each comment like pending payout and age.
We also retrieve saved user settings and update the url with preferred site.
src/app/utopian/effects/utopian.effects.ts
Effect handles side effects and intercepts action to get data from service. Based on the data received, it either invokes a success or failure call.
src/app/utopian/reducers/utopian.reducers.ts
Once the data is received for each comment, this code combs through the information we need and modifies the comment object with that.
If you have any feedback or would like to add some new features, please let me know in the comments below.
Github: https://github.com/mightypanda-x