-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Losing draft posts since it stores multiple draft posts in the same auto-saved value in Local Storage when you draft multiple posts in parallel that may be from different Spaces #295
Comments
Hello! Thanks for the report! Tbh Polkaverse doesn't have the functionality of multiple drafts of posts yet. I know how we can add one draft for each location. Will this be enough for you? |
What I'm thinking of is having 1 draft for each type of editor So I think it would make better sense to do these 2 things:
What do you think? Will that solves the issue? |
I think the all the following things have to be done: 1. Rename "Write Something..." to "Write New Post..." 2a.
2b. If the user clicks the "Write Something..." (which is currently shown in My Feed section, and Posts), then default to using the SPACE_ID of their Profile Space, which it already does, but store the value of that new post under the appropriate Key "ACCOUNT_ID-SPACE_ID" in local storage as mentioned above in 1), where ACCOUNT_ID is the SS58 account address of the current user, and:
3. If the user goes to My Spaces, where it lists their spaces, and they click the menu of a specific Space (i.e. their Profile space or one of their other Custom spaces) and choose "Write Post", then using the SPACE_ID of the specific space that they chose to create the post within, then default to using their Profile Space, which it already does, but store that new post under the appropriate Key "ACCOUNT_ID-SPACE_ID" in local storage as mentioned above in 1), where ACCOUNT_ID is the SS58 account address of the current user, and:
4. If the user goes to My Spaces, where it lists their spaces, and they click the menu of a specific Space (i.e. their Profile space or one of their other Custom spaces), then we want the user to have an extra item called "Edit Post" to be shown, but only if there is a Key "ACCOUNT_ID-SPACE_ID" in local storage where that ACCOUNT_ID matches the current user, and the SPACE_ID matches the menu of the specific Space that they are interacting with, and:
|
Hey! thank you for the detailed explanation, but we are currently developing other big things 👀, so we will check this issue out after we finished the update |
Current Behavior:
If you are drafting multiple Posts under the same or different Spaces that you haven't published yet in different browser tabs, they all auto-save to the same value in Local Storage, so if you lose your connection, you'll only be able to recover the draft post that you last modified
Expected Behavior:
It should store each post in Local Storage under a Space + Post key, instead of just storing them all in the same place, so if you'll be able to recover multiple draft Posts each from the same or a different Space
Steps To Reproduce:
Refer to the "How to find out what is auto-saved in Local Storage if you draft two posts in parallel that use a different Space?" section in this post https://polkaverse.com/12864/how-to-avoid-losing-your-draft-posts-on-polka-verse-74158
Environment
The text was updated successfully, but these errors were encountered: