create account

Added notification feature to STEEM ULTIMATE EDITOR! by tngflx

View this thread on: hive.blogpeakd.comecency.com
· @tngflx · (edited)
$51.98
Added notification feature to STEEM ULTIMATE EDITOR!
<h5>Repository</h5><br>
<a href="https://github.com/tngflx/Steem-UltimateEditor/commit/71675967e5be72a6d3f626b60d9f8ed3c929dcf7" rel="noopener" title="This link will take you away from steemit.com">https://github.com/tngflx/Steem-UltimateEditor</a><p></p>
<p></p><h2>What is Steem Ultimate Editor?</h2><br>
<center><img src="https://steemitimages.com/DQmb4o1dHzre7hpQFp2Rkz93bDgghiiBDWiHQzZd3XLPCWC/ultedtlogosmall.png" alt="ultedtlogosmall.png"></center><p></p>
<p>Steem Ultimate Editor poised to replace markdowns with simple buttons to create a post! Creating post shouldn't be so troublesome and requires a significant amount of time on trial and error. What if I tell you, there's a tool that allows you to just click buttons in order to perform some basic and even advance customization to the style of your post? Let's have a look what Steem Ultimate Editor brought to the table this time after an improvement over the last version. Which you can check out here.</p>
<p></p><h2>Objectives</h2><p></p>
<ul>
<li>Allow minnows or newcomers to have a more friendly environment to create posts</li>
<li>Significantly reduce the amount of time taken to create a post</li>
<li>Beautify your post within clicks!</li>
<li>Promoting high quality posts with future features such as source checking</li>
</ul>
<h2>Feature for the day : Notifications!</h2>
Don't you want to have the latest updates happening on STEEM blockchain while you're working on your amazing post? Don't you love everything just working in one place? Welcome to STEEM ULTIMATE EDITOR! This is the place where you can bring out the most productive side out of yourself! Notification is situated on the left side of window. It will even play notification sound when new message received. Let's have a look!

<iframe src="https://player.vimeo.com/video/277318392" width="640" height="296" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

For demo purposes, I streamed the whole blockchain for my notification. (Which is a lot of notifications, I know..) This is to show each case such as mention, money transfer, comments, upvotes, downvotes are all covered in notifications.

## How I implemented it
```
switch (type) {
            case ('reply'):

                $(templates['src/js/templates/not-reply.hbs']({
                    link: link + `/@${currentAuthUser}/${parent_permlink}/#@${author}/${permlink}`,
                    style: style,
                    avatar: backgroundImage,
                    author: author,
                    timestamp: time,
                    body: `Commented on your post <b>${permlink}</b>`,
                    reply: true
                })).prependTo('.scroller');
                break;

            case ('mention'):
                const { is_root_post } = notification[index];
                //const linkm = `/@${author}/${permlink}`;
        
                $(templates['src/js/templates/not-reply.hbs']({
                    link: link + `/@${author}/${permlink}`,
                    style: style,
                    avatar: backgroundImage,
                    author: author,
                    timestamp: time,
                    body: `Mentioned you in the post <b>${permlink}</b\>`,
                    mention: true
                })).prependTo('.scroller');
                break;
```
As you can see, the key script here filter the feeds from steem blockchain and categorize it accordingly. Then handlebars is used to render the notification box.

Audio is played each time a new notification arrived as you can hear in the video. If you notice there's other small button in the notification list, stay tune for the next post to find out what's it for! (Which I'm pretty sure many have guess it :) )

## Technology Stack

Jquery, HTML, Handlebars, Javascript
## Roadmap

- Emojis (checked)
- New banner (checked)
- Chat integration?
- Notifications(checked)
- Find and replace (checked)
-You name the features :)

## How to contribute?

-Contact me personally on discord or comment below!
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authortngflx
permlinkadded-notification-feature-to-steem-ultimate-editor
categoryutopian-io
json_metadata{"tags":["utopian-io","development","steemdev","steemit"],"image":["https://steemitimages.com/DQmb4o1dHzre7hpQFp2Rkz93bDgghiiBDWiHQzZd3XLPCWC/ultedtlogosmall.png"],"links":["https://github.com/tngflx/Steem-UltimateEditor/commit/71675967e5be72a6d3f626b60d9f8ed3c929dcf7"],"app":"steemit/0.1","format":"markdown"}
created2018-06-27 17:09:48
last_update2018-07-01 19:32:30
depth0
children4
last_payout2018-07-04 17:09:48
cashout_time1969-12-31 23:59:59
total_payout_value39.503 HBD
curator_payout_value12.479 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,056
author_reputation17,396,455,988,713
root_title"Added notification feature to STEEM ULTIMATE EDITOR!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,510,171
net_rshares20,917,004,748,096
author_curate_reward""
vote details (41)
@codingdefined ·
Thank you for your contribution.

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/2332223).

---- 
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 (22)
authorcodingdefined
permlinkre-tngflx-added-notification-feature-to-steem-ultimate-editor-20180702t081810447z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/3/2332223","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2018-07-02 08:18:09
last_update2018-07-02 08:18:09
depth1
children0
last_payout2018-07-09 08:18:09
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_length523
author_reputation540,317,952,941,009
root_title"Added notification feature to STEEM ULTIMATE EDITOR!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,101,757
net_rshares0
@reconstitution ·
Oh, hey hey hey!
Could we have like a different set of notification buttons?

Like one notification for upvotes received,
one for comments received,
etc.

It's hard to look at notifications, if all individual upvotes pop-up into the same notification feed as comments, etc.! :P
properties (22)
authorreconstitution
permlinkre-tngflx-added-notification-feature-to-steem-ultimate-editor-20180628t002221041z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"busy","app":"busy/2.4.0"}
created2018-06-28 00:22:21
last_update2018-06-28 00:22:21
depth1
children1
last_payout2018-07-05 00:22:21
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_length277
author_reputation4,363,114,351,343
root_title"Added notification feature to STEEM ULTIMATE EDITOR!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,547,836
net_rshares0
@tngflx ·
Well if you noticed the top notification bar, theres some word :) that feature already considered. Just not yet fully implemented.
properties (22)
authortngflx
permlinkre-reconstitution-re-tngflx-added-notification-feature-to-steem-ultimate-editor-20180628t010133904z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-06-28 01:01:36
last_update2018-06-28 01:01:36
depth2
children0
last_payout2018-07-05 01:01:36
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_length130
author_reputation17,396,455,988,713
root_title"Added notification feature to STEEM ULTIMATE EDITOR!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,550,789
net_rshares0
@utopian-io ·
Hey @tngflx
**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

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

<a href='https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlinkre-added-notification-feature-to-steem-ultimate-editor-20180702t082508z
categoryutopian-io
json_metadata"{"app": "beem/0.19.29"}"
created2018-07-02 08:25:09
last_update2018-07-02 08:25:09
depth1
children0
last_payout2018-07-09 08:25:09
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_length298
author_reputation152,955,367,999,756
root_title"Added notification feature to STEEM ULTIMATE EDITOR!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,102,538
net_rshares0