create account

ULOG #7: Adding Dynamic Interesting Uloggers to Ulogs.org by eastmael

View this thread on: hive.blogpeakd.comecency.com
· @eastmael · (edited)
$47.07
ULOG #7: Adding Dynamic Interesting Uloggers to Ulogs.org
![image.png](https://ipfs.busy.org/ipfs/QmeGsPNwRMS36GTbK3TuiajAQtRSozQiFrNSTaXndp6sQc)

#### Repository
https://github.com/surpassinggoogle/UlogsV2

#### Task Request
https://steemit.com/utopian-io/@surpassinggoogle/task-request-kindly-add-a-rule-to-the-existing-algorithm-for-suggest-interesting-uloggers-on-ulogs-org

#### Pull Requests
https://github.com/surpassinggoogle/UlogsV2/pull/103
https://github.com/surpassinggoogle/UlogsV2/pull/104
https://github.com/surpassinggoogle/UlogsV2/pull/105
https://github.com/surpassinggoogle/UlogsV2/pull/108

#### Features

##### 1) Display accounts followed by uloggers as Interesting Uloggers
PR: https://github.com/surpassinggoogle/UlogsV2/pull/103

This initial PR swapped the `InterestingPeople` component that displays the static list of people from `src\client\helpers\constants.js` with the new component `InterestingUloggersWithAPI.js`.

Inside this new component, it calls the `get_following` SteemAPI to get the list of accounts @uloggers follow.
```
steemAPI
      .sendAsync('call', ['follow_api', 'get_following', ['uloggers', '', 'blog', 100]])
```

***

##### 2) Shuffle interesting uloggers on page load
PR: https://github.com/surpassinggoogle/UlogsV2/pull/104

After merging the PR above, I asked for Terry's feedback for its functionality. And basically he wanted the same function as the previous one which shuffled the list of accounts.

To accomplish this, I used `lodash`'s `.shuffle` to shuffle the array instead of them being alphabetically sorted.

##### 3) Re-added refresh button to re-acquire interesting uloggers
PR: https://github.com/surpassinggoogle/UlogsV2/pull/105

<div class="pull-left">

![image.png](https://ipfs.busy.org/ipfs/QmW2Jn3qcqFmqdBj93kpcLZUe3GYQmePHLjCTCer173LW6)

</div>

This is a PR that built on top of the first PR. As also mentioned in the previous PR, Terry wanted the same functionality as before, including the refresh button.

This PR re-added the refresh button and called the component's `getCertifiedUloggers()` function when the user clicks the refresh button.

***

##### 4) Added dynamic display of uloggers when user visits `/discover` route
PR: https://github.com/surpassinggoogle/UlogsV2/pull/108

<div class="pull-right">

![image.png](https://ipfs.busy.org/ipfs/QmeGsPNwRMS36GTbK3TuiajAQtRSozQiFrNSTaXndp6sQc)

</div>

This features required changes to `Discover.js`. I had to convert the constant `Discover` to a React class and create a new `DiscoverUloggers` component. Then inside `Discover.js`, I switched the `DiscoverContent` component with this new component.

`DiscoverUloggers.js` is basically an extracted `InterestingUloggersWithAPI.js` from the `SidebarContentBlock` container. 

***

#### Features in Action
![interesting uloggers.gif](https://ipfs.busy.org/ipfs/QmW2g59rjBKnExAwe6QeC8iNPdRAnS5R3xQD9hVAkVX9wA)

Accounts followed by @uloggers: https://ulogs.org/@uloggers/followed

#### Lesson Learned

Getting immediate feedback is one of the things I appreciate in agile development. That's the reason for these multiple PRs instead of one PR with a bulk of commits. As soon as I complete a working tiny increment to the product, I ship (merge) this to `develop` for Terry's testing. Terry then just creates a new PR to merge develop to master so that the codes are automatically deployed to the main ulogs website.

#### GitHub Account
https://github.com/eastmaels<br/><div class="pull-right promo"><sub><p>This post was made from https://ulogs.org</p></sub></div>
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 606 others
properties (23)
authoreastmael
permlinkulog-7-adding-dynamic-interesting-uloggers-to-ulogs-org
categoryulog
json_metadata{"community":"ulogs","app":"steemit/0.1","format":"markdown","tags":["ulog","surpassinggoogle","utopian-io","development","philippines"],"users":["uloggers"],"links":["https://github.com/surpassinggoogle/UlogsV2","https://steemit.com/utopian-io/@surpassinggoogle/task-request-kindly-add-a-rule-to-the-existing-algorithm-for-suggest-interesting-uloggers-on-ulogs-org","https://github.com/surpassinggoogle/UlogsV2/pull/103","https://github.com/surpassinggoogle/UlogsV2/pull/104","https://github.com/surpassinggoogle/UlogsV2/pull/105","https://github.com/surpassinggoogle/UlogsV2/pull/108","https://ulogs.org/@uloggers/followed","https://github.com/eastmaels","https://ulogs.org"],"image":["https://ipfs.busy.org/ipfs/QmeGsPNwRMS36GTbK3TuiajAQtRSozQiFrNSTaXndp6sQc","https://ipfs.busy.org/ipfs/QmW2Jn3qcqFmqdBj93kpcLZUe3GYQmePHLjCTCer173LW6","https://ipfs.busy.org/ipfs/QmW2g59rjBKnExAwe6QeC8iNPdRAnS5R3xQD9hVAkVX9wA"]}
created2018-09-08 03:58:03
last_update2018-09-10 12:11:15
depth0
children9
last_payout2018-09-15 03:58:03
cashout_time1969-12-31 23:59:59
total_payout_value35.766 HBD
curator_payout_value11.302 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,496
author_reputation78,967,407,130,763
root_title"ULOG #7: Adding Dynamic Interesting Uloggers to Ulogs.org"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,665,471
net_rshares45,393,495,630,116
author_curate_reward""
vote details (670)
@blazing ·
Wonderful it will help the community to interact more and connect more keep doing awesome work :D
πŸ‘  
properties (23)
authorblazing
permlinkre-eastmael-ulog-7-adding-dynamic-interesting-uloggers-to-ulogs-org-20180908t125742789z
categoryulog
json_metadata{"tags":["ulog"],"app":"steemit/0.1"}
created2018-09-08 12:57:45
last_update2018-09-08 12:57:45
depth1
children1
last_payout2018-09-15 12:57:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length97
author_reputation117,662,220,860,076
root_title"ULOG #7: Adding Dynamic Interesting Uloggers to Ulogs.org"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,697,225
net_rshares4,787,710,654
author_curate_reward""
vote details (1)
@eastmael ·
$0.03
Thank you. Yes, hopefully with this update, it will encourage fellow uloggers to connect with each other.
πŸ‘  
properties (23)
authoreastmael
permlinkre-blazing-re-eastmael-ulog-7-adding-dynamic-interesting-uloggers-to-ulogs-org-20180908t131451357z
categoryulog
json_metadata{"tags":["ulog"],"app":"steemit/0.1"}
created2018-09-08 13:14:54
last_update2018-09-08 13:14:54
depth2
children0
last_payout2018-09-15 13:14:54
cashout_time1969-12-31 23:59:59
total_payout_value0.019 HBD
curator_payout_value0.006 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length105
author_reputation78,967,407,130,763
root_title"ULOG #7: Adding Dynamic Interesting Uloggers to Ulogs.org"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,698,418
net_rshares25,043,976,407
author_curate_reward""
vote details (1)
@codingdefined ·
$11.36
Thank you for your contribution. A very well written post, I really like the way you approach a task request, by creating meaningful pull requests. Code commenting can be improved wherever there is a complex code written. 

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/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](https://review.utopian.io/result/3/2321213).

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , ,
properties (23)
authorcodingdefined
permlinkre-eastmael-ulog-7-adding-dynamic-interesting-uloggers-to-ulogs-org-20180910t033914815z
categoryulog
json_metadata{"tags":["ulog"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/3/2321213","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2018-09-10 03:39:18
last_update2018-09-10 03:39:18
depth1
children2
last_payout2018-09-17 03:39:18
cashout_time1969-12-31 23:59:59
total_payout_value8.576 HBD
curator_payout_value2.782 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length713
author_reputation534,272,792,694,295
root_title"ULOG #7: Adding Dynamic Interesting Uloggers to Ulogs.org"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,844,703
net_rshares10,668,094,210,456
author_curate_reward""
vote details (9)
@eastmael ·
$0.37
Thank you for the feedback codingdefined. Will add comments for complex codes on my next contributions.
πŸ‘  , ,
properties (23)
authoreastmael
permlinkre-codingdefined-re-eastmael-ulog-7-adding-dynamic-interesting-uloggers-to-ulogs-org-20180910t084835354z
categoryulog
json_metadata{"tags":["ulog"],"app":"steemit/0.1"}
created2018-09-10 08:48:39
last_update2018-09-10 08:48:39
depth2
children0
last_payout2018-09-17 08:48:39
cashout_time1969-12-31 23:59:59
total_payout_value0.277 HBD
curator_payout_value0.089 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length103
author_reputation78,967,407,130,763
root_title"ULOG #7: Adding Dynamic Interesting Uloggers to Ulogs.org"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,863,550
net_rshares343,705,695,713
author_curate_reward""
vote details (3)
@utopian-io ·
Thank you for your review, @codingdefined!

So far this week you've reviewed 7 contributions. Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-eastmael-ulog-7-adding-dynamic-interesting-uloggers-to-ulogs-org-20180910t033914815z-20180915t171800z
categoryulog
json_metadata"{"app": "beem/0.19.42"}"
created2018-09-15 17:18:03
last_update2018-09-15 17:18:03
depth2
children0
last_payout2018-09-22 17:18:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length116
author_reputation152,955,367,999,756
root_title"ULOG #7: Adding Dynamic Interesting Uloggers to Ulogs.org"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,380,405
net_rshares0
@steem-ua ·
$0.02
#### Hi @eastmael!

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](https://discord.gg/KpBNYGz)**
πŸ‘  
properties (23)
authorsteem-ua
permlinkre-ulog-7-adding-dynamic-interesting-uloggers-to-ulogs-org-20180910t044351z
categoryulog
json_metadata"{"app": "beem/0.19.54"}"
created2018-09-10 04:43:51
last_update2018-09-10 04:43:51
depth1
children0
last_payout2018-09-17 04:43:51
cashout_time1969-12-31 23:59:59
total_payout_value0.018 HBD
curator_payout_value0.005 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length287
author_reputation23,214,230,978,060
root_title"ULOG #7: Adding Dynamic Interesting Uloggers to Ulogs.org"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,848,607
net_rshares23,417,214,726
author_curate_reward""
vote details (1)
@tanuesh ·
$0.06
Amazing updates in @ulogs you guys are rocking.
πŸ‘  , ,
properties (23)
authortanuesh
permlinkre-eastmael-ulog-7-adding-dynamic-interesting-uloggers-to-ulogs-org-20180908t063541602z
categoryulog
json_metadata{"tags":["ulog"],"users":["ulogs"],"app":"steemit/0.1"}
created2018-09-08 06:35:42
last_update2018-09-08 06:35:42
depth1
children1
last_payout2018-09-15 06:35:42
cashout_time1969-12-31 23:59:59
total_payout_value0.046 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length47
author_reputation274,388,614,495
root_title"ULOG #7: Adding Dynamic Interesting Uloggers to Ulogs.org"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,674,205
net_rshares56,870,292,300
author_curate_reward""
vote details (3)
@eastmael ·
$0.12
Thank you.
πŸ‘  
properties (23)
authoreastmael
permlinkre-tanuesh-re-eastmael-ulog-7-adding-dynamic-interesting-uloggers-to-ulogs-org-20180908t111659384z
categoryulog
json_metadata{"tags":["ulog"],"app":"steemit/0.1"}
created2018-09-08 11:17:03
last_update2018-09-08 11:17:03
depth2
children0
last_payout2018-09-15 11:17:03
cashout_time1969-12-31 23:59:59
total_payout_value0.087 HBD
curator_payout_value0.028 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length10
author_reputation78,967,407,130,763
root_title"ULOG #7: Adding Dynamic Interesting Uloggers to Ulogs.org"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,690,632
net_rshares110,689,194,835
author_curate_reward""
vote details (1)
@utopian-io ·
$0.12
Hey, @eastmael!

**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](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
πŸ‘  
properties (23)
authorutopian-io
permlinkre-ulog-7-adding-dynamic-interesting-uloggers-to-ulogs-org-20180911t202047z
categoryulog
json_metadata"{"app": "beem/0.19.42"}"
created2018-09-11 20:20:48
last_update2018-09-11 20:20:48
depth1
children0
last_payout2018-09-18 20:20:48
cashout_time1969-12-31 23:59:59
total_payout_value0.093 HBD
curator_payout_value0.030 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length590
author_reputation152,955,367,999,756
root_title"ULOG #7: Adding Dynamic Interesting Uloggers to Ulogs.org"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,018,079
net_rshares121,517,485,634
author_curate_reward""
vote details (1)