Making 1UP rendering faster + other enhancements

in #utopian-io7 years ago (edited)

In this Pull Request, I changed the whole logic regarding the rendering of the Utopian-1UP page showing the list of contributions to be considered for an upvote.

In the original flow, all the information from the post was gathered before rendering the page. This was causing huge delays and some Timeouts and some moments. I changed to a different process that allows a faster rendering:

  • Static information about the post (author, permlink, etc.) are stored on BeforeSave, when the post suggestion is made. This allow to render the basic information instantly when the page is loaded.
  • Dynamic information (current payout, votes) are updated on the front-end once the page is loaded.
  • Every time the page is loaded, a Cloud function is launched to check if the post was already upvoted by either the trail or the Utopian bot.

Other changes :

Next steps:

  • Implementing 1UP voting rules as described by @flauwy in here
  • Adding the 1UP Button to Utopian via SteemPlus
  • Adding 1UP info to the button
  • Adding the button to Steemit and Busy

Hope you re as excited me as me regarding this new feature!

@stoodkev



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

1UP-Kayrex_tiny.png

You've got a 1UP!

We are building the first automated hivemind voting system with a new voting button where you can give 1UP's to up to ten new contributions each day and receive high curation rewards while following the trail.

1UP for better posts and high curation rewards.


1UP is neither organized nor endorsed by Utopian.io!

Speeding up load times is always a good thing :-) thanks

For sure =)

hmm you make very good job

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

i can learn easy ..

Hey @stoodkev I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.18
TRX 0.15
JST 0.028
BTC 63615.94
ETH 2475.04
USDT 1.00
SBD 2.54