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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save draft in localstorage if runbox7 is offline #1640

Open
tadzik opened this issue Dec 16, 2024 · 2 comments
Open

Save draft in localstorage if runbox7 is offline #1640

tadzik opened this issue Dec 16, 2024 · 2 comments
Labels
enhancement New feature or request P3-medium Priority medium

Comments

@tadzik
Copy link
Contributor

tadzik commented Dec 16, 2024

Is your feature request related to a problem? Please describe.
When the internet connection (or Runbox API) goes down intermittently, a drafted message is not saved anywhere. With as little as clicking away to another folder and back to drafts, the typed in content is lost.

Describe the solution you'd like
When Runbox7 is offline, a draft should be saved locally (in browser's localStorage or similar), so that the typed in message is not completely lost.

Describe alternatives you've considered
Perhaps it's a sensible failsafe to save drafts in both places at the same time. This could lead to conflicts if the versions diverge, so they'd either need a timestamp (timezone-agnostic, just in case :)), a heuristic like "longer draft wins" (could backfire) or a "which draft do you want to use" screen (lots of work for an edgecase).

Additional context
Happy holidays!

@tadzik
Copy link
Contributor Author

tadzik commented Dec 16, 2024

Just as I finished typing this, my connection to Runbox7 API came back up, and now I have two drafts that I didn't have a moment ago – so not only there was no actual data loss (presumably because the underlying API requests were still being retried under the hood, and I didn't refresh the page or anything like that), I now have a version history. Cool :D But the feature request still stands :)

@gtandersen gtandersen added enhancement New feature or request P3-medium Priority medium labels Dec 17, 2024
@gtandersen
Copy link
Contributor

Thanks for the suggestion @tadzik -- and Happy Holidays from us! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P3-medium Priority medium
Projects
None yet
Development

No branches or pull requests

2 participants