Disable upvote functionality for unsigned user

in #utopian-io6 years ago (edited)

utopian.png

Expected behavior

A new user or unsigned user who visit utopian.io is able to see the list of contributions along with the details of upvotes, comments. When the click on upvote or comments icon it shouldn't respond or redirect them to login, since they are still a new or unsigned user. Once they sign in to utopian.io we should allow them to upvote, comment or any other action which is common/allowed.

Actual behavior

Currently, when a user is not signed-in they must not be allowed to upvote. Contributions can still be shown. As of now, when a user clicks on the upvote icon, a slider is shown for percentage voting from 0-100, the message below(which calculates the vote worth) says "Your vote will be worth NaN." which is not a good behavior. We should avoid showing the slider along with 'confirm' link and message, this is applicable only if the user is not signed in.

There is no point in showing slider and 'confirm' link, when they click on 'confirm' nothing happens, not a even error message which will inform the user that they must be signed in.

When the user clicks on 'comment' then the page gets redirected to the post page where they see the details of the post and comments but the option to add comment is disabled. In first place, we should not allow any functionality on click on comment icon. The page should not be redirected, unless the user has signed-in.

The screen recording of the issue can be found in below section.

How to reproduce

Steps to reproduce are simple, as follows,

  1. Visit https://utopian.io/ in incognito mode or signout(if already signed in)
  2. Click on 'upvote' icon in any of the contribution list. A vote slider will be shown(which is an expected behavior)
  3. Click on 'comment' icon, the page will be redirected to the post.(which is actually not required)
  • Browser: Chrome v63
  • Operating system: Windows 7

Recording Of The Bug

utopian-bug.gif

Potential Fixes

  1. Do not allow any functionality on click on 'upvote' & 'comment' icon if the user is not registered/unsigned.
  2. Display appropriate error message



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Upvoted on behalf of the dropahead Curation Team!

Thanks for following the rules.

DISCLAIMER: dropahead Curation Team does not necessarily share opinions expressed in this article, but find author's effort and/or contribution deserves better reward and visibility.

Help us giving you bigger upvotes by:

Upvote this comment!
Upvote the latest dropahead Daily Report!
Join the dropahead Curation Trail
to maximize your curation rewards!
Vote dropahead Witness with SteemConnect
Proxy vote dropahead Witness
with SteemConnect
Donate STEEM POWER to @dropahead
12.5SP, 25SP, 50SP, 100SP, 250SP, 500SP, 1000SP
Do the above and we'll have more STEEM POWER to give YOU bigger rewards next time!

News from dropahead: How to give back to the dropahead Project in 15 seconds or less

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by lifecruiser 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.

Thank you for the contribution. It has been approved.
That is unintended behaviour, Thanks for notifing us.
You can contact us on Discord.
[utopian-moderator]

Congratulations @lifecruiser! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Really Awesome ...Following you for more interesting topics ...

Coin Marketplace

STEEM 0.30
TRX 0.11
JST 0.033
BTC 64275.05
ETH 3147.49
USDT 1.00
SBD 4.29