Steemblr development update 08 - Technical improvement of post creator

in #utopian-io6 years ago (edited)

Steemblr is open source microblogging platform powered by steem blockchain . It allows user to post and explore content which is smaller than a traditional blog.

You can check developer version here: https://steemblr.com

Repository

https://github.com/snwolak/steemblr

New Features

Modularity of post creator

Complete rework of how components related to post creating works. Before this update there was too much repeated code, for example to change text editor I would have to change it in every component which create post.

After the rework there is only one component with editor, and title input etc. Some of the part of the interface are now controled by redux. Also to make everything work together, content made in post creator is dispatched to store.

https://github.com/snwolak/steemblr/pull/2/commits/da7ebb0e3d193a4a992b58434451e4da2679fa5b

https://github.com/snwolak/steemblr/pull/2/commits/f291028f6d6130e2744f3cd960381ba055f2ca83

https://github.com/snwolak/steemblr/pull/2/commits/32a7b760e9de5e21a2c10179d72d00e0ffa011ac

https://github.com/snwolak/steemblr/pull/2/commits/d0051389343500428fe1b76ec6973da8cb00451a

https://github.com/snwolak/steemblr/pull/2/commits/3f4848757c5cb1e446f149e2df87db8c96578b78

https://github.com/snwolak/steemblr/pull/2/commits/14aec1750d48f2ec3e265bc22cd0a52d1eb2b809

https://github.com/snwolak/steemblr/pull/2/commits/be4bea6589fd005ab4541be832f23a0bc7856d1c

Post validation

After noticing some of the users publishing empty posts I have introduced post validation, which will cover some of the scenarios:

- Trying to publish post without title,

- After canceling photo, audio or video it would be possible to post without it, validation fixes that problem.

Post is validated after user is trying to broadcast it to steem blockchain, if validation fails error is dispatched to new error component and post sending is stopped.

https://github.com/snwolak/steemblr/pull/2/commits/3f4848757c5cb1e446f149e2df87db8c96578b78#diff-497fb91b85490b882b6642a4e056408a

https://github.com/snwolak/steemblr/pull/2/commits/ed75ec5060ac0ffcd7b7c815d0291fa368084e7d

Error indication

New component to show different errors in post creation and sending proccess.

It shows messages from post validation and broadcasting function, for example when users try to send too many posts at once it will show error message to wait 5 minutes before posting new content.

To make it work main component responsible for showing post creator is connected to redux store, and every error which occurs dispatches message and switches error indication to boolean value to show itself in post creator.

https://github.com/snwolak/steemblr/pull/2/commits/f3ae4cbd1399fba946f3d4ae7ade778a3321d861#diff-cfba9c145ca5d713b626b9c58bb518a7

https://github.com/snwolak/steemblr/pull/2/commits/967766bdc916d3a00ade421b85bdf6eb26c9e3c7


Github Account

https://github.com/snwolak

Sort:  

Thank you for your contribution. I can see a lot of improvements from the last time. When I write an action, I tried to combine all in a single file like newPostBody.js, newPostTags.js, newPostTitle.js in a single action called newPostAction.js. It's also better to comments out the complex logic so that it will be better for other users to get a grasp of the code.

I checked the website and it looks cool, bdw when I tried to click Expand on the first post on the page https://steemblr.com/explore/gifs, and the screen started shaking.

Your contribution has been evaluated according to Utopian policies and 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.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you for your review, @codingdefined!

So far this week you've reviewed 14 contributions. Keep up the good work!

I checked the website and it looks cool, bdw when I tried to click Expand > on the first post on the page https://steemblr.com/explore/gifs, and the screen started shaking.

What web browser did you use?

I used Chrome Browser.

Hey @snwolak
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.

Vote for Utopian Witness!

Congratulations @snwolak! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do not miss the last post from @steemitboard:
SteemitBoard and the Veterans on Steemit - The First Community Badge.

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by snwolak from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

Congratulations @snwolak! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of comments received

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:
SteemitBoard and the Veterans on Steemit - The First Community Badge.

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Congratulations @snwolak! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:
SteemitBoard and the Veterans on Steemit - The First Community Badge.

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Congratulations @snwolak! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Coin Marketplace

STEEM 0.22
TRX 0.24
JST 0.038
BTC 94692.02
ETH 3236.92
USDT 1.00
SBD 3.29