1UP : Trail tail and other trailing accounts

in #utopian-io6 years ago (edited)

Repository

https://github.com/therealFlauwy/1UP

Following this post from @flauwy, I've been tasked to start the creation of the new 1UP.
As a reminder, @utopian-1UP was an Utopian bot front-runner in which members of the community would decide which are the best posts to vote for. the @utopian-1up would then vote for the best post every 2.4 hours, followed by hundreds of curators in the trail.

New Features


Distinction between the different types of trail

If you have followed my work on 1UP, you saw that I ve already coded a route that helps administrators generating a random link that can be used to set the community whale on the trail.

In my idea, the community started a trail, followed by all the users in the trail, after what the whale would end up the voting round. What I didn't understand correctly is that the "normal" user accounts of the trail were to be added directly on 1UP website rather than other service (such as SteemAuto).

Therefore I had to change a big portion of the code and add some new routes in order to distinct these two different types of trail, as shown in this graph:

When the trail tail (the community whale) reaches 100% Voting Power a vote will be cast in this manner :

  • users will upvote sorted by increasing vote value
  • tail trail will upvote
  • 1UP will upvote

In order to make this possible, I needed to get the offline token from the users. But since some don t like to give this permission, I didn't include it in the normal login. Users can now follow a trail directly from a community view page :

Once again, I know it s ugly, but the css has not been implemented yet .

If they never gave the offline permission yet, they will be redirected to SteemConnect, if they did, they will join the trail instantly.

I have also moved the functions to an utils.js file.

Future work

  • Fetch the posts the post corresponding to the community criteria
  • Display these posts and allow 1UP votes on it
  • Vote on the best post of the period

Live Demo

As a demonstration speaks more than lots of words, I ve put back online the old Utopian1UP website. You can try by yourself and create a community and link a trail to it for testing purposes.
No votes will be casted do not worry, but it's an offline token so, for safety reasons, I would recommend using a test account.

Live Demo

Pull Request

Trail tail and other trailing accounts

GitHub Account

https://github.com/stoodkev


Meet me at SteemFest 2018 in Kraków

Sort:  

Thank you for your contribution.

  1. you can simply include the bootstrap css to make button/text look a lot nicer than the plain ones.
  2. You could use ES6 syntax e.g. [a[i], a[j]] = [a[j], a[i]]; to swap two elements e.g. in your Array Shuffle function.

PS: I personally don't like others to store my offline tokens unless I know there are stronger security preventions.

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]

Thank you for your review, @justyy!

So far this week you've reviewed 1 contributions. Keep up the good work!

better idea

Hi @stoodkev!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Thanks a lot for being such good witness, I updated my vote, I do that every 2-3 months and I'm still voting you as a witness and I included you in this post to introduce you to a very good steemian : One of the best steemians

Hey, @stoodkev!

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

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

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

Vote for Utopian Witness!

Congratulations @stoodkev! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

Award for the total payout received

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

SteemitBoard - Witness Update

You can upvote this notification to help all Steemit users. Learn why here!

Nice one, good to see you tackled that already. I have missed the post so I put you in my Steemify app so that does not happen again.

I have tested the formular and it works. The process is pretty clear I think. There is a little bug though, when I click on the username dropdown it immediately selects the top link. I can avoid it by not releasing my mouse and scroll over the other links and then release, that's why I was able to test it.

Coin Marketplace

STEEM 0.27
TRX 0.13
JST 0.032
BTC 62875.98
ETH 2948.16
USDT 1.00
SBD 3.55