create account

KURE Community Curation App, Fundition Update - Deleting Posts and Comments, and Some Eye Candy for Steem Post Actions by krnel

View this thread on: hive.blogpeakd.comecency.com
· @krnel · (edited)
$31.62
KURE Community Curation App, Fundition Update - Deleting Posts and Comments, and Some Eye Candy for Steem Post Actions
Two additional tasks have been completed: deleting posts and comments. Making mistakes happens. When it comes to posting content, we can edit the content. But what if we prefer to simply remove our content, rather than leave it up or edit it out? Being able to delete content can come in handy.

On Steem, if your post or content doesn't have any comment reply on it, nor any upvotes, you can delete it from the active content on the blockchain. You can't delete it from the history of blocks in the past, but you can get rid of it for the future active content on your blog or on a post.

Enabling this feature have utility and is important. We might not use it often, but it can be handy and save us from ourselves in making poor decisions in posting something we regret. Rather than edit a post and have a blank post or some message about a deleted post, you can delete it, if you realize your mistake before any votes or comments are made.

<center><a href="https://thekure.net/"><img src="https://i.imgur.com/7XVJN9x.png" /></a></center>

---
# Completed Tasks

- ## Deleting posts
- ## Deleting comments
- ## Eye Candy on Post Actions

---
# Github commits for work done
- https://github.com/KrNel/kure/commit/4524a3066e645bf372e738e6700e4d06a0c00380
- https://github.com/KrNel/kure/commit/aa3303ed6f5d0f693d84ebec1d71fb24ba3f1db1
- https://github.com/KrNel/kure/commit/da23fd05581b1877936651bfb6632020734cc5a6
- https://github.com/KrNel/kure/commit/a469d11e4dd1a41ce4be1ff67252b01df0241312
- https://github.com/KrNel/kure/commit/94192dd1a513188af2c508bd956f8e5a72ec700b
- https://github.com/KrNel/kure/commit/55eaafb523b16eb7133d5104652293a9dadfea74

---
# Video demonstration

https://vimeo.com/332752885

---
# Deleting posts

To delete a post, open the post in question, and if it's possible, you will see an X icon button at the bottom right of content of the post.

<center><img src="https://i.imgur.com/dvErskV.png" /></center>

If you hover over the icon, it will say 'Del' and turn red. It will also display a title of "Delete post".

<center><img src="https://i.imgur.com/FoIrkuo.png" /></center>

When you click the button, a confirmation popup appears to make sure you really want to delete the post.

<center><img src="https://i.imgur.com/1tJ81gO.png" /></center>

After confirming, the post will get dimmed and a loading spinner will appear while the post deletion is being processed into the Steem blockchain.

<center><img src="https://i.imgur.com/JArQjTJ.png" /></center>

Afterwards, you will be redirected to your main "blog" page and will see the post is gone.

The post deleting was much more simple than the comment deletion.

In order to see the delete option, a check is made for the active votes and the comment count. If there are none of both, then the delete option is possible. The author and permlink are sent in the onClick for the button.

<center><img src="https://i.imgur.com/Db9EGKJ.png" /></center>

In the Redux action creator, the author and permlink are used to delete the post. Once completed, the user is redirected to their own blog page to see the post gone.

<center><img src="https://i.imgur.com/CXGz6Sx.png" /></center>

---
# Deleting comments

To delete a comment, view the comment in question on the post, and if it's possible, you will see a 'Delete' link at the bottom of the comment.

<center><img src="https://i.imgur.com/4KkiPp3.png" /></center>

When you click the 'Delete' link, a confirmation popup appears to make sure you really want to delete the post.

<center><img src="https://i.imgur.com/KwuUaGh.png" /></center>

After confirming, wait about 3 seconds and the comment will disappear.

Getting the comment deleted starts off in the same way as the post, but gets more complex to remove it from the view in the app without a page refresh or refetching all the comments again. Refetching the comment data would have been quicker, and maybe it's less resource demanding as well.

The author and permlink are sent to the Redux action creator to delete.

<center><img src="https://i.imgur.com/9SRZdR7.png" /></center>

As you can see, there is more code here. First, the comment is deleted from Steem. Then, if successful, if the comment is new and was just added and wasn't part of the original page load, a quick check is made in the `commentPayload` object and the comment is filtered out.

If the comment isn't there, then a look is made in the comments that were part of the page loading to look into the nested comment and recursively delete them.

<center><img src="https://i.imgur.com/JqovUoN.png" /></center>

This brings us to the recursive function, where all the replies are dug into to try to find the comment we want to delete. If found, it's filtered out.

<center><img src="https://i.imgur.com/t07aACn.png" /></center>

---
- # Eye Candy on Post Actions

There has been some eye candy animated efect added for the post actions, which include deleting a post.

Edit a post will show an edit icon, and hovering over it will animate the Edit text.

Delete a post will show an X icon, and hovering over it will animate the Del text.

Adding a post to a community will show a + icon, and hovering over it will animate the Add text.

<center><img src="https://i.imgur.com/dvErskV.png" /></center>
<center><img src="https://i.imgur.com/wBDloqG.png" /></center>
<center><img src="https://i.imgur.com/FoIrkuo.png" /></center>
<center><img src="https://i.imgur.com/66ZqtYr.png" /></center>

---
# Ongoing Tasks

Look forward to these tasks and others I come up with being worked on next :)

- Adding sort functions to the Communities and Kurated pages
- Liking Kurated post submissions in communities
- Rating Kurated post submissions in communities
- Tweak comments (limit to 20, show more option, max nested depth)
- Implement PRPL Pattern for better performance
- Viewing comments in their own page view
- Follows, Followers and Post Count on user pages
- Dark skin for the site
- Selecting posts to vote at a later time
- Grid and List layout for Steem, Blog, and Feed pages
- Improve Blog page, with rep, description and location
- Add a settings page
- Add nsfw filtering
- Add progressive image loading
- Payouts shown in different ways
- Unvote a post
- Upvote percentage
- Flag a post

---
# Additional Tasks

I am adding these tasks to indicate the upcoming work I will be engaging in at some point and in no particular order:

- ### Transferring ownership of a community
__Description__: Transfer a community you own to someone else for them to own, removing you from being the owner of the community.
**Estimated Cost of Development**: 2 hours @ $30/h = $60

---
<sub>If you appreciate and value the content, please consider: **Upvoting**, **Sharing** or **Reblogging** below.</sub>
<sub>[![Follow](http://i.imgur.com/aTa4vR8.png)](https://steemit.com/@krnel) me for more content to come!</sub>

---
### Like what I do? Then consider giving me a vote on the Witness page :)  Thanks!

<center><a href="https://steemit.com/~witnesses"><img src="https://steemitimages.com/0x0/https://i.imgur.com/R81YLbN.jpg" /></a></center>

<sub>My goal is to *share knowledge, truth and moral understanding* in order to help change the world for the better. **If you appreciate and value what I do, please consider supporting me as a [Steem Witness](https://steemit.com/witness-category/@krnel/krnel-s-declaration-of-witness) by voting for me at the [bottom of the Witness page](https://steemit.com/~witnesses).**</sub>

---
***Posted from [KURE](https://thekure.net)***
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 369 others
properties (23)
authorkrnel
permlinkkure-community-curation-app-fundition-update-deleting-posts-and-comments-and-some-eye-candy-for-steem-post-actions
categorykure
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["kure","steem","steemdev","fundition-pbhe15b2k","busy"],"users":["krnel"],"links":["https://thekure.net/","https://github.com/KrNel/kure/commit/4524a3066e645bf372e738e6700e4d06a0c00380","https://github.com/KrNel/kure/commit/aa3303ed6f5d0f693d84ebec1d71fb24ba3f1db1","https://github.com/KrNel/kure/commit/da23fd05581b1877936651bfb6632020734cc5a6","https://github.com/KrNel/kure/commit/a469d11e4dd1a41ce4be1ff67252b01df0241312","https://github.com/KrNel/kure/commit/94192dd1a513188af2c508bd956f8e5a72ec700b","https://github.com/KrNel/kure/commit/55eaafb523b16eb7133d5104652293a9dadfea74","https://steemit.com/@krnel","https://steemit.com/~witnesses","https://steemit.com/witness-category/@krnel/krnel-s-declaration-of-witness"],"image":["https://i.imgur.com/7XVJN9x.png","https://i.imgur.com/dvErskV.png","https://i.imgur.com/FoIrkuo.png","https://i.imgur.com/1tJ81gO.png","https://i.imgur.com/JArQjTJ.png","https://i.imgur.com/Db9EGKJ.png","https://i.imgur.com/CXGz6Sx.png","https://i.imgur.com/4KkiPp3.png","https://i.imgur.com/KwuUaGh.png","https://i.imgur.com/9SRZdR7.png","https://i.imgur.com/JqovUoN.png","https://i.imgur.com/t07aACn.png","https://i.imgur.com/dvErskV.png","https://i.imgur.com/wBDloqG.png","https://i.imgur.com/FoIrkuo.png","https://i.imgur.com/66ZqtYr.png","http://i.imgur.com/aTa4vR8.png","https://steemitimages.com/0x0/https://i.imgur.com/R81YLbN.jpg"]}
created2019-04-23 14:35:09
last_update2019-04-28 13:44:27
depth0
children4
last_payout2019-04-30 14:35:09
cashout_time1969-12-31 23:59:59
total_payout_value23.918 HBD
curator_payout_value7.704 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length7,536
author_reputation1,343,547,270,297,082
root_title"KURE Community Curation App, Fundition Update - Deleting Posts and Comments, and Some Eye Candy for Steem Post Actions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id83,620,408
net_rshares63,062,147,294,691
author_curate_reward""
vote details (433)
@steem-ua ·
#### Hi @krnel!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your **UA** account score is currently 7.044 which ranks you at **#70** across all Steem accounts.
Your rank has dropped 3 places in the last three days (old rank 67).

In our last Algorithmic Curation Round, consisting of 237 contributions, your post is ranked at **#39**.
##### Evaluation of your UA score:

* Your follower network is great!
* The readers appreciate your great work!
* Good user engagement!


**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
authorsteem-ua
permlinkre-kure-community-curation-app-fundition-update-deleting-posts-and-comments-and-some-eye-candy-for-steem-post-actions-20190426t000004z
categorykure
json_metadata"{"app": "beem/0.20.19"}"
created2019-04-26 00:00:06
last_update2019-04-26 00:00:06
depth1
children0
last_payout2019-05-03 00:00:06
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_length612
author_reputation23,214,230,978,060
root_title"KURE Community Curation App, Fundition Update - Deleting Posts and Comments, and Some Eye Candy for Steem Post Actions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id83,763,290
net_rshares0
@valued-customer · (edited)
$0.06
Looking great!  Being able to delete comments and posts is pretty important to me, as I sometimes make a post or comment having missed some important fact that invalidates the entire premise of the content.  At that point, editing makes no sense, and deletion is the only responsible action available.

Looking very much forward to when the ability to meter upvotes is available, as that is something I have used to maintain some degree of VP.  I almost always upvote at 25%, as this decreases the burden of attention necessary for me to support content and allows my diminishing supply of intellectual capacity to be dedicated to purposes of greater import.  I think I will be able to take KURE for a drive, even if the dark theme isn't available (which is important to me in my current circumstances of declining vision) and see if it's ready to become my daily driver.

That's what my interest in your project has as a goal BTW.  I want to be able to support communities natively in my participation on Steem, and it looks like KURE is intended to be exactly the right vehicle to do that.

Thanks!
👍  
properties (23)
authorvalued-customer
permlinkre-krnel-kure-community-curation-app-fundition-update-deleting-posts-and-comments-and-some-eye-candy-for-steem-post-actions-20190423t173033274z
categorykure
json_metadata{"tags":["kure"],"app":"steempeak/1.9.8"}
created2019-04-23 17:30:45
last_update2019-04-23 17:32:21
depth1
children2
last_payout2019-04-30 17:30:45
cashout_time1969-12-31 23:59:59
total_payout_value0.048 HBD
curator_payout_value0.016 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,100
author_reputation361,561,972,642,309
root_title"KURE Community Curation App, Fundition Update - Deleting Posts and Comments, and Some Eye Candy for Steem Post Actions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id83,629,713
net_rshares129,498,745,358
author_curate_reward""
vote details (1)
@krnel ·
Well, the vote slider is available, so you can vote at 1% if you want ;)

Thanks for the review and liking the delete option ;)

Let me know if there is something or what you want to see in the app. Preferably, once you start using it to know what is or isn't there :P
👍  
properties (23)
authorkrnel
permlinkre-valued-customer-re-krnel-kure-community-curation-app-fundition-update-deleting-posts-and-comments-and-some-eye-candy-for-steem-post-actions-20190423t180705240z
categorykure
json_metadata{"tags":["kure"],"app":"steemit/0.1"}
created2019-04-23 18:07:06
last_update2019-04-23 18:07:06
depth2
children1
last_payout2019-04-30 18:07:06
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_length268
author_reputation1,343,547,270,297,082
root_title"KURE Community Curation App, Fundition Update - Deleting Posts and Comments, and Some Eye Candy for Steem Post Actions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id83,631,575
net_rshares9,882,664,268
author_curate_reward""
vote details (1)
@valued-customer ·
A wallet.  I know I'm gonna want that.  The Steempeak wallet is all I need presently (I'm not a coin investor, but have some DRAMA I like to admire from time to time =p).  More I won't know until I can tear myself away from Steempeak long enough.

Thanks for all you do!
properties (22)
authorvalued-customer
permlinkre-krnel-re-valued-customer-re-krnel-kure-community-curation-app-fundition-update-deleting-posts-and-comments-and-some-eye-candy-for-steem-post-actions-20190424t083346792z
categorykure
json_metadata{"tags":["kure"],"app":"steempeak/1.9.8"}
created2019-04-24 08:34:00
last_update2019-04-24 08:34:00
depth3
children0
last_payout2019-05-01 08:34:00
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_length270
author_reputation361,561,972,642,309
root_title"KURE Community Curation App, Fundition Update - Deleting Posts and Comments, and Some Eye Candy for Steem Post Actions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id83,666,343
net_rshares0