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

[MU] Save draft locally periodically #3358

Open
chibenwa opened this issue Dec 17, 2024 · 6 comments
Open

[MU] Save draft locally periodically #3358

chibenwa opened this issue Dec 17, 2024 · 6 comments
Assignees
Labels
customer enhancement New feature or request

Comments

@chibenwa
Copy link
Member

Description

On WEB:

GIVEN I type a message
AND stop typing for 15 seconds
THEN twake mail saves the email locally (not on the JMAP server)

That way if the broswer crash (eg power failure) then the email is not lost.

When reopening the browser the composer should be reopened with user input.

Ref: https://github.com/Yash18-hub/CISD-GES/issues/88

Let's not save on the back as it might create a massive surge in requests

@chibenwa chibenwa added enhancement New feature or request customer labels Dec 17, 2024
@tddang-linagora tddang-linagora self-assigned this Dec 24, 2024
@tddang-linagora
Copy link
Contributor

@tddang-linagora
Copy link
Contributor

  1. User is composing email, cache timer (in this case, 15s) is already due and the cache is saved
  2. Browser crashes/Laptop dies/User force-quit browser, cache is already set so no problem
  3. When user reopen app, check cache storage to see if there's any entry. If yes, show a dialog to let user choose what's going to happen next
  • Discard
  • Save to draft (server side)*
  • Continue to edit

Is this the desired behavior?
What if * failed, then user proceed to compose another email, and 1, 2, 3 happens. There will be more than 1 cache entry now. What happen then when user reopen the app?

@chibenwa
Copy link
Member Author

Yes it looks like a nice behaviour

@tddang-linagora
Copy link
Contributor

How about the second question? What if there are multiple cache entries?

@tddang-linagora
Copy link
Contributor

Note:

  • If browser has multiple cache entries, get the latest cache first, then if that cache is handled, get the next one everytime user open the app until there is no more cache entry left.

@tddang-linagora
Copy link
Contributor

#3372 (comment)

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

No branches or pull requests

2 participants