mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 13:05:53 +03:00
[GH-ISSUE #298] Improve offline handling #259
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#259
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jasonmunro on GitHub (Oct 30, 2018).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/298
Originally assigned to: @jasonmunro on GitHub.
Cypht is very much a standard HTML5 app - It has some SPA like qualities, but is not intended to work offline. With that said, there are a few places we could improve the user experience when we can't reach the server.
Cypht simply won't work offline, it was not designed to. But I think we can make things less painful with some tweaks to the above points.
@jasonmunro commented on GitHub (Nov 7, 2018):
We have 2 new updates for this in the master branch.
Under certain failure conditions for background updates (or any ajax call really) - we used to redirect to the home page in the browser. Honestly I don't know why we were doing this. If you were in the middle of composing an E-mail and this happened - you got an "offline" page from your browser. And if your IP changes, you get logged out on reconnect and lost your message. Not good! This redirect has been removed.
We used to show a "error communicating with server" message when knocked offline. Now we show a bright red "offline" block in the upper right that is clickable. Clicking it will send a no-op ajax request to check connectivity. If it works the offline block goes away, or if a scheduled background ajax call works it goes away on it's own. While this is not significantly different behavior - it is a better UI experience because it will become obvious that you are offline so you can copy/paste a composed but not sent message, or you can at least know NOT to click "send' as it will fail.
@jasonmunro commented on GitHub (Nov 15, 2018):
One more addition to this that I forgot to tag this issue with:
github.com/jasonmunro/cypht@929e79b777Check ajax response status codes so we can better identify "offline" vs "server error". I'm going to close this issue now as the combined effect of the above changes are I think the best we can do for a better offline experience at this time.