Drafts Feature added to Mixion, Temp fix to crashing Post editor.

in #utopian-io7 years ago (edited)

Drafts Features

  • A new drafts page has been included
    This is an important feature That NEEDED to b added as there is currently an issue connecting to Steemit. Whenever you attempt to submit a new post and there is a network issue, or you simply just leave the application, a draft will automatically be saved into your device's storage. You can find all of your saved drafts on the drafts tab.

DraftPage.png

How did you implement it?

1. The first that I had to do was to create a new database table along with queries to the new table and then the Fragment (page) that displays the Drafts.

2. Secondly, I had to add all the calls into the existing repository class so that they can be easily accessible from wherever needed. One of my favorite things to do is to wrap these calls in RxJava.

3. After these two things were done, now we are ready to start displaying drafts and also adding functionality for saving drafts.

4. Next was to Open a draft back into the editor and continue writing.

5. I also added an update function so you can actually keep on editing your perfect post throughout the day.

6. The last thing there was left to do was to delete unwanted drafts

drafts.png

Crash Fixes and Posting not working

  • About 2 days ago the posting feature completely stopped working and Mixion would actually crash. This was due to breaking changes on the steemit node. Particularly a deprecated API call. I will try to fix this as soon as possible.

I was actually in the process of integrating voting and commenting features when this broke, which prompted me to implement the draft feature first and then figure out whats wrong and how to fix it.

It seems like @dez1337 , the developer of @steemj , has completely disappeared since Mid January. He was very active on GitHub and answering questions, but he stopped all of a sudden. There are still Open pull requests that can fix the current issue in Mixion. At this point I'm concerned whether he is alright or not, last we heard of him was that he was going out on a business trip. I hope he is alright.

Code Changes

Mar 23 - Mar 24

Verification

image



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

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

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

Achievements

  • 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