Steemhunt front-end improvements - 8 May

Words
412
Reading
2 min
Listen
Play
8y

https://github.com/Steemhunt/web
Github Repository contributing to

Intro - What's Steemhunt?

Steemhunt is a community-generated leaderboard that rewards people for sharing and upvoting cool new products, run on top of the STEEM blockchain.

In Steemhunt, product hunters can feature up-to-date and cool products. The daily ranking system will be applied by the Steem upvoting system. The rank will be organized by the pending payout values on a daily basis. All actions will be synced with your Steemit blog and rewarded by STEEM tokens.

More information & How to use is available on our launching post.

Bug Fixes

No bug fixes on 3rd party libraries

New Features

1. Strip out control characters & Refactoring

Steem API refuses if content contains control characters, with "Missing posting authority" error. mvandeberg says it's probably not Steem blockchain itself refusing the content here, maybe it's steem.js. Anyway, we have no reason to accept control character on our content, so I just stripped out those invalid characters on our front-end side using this match:
text.trim().replace(/[\x00-\x09\x0B-\x0C\x0E-\x1F\x7F-\x9F]/g, '')

Commits:

2. Include app json_metadata in comments

Steemhunt didn't include any json_metadata on comments, so tools like this http://steemreports.com/sincerity-most-used-apps/ showed 0 comment count for Steemhunt. I added the following metadata on our comments to fix the issue:
app: 'steemhunt/1.0.0'

Commits:

3. Hide "edit button" if article's already paid out

Steemhunt showed edit button even though the post was already paid out after 7 days. I just added isEditable function to check whether the comment is already paid out or older than 7 days.

Commits:

4. Added hide / unhide feature for moderators

Moderators needed to be able to hide posts from the listings if the post doesn't meet our guidelines. I've done it manually on the console so far, and finally added the UI feature for them.

Commits:

5. Added verify feature for moderators

We have few moderators who checks the posts against our posting guidelines, and it's been waste of time when someone checks a post that is already checked by an another moderator. I added a "verified" column on posts, so moderators can see if posts already verified by others.

Commits:

6. Change routing path for author's page

When a user clicked a post link while they're viewing the author's posting list, the right side list changes back to the daily ranking board - which can be inconvenient. I just changed the author's path to with a prefix /author/ so the right panel can stay the same author's list while viewing the list.

Commits:

7. Minor design / UI improvements

Commits:

Screenshots

Steemhunt front-end improvements - 8 May | Ecency