[Steemia] - Updates made visually and internally
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.
- 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"
- A comment modal was added to display the comments of a selected post.
- For post without images, a placeholder was added to keep an even UI.
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
Hey @jaysermendez I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
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!