lbry-desktop/web
infinite-persistence 87c3dcc057
SyncFatalError: show nag instead of hard-crashing. (#331)
* SyncFatalError: show nag instead of hard-crashing.

## Issue
When sync fails, we crash the app.

## Ticket
Maybe closes 39 "Better handle both internal and web backend interruptions / downtime"

## Approach
I'm tackling this from the standpoint that (1) sync errors are not that fatal -- we'll just lost a few recent changes (2) network disconnection is the common cause.

## Changes
- If we are offline:
    - Inform user through a nag. All other status is meaningless if we are offline.
- If we are online:
    - If api is STATUS_DOWN, show the existing crash page.
    - If there is a sync error, show a nag saying settings are now potentially unsynchronized, and add a button to retry sync.
    - If there is a chunk error, nag to reload.

* Attempt to detect `status=DOWN`

Previous code resolves the status to either "ok" or "not", which makes the app unable to differentiate between the "degraded" (nag) and "down" (crash) states.
2021-11-22 09:30:43 -05:00
..
component Optimize makeSelectClaimIsNsfw (and it's surrounding friends) 2021-11-16 10:14:01 +08:00
effects SyncFatalError: show nag instead of hard-crashing. (#331) 2021-11-22 09:30:43 -05:00
middleware Add favicon for Google Search results (#7205) 2021-10-01 08:09:02 -04:00
page Odysee references revamp, part1 2021-10-08 15:22:07 -04:00
setup Detect concurrent uploads and stop it. 2021-11-22 16:12:11 +08:00
src facilitate admin temp files (#313) 2021-11-17 13:28:36 -05:00
static/pwa Browser push notifications (#133) 2021-10-27 10:38:10 -04:00
stubs rename lbrytv to web 2020-05-25 17:21:02 -04:00
bundle-id.js fix uuid import with new version 2020-10-02 14:36:22 -04:00
index.js cache static files for webserver 2021-06-04 12:05:23 -04:00
lbry.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
package.json Browser push notifications (#133) 2021-10-27 10:38:10 -04:00
webpack.config.js Browser push notifications (#133) 2021-10-27 10:38:10 -04:00
webpack.sw.config.js Browser push notifications (#133) 2021-10-27 10:38:10 -04:00
yarn.lock Browser push notifications (#133) 2021-10-27 10:38:10 -04:00