Knacksteem.org - Development of Profile Dashboard Page.

@creatrixity · 2018-11-06 15:46 · utopian-io

Repository

https://github.com/knacksteem/knacksteem.org

Pull Request

https://github.com/knacksteem/knacksteem.org/pull/39

Issue

https://github.com/knacksteem/knacksteem.org/issues/35

Task Request

https://steemit.com/knacksteem/@knowledges/development-task-request-help-build-knacksteem-front-end-800-steem-bounty

New Features

Profile Dashboard Page

Below is the new profile dashboard page with user data from the STEEM blockchain.

Profile dashboard shot

The user interface was created by using React components made available by the antd component library.

The most challenging aspect of this pull was correctly computing:

  • Voting power for a given user.
  • Vote worth for a given user.

With searches for API's that execute this task seamlessly proving abortive, a custom solution had to be engineered.

To solve these problems, data had was fetched from the following endpoints on the Steem blockchain exposed via https://api.steemjs.com.

  • /getRewardFund?name={entity}
  • /getDynamicGlobalProperties
  • /getCurrentMedianHistoryPrice
  • /getUsers?name=[{username}]

The computations were run on the client as a short gap solution although in the future with interests of concurrency at hand it would be best to move computations to the server.

https://github.com/knacksteem/knacksteem.org/pull/39/commits/4ec8f647572115ed1282cc928982b0914179df27

https://github.com/knacksteem/knacksteem.org/pull/39/commits/8d428fe056644e30faabd3277765ce3f98f89a17

https://github.com/knacksteem/knacksteem.org/pull/39/commits/a0aaa6f43cf937b52805fd9e05788c07b65f08f9

https://github.com/knacksteem/knacksteem.org/pull/39/commits/564a1497f38d40195fab9f246caba484bc576ab7

https://github.com/knacksteem/knacksteem.org/pull/39/commits/7e84a20787c08e0b2aa53f7da0ed7faefca6f59c

What's next?

The next pull for this task will add moderation features: ban/unban & add /remove moderator or supervisor capabilities.

Github Account

https://github.com/creatrixity

#utopian-io #development #knacksteem #programming #technology
Payout: 0.000 HBD
Votes: 33
More interactions (upvote, reblog, reply) coming soon.