[Steemia] - Updates made visually and internally

in #utopian-io7 years ago (edited)

As the time move, Steemia is moving as well. Everyday we are committing changes to be able to reach beta stage as soon as possible. This is a real challenge but it is not impossible.

Changes Made


  • Data parsing function was modified to gather data from SteemConnect and determine whether or not the user is logged in. This data is loaded from the SteemConnect provider as a subject behavior that emit changes depending on the auth status. If the auth status is set to True, the data parser will determine whether or not the user has vote the list of posts being rendered.

  • Also, in the data parsing function, an arbitrary field was added to determine when a user is voting this post. By doing this, we are avoiding inserting this field after data is loaded. It helps us to change the upvote icon with a spinner until the vote is broadcasted. After vote is successful, the field is set to True and the upvote icon turns into blue indicating that it is already voted. To unvote, simply tap the icon again and the process will be reverted.

  • Functions to broadcast votes and unvotes were added. Also, comment broadcast function was added but it is not yet implemented into the UI.

  • Auth process was modified because the auth state was impossible to track. Now, after logged in correctly, a subject behavior emits the change to the main variable holding the auth state and it can be subscribed everywhere in the app by importing the provider into the module.

  • In the post renderer component, the bottom of the card was modified by adding 3 small photos of three voters in the post.

Screen Shot 2018-02-10 at 10.04.17 PM.png

  • Pluralization was added into the like text. Now, when there is only 1 like, it will not say "1 likes" but it will say "1 like"

Screen Shot 2018-02-10 at 10.03.48 PM.png

  • A comment modal was added to display the comments of a selected post.

Screen Shot 2018-02-10 at 10.05.44 PM.png

  • For post without images, a placeholder was added to keep an even UI.

Screen Shot 2018-02-10 at 10.06.57 PM.png

  • Bootstrap of the replies page for the comment was created but not yet linked to the child component.

  • Lifecycle of the component were moved from plain Angular to Ionic lifecycle.

  • Steemactions provider removed since it was not needed at the end.

Contributors?


To contribute fork the Steemia repository and submit pull requests.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hey @jaysermendez I am @utopian-io. I have just upvoted you!

Achievements

  • WOW WOW WOW People loved what you did here. GREAT JOB!
  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Thank you so much!

Coin Marketplace

STEEM 0.12
TRX 0.23
JST 0.031
BTC 82743.67
ETH 2023.62
USDT 1.00
SBD 0.87