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
New Features
Profile Dashboard Page
Below is the new profile dashboard page with user data from the STEEM blockchain.
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.
What's next?
The next pull for this task will add moderation features: ban/unban & add /remove moderator or supervisor capabilities.