Remove post added / edited confirmation screen #217
Labels
enhancement
New feature or request
Has dependency
A ticket that has a dependency on another ticket. Remove when dependency is removed.
The newly introduced screen confirming that post was successfully added/edited leads to extra steps, and slows down the experience when creating/editing multiple posts.
After a post transaction is successfully executed you should be returned directly to the created / edited post in view mode ( no editor ). Either in the feed, if that's where you came from, or directly to the post.
The reason for the new confirmation screen is for pure technical reasons, to remove the draft state and clear the
transactionHashes
query string parameter ( as written in the PR where it was introduced: #197 ).It would be better if this parameter could be cleared by an automatic redirect, but this is not possible in NEAR social VM as of today, so a feature for this would need to be requested there.
Another alternative would be to keep the
transactionHashes
parameter in the query string, but clear the draft by inspecting the submitted content in the transaction and comparing it with the draft, and only clear the draft if it matches. This would also serve as a better confirmation for that the post is actually edited/submitted successfully. But without clearing thetransansactionHashes
then it would be preserved in the query string for future posts, and also if reloading the view, it would also look up that transaction, and it's unclear how that would work with multiple posts, so a redirect to clear the query string parameter would be appropriate in any case.The text was updated successfully, but these errors were encountered: