elnook / notedo

Notes, Todos, Markdown, Bookmarks and more with VIM support and full-text search - stay'in organized
5 stars 0 forks source link

Cached loading page fails with no ux feedback #16

Open cmeinco opened 3 years ago

cmeinco commented 3 years ago

Describe the bug After a wonderful patch Tuesday, my machine has rebooted and notedo is no longer running; the page loads up (must be cached?) and the blue "loading" bar just keeps spinning. I looked at the error console and see a lot of errors. Maybe could bubble some of these errors up to stop the spinning and just say "cant connect to backend" type error message with a "Refresh/Reload the page" button?

To Reproduce Steps to reproduce the behavior:

  1. Stop notedo service
  2. Open notedo site (likely cached)
  3. Look at the dev console (F12)

Expected behavior UX shows that the backend is not accessible to prompt the user to take action, yell at their admin and get the service back up and running.

Additional context Screenshot of console errors image

davidwashere commented 3 years ago

yea i'm aware of this one, not sure how I want to handle it, can remove the caching of browser content all together (will get browser unreachable page depending on if browser 'listens' to headers), or try to get fancy when a request fails, determine if it was due to a connection failed, and then show some 'server not avail' message