Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Losing draft posts client-side in browser even though code shows local storage is being used #293

Open
1 task
ltfschoen opened this issue Feb 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ltfschoen
Copy link
Contributor

ltfschoen commented Feb 23, 2024

馃摎 Context

Problem:

I still keep losing draft posts that I've written but haven't published yet.

Relevance:

It is unbearable, especially when you've spent a considerable amount of time preparing a post, only to have it just disappear.

What are the possible solutions?

Here's my explanation of the issues and proposed solutions https://polkaverse.com/12864/how-to-avoid-losing-your-draft-posts-on-polka-verse-74158

If there is only one draft Post being stored in Local Storage, and the post modal disappears, then show an "Edit" button in the header so they may restore that draft Post and continue editing.

If there are multiple draft Posts from the same or different Spaces then store the values in Local Storage under Space + Post key, and if in one of the browser windows or tabs they lose the popup modal of one of the draft posts, provide a "Restore" drop-down or similar, that allows try restoring any of the draft Posts from Local Storage until they find the one they thought they lost

馃搱 Subtasks

  • Store draft posts in browser client-side so it works with VPN

馃幆 Definition of Done

  • User is able to use a VPN service to protect their privacy even whilst having a poor connection and even if they lose their Websocket connection to the Subsocial node and their draft post disappears, there's an "Edit" or "Restore" button to restore it, rather than just the risk of clicking the wrong thing and finding it gets permanently removed from local storage.
@ltfschoen ltfschoen added the enhancement New feature or request label Feb 23, 2024
@ltfschoen ltfschoen changed the title Store draft posts client-side in browser Losing draft posts client-side in browser even though code shows local storage is being used Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant