1UP update : Adding Administrator and Moderator rights

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


Quick access to community view page for community owners, administrators and moderators

Once a user is logged in, a selector appears in which the user can create a community or logout.
If the user has a role in a community (owner, admin or mod), a link to the comunity page will be added in this select menu.

Of course, it looks ugly for now but I m really just working on the developement of the features for now, and we will have designer making look great later!

From this picture, we can see that I am the owner admin or mod of three different communities : SteemPlus, Test1 and Test.

Clicking on SteemPlus brings me to my SteemPlus page, on which an Edit button will appear only for users that have the necessary rights

Edit page

The edit page is pretty simple and allows the owner and administrators to change all the information about the community:

From there, they can also delete the community.

Moderators can also access this page but will only be able to add users to the whitelist or blacklist.

Future work

  • Adding the update and delete community routes
  • Adding the possibility to add more than one trail account
  • 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

Adding edit page

GitHub Account

https://github.com/stoodkev

Sort:  

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]

After further consideration, the last question about the code commenting is set as high instead of average.

Thank you for your review, @emrebeyler!

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

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!

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

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

Award for the number of comments 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

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

just ah perfect click!!

Coin Marketplace

STEEM 0.26
TRX 0.11
JST 0.033
BTC 63869.25
ETH 3055.04
USDT 1.00
SBD 3.88