What someone came up with...utopian-io,more of things like this

in utopian-io •  7 years ago 

I made steemgig, testimonial, untalented editor and gig request creation persistent. Users can resume post creation where they left off before closing browser/page
Bug Fixes
The errors

Initially some users complained about their inability to make posts with duplicate titles i.e (Titles that already exist in the blockchain under the same username).
error pushing to steem by
The error was due to the fact that only the title's were being modified by the steemgigs author (when there's a duplicate title), and not the permlink. Therefore, the new post will attempt to override the current one (with the same permlink but a different title) causing an error if the post creation date already exceeds 7 days.
Describe briefly and add screenshots/recordings, if applicable.
Provide links to related issues on GitHub, that you fixed, if applicable.

How I fixed it
I simply generated a new permlink from the new tiltle (which I generated by adding some random numbers to the already existing title which the user is attempting to reuse). That way, it's an entirely new post on the steem blockchain, therefore, rectifying the error
Describe briefly how you fixed the issue(s).

New Features
Features Added
I changed the text color for 'duplicate title warning' and text content
Duplicate title warning
The red text on the warning, lead some users to believing it was an error and they couldn't proceed to post with that title (contrary to what the steemgigs author had in mind).
For that reason, I changed the text color on the 'warning' and even changed its content to state clearly to the users that they can proceed even thought they've used the title a previous time.
Duplicate title warning text-color and content changed

Made post creations persistent i.e users can continue posting after leaving page without data loss
Before now, the users would loose progress on posts if they haven't submitted it (pushed it to steem).
I have added persistence to data creation on all sections. i.e Users can now leave a page (or even close the browser) during post creation ( New Gig Creation, Testimonial creation, Gig Requests Creation, Untalented Editor) and still be able to continue the next time from where they stopped.

How I implemented this
I added a few a few changed the css class on the element (displaying the 'duplicate title' warning and also modified its content so it states clearly to the users that they can proceed even thought they've used the title a previous time.

I made new data persistent by synchronizing the vue local storage on every modification during posts creation.

Forwarded from @afeezawoyemi to @surpassinggoogle

Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!